aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2020-07-03 16:13:41 +0200
committerSam Ravnborg <[email protected]>2020-07-27 20:29:44 +0200
commit900ab59e2621053b009f707f80b2c19ce0af5dee (patch)
tree3a25cabc151deb118911fd423df55a01b098b745 /scripts/gdb
parent2a1658bf922ffd9b7907e270a7d9cdc9643fc45d (diff)
drm/dbi: Fix SPI Type 1 (9-bit) transfer
The function mipi_dbi_spi1_transfer() will transfer its payload as 9-bit data, the 9th (MSB) bit being the data/command bit. In order to do that, it unpacks the 8-bit values into 16-bit values, then sets the 9th bit if the byte corresponds to data, clears it otherwise. The 7 MSB are padding. The array of now 16-bit values is then passed to the SPI core for transfer. This function was broken since its introduction, as the length of the SPI transfer was set to the payload size before its conversion, but the payload doubled in size due to the 8-bit -> 16-bit conversion. Fixes: 02dd95fe3169 ("drm/tinydrm: Add MIPI DBI support") Cc: <[email protected]> # 5.4+ Signed-off-by: Paul Cercueil <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Reviewed-by: Noralf Trønnes <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions