Skip to content
Commit cb42425a authored by Bin Meng's avatar Bin Meng Committed by Jagan Teki
Browse files

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 535b1fdb ("spi: spi-mem: Fix read data size issue").

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent 9102cce7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment