aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-01-03mtd: txx9ndfmc: Remove unnecessary OOM messagesJingoo Han1-4/+1
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: jz4740_nand: Remove unnecessary OOM messagesJingoo Han1-3/+1
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: fsl_ifc_nand: Remove unnecessary OOM messagesJingoo Han1-1/+0
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: fsl_elbc_nand: Remove unnecessary OOM messagesJingoo Han1-1/+0
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: diskonchip: Remove unnecessary OOM messagesJingoo Han1-3/+0
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: cs553x_nand: Remove unnecessary OOM messagesJingoo Han1-1/+0
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: cmx270_nand: Remove unnecessary OOM messagesJingoo Han1-1/+0
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: cafe_nand: Remove unnecessary OOM messagesJingoo Han1-3/+1
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: bf5xx_nand: Remove unnecessary OOM messagesJingoo Han1-1/+0
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Acked-by: Mike Frysinger <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: au1550nd: Remove unnecessary OOM messagesJingoo Han1-3/+1
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: sharpsl: Remove unnecessary OOM messagesJingoo Han1-3/+1
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: orion_nand: Remove unnecessary OOM messagesJingoo Han1-2/+0
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: atmel_nand: Remove unnecessary OOM messagesJingoo Han1-3/+1
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <[email protected]> Acked-by: Josh Wu <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: tmio_nand: Use devm_*() functionsJingoo Han1-33/+13
Use devm_*() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nuc900_nand: Use devm_*() functionsJingoo Han1-42/+13
Use devm_*() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: lpc32xx_slc: Use devm_*() functionsJingoo Han1-7/+3
Use devm_*() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han <[email protected]> Acked-by: Roland Stigge <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: denali_dt: Use devm_clk_get()Jingoo Han1-3/+1
Use devm_clk_get() to make cleanup paths simpler. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: lantiq-flash: Use devm_kzalloc()Jingoo Han1-21/+16
Use devm_kzalloc() to make cleanup paths simpler. Also, checking return value of devm_kzalloc() is added in order to check if the allocation succeded. Signed-off-by: Jingoo Han <[email protected]> Acked-by: John Crispin <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: docg3: Use devm_*() functionsJingoo Han1-14/+6
Use devm_*() functions to make cleanup paths simpler. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: pxa3xx: Consolidate ECC initializationEzequiel Garcia1-24/+16
In order to avoid code duplication, let's consolidate the ECC setting for all SoC variants. Such decision is based on page size and ECC strength requirements. Also, provide a default value for the case where such ECC information is not provided (non-ONFI devices). Tested-by: Arnaud Ebalard <[email protected]> Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: pxa3xx: Use extended cmdfunc() only if neededEzequiel Garcia1-10/+21
Currently, we have two different cmdfunc's implementations: one for PXA3xx SoC variant and one for Armada 370/XP SoC variant. The former is the legacy one, typically constrained to devices with page sizes smaller or equal to the controller's FIFO buffer. On the other side, the latter _only_ supports the so-called extended command semantics, which allow to handle devices with larger page sizes (4 KiB, 8 KiB, ...). This means we currently don't support devices with smaller pages on the A370/XP SoC. Fix it by first renaming the cmdfuncs variants, and then make the choice based on device page size (and SoC variant), rather than SoC variant alone. While at it, add a check for page size, to make sure we don't allow larger pages sizes on the PXA3xx variant. Tested-by: Arnaud Ebalard <[email protected]> Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: pxa3xx: Clear need_wait flag when starting a commandEzequiel Garcia1-0/+1
Currently the driver assumes all commands will eventually trigger a RnB transition, and thus a "device is ready" IRQ. This assumption means that on every issued command, the dev_ready completion handler is init'ed and the need_wait flag is set. However this is incorrect: some commands (such as NAND_CMD_STATUS) don't make the device 'busy' and thus a RnB transition never occurs. Given, the NAND core never calls waitfunc() after such commands, this is not a problem. Therefore, it's possible to only clear the need_wait flag on every command that is started. This fixes a current bug that can be reproduced on PXA boards by writing blank (all 0xff'ed) to a page: 1. The kernel issues NAND_CMD_STATUS and sets need_wait=1. The flag won't be cleared for this command since no RnB transition is involved. 2. NAND_CMD_PAGEPROG is issued but since the data is blank, the driver decides not to execute the command (and no IRQ activity is involved). 3. The NAND core calls waitfunc() and waits for the dev_ready completion, which will never end since the device _is_ already ready. Tested-by: Arnaud Ebalard <[email protected]> Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: denali: Mark function is_erased() as staticRashika Kheria1-1/+1
This patch marks the function is_erased() as static in denali.c because it is not used outside this file. This patch elimiates the following warning in nand/denali.c: drivers/mtd/nand/denali.c:900:6: warning: no previous prototype for ‘is_erased’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <[email protected]> Reviewed-by: Josh Triplett <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: lpddr: Mark functions as static and remove unused functionRashika Kheria1-30/+2
This patch marks the functions do_write_buffer() and do_erase_oneblock() as static because because they are not used outside this file. It also removes the unused function word_program() in lpddr/lpddr_cmds.c. Thus, it also removes the following warnings in lpddr/lpddr_cmds.c: drivers/mtd/lpddr/lpddr_cmds.c:391:5: warning: no previous prototype for ‘do_write_buffer’ [-Wmissing-prototypes] drivers/mtd/lpddr/lpddr_cmds.c:472:5: warning: no previous prototype for ‘do_erase_oneblock’ [-Wmissing-prototypes] drivers/mtd/lpddr/lpddr_cmds.c:751:5: warning: no previous prototype for ‘word_program’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <[email protected]> Reviewed-by: Josh Triplett <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: lpc32xx_mlc: drop custom write_page callbackBrian Norris1-15/+1
This driver doesn't need its own custom chip->write_page callback; the only "custom" requirement is that this driver does not support subpage writes, which we can avoid using the NAND_NO_SUBPAGE_WRITE flag. With NAND_NO_SUBPAGE_WRITE, the default routine (nand_write_page()) should perform the equivalent operations. Signed-off-by: Brian Norris <[email protected]> Acked-by: Roland Stigge <[email protected]> Tested-by: Roland Stigge <[email protected]>
2014-01-03mtd: nand: davinci: don't request AEMIF address rangeIvan Khoronzhuk1-3/+11
The TI AEMIF driver registers are used to setup timings for each chip select. The same registers range is used to setup NAND settings. The AEMIF and NAND drivers not use the same registers in this range. In case with TI AEMIF driver, the memory address range is requested already by AEMIF, so we cannot request it twice, just ioremap. Acked-by: Santosh Shilimkar <[email protected]> Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: reuse driver for Keystone archIvan Khoronzhuk2-6/+8
The Keystone arch has compatible nand device, so reuse it. In case with Keystone it depends on TI_AEMIF because AEMIF driver is responsible to set timings. See http://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: adjust DT properties to MTD genericIvan Khoronzhuk2-9/+30
The properties davinci-ecc-mode, davinci-nand-use-bbt, davinci-nand-buswidth are MTD generic. Correct names for them are: nand-ecc-mode, nand-on-flash-bbt, nand-bus-width accordingly. So rename them in dts and documentation. Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: extend description of bindingsIvan Khoronzhuk1-23/+54
Extend bindings for davinci_nand driver to be more clear. This is clarification only, without semantic changes. Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: move bindings under mtdIvan Khoronzhuk1-0/+0
Move bindings under mtd. Do this in order to make davinci-nand driver usable by keystone architecture. Acked-by: Santosh Shilimkar <[email protected]> Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: simplify error handlingIvan Khoronzhuk1-29/+17
There is not needed to use a lot of names for err handling. It complicates code support and reading. Acked-by: Santosh Shilimkar <[email protected]> Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: check required ti,davinci-chipselect propertyIvan Khoronzhuk1-0/+3
The property "ti,davinci-chipselect" is required. So we have to check if it is set. Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: return ENOMEM if memory allocation is failedIvan Khoronzhuk1-1/+4
In case when memory allocation is failed the driver should return ENOMEM instead of ENODEV. Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: davinci: fix driver registrationIvan Khoronzhuk1-6/+7
When kernel is booted using DT, there is no guarantee that Davinci NAND device has been created already at the time when driver init function is executed. Therefore, platform_driver_probe() can't be used because this may result the Davinci NAND driver will never be probed. The driver probing has to be made with core mechanism. Acked-by: Santosh Shilimkar <[email protected]> Reviewed-by: Grygorii Strashko <[email protected]> Reviewed-by: Taras Kondratiuk <[email protected]> Signed-off-by: Ivan Khoronzhuk <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: au1550nd: add missing platform_set_drvdata()Wei Yongjun1-0/+2
Add missing platform_set_drvdata() in au1550nd_probe(), otherwise calling platform_get_drvdata() in remove returns NULL. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: mxc_nand: add missing clk_disable_unprepare() in mxcnd_remove()Wei Yongjun1-0/+2
clock source is prepared and enabled by clk_prepare_enable() in mxcnd_probe() function, but no disable/unprepare in mxcnd_remove(). Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: sh_flctl: Remove unneeded CONFIG_OFEzequiel Garcia1-7/+0
Since the of_mtd header provides dummy stubs for !CONFIG_OF, it's safe to remove the #ifdef CONFIG_OF. Build tested only. Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03MAINTAINERS: mtd: add PXA3xx NAND driver to MAINTAINERSEzequiel Garcia1-0/+6
Add the pxa3xx-nand driver which supports PXA3xx and Armada 370/XP SoC family to MAINTAINERS to ensure I get proper Cc on patches. Signed-off-by: Ezequiel Garcia <[email protected]> Acked-by: Artem Bityutskiy <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03MAINTAINERS: mtd: add Brian Norris for MTD maintenanceBrian Norris1-1/+2
While we're at it, change the git URL to remove the version legacy. It's been a symlink to linux-mtd.git for a while now anyway. Signed-off-by: Brian Norris <[email protected]> Cc: David Woodhouse <[email protected]> Cc: [email protected] Acked-by: Artem Bityutskiy <[email protected]>
2014-01-03mtd: denali: remove DEFINE_PCI_DEVICE_TABLE macroJingoo Han1-1/+1
Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro is not preferred. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: sh_flctl: use devm_* managed allocatorsLaurent Pinchart1-26/+10
This simplifies error and cleanup code paths. Cc: David Woodhouse <[email protected]> Cc: [email protected] Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: sh_flctl: fix warnings due to improper castsLaurent Pinchart1-2/+2
Cast pointers to uintptr_t instead of unsigned int. This fixes warnings on platforms where pointers have a different size than int. Cc: David Woodhouse <[email protected]> Cc: [email protected] Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: sh_flctl: enable driver compilation with COMPILE_TESTLaurent Pinchart1-1/+1
This helps increasing build testing coverage. Cc: David Woodhouse <[email protected]> Cc: [email protected] Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: make register_mtd_parser return voidAxel Lin9-22/+17
register_mtd_parser never fails; hence make it return void. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: make deregister_mtd_parser return voidAxel Lin2-3/+2
deregister_mtd_parser never fails; hence make it return void. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03jffs2: NULL return of kmem_cache_zalloc should be handledZhouyi Zhou1-0/+4
NULL return of kmem_cache_zalloc should be handled in jffs2_alloc_xattr_datum and jff2_alloc_xattr_ref. Signed-off-by: Zhouyi Zhou <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: nand: refactor print messagesEzequiel Garcia1-13/+13
Add a nice "nand:" prefix to all pr_xxx() messages. This allows to get rid of the "NAND" words in messages, given the context is already given by the prefix. Remove the __func__ report from messages where it's not needed and refactor the device detection messages to show itself in several lines. Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: tests: mtd_nandecctest: Use IS_ENABLED() macroFabio Estevam1-1/+1
Using the IS_ENABLED() macro can make the code shorter and simpler. Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: convert to use ATTRIBUTE_GROUPSAxel Lin1-9/+1
Use new ATTRIBUTE_GROUPS macro to declare attribute groups. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Brian Norris <[email protected]>
2014-01-03mtd: m25p80: add support for m25px16Igor Grinberg1-0/+1
Add support for Micron m25px16 spi flash chip. Signed-off-by: Igor Grinberg <[email protected]> Signed-off-by: Brian Norris <[email protected]>