Skip to content

Add Wondermedia Serial Flash controller support

Tony Prisk linux-arm-kernel linux-mtd lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v2 posting 2/21 patch 4 repliesSuperseded
  3. v2 posting 1/21 patch 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch0 repliesSuperseded

Changes in v3 from the cover letter

As requested by Artem Bityutskiy, I have seperated out the flash chip data into a seperate file (flash_jedec.(h/c)) which should be expandable by other drivers as needed.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: Add a common JEDEC flash device tabledrivers/mtd/devices/flash_jedec.c drivers/mtd/devices/flash_jedec.h+126 -02 replies
2/2mtd: vt8500: Add support for Wondermedia Serial Flash Controllerdrivers/mtd/devices/Kconfig drivers/mtd/devices/Makefile drivers/mtd/devices/wmt_sflash.c+597 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Add Wondermedia Serial Flash controller support

v3 Changes:
As requested by Artem Bityutskiy, I have seperated out the flash chip data into a seperate file (flash_jedec.(h/c)) which should be expandable by other drivers as needed.

I have also cleared up some of the sparse warnings that were being generated,
but need some help with the last one:
+drivers/mtd/devices/wmt_sflash.c:442:24: warning: cast removes address space of expression [sparse] which relates to this line:
+ u32 addr_to = (u32)info->sf_base_virt + to;

What is the correct way to get the value of ->sf_base_virt without generating a sparse warning? sf_base_virt is void __iomem *.

Tony Prisk (2):
mtd: Add a common JEDEC flash device table
mtd: vt8500: Add support for Wondermedia Serial Flash Controller

 drivers/mtd/devices/Kconfig       |   10 +
 drivers/mtd/devices/Makefile      |    3 +-
 drivers/mtd/devices/flash_jedec.c |   96 ++++++
 drivers/mtd/devices/flash_jedec.h |   30 ++
 drivers/mtd/devices/wmt_sflash.c  |  585 +++++++++++++++++++++++++++++++++++++
 5 files changed, 723 insertions(+), 1 deletion(-)
 create mode 100644 drivers/mtd/devices/flash_jedec.c
 create mode 100644 drivers/mtd/devices/flash_jedec.h
 create mode 100644 drivers/mtd/devices/wmt_sflash.c
Signature · 1 line
1.7.9.5