Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f4aec798 authored by George Shore's avatar George Shore Committed by Grant Likely
Browse files

spi/dw_spi: remove conditional from 'poll_transfer'.



The 'poll_transfer' function employs a conditional to test whether the
transmit buffer is valid; in doing so, on a receive operation no data is
clocked out, thus no data is clocked in and ultimately errors appear.

This removes the conditional as the transmit function will be set to a null
writer when the transmit buffer is invalid, allowing the driver to clock
0x00 out to the device to receive data from the device.

Signed-off-by: default avatarGeorge Shore <george@georgeshore.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 426c0093
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment