Message ID | 20230420055131.2048959-1-joychakr@google.com (mailing list archive) |
---|---|
Headers | show |
Series | spi: dw: DW SPI DMA Driver updates | expand |
On Thu, Apr 20, 2023 at 05:51:26AM +0000, Joy Chakraborty wrote: > This Patch series adds support for 32 bits per word trasfers using DMA > and some defensive checks around dma controller capabilities. The series looks good to me except a small nitpick described in the patch 5. Just a note for future patchset it's preferable to have the fixes-patches placed at the head of the series thus it would minimize a possible to catch merge-conflicts on the patches backporting. In case of your fixes patch it won't be relevant since the change is independent from the rest of the series updates. So feel free to add the tags: Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Tested-by: Serge Semin <fancer.lancer@gmail.com> * tested on Baikal-T1 based system with DW SPI-looped back interface transferring a chunk of data with DFS:8,12,16. Note before moving further we'll need to wait for @Andy response. -Serge(y) > --- > V1 Changes : Add support for AxSize=4 bytes to support 32bits/word. > --- > V1->V2 Changes : Add dma capability check to make sure address widths > are supported. > --- > V2->V3 Changes : Split changes , add DMA direction check and other > cosmetic chnages. > --- > V3->V4 Changes : Fix Sparce Warning > | Reported-by: kernel test robot <lkp@intel.com> > | Link: https://lore.kernel.org/oe-kbuild-all/202303270715.w9sMJhIh-lkp@intel.com/ > --- > V4->V5 Changes : Preserve reverse xmas Tree order, move direction > check before initalisation of further capabilities, remove zero > initialisations, remove error OR'ing. > --- > V5->V6 Changes : > -Remove case of n_bytes=3 using 4_bytes buswidth > -Avoid forward decaration > -Break capability check patch into 2 > -round n_bytes to power of 2 ( Bug Fix) > -Add more explanation in commit text. > --- > V6->V7 Changes : Remove extra spaces, refer to functions in commit as > func() > --- > > Joy Chakraborty (5): > spi: dw: Add 32 bpw support to SPI DW DMA driver > spi: dw: Move dw_spi_can_dma() > spi: dw: Add DMA directional capability check > spi: dw: Add DMA address widths capability check > spi: dw: Round of n_bytes to power of 2 > > drivers/spi/spi-dw-core.c | 2 +- > drivers/spi/spi-dw-dma.c | 76 +++++++++++++++++++++++++++++---------- > drivers/spi/spi-dw.h | 1 + > 3 files changed, 60 insertions(+), 19 deletions(-) > > -- > 2.40.0.634.g4ca3ef3211-goog >