[PATCH v3 0/3] mtd: rawnand: cadence: improvement and fixes

niravkumar.l.rabara@intel.com posted 3 patches 10 months, 1 week ago
.../mtd/nand/raw/cadence-nand-controller.c    | 42 ++++++++++++++-----
1 file changed, 31 insertions(+), 11 deletions(-)
[PATCH v3 0/3] mtd: rawnand: cadence: improvement and fixes
Posted by niravkumar.l.rabara@intel.com 10 months, 1 week ago
From: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>

This patchset introduces improvements and fixes for cadence nand driver.
The changes include:

1. Replace dma_request_channel() with dma_request_chan_by_mask() and use
   helper functions to return proper error code instead of fixed -EBUSY.
2. Remap the slave DMA I/O resources to enhance driver portability.
3. Fixed dma_unmap_single to use correct physical/bus device.


v3 changes:-
  * Update commit message based on v2 review feedback for better clarity.
  * Use dma_request_chan_by_mask() and helper functions to return proper
    error code instead of fixed -EBUSY error code.

link to v2:
 - https://lore.kernel.org/all/20250116032154.3976447-1-niravkumar.l.rabara@intel.com/

v2 changes:-
  * Added the missing Fixes and Cc: stable tags to the patches.

link to v1:
 - https://lore.kernel.org/all/20250108135234.3107502-1-niravkumar.l.rabara@intel.com/

Niravkumar L Rabara (3):
  mtd: rawnand: cadence: fix error code in cadence_nand_init()
  mtd: rawnand: cadence: use dma_map_resource for sdma address
  mtd: rawnand: cadence: fix incorrect device in dma_unmap_single

 .../mtd/nand/raw/cadence-nand-controller.c    | 42 ++++++++++++++-----
 1 file changed, 31 insertions(+), 11 deletions(-)

-- 
2.25.1
Re: [PATCH v3 0/3] mtd: rawnand: cadence: improvement and fixes
Posted by Miquel Raynal 10 months ago
On Mon, 10 Feb 2025 13:35:48 +0800, niravkumar.l.rabara@intel.com wrote:
> From: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
> 
> This patchset introduces improvements and fixes for cadence nand driver.
> The changes include:
> 
> 1. Replace dma_request_channel() with dma_request_chan_by_mask() and use
>    helper functions to return proper error code instead of fixed -EBUSY.
> 2. Remap the slave DMA I/O resources to enhance driver portability.
> 3. Fixed dma_unmap_single to use correct physical/bus device.
> 
> [...]

Applied to mtd/fixes, thanks!

[1/3] mtd: rawnand: cadence: fix error code in cadence_nand_init()
      commit: 2b9df00cded911e2ca2cfae5c45082166b24f8aa
[2/3] mtd: rawnand: cadence: use dma_map_resource for sdma address
      commit: d76d22b5096c5b05208fd982b153b3f182350b19
[3/3] mtd: rawnand: cadence: fix incorrect device in dma_unmap_single
      commit: f37d135b42cb484bdecee93f56b9f483214ede78

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl