]> Git Repo - u-boot.git/commit
spi: spi-mem-nodm: Fix read data size issue
authorBin Meng <[email protected]>
Wed, 28 Jul 2021 12:50:14 +0000 (20:50 +0800)
committerJagan Teki <[email protected]>
Tue, 3 Aug 2021 06:20:37 +0000 (11:50 +0530)
commitcb42425aa1086f2a732dd2e0614acc0c993c869d
tree94352a2b9308b717eb9901b10183a9bac6cfda23
parent9102cce7f439b1939e37d28bfa587d316d1c7a73
spi: spi-mem-nodm: Fix read data size issue

When slave drivers don't set the max_read_size, the spi-mem should
directly use data.nbytes and not limit to any size. But current
logic will limit to the max_write_size.

This commit mirrors the same changes in the dm version done in
commit 535b1fdb8e5e ("spi: spi-mem: Fix read data size issue").

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
drivers/spi/spi-mem-nodm.c
This page took 0.035279 seconds and 4 git commands to generate.