Re: [PATCH] spi: spi-mem-nodm: Fix read data size issue

2021-08-02 Thread Jagan Teki
On Wed, Jul 28, 2021 at 6:20 PM Bin Meng wrote: > > 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 > co

Re: [PATCH] spi: spi-mem-nodm: Fix read data size issue

2021-07-28 Thread Tom Rini
On Wed, Jul 28, 2021 at 11:19:40PM +0530, Pratyush Yadav wrote: > +Tom, Simon, > > On 28/07/21 08:50PM, Bin Meng wrote: > > 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_s

Re: [PATCH] spi: spi-mem-nodm: Fix read data size issue

2021-07-28 Thread Pratyush Yadav
+Tom, Simon, On 28/07/21 08:50PM, Bin Meng wrote: > 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. With the push towards using DM, do we really need to maintain the nodm

[PATCH] spi: spi-mem-nodm: Fix read data size issue

2021-07-28 Thread Bin Meng
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").