aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdcore.c
AgeCommit message (Expand)AuthorFilesLines
7 daysMerge tag 'mtd/for-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd...Linus Torvalds1-2/+7
2024-04-15mtd: limit OTP NVMEM cell parse to non-NAND devicesChristian Marangi1-1/+1
2024-04-09mtd: core: Align comment with an action in mtd_otp_nvmem_add()Andy Shevchenko1-4/+3
2024-03-25mtd: core: Don't fail mtd_otp_nvmem_add() if OTP is unsupportedAapo Vienamo1-1/+5
2024-03-25mtd: core: Report error if first mtd_otp_size() call fails in mtd_otp_nvmem_a...Aapo Vienamo1-2/+4
2024-02-05mtd: Fix possible refcounting issue when going through partition nodesMiquel Raynal1-0/+1
2024-01-06mtd: Add several functions to the fail_function listZhaoLong Wang1-0/+5
2023-11-04Merge tag 'mtd/for-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/...Linus Torvalds1-0/+2
2023-10-27Revert "nvmem: add new config option"Rafał Miłecki1-1/+0
2023-10-21nvmem: add explicit config option to read old syntax fixed OF cellsRafał Miłecki1-0/+2
2023-10-16mtd: Add WARN_ON_ONCE() to mtd_read() to check the return valueZhaoLong Wang1-0/+2
2023-08-04mtd: Clean refcounting with MTD_PARTITIONED_MASTERMiquel Raynal1-7/+10
2023-08-04mtd: fix use-after-free in mtd releaseAlexander Usyskin1-5/+11
2023-07-12mtd: call external _get and _put in right orderAlexander Usyskin1-14/+14
2023-07-12mtd: use refcount to prevent corruptionTomas Winkler1-33/+39
2023-06-19mtd: otp: clean up on error in mtd_otp_nvmem_add()Dan Carpenter1-3/+5
2023-06-09mtd: otp: Put factory OTP/NVRAM into the entropy poolLinus Walleij1-0/+19
2023-04-27Merge tag 'driver-core-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+0
2023-03-22mtd: Use of_property_read_bool() for boolean propertiesRob Herring1-1/+1
2023-03-17drivers: remove struct module * setting from struct classGreg Kroah-Hartman1-1/+0
2023-03-08mtd: Avoid magic valuesMiquel Raynal1-1/+1
2023-03-08mtd: Avoid printing error messages on probe deferralsMiquel Raynal1-5/+4
2023-03-08mtd: core: prepare mtd_otp_nvmem_add() to handle -EPROBE_DEFERMichael Walle1-4/+3
2023-03-08mtd: core: fix error path for nvmem providerMichael Walle1-3/+10
2023-03-08mtd: core: fix nvmem error reportingMichael Walle1-2/+3
2023-03-08mtd: core: provide unique name for nvmem device, take twoMichael Walle1-3/+2
2022-11-24mtd: core: Fix refcount error in del_mtd_device()Shang XiaoJing1-1/+3
2022-11-07mtd: core: fix possible resource leak in init_mtd()Gaosheng Cui1-0/+1
2022-11-07mtd: core: set ROOT_DEV for partitions marked as rootfs in DTRafał Miłecki1-0/+12
2022-11-07mtd: Fix device name leak when register device failed in add_mtd_device()Zhang Xiaoxu1-1/+3
2022-11-07mtd: core: try to find OF node for every MTD partitionRafał Miłecki1-12/+5
2022-11-07mtd: core: simplify (a bit) code find partition-matching dynamic OF nodeRafał Miłecki1-9/+8
2022-10-18mtd: core: add missing of_node_get() in dynamic partitions codeRafał Miłecki1-1/+1
2022-10-08Merge tag 'char-misc-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+28
2022-09-24mtd: allow getting MTD device associated with a specific DT nodeRafał Miłecki1-0/+28
2022-09-21mtd: track maximum number of bitflips for each read requestMichał Kępień1-0/+5
2022-08-01mtd: core: check partition before dereferenceTetsuo Handa1-0/+2
2022-06-29mtd: core: introduce of support for dynamic partitionsChristian Marangi1-0/+61
2022-04-25mtd: core: Check devicetree alias for indexVincent Whitchurch1-2/+9
2022-03-28Merge tag 'char-misc-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-9/+4
2022-03-25Merge tag 'mtd/changes-for-5.18' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-37/+11
2022-03-14mtd: core: Remove partid and partname debugfs filesTudor Ambarus1-34/+1
2022-02-28Merge 5.17-rc6 into char-misc-nextGreg Kroah-Hartman1-0/+2
2022-02-21mtd: core: Drop duplicate NULL checks around nvmem_unregister()Andy Shevchenko1-9/+4
2022-02-21mtd: core: Fix a conflict between MTD and NVMEM on wp-gpios propertyChristophe Kerello1-0/+2
2022-02-07mtd: Replace the expert mode symbols with a single helperMiquel Raynal1-8/+15
2021-12-09mtd: Introduce an expert mode for forensics and debugging purposesMiquel Raynal1-0/+10
2021-12-03mtd: core: clear out unregistered devices a bit moreZev Weiss1-1/+6
2021-12-03mtd: core: provide unique name for nvmem deviceMichael Walle1-2/+2
2021-11-08Merge tag 'mtd/for-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd...Linus Torvalds1-2/+2
2021-11-06mtd: call bdi_unregister explicitlyChristoph Hellwig1-0/+1
2021-10-15mtd: core: don't remove debugfs directory if device is in useZev Weiss1-2/+2
2021-07-16mtd: core: handle flashes without OTP gracefullyMichael Walle1-1/+3
2021-06-11mtd: core: use MTD_DEVICE_ATTR_RO/RW() helper macrosZhen Lei1-25/+21
2021-06-11mtd: core: add MTD_DEVICE_ATTR_RO/RW() helper macrosZhen Lei1-0/+6
2021-05-26mtd: core: Potential NULL dereference in mtd_otp_size()Dan Carpenter1-1/+5
2021-05-26mtd: core: Fix freeing of otp_info bufferJon Hunter1-4/+2
2021-05-10mtd: Create partname and partid debug files for child MTDsPetr Malat1-4/+5
2021-05-10mtd: core: add OTP nvmem provider supportMichael Walle1-0/+148
2021-05-10mtd: core: Convert sysfs sprintf/snprintf family to sysfs_emitTian Tao1-18/+17
2021-04-16mtd: core: Constify buf in mtd_write_user_prot_reg()Tudor Ambarus1-1/+1
2021-04-15Merge tag 'nand/for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mt...Richard Weinberger1-0/+3
2021-03-28mtd: core: add nvmem-cells compatible to parse mtd as nvmem cellsAnsuel Smith1-1/+2
2021-03-28mtd: add OTP (one-time-programmable) erase ioctlMichael Walle1-0/+12
2021-03-11mtd: mtdcore: constify name param in mtd_bdi_initTomas Winkler1-1/+1
2021-03-11mtd: char: Get rid of Big MTD LockAlexander Sverdlin1-0/+1
2021-03-11mtd: Handle possible -EPROBE_DEFER from parse_mtd_partitions()Manivannan Sadhasivam1-0/+3
2020-12-07mtd: core: Fix refcounting for unpartitioned MTDsRichard Weinberger1-0/+4
2020-11-20mtd: Fix misspelled function parameter 'section'Lee Jones1-1/+1
2020-10-17Merge tag 'mtd/for-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd...Linus Torvalds1-24/+4
2020-09-24bdi: initialize ->ra_pages and ->io_pages in bdi_initChristoph Hellwig1-0/+2
2020-08-27mtd: mtdcore: Convert to DEFINE_SHOW_ATTRIBUTEYongqiang Liu1-24/+4
2020-06-15mtd: set master partition panic write flagKamal Dasu1-2/+2
2020-06-10Merge tag 'mtd/for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/...Linus Torvalds1-17/+174
2020-06-02Merge tag 'for-5.8/block-2020-06-01' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+1
2020-06-01Merge tag 'nand/for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd...Richard Weinberger1-17/+174
2020-05-31mtd: Fix typo in mtd_ooblayout_set_databytes() descriptionMiquel Raynal1-1/+1
2020-05-18mtd: Fix mtd not registered due to nvmem name collisionRicardo Ribalda Delgado1-1/+1
2020-05-11mtd: Add support for emulated SLC mode on MLC NANDsBoris Brezillon1-16/+173
2020-05-09bdi: remove the name field in struct backing_dev_infoChristoph Hellwig1-1/+0
2020-05-09bdi: simplify bdi_allocChristoph Hellwig1-1/+1
2020-03-11mtd: implement proper partition handlingMiquel Raynal1-71/+179
2019-11-14mtd: no need to check return value of debugfs_create functionsGreg Kroah-Hartman1-19/+7
2019-08-29mtd: mtdcore: add debugfs nodes for querying the flash name and idZhuohao Lee1-9/+77
2019-06-27mtd: Add flag to indicate panic_writeKamal Dasu1-0/+3
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 102Thomas Gleixner1-15/+1
2019-03-04Merge tag 'mtd/for-5.1' of git://git.infradead.org/linux-mtdLinus Torvalds1-59/+24
2019-02-13mtd: Use mtd->name when registering nvmem deviceAneesh Kumar K.V1-0/+1
2019-01-29mtd: Remove empty lines at end of sysfs related functionsStefan Roese1-8/+0
2019-01-16mtd: Implement mtd_{read,write}() as wrappers around mtd_{read,write}_oob()Boris Brezillon1-51/+24
2019-01-07mtd: Fix the check on nvmem_register() ret codeBoris Brezillon1-1/+1
2018-12-28Merge tag 'char-misc-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-0/+56
2018-12-06mtd: add support for reading MTD devices via the nvmem APIAlban Bedel1-0/+56
2018-12-02mtd: keep original flags for every struct mtd_infoRafał Miłecki1-0/+2
2018-12-02mtd: fix Coverity integer handling issueMiquel Raynal1-3/+3
2018-07-18mtd: Fallback to ->_read/write() when ->_read/write_oob() is missingMiquel Raynal1-6/+22
2018-06-08Merge tag 'mtd/for-4.18' of git://git.infradead.org/linux-mtdLinus Torvalds1-10/+14
2018-05-16proc: introduce proc_create_single{,_data}Christoph Hellwig1-13/+1
2018-05-07mtd: move code adding (registering) partitions to the parse_mtd_partitions()Rafał Miłecki1-10/+4
2018-04-22mtd: Add sysfs attribute for mtd OOB available sizeXiaolei Li1-0/+10
2018-03-29mtd: Fix some function description mismatches in mtdcore.cXiaolei Li1-4/+4
2018-03-29mtd: update documentation of mtd_device_parse_register()Rafał Miłecki1-4/+3
2018-03-21mtd: Stop updating erase_info->state and calling mtd_erase_callback()Boris Brezillon1-4/+2
2018-03-15mtd: Stop assuming mtd_erase() is asynchronousBoris Brezillon1-5/+3
2018-03-15mtd: Initialize ->fail_addr early in mtd_erase()Boris Brezillon1-1/+2
2018-02-12mtd: get rid of the mtd_add_device_partitions()Rafał Miłecki1-31/+12
2018-02-12mtd: move code adding master MTD out of mtd_add_device_partitions()Rafał Miłecki1-12/+13
2018-02-12mtd: Make sure the device supports erase operations in mtd_erase()Boris Brezillon1-0/+4
2018-01-29Merge tag 'mtd/for-4.16' of git://git.infradead.org/linux-mtdLinus Torvalds1-2/+34
2018-01-16mtd: Fallback to ->_read/write_oob() when ->_read/write() is missingBoris Brezillon1-2/+29
2018-01-06mtd: Do not allow MTD devices with inconsistent erase propertiesBoris Brezillon1-0/+5
2017-12-18mtd: Fix mtd_check_oob_ops()Miquel Raynal1-1/+1
2017-11-13mtd: Add sanity checks in mtd_write/read_oob()Boris Brezillon1-0/+44
2017-11-13mtd: implement mtd_get_unmapped_area() using the point methodNicolas Pitre1-5/+12
2017-08-21mtd: make device_type constBhumika Goyal1-1/+1
2017-07-21mtd: create per-device and module-scope debugfs entriesMario Rugiero1-0/+16
2017-07-07mtd: Fix check in mtd_unpoint()Boris Brezillon1-1/+1
2017-04-20bdi: Drop 'parent' argument from bdi_register[_va]()Jan Kara1-1/+1
2017-04-20mtd: Convert to dynamically allocated bdi infrastructureJan Kara1-11/+12
2017-02-08mtd: fix typos in ooblayout comment blocksMasahiro Yamada1-3/+3
2016-12-01mtd: Allocate bdi objects dynamicallySteve Longerbeam1-12/+18
2016-11-19mtd: remove unneeded initializer in mtd_ooblayout_count_bytes()Masahiro Yamada1-1/+1
2016-11-19mtd: use min_t() to refactor mtd_ooblayout_{get, set}_bytes()Masahiro Yamada1-2/+2
2016-11-19mtd: remove unneeded initializer in mtd_ooblayout_{get, set}_bytes()Masahiro Yamada1-4/+4
2016-10-11treewide: remove redundant #include <linux/kconfig.h>Masahiro Yamada1-1/+0
2016-09-15mtd: introduce the mtd_pairing_scheme conceptBoris Brezillon1-0/+104
2016-05-05mtd: kill the nand_ecclayout structBoris Brezillon1-117/+0
2016-04-19mtd: create an mtd_ooblayout_ops struct to ease ECC layout definitionBoris Brezillon1-44/+121
2016-04-19mtd: add mtd_ooblayout_xxx() helper functionsBoris Brezillon1-0/+400
2016-04-13mtd: Hook I/O activity to the MTD LED triggerEzequiel Garcia1-0/+7
2016-04-13mtd: Uninline mtd_write_oob and move it to mtdcore.cEzequiel Garcia1-0/+12
2016-01-05mtd: merge MTD development from v4.4 into for-v4.5 developmentBrian Norris1-9/+17
2016-01-04mtd: fix cmdlinepart parser, early naming for auto-filled MTDBrian Norris1-9/+17
2015-12-09mtd: partitions: support a cleanup callback for parsersBrian Norris1-2/+1
2015-12-09mtd: partitions: pass around 'mtd_partitions' wrapper structBrian Norris1-14/+19
2015-12-09mtd: partitions: remove kmemdup()Brian Norris1-9/+7
2015-11-15Merge v4.4-rc1 into MTD developmentBrian Norris1-2/+1
2015-11-12mtd: grab a reference to the MTD of_node before registering itBrian Norris1-0/+4
2015-11-07Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+1
2015-11-06mm, page_alloc: distinguish between being unable to sleep, unwilling to sleep...Mel Gorman1-2/+1
2015-11-06mtd: don't WARN about overloaded users of mtd->reboot_notifier.notifier_callBrian Norris1-1/+2
2015-10-26mtd: mtdpart: Do not fail mtd probe when parsing partitions failsBrian Norris1-2/+4
2015-10-26mtd: warn when registering the same master many timesBrian Norris1-0/+9
2015-10-26mtd: fixup corner case error handling in mtd_device_parse_register()Brian Norris1-2/+9
2015-10-13mtd: core: set some defaults when dev.parent is setFrans Klaver1-0/+9
2015-10-13mtd: core: tone down suggestion that dev.parent should be setFrans Klaver1-1/+1
2015-09-28mtd: Destroy mtd_idr on module_exitJohannes Thumshirn1-0/+1
2015-06-16mtd: propagate error codes from add_mtd_device()Brian Norris1-7/+11
2015-05-07mtd: Switch to PM opsLars-Peter Clausen1-20/+24
2015-04-05mtd: part: Create the master device node when partitionedDan Ehrenberg1-16/+36
2015-02-18Merge tag 'for-linus-20150216' of git://git.infradead.org/linux-mtdLinus Torvalds1-0/+28
2015-02-07mtd: avoid registering reboot notifier twiceNiklas Cassel1-1/+9
2015-01-28mtd: export new mtd_mmap_capabilitiesArnd Bergmann1-0/+1
2015-01-20fs: introduce f_op->mmap_capabilities for nommu mmap supportChristoph Hellwig1-58/+22
2015-01-07mtd: implement common reboot notifier boilerplateBrian Norris1-0/+20
2014-08-19mtd: remove dead non-char logicBrian Norris1-8/+5
2014-08-19mtd: correct upper bounds check for mtd_*() APIsBrian Norris1-13/+13
2014-07-08mtd: Introduce mtd_block_isreserved()Ezequiel Garcia1-2/+12
2014-07-08mtd: Add sysfs attributes to expose the ECC stats fieldsEzequiel Garcia1-0/+45
2014-03-10mtd: Fix the behavior of OTP write if there is not enough room for dataChristian Riesch1-1/+11
2014-03-10mtd: Add a retlen parameter to _get_{fact,user}_prot_infoChristian Riesch1-6/+6
2014-01-03mtd: convert to use ATTRIBUTE_GROUPSAxel Lin1-9/+1
2013-11-06mtd: remove duplicated include from mtdcore.cWei Yongjun1-1/+0
2013-11-06mtd: Move major number definitions to major.hEzequiel Garcia1-0/+1
2013-10-27mtd: add MTD_MLCNANDFLASH case for mtd_type_show()Huang Shijie1-0/+3
2013-08-30mtd: add a new sys node to show the ecc step sizeHuang Shijie1-0/+11
2013-07-03drivers: avoid format string in dev_set_nameKees Cook1-1/+1
2013-05-09Merge tag 'for-linus-20130509' of git://git.infradead.org/linux-mtdLinus Torvalds1-12/+14
2013-04-29Include missing linux/slab.h inclusionsDavid Howells1-0/+1
2013-04-05mtd: merge mtdchar module with mtdcoreArtem Bityutskiy1-4/+9
2013-04-05mtd: mtdcore: remove few useless #ifdef'sArtem Bityutskiy1-7/+4
2013-04-05mtd: add 'const' qualifier to a couple of register functionsArtem Bityutskiy1-1/+1
2013-02-27mtd: convert to idr_alloc()Tejun Heo1-7/+2
2012-12-10Revert "revert "Revert "mm: remove __GFP_NO_KSWAPD""" and associated damageLinus Torvalds1-2/+4
2012-11-30revert "Revert "mm: remove __GFP_NO_KSWAPD""Andrew Morton1-4/+2
2012-11-26Revert "mm: remove __GFP_NO_KSWAPD"Mel Gorman1-2/+4
2012-10-09Merge tag 'disintegrate-mtd-20121009' of git://git.infradead.org/users/dhowel...David Woodhouse1-4/+2
2012-10-09mm: remove __GFP_NO_KSWAPDRik van Riel1-4/+2
2012-09-29mtd: check for max_bitflips in mtd_read_oob()Brian Norris1-1/+13
2012-07-06mtd: move mtd_read_oob() definition out of mtd.hBrian Norris1-0/+9
2012-05-13mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEANMike Dunn1-1/+13
2012-05-13mtd: bitflip_threshold added to mtd_info and sysfsMike Dunn1-0/+33
2012-05-13mtd: expose ecc_strength through sysfsMike Dunn1-0/+10
2012-03-27mtd: unify initialization of erase_info->fail_addrShmulik Ladkani1-0/+1
2012-03-27mtd: check for zero length in OTP functionsArtem Bityutskiy1-0/+73
2012-03-27mtd: move zero length verification to MTD API functionsArtem Bityutskiy1-0/+21
2012-03-27mtd: harmonize mtd_point interface implementationArtem Bityutskiy1-0/+3
2012-03-27mtd: remove retlen zeroing duplicationArtem Bityutskiy1-0/+1
2012-03-27mtd: remove R/O checking duplicationArtem Bityutskiy1-2/+10
2012-03-27mtd: add offset and length checks to the API functionArtem Bityutskiy1-0/+148
2012-03-27mtd: mtdcore: remove unnecessary mtd->resume checkBrian Norris1-1/+1
2012-03-27mtd: add leading underscore to all mtd functionsArtem Bityutskiy1-7/+7
2012-03-27mtd: mtdcore: Fix build warning when CONFIG_MTD_CHAR is not definedFabio Estevam1-1/+1
2012-01-30mtd: fix MTD suspendArtem Bityutskiy1-1/+1
2012-01-09mtd: do not use mtd->suspend and mtd->resume directlyArtem Bityutskiy1-4/+1
2012-01-09mtd: do not use mtd->lock, unlock and is_locked directlyArtem Bityutskiy1-3/+3
2012-01-09mtd: harmonize mtd_writev usageArtem Bityutskiy1-3/+23
2012-01-09mtd: mtdcore: export symbols cleanupArtem Bityutskiy1-15/+9
2012-01-09mtd: clean-up the default_mtd_writev functionArtem Bityutskiy1-19/+22
2012-01-09mtd: kill dev_to_mtd helperArtem Bityutskiy1-12/+13