diff options
| author | Vincent Whitchurch <[email protected]> | 2022-09-27 11:21:17 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2022-09-28 11:54:07 +0000 |
| commit | 1224e29572f655facfcd850cf0f0a4784f36a903 (patch) | |
| tree | 952baf3beff982f301d685a0e3e1d5e63e3a0b94 /lib/fault-inject.c | |
| parent | spi: Split transfers larger than max size (diff) | |
| download | kernel-1224e29572f655facfcd850cf0f0a4784f36a903.tar.gz kernel-1224e29572f655facfcd850cf0f0a4784f36a903.zip | |
spi: s3c64xx: Fix large transfers with DMA
The COUNT_VALUE in the PACKET_CNT register is 16-bit so the maximum
value is 65535. Asking the driver to transfer a larger size currently
leads to the DMA transfer timing out. Implement ->max_transfer_size()
and have the core split the transfer as needed.
Fixes: 230d42d422e7 ("spi: Add s3c64xx SPI Controller driver")
Signed-off-by: Vincent Whitchurch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
