commit | 475be5a1221dbeccae09b788f110d7f5e32b7a0a | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Wed Jul 28 20:50:14 2021 +0800 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Tue Aug 03 11:50:37 2021 +0530 |
tree | 94352a2b9308b717eb9901b10183a9bac6cfda23 | |
parent | 78b498c34e904b505a38f3f5c11178ccb477bd2f [diff] |
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 <bmeng.cn@gmail.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>