aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c
diff options
context:
space:
mode:
authorNoralf Trønnes <[email protected]>2019-07-19 15:59:10 +0000
committerNoralf Trønnes <[email protected]>2019-07-23 13:46:27 +0000
commite143364b4c1774f68e923a5a0bb0fca28ac25888 (patch)
treecb721db3960e9a4dd58563c36330f253f49c2868 /drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c
parentdrm/tinydrm: Remove spi debug buffer dumping (diff)
downloadkernel-e143364b4c1774f68e923a5a0bb0fca28ac25888.tar.gz
kernel-e143364b4c1774f68e923a5a0bb0fca28ac25888.zip
drm/tinydrm: Remove tinydrm_spi_max_transfer_size()
spi-bcm2835 can handle >64kB buffers now so there is no need to check ->max_dma_len. The tinydrm_spi_max_transfer_size() max_len argument is not used by any callers, so not needed. Then we have the spi_max module parameter. It was added because staging/fbtft has support for it and there was a report that someone used it to set a small buffer size to avoid popping on a USB soundcard on a Raspberry Pi. In hindsight it shouldn't have been added, I should have waited for it to become a problem first. I don't know it anyone is actually using it, but since tinydrm_spi_transfer() is being moved to mipi-dbi, I'm taking the opportunity to remove it. I'll add it back to mipi-dbi if someone complains. With that out of the way, spi_max_transfer_size() can be used instead. The chosen 16kB buffer size for Type C Option 1 (9-bit) interface is somewhat arbitrary, but a bigger buffer will have a miniscule impact on transfer speed, so it's probably fine. Acked-by: Sam Ravnborg <[email protected]> Signed-off-by: Noralf Trønnes <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c')
0 files changed, 0 insertions, 0 deletions