Skip to content

Commit 1b88176

Browse files
committed
Merge tag 'mtd/for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
Pull MTD updates from Miquel Raynal: "MTD core: - drop inactive maintainers, update the repositories and add IRC channel - debugfs functions improvements - initialize more structure parameters - misc fixes reported by robots MTD devices: - spear_smi: Fixed Write Burst mode - new Intel IXP4xx flash probing hook Raw NAND core: - useless extra checks dropped - update the detection of the bad block markers position Raw NAND controller drivers: - Cadence: new driver - Brcmnand: support for flash-dma v0 + fixes - Denali: drop support for the legacy controller/chip DT representation - superfluous dev_err() calls removed SPI NOR core changes: - introduce 'struct spi_nor_controller_ops' - clean the Register Operations methods - use dev_dbg insted of dev_err for low level info - fix retlen handling in sst_write() - fix silent truncations in spi_nor_read and spi_nor_read_raw() - fix the clearing of QE bit on lock()/unlock() - rework the disabling of the block write protection - rework the Quad Enable methods - make sure nor->spimem and nor->controller_ops are mutually exclusive - set default Quad Enable method for ISSI flashes - add support for few flashes SPI NOR controller drivers changes: - intel-spi: - support chips without software sequencer - add support for Intel Cannon Lake and Intel Comet Lake-H flashes CFI core changes: - code cleanups related useless initializers and coding style issues - fix for a possible double free problem in cfi_cmdset_0002 - improved HyperFlash error reporting and handling in cfi_cmdset_0002 core" * tag 'mtd/for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (73 commits) mtd: devices: fix mchp23k256 read and write mtd: no need to check return value of debugfs_create functions mtd: spi-nor: Set default Quad Enable method for ISSI flashes mtd: spi-nor: Add support for is25wp256 mtd: spi-nor: Add support for w25q256jw mtd: spi-nor: Move condition to avoid a NULL check mtd: spi-nor: Make sure nor->spimem and nor->controller_ops are mutually exclusive mtd: spi-nor: Rename Quad Enable methods mtd: spi-nor: Merge spansion Quad Enable methods mtd: spi-nor: Rename CR_QUAD_EN_SPAN to SR2_QUAD_EN_BIT1 mtd: spi-nor: Extend the SR Read Back test mtd: spi-nor: Rework the disabling of block write protection mtd: spi-nor: Fix clearing of QE bit on lock()/unlock() mtd: cfi_cmdset_0002: fix delayed error detection on HyperFlash mtd: cfi_cmdset_0002: only check errors when ready in cfi_check_err_status() mtd: cfi_cmdset_0002: don't free cfi->cfiq in error path of cfi_amdstd_setup() mtd: cfi_cmdset_*: kill useless 'ret' variable initializers mtd: cfi_util: use DIV_ROUND_UP() in cfi_udelay() mtd: spi-nor: Print debug message when the read back test fails mtd: spi-nor: Check all the bits written, not just the BP ones ...
2 parents eeee282 + 589e1b6 commit 1b88176

48 files changed

Lines changed: 4612 additions & 1110 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
* Cadence NAND controller
2+
3+
Required properties:
4+
- compatible : "cdns,hp-nfc"
5+
- reg : Contains two entries, each of which is a tuple consisting of a
6+
physical address and length. The first entry is the address and
7+
length of the controller register set. The second entry is the
8+
address and length of the Slave DMA data port.
9+
- reg-names: should contain "reg" and "sdma"
10+
- #address-cells: should be 1. The cell encodes the chip select connection.
11+
- #size-cells : should be 0.
12+
- interrupts : The interrupt number.
13+
- clocks: phandle of the controller core clock (nf_clk).
14+
15+
Optional properties:
16+
- dmas: shall reference DMA channel associated to the NAND controller
17+
- cdns,board-delay-ps : Estimated Board delay. The value includes the total
18+
round trip delay for the signals and is used for deciding on values
19+
associated with data read capture. The example formula for SDR mode is
20+
the following:
21+
board delay = RE#PAD delay + PCB trace to device + PCB trace from device
22+
+ DQ PAD delay
23+
24+
Child nodes represent the available NAND chips.
25+
26+
Required properties of NAND chips:
27+
- reg: shall contain the native Chip Select ids from 0 to max supported by
28+
the cadence nand flash controller
29+
30+
See Documentation/devicetree/bindings/mtd/nand.txt for more details on
31+
generic bindings.
32+
33+
Example:
34+
35+
nand_controller: nand-controller@60000000 {
36+
compatible = "cdns,hp-nfc";
37+
#address-cells = <1>;
38+
#size-cells = <0>;
39+
reg = <0x60000000 0x10000>, <0x80000000 0x10000>;
40+
reg-names = "reg", "sdma";
41+
clocks = <&nf_clk>;
42+
cdns,board-delay-ps = <4830>;
43+
interrupts = <2 0>;
44+
nand@0 {
45+
reg = <0>;
46+
label = "nand-1";
47+
};
48+
nand@1 {
49+
reg = <1>;
50+
label = "nand-2";
51+
};
52+
53+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Flash device on Intel IXP4xx SoC
2+
3+
This flash is regular CFI compatible (Intel or AMD extended) flash chips with
4+
specific big-endian or mixed-endian memory access pattern.
5+
6+
Required properties:
7+
- compatible : must be "intel,ixp4xx-flash", "cfi-flash";
8+
- reg : memory address for the flash chip
9+
- bank-width : width in bytes of flash interface, should be <2>
10+
11+
For the rest of the properties, see mtd-physmap.txt.
12+
13+
The device tree may optionally contain sub-nodes describing partitions of the
14+
address space. See partition.txt for more detail.
15+
16+
Example:
17+
18+
flash@50000000 {
19+
compatible = "intel,ixp4xx-flash", "cfi-flash";
20+
reg = <0x50000000 0x01000000>;
21+
bank-width = <2>;
22+
};

‎MAINTAINERS‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3595,6 +3595,13 @@ S: Maintained
35953595
F: Documentation/devicetree/bindings/media/cdns,*.txt
35963596
F: drivers/media/platform/cadence/cdns-csi2*
35973597

3598+
CADENCE NAND DRIVER
3599+
M: Piotr Sroka <piotrs@cadence.com>
3600+
L: linux-mtd@lists.infradead.org
3601+
S: Maintained
3602+
F: drivers/mtd/nand/raw/cadence-nand-controller.c
3603+
F: Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt
3604+
35983605
CADET FM/AM RADIO RECEIVER DRIVER
35993606
M: Hans Verkuil <hverkuil@xs4all.nl>
36003607
L: linux-media@vger.kernel.org
@@ -10537,15 +10544,13 @@ F: include/linux/vmalloc.h
1053710544
F: mm/
1053810545

1053910546
MEMORY TECHNOLOGY DEVICES (MTD)
10540-
M: David Woodhouse <dwmw2@infradead.org>
10541-
M: Brian Norris <computersforpeace@gmail.com>
10542-
M: Marek Vasut <marek.vasut@gmail.com>
1054310547
M: Miquel Raynal <miquel.raynal@bootlin.com>
1054410548
M: Richard Weinberger <richard@nod.at>
1054510549
M: Vignesh Raghavendra <vigneshr@ti.com>
1054610550
L: linux-mtd@lists.infradead.org
1054710551
W: http://www.linux-mtd.infradead.org/
1054810552
Q: http://patchwork.ozlabs.org/project/linux-mtd/list/
10553+
C: irc://irc.oftc.net/mtd
1054910554
T: git git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes
1055010555
T: git git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next
1055110556
S: Maintained
@@ -15296,7 +15301,6 @@ F: arch/arm/boot/dts/spear*
1529615301
F: arch/arm/mach-spear/
1529715302

1529815303
SPI NOR SUBSYSTEM
15299-
M: Marek Vasut <marek.vasut@gmail.com>
1530015304
M: Tudor Ambarus <tudor.ambarus@microchip.com>
1530115305
L: linux-mtd@lists.infradead.org
1530215306
W: http://www.linux-mtd.infradead.org/
@@ -16593,10 +16597,9 @@ F: drivers/media/pci/tw686x/
1659316597

1659416598
UBI FILE SYSTEM (UBIFS)
1659516599
M: Richard Weinberger <richard@nod.at>
16596-
M: Artem Bityutskiy <dedekind1@gmail.com>
16597-
M: Adrian Hunter <adrian.hunter@intel.com>
1659816600
L: linux-mtd@lists.infradead.org
16599-
T: git git://git.infradead.org/ubifs-2.6.git
16601+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git next
16602+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git fixes
1660016603
W: http://www.linux-mtd.infradead.org/doc/ubifs.html
1660116604
S: Supported
1660216605
F: Documentation/filesystems/ubifs.txt
@@ -16711,11 +16714,11 @@ S: Maintained
1671116714
F: drivers/scsi/ufs/ufs-mediatek*
1671216715

1671316716
UNSORTED BLOCK IMAGES (UBI)
16714-
M: Artem Bityutskiy <dedekind1@gmail.com>
1671516717
M: Richard Weinberger <richard@nod.at>
1671616718
W: http://www.linux-mtd.infradead.org/
1671716719
L: linux-mtd@lists.infradead.org
16718-
T: git git://git.infradead.org/ubifs-2.6.git
16720+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git next
16721+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git fixes
1671916722
S: Supported
1672016723
F: drivers/mtd/ubi/
1672116724
F: include/linux/mtd/ubi.h

‎drivers/mtd/chips/cfi_cmdset_0001.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ static int do_point_onechip (struct map_info *map, struct flchip *chip, loff_t a
13531353
{
13541354
unsigned long cmd_addr;
13551355
struct cfi_private *cfi = map->fldrv_priv;
1356-
int ret = 0;
1356+
int ret;
13571357

13581358
adr += chip->start;
13591359

@@ -1383,7 +1383,7 @@ static int cfi_intelext_point(struct mtd_info *mtd, loff_t from, size_t len,
13831383
struct cfi_private *cfi = map->fldrv_priv;
13841384
unsigned long ofs, last_end = 0;
13851385
int chipnum;
1386-
int ret = 0;
1386+
int ret;
13871387

13881388
if (!map->virt)
13891389
return -EINVAL;
@@ -1550,7 +1550,7 @@ static int __xipram do_write_oneword(struct map_info *map, struct flchip *chip,
15501550
{
15511551
struct cfi_private *cfi = map->fldrv_priv;
15521552
map_word status, write_cmd;
1553-
int ret=0;
1553+
int ret;
15541554

15551555
adr += chip->start;
15561556

@@ -1624,7 +1624,7 @@ static int cfi_intelext_write_words (struct mtd_info *mtd, loff_t to , size_t le
16241624
{
16251625
struct map_info *map = mtd->priv;
16261626
struct cfi_private *cfi = map->fldrv_priv;
1627-
int ret = 0;
1627+
int ret;
16281628
int chipnum;
16291629
unsigned long ofs;
16301630

@@ -1871,7 +1871,7 @@ static int cfi_intelext_writev (struct mtd_info *mtd, const struct kvec *vecs,
18711871
struct map_info *map = mtd->priv;
18721872
struct cfi_private *cfi = map->fldrv_priv;
18731873
int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize;
1874-
int ret = 0;
1874+
int ret;
18751875
int chipnum;
18761876
unsigned long ofs, vec_seek, i;
18771877
size_t len = 0;

0 commit comments

Comments
 (0)