Skip to content

Commit d0c9a21

Browse files
committed
Merge tag 'mtd/for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
Pull MTD updates from Miquel Raynal: "MTD device changes: - switch platform_driver back to remove() - misc fixes SPI-NAND changes: - a load of fixes to Winbond manufacturer driver - structure constification Raw NAND changes: - improve the power management of the GPMI driver - Davinci driver clean-ups - fix leak in the Atmel driver - fix some typos in the core SPI NOR changes: - Introduce byte swap support for 8D-8D-8D mode and a user for it: macronix. SPI NOR flashes may swap the bytes on a 16-bit boundary when configured in Octal DTR mode. For such cases the byte order is propagated through SPI MEM to the SPI controllers so that the controllers swap the bytes back at runtime. This avoids breaking the boot sequence because of the endianness problems that appear when the bootloaders use 1-1-1 and the kernel uses 8D-8D-8D with byte swap support. Along with the SPI MEM byte swap support we queue a patch for the SPI MXIC controller that swaps the bytes back at runtime" * tag 'mtd/for-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (25 commits) mtd: spi-nor: core: replace dummy buswidth from addr to data mtd: spi-nor: winbond: add "w/ and w/o SFDP" comment mtd: spi-nor: spansion: Use nor->addr_nbytes in octal DTR mode in RD_ANY_REG_OP mtd: Switch back to struct platform_driver::remove() mtd: cfi_cmdset_0002: remove redundant assignment to variable ret mtd: spinand: Constify struct nand_ecc_engine_ops MAINTAINERS: add mailing list for GPMI NAND driver mtd: spinand: winbond: Sort the devices mtd: spinand: winbond: Ignore the last ID characters mtd: spinand: winbond: Fix 512GW, 01GW, 01JW and 02JW ECC information mtd: spinand: winbond: Fix 512GW and 02JW OOB layout mtd: nand: raw: gpmi: improve power management handling mtd: nand: raw: gpmi: switch to SYSTEM_SLEEP_PM_OPS mtd: rawnand: davinci: use generic device property helpers mtd: rawnand: davinci: break the line correctly mtd: rawnand: davinci: order headers alphabetically mtd: rawnand: atmel: Fix possible memory leak mtd: rawnand: Correct multiple typos in comments mtd: hyperbus: rpc-if: Add missing MODULE_DEVICE_TABLE mtd: spi-nor: add support for Macronix Octal flash ...
2 parents 9f3a2ba + 9444775 commit d0c9a21

Some content is hidden

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

98 files changed

+354
-212
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9056,6 +9056,7 @@ F: drivers/net/ethernet/freescale/gianfar*
90569056

90579057
FREESCALE GPMI NAND DRIVER
90589058
M: Han Xu <han.xu@nxp.com>
9059+
L: imx@lists.linux.dev
90599060
L: linux-mtd@lists.infradead.org
90609061
S: Maintained
90619062
F: drivers/mtd/nand/raw/gpmi-nand/*

drivers/mtd/chips/cfi_cmdset_0002.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,10 +1779,8 @@ static int __xipram do_write_oneword_retry(struct map_info *map,
17791779
map_write(map, CMD(0xF0), chip->start);
17801780
/* FIXME - should have reset delay before continuing */
17811781

1782-
if (++retry_cnt <= MAX_RETRIES) {
1783-
ret = 0;
1782+
if (++retry_cnt <= MAX_RETRIES)
17841783
goto retry;
1785-
}
17861784
}
17871785
xip_enable(map, chip, adr);
17881786

drivers/mtd/devices/bcm47xxsflash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static void bcm47xxsflash_bcma_remove(struct platform_device *pdev)
367367

368368
static struct platform_driver bcma_sflash_driver = {
369369
.probe = bcm47xxsflash_bcma_probe,
370-
.remove_new = bcm47xxsflash_bcma_remove,
370+
.remove = bcm47xxsflash_bcma_remove,
371371
.driver = {
372372
.name = "bcma_sflash",
373373
},

drivers/mtd/devices/docg3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ static struct platform_driver g3_driver = {
20752075
},
20762076
.suspend = docg3_suspend,
20772077
.resume = docg3_resume,
2078-
.remove_new = docg3_release,
2078+
.remove = docg3_release,
20792079
};
20802080

20812081
module_platform_driver_probe(g3_driver, docg3_probe);

drivers/mtd/devices/phram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static void phram_remove(struct platform_device *pdev)
399399

400400
static struct platform_driver phram_driver = {
401401
.probe = phram_probe,
402-
.remove_new = phram_remove,
402+
.remove = phram_remove,
403403
.driver = {
404404
.name = "phram",
405405
.of_match_table = of_match_ptr(phram_of_match),

drivers/mtd/devices/powernv_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static struct platform_driver powernv_flash_driver = {
286286
.name = "powernv_flash",
287287
.of_match_table = powernv_flash_match,
288288
},
289-
.remove_new = powernv_flash_release,
289+
.remove = powernv_flash_release,
290290
.probe = powernv_flash_probe,
291291
};
292292

drivers/mtd/devices/spear_smi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ static struct platform_driver spear_smi_driver = {
10931093
.pm = &spear_smi_pm_ops,
10941094
},
10951095
.probe = spear_smi_probe,
1096-
.remove_new = spear_smi_remove,
1096+
.remove = spear_smi_remove,
10971097
};
10981098
module_platform_driver(spear_smi_driver);
10991099

drivers/mtd/devices/st_spi_fsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2132,7 +2132,7 @@ MODULE_DEVICE_TABLE(of, stfsm_match);
21322132

21332133
static struct platform_driver stfsm_driver = {
21342134
.probe = stfsm_probe,
2135-
.remove_new = stfsm_remove,
2135+
.remove = stfsm_remove,
21362136
.driver = {
21372137
.name = "st-spi-fsm",
21382138
.of_match_table = stfsm_match,

drivers/mtd/hyperbus/hbmc-am654.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ MODULE_DEVICE_TABLE(of, am654_hbmc_dt_ids);
254254

255255
static struct platform_driver am654_hbmc_platform_driver = {
256256
.probe = am654_hbmc_probe,
257-
.remove_new = am654_hbmc_remove,
257+
.remove = am654_hbmc_remove,
258258
.driver = {
259259
.name = "hbmc-am654",
260260
.of_match_table = am654_hbmc_dt_ids,

drivers/mtd/hyperbus/rpc-if.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,16 @@ static void rpcif_hb_remove(struct platform_device *pdev)
163163
pm_runtime_disable(hyperbus->rpc.dev);
164164
}
165165

166+
static const struct platform_device_id rpc_if_hyperflash_id_table[] = {
167+
{ .name = "rpc-if-hyperflash" },
168+
{ /* sentinel */ }
169+
};
170+
MODULE_DEVICE_TABLE(platform, rpc_if_hyperflash_id_table);
171+
166172
static struct platform_driver rpcif_platform_driver = {
167173
.probe = rpcif_hb_probe,
168-
.remove_new = rpcif_hb_remove,
174+
.remove = rpcif_hb_remove,
175+
.id_table = rpc_if_hyperflash_id_table,
169176
.driver = {
170177
.name = "rpc-if-hyperflash",
171178
},

0 commit comments

Comments
 (0)