aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorYunhao Tian <[email protected]>2022-05-10 11:02:19 +0800
committerNoralf Trønnes <[email protected]>2022-05-30 13:41:09 +0200
commit435c249008cba04ed6a7975e9411f3b934620204 (patch)
treeb071ee0b411cd4025348d5b80ea7e42d6465845d /net/lapb/lapb_timer.c
parent14374e3eee1b02dbf162e1dd75b789373f07ef43 (diff)
drm/mipi-dbi: align max_chunk to 2 in spi_transfer
In __spi_validate, there's a validation that no partial transfers are accepted (xfer->len % w_size must be zero). When max_chunk is not a multiple of bpw (e.g. max_chunk = 65535, bpw = 16), the transfer will be rejected. This patch aligns max_chunk to 2 bytes (the maximum value of bpw is 16), so that no partial transfer will occur. Fixes: d23d4d4dac01 ("drm/tinydrm: Move tinydrm_spi_transfer()") Signed-off-by: Yunhao Tian <[email protected]> Signed-off-by: Noralf Trønnes <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions