HomeFreeBSD

Do not overwrite the contents of BIO_WRITE buffers. SPI inherently

Description

Do not overwrite the contents of BIO_WRITE buffers. SPI inherently
transfers data in both directions at once. When writing to the device,
use a dummy buffer for the incoming data, not the same buffer as the
outgoing data. Writes are done in FLASH_PAGE_SIZE chunks, which is only
256 bytes, so just put the dummy buffer into the softc.

Details

Provenance
ianAuthored on Mar 18 2018, 3:56 PM
Parents
rGbdfc6e62ff9b: Here's the new development(7), which removes information that's
Branches
Unknown
Tags
Unknown

Event Timeline