Skip to content

Add DMA and device tree support to the flash controller FLCTL

Bastian Hecht linux-arm-kernel linux-mtd linux-sh 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v2 posting 3/30 of 2 patches 0 repliesSuperseded
  3. v2 posting 2/30 of 2 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/32 patches0 repliesSuperseded
v12 patches0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mtd: sh_flctl: Minor cleanupsdrivers/mtd/nand/sh_flctl.c include/linux/mtd/sh_flctl.h+17 -221 reply
2/3mtd: sh_flctl: Add DMA capabiltydrivers/mtd/nand/sh_flctl.c include/linux/mtd/sh_flctl.h+183 -20 replies
3/3mtd: sh_flctl: Add device tree supportDocumentation/devicetree/bindings/mtd/flctl-nand.txt drivers/mtd/nand/sh_flctl.c+136 -70 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchGuennadi Liakhovetski
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] Add DMA and device tree support to the flash controller FLCTL

changelog v3: - due to shame on me by letting aiaiai complain, I've added
a third patch (1/3) that cleans up some parts of the driver and added a correct error path to probe() in patch 3 (formerly 2/2). I found no way to fix this though:
+drivers/mtd/nand/sh_flctl.c:181:25: warning: cast removes address space of expression [sparse]

changelog v2: - cosmetic fixes in patch 1
- added dmas and dma-names field in patch 2

This mini-series consists of 2 separately posted patch-sets that shrunk to one patch each. It adds DMA support for the data part (not ECC) as well as device tree support to the FLCTL flash controller. As the 2nd patch is based on the 1st, I've decided to collect them here to avoid any confusion.

The first set contained
[PATCH 1/2] mtd: sh_flctl: Setup and release DMA channels [PATCH 2/2] mtd: sh_flctl: Use DMA for data fifo FLTDFIFO when available and was merged after 2 reviews to
[PATCH] mtd: sh_flctl: Add DMA capabilty (same patch as in here)

The second set contained
[PATCH 1/3] mtd: sh_flctl: Probe SNAND_E flag from NAND chip [PATCH 2/3] mtd: sh_flctl: Add device tree support [PATCH 3/3] mtd: sh_flctl: Add sh7372 device tree config and is merged here to
mtd: sh_flctl: Add device tree support

Patch 1 can be omitted as SNAND_E is handled in the FLCTL source anyway correctly in set_cmd_regs() and the flag can be removed from existing board codes without this patch.
Patch 2 without patch 3 may be confusing so I merged them too. Documentation is added as well.

I've added linux-arm-kernel at lists.infradead.org as recipient for the device tree part.

The patchset is based on
l2-mtd git://git.infradead.org/users/dedekind/l2-mtd.git
with reverted commit e26c113b4130aefa1d8446602bb5b05cfd646bfe.

Bastian Hecht (2):
mtd: sh_flctl: Add DMA capabilty
mtd: sh_flctl: Add device tree support

 .../devicetree/bindings/mtd/flctl-nand.txt         |   37 +++
 drivers/mtd/nand/sh_flctl.c                        |  266 +++++++++++++++++++-
 include/linux/mtd/sh_flctl.h                       |   12 +
 3 files changed, 305 insertions(+), 10 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/flctl-nand.txt
Signature · 1 line
1.7.5.4