commit | 3a25589bc4e57318e18ba981958ebd253cedff3e | [log] [tgz] |
---|---|---|
author | Christophe Leroy <christophe.leroy@csgroup.eu> | Tue Apr 09 08:38:08 2024 +0200 |
committer | Christophe Leroy <christophe.leroy@csgroup.eu> | Thu Apr 18 15:47:46 2024 +0200 |
tree | 3137f6adde92d54ade76dff1ad26cca8364d6187 | |
parent | bc6a457dc8cd65e5fb0cb30a87bd1c588e23cfea [diff] |
spi: mpc8xx: Fix transfert when input or output buffer is NULL xfer ops can be passed a NULL input or output buffer. At the time being the driver ignores it and overwrites memory at 0. Define a dummy buffer and use it when either input or output buffer is NULL. Bail out when both are NULL as it shouldn't. Also increase MAX_BUFFER len to 32k as the current is pretty low. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>