Skip to content

Commit a637b0d

Browse files
committed
Merge tag 'for-linus-20130509' of git://git.infradead.org/linux-mtd
Pull MTD update from David Woodhouse: - Lots of cleanups from Artem, including deletion of some obsolete drivers - Support partitions larger than 4GiB in device tree - Support for new SPI chips * tag 'for-linus-20130509' of git://git.infradead.org/linux-mtd: (83 commits) mtd: omap2: Use module_platform_driver() mtd: bf5xx_nand: Use module_platform_driver() mtd: denali_dt: Remove redundant use of of_match_ptr mtd: denali_dt: Change return value to fix smatch warning mtd: denali_dt: Use module_platform_driver() mtd: denali_dt: Fix incorrect error check mtd: nand: subpage write support for hardware based ECC schemes mtd: omap2: use msecs_to_jiffies() mtd: nand_ids: use size macros mtd: nand_ids: improve LEGACY_ID_NAND macro a bit mtd: add 4 Toshiba nand chips for the full-id case mtd: add the support to parse out the full-id nand type mtd: add new fields to nand_flash_dev{} mtd: sh_flctl: Use of_match_ptr() macro mtd: gpio: Use of_match_ptr() macro mtd: gpio: Use devm_kzalloc() mtd: davinci_nand: Use of_match_ptr() mtd: dataflash: Use of_match_ptr() macro mtd: remove h720x flash support mtd: onenand: remove OneNAND simulator ...
2 parents f78089e + cdb6404 commit a637b0d

89 files changed

Lines changed: 602 additions & 8136 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/ABI/testing/sysfs-class-mtd‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ Description:
1414
The /sys/class/mtd/mtd{0,1,2,3,...} directories correspond
1515
to each /dev/mtdX character device. These may represent
1616
physical/simulated flash devices, partitions on a flash
17-
device, or concatenated flash devices. They exist regardless
18-
of whether CONFIG_MTD_CHAR is actually enabled.
17+
device, or concatenated flash devices.
1918

2019
What: /sys/class/mtd/mtdXro/
2120
Date: April 2009
2221
KernelVersion: 2.6.29
2322
Contact: linux-mtd@lists.infradead.org
2423
Description:
2524
These directories provide the corresponding read-only device
26-
nodes for /sys/class/mtd/mtdX/ . They are only created
27-
(for the benefit of udev) if CONFIG_MTD_CHAR is enabled.
25+
nodes for /sys/class/mtd/mtdX/ .
2826

2927
What: /sys/class/mtd/mtdX/dev
3028
Date: April 2009

‎Documentation/devicetree/bindings/mtd/partition.txt‎

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ on platforms which have strong conventions about which portions of a flash are
55
used for what purposes, but which don't use an on-flash partition table such
66
as RedBoot.
77

8-
#address-cells & #size-cells must both be present in the mtd device and be
9-
equal to 1.
8+
#address-cells & #size-cells must both be present in the mtd device. There are
9+
two valid values for both:
10+
<1>: for partitions that require a single 32-bit cell to represent their
11+
size/address (aka the value is below 4 GiB)
12+
<2>: for partitions that require two 32-bit cells to represent their
13+
size/address (aka the value is 4 GiB or greater).
1014

1115
Required properties:
1216
- reg : The partition's offset and size within the mtd bank.
@@ -36,3 +40,31 @@ flash@0 {
3640
reg = <0x0100000 0x200000>;
3741
};
3842
};
43+
44+
flash@1 {
45+
#address-cells = <1>;
46+
#size-cells = <2>;
47+
48+
/* a 4 GiB partition */
49+
partition@0 {
50+
label = "filesystem";
51+
reg = <0x00000000 0x1 0x00000000>;
52+
};
53+
};
54+
55+
flash@2 {
56+
#address-cells = <2>;
57+
#size-cells = <2>;
58+
59+
/* an 8 GiB partition */
60+
partition@0 {
61+
label = "filesystem #1";
62+
reg = <0x0 0x00000000 0x2 0x00000000>;
63+
};
64+
65+
/* a 4 GiB partition */
66+
partition@200000000 {
67+
label = "filesystem #2";
68+
reg = <0x2 0x00000000 0x1 0x00000000>;
69+
};
70+
};

‎arch/arm/mach-pxa/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ config MACH_XCEP
162162
select MTD
163163
select MTD_CFI
164164
select MTD_CFI_INTELEXT
165-
select MTD_CHAR
166165
select MTD_PHYSMAP
167166
select PXA25x
168167
select SMC91X

‎arch/cris/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ config ETRAX_AXISFLASHMAP
264264
select MTD_CFI
265265
select MTD_CFI_AMDSTD
266266
select MTD_JEDECPROBE if ETRAX_ARCH_V32
267-
select MTD_CHAR
268267
select MTD_BLOCK
269268
select MTD_COMPLEX_MAPPINGS
270269
help

‎arch/cris/arch-v32/drivers/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ config ETRAX_AXISFLASHMAP
404404
select MTD_CFI
405405
select MTD_CFI_AMDSTD
406406
select MTD_JEDECPROBE
407-
select MTD_CHAR
408407
select MTD_BLOCK
409408
select MTD_COMPLEX_MAPPINGS
410409
help

‎drivers/bcma/driver_mips.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <linux/serial_reg.h>
2222
#include <linux/time.h>
2323

24-
static const char *part_probes[] = { "bcm47xxpart", NULL };
24+
static const char * const part_probes[] = { "bcm47xxpart", NULL };
2525

2626
static struct physmap_flash_data bcma_pflash_data = {
2727
.part_probe_types = part_probes,

‎drivers/mtd/Kconfig‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,6 @@ config MTD_BCM47XX_PARTS
157157

158158
comment "User Modules And Translation Layers"
159159

160-
config MTD_CHAR
161-
tristate "Direct char device access to MTD devices"
162-
help
163-
This provides a character device for each MTD device present in
164-
the system, allowing the user to read and write directly to the
165-
memory chips, and also use ioctl() to obtain information about
166-
the device, or to erase parts of it.
167-
168-
config HAVE_MTD_OTP
169-
bool
170-
help
171-
Enable access to OTP regions using MTD_CHAR.
172-
173160
config MTD_BLKDEVS
174161
tristate "Common interface to block layer for MTD 'translation layers'"
175162
depends on BLOCK

‎drivers/mtd/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Core functionality.
66
obj-$(CONFIG_MTD) += mtd.o
7-
mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o
7+
mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o mtdchar.o
88

99
obj-$(CONFIG_MTD_OF_PARTS) += ofpart.o
1010
obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
@@ -15,7 +15,6 @@ obj-$(CONFIG_MTD_BCM63XX_PARTS) += bcm63xxpart.o
1515
obj-$(CONFIG_MTD_BCM47XX_PARTS) += bcm47xxpart.o
1616

1717
# 'Users' - code which presents functionality to userspace.
18-
obj-$(CONFIG_MTD_CHAR) += mtdchar.o
1918
obj-$(CONFIG_MTD_BLKDEVS) += mtd_blkdevs.o
2019
obj-$(CONFIG_MTD_BLOCK) += mtdblock.o
2120
obj-$(CONFIG_MTD_BLOCK_RO) += mtdblock_ro.o

‎drivers/mtd/chips/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ config MTD_CFI_I8
146146
config MTD_OTP
147147
bool "Protection Registers aka one-time programmable (OTP) bits"
148148
depends on MTD_CFI_ADV_OPTIONS
149-
select HAVE_MTD_OTP
150149
default n
151150
help
152151
This enables support for reading, writing and locking so called

‎drivers/mtd/devices/Kconfig‎

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ config MTD_DATAFLASH_WRITE_VERIFY
7171
config MTD_DATAFLASH_OTP
7272
bool "DataFlash OTP support (Security Register)"
7373
depends on MTD_DATAFLASH
74-
select HAVE_MTD_OTP
7574
help
7675
Newer DataFlash chips (revisions C and D) support 128 bytes of
7776
one-time-programmable (OTP) data. The first half may be written
@@ -205,69 +204,6 @@ config MTD_BLOCK2MTD
205204

206205
comment "Disk-On-Chip Device Drivers"
207206

208-
config MTD_DOC2000
209-
tristate "M-Systems Disk-On-Chip 2000 and Millennium (DEPRECATED)"
210-
depends on MTD_NAND
211-
select MTD_DOCPROBE
212-
select MTD_NAND_IDS
213-
---help---
214-
This provides an MTD device driver for the M-Systems DiskOnChip
215-
2000 and Millennium devices. Originally designed for the DiskOnChip
216-
2000, it also now includes support for the DiskOnChip Millennium.
217-
If you have problems with this driver and the DiskOnChip Millennium,
218-
you may wish to try the alternative Millennium driver below. To use
219-
the alternative driver, you will need to undefine DOC_SINGLE_DRIVER
220-
in the <file:drivers/mtd/devices/docprobe.c> source code.
221-
222-
If you use this device, you probably also want to enable the NFTL
223-
'NAND Flash Translation Layer' option below, which is used to
224-
emulate a block device by using a kind of file system on the flash
225-
chips.
226-
227-
NOTE: This driver is deprecated and will probably be removed soon.
228-
Please try the new DiskOnChip driver under "NAND Flash Device
229-
Drivers".
230-
231-
config MTD_DOC2001
232-
tristate "M-Systems Disk-On-Chip Millennium-only alternative driver (DEPRECATED)"
233-
depends on MTD_NAND
234-
select MTD_DOCPROBE
235-
select MTD_NAND_IDS
236-
---help---
237-
This provides an alternative MTD device driver for the M-Systems
238-
DiskOnChip Millennium devices. Use this if you have problems with
239-
the combined DiskOnChip 2000 and Millennium driver above. To get
240-
the DiskOnChip probe code to load and use this driver instead of
241-
the other one, you will need to undefine DOC_SINGLE_DRIVER near
242-
the beginning of <file:drivers/mtd/devices/docprobe.c>.
243-
244-
If you use this device, you probably also want to enable the NFTL
245-
'NAND Flash Translation Layer' option below, which is used to
246-
emulate a block device by using a kind of file system on the flash
247-
chips.
248-
249-
NOTE: This driver is deprecated and will probably be removed soon.
250-
Please try the new DiskOnChip driver under "NAND Flash Device
251-
Drivers".
252-
253-
config MTD_DOC2001PLUS
254-
tristate "M-Systems Disk-On-Chip Millennium Plus"
255-
depends on MTD_NAND
256-
select MTD_DOCPROBE
257-
select MTD_NAND_IDS
258-
---help---
259-
This provides an MTD device driver for the M-Systems DiskOnChip
260-
Millennium Plus devices.
261-
262-
If you use this device, you probably also want to enable the INFTL
263-
'Inverse NAND Flash Translation Layer' option below, which is used
264-
to emulate a block device by using a kind of file system on the
265-
flash chips.
266-
267-
NOTE: This driver will soon be replaced by the new DiskOnChip driver
268-
under "NAND Flash Device Drivers" (currently that driver does not
269-
support all Millennium Plus devices).
270-
271207
config MTD_DOCG3
272208
tristate "M-Systems Disk-On-Chip G3"
273209
select BCH

0 commit comments

Comments
 (0)