diff options
author | Quentin Schulz | 2024-03-14 10:36:14 +0100 |
---|---|---|
committer | Kever Yang | 2024-03-14 18:19:44 +0800 |
commit | 3de8f45e6f2f94f4cd11a9cbc78ba1828ce639da (patch) | |
tree | 0b7ae226269634ac2f4d572d44bb39617942fde0 /lib/tpm-v1.c | |
parent | 3b95c03d5706255f39a8f1a0fa02045d4fd981df (diff) |
rockchip: spi: rk_spi: do not write bytes when in read-only mode
The read-only mode is currently supported but only for 16b-aligned
buffers. For unaligned buffers, the last byte will be read in RW mode
right now, which isn't what is desired. Instead, let's put the
controller back into RO mode for that last byte and skip any write in
the xfer loop.
This is required for 3-wire SPI mode where PICO/POCI lanes are shorted
on HW level. This incidentally the recommended design for RK806 PMIC for
RK3588 products.
Cc: Quentin Schulz <foss+uboot@0leil.net>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Diffstat (limited to 'lib/tpm-v1.c')
0 files changed, 0 insertions, 0 deletions