Skip to content
Permalink
Ansuel-Smith/A…
Switch branches/tags

Commits on Jan 20, 2022

  1. mtd: core: introduce of support for dynamic partitions

    We have many parser that register mtd partitions at runtime. One example
    is the cmdlinepart or the smem partition where the compatible is defined
    in the dts and the partitions gets detected and registered by the
    parser. This is problematic for the Nvmem system that requires an of node
    to detect nvmem cells. To fix this problem, introduce an additional node
    called "dynamic-partitions" that must be defined at the same level of
    the "partitions" node that will contain all the required partitions
    where a nvmem cell has to be declared. When a mtd_get_of_node() is
    called, the function will first check the default dev_of_node() and then
    check this alternative partitions node and optionally if a "nvmem-cells"
    compatible is detected, sets the of node for the mtd.
    
    The "dynamic-partitions" requires the label set to the mtd name from the
    dynamic partition. All the nvmem-cells will be declared in this node and
    nvmem will use this node to register the nvmem cells.
    
    Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
    Ansuel authored and intel-lab-lkp committed Jan 20, 2022
  2. dt-bindings: mtd: partitions: Document new dynamic-partitions node

    Document new dynamic-partitions node used to provide an of node for
    partition registred at runtime by parsers. This is required for nvmem
    system to declare and detect nvmem-cells.
    
    Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
    Ansuel authored and intel-lab-lkp committed Jan 20, 2022

Commits on Dec 31, 2021

  1. Merge tag 'nand/for-5.17' into mtd/next

    Raw NAND core:
    * Export nand_read_page_hwecc_oob_first()
    
    GPMC memory controller for OMAP2 NAND controller:
    * GPMC:
      - Add support for AM64 SoC and allow build on K3 platforms
      - Use a compatible match table when checking for NAND controller
      - Use platform_get_irq() to get the interrupt
    
    Raw NAND controller drivers:
    * OMAP2 NAND controller:
      - Document the missing 'rb-gpios' DT property
      - Drop unused variable
      - Fix force_8bit flag behaviour for DMA mode
      - Move to exec_op interface
      - Use platform_get_irq() to get the interrupt
    * Renesas:
      - Add new NAND controller driver with its bindings and MAINTAINERS entry
    * Onenand:
      - Remove redundant variable ooblen
    * MPC5121:
      - Remove unused variable in ads5121_select_chip()
    * GPMI:
      - Add ERR007117 protection for nfc_apply_timings
      - Remove explicit default gpmi clock setting for i.MX6
      - Use platform_get_irq_byname() to get the interrupt
      - Remove unneeded variable
    * Ingenic:
      - JZ4740 needs 'oob_first' read page function
    * Davinci:
      - Rewrite function description
      - Avoid duplicated page read
      - Don't calculate ECC when reading page
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    miquelraynal committed Dec 31, 2021
  2. Merge tag 'spi-nor/for-5.17' into mtd/next

    SPI NOR core changes:
    - Add Pratyush as SPI NOR co-maintainer.
    - Flash parameters initialization was done in a spaghetti way. Clean
      flash parameters initialization.
    - Rework the flash_info flags and clarify where one should be used.
    - Initialize all flash parameters based on JESD216 SFDP where possible.
      Flash parameters and settings that are SFDP discoverable should not be
      duplicated via flash_info flags at flash declaration.
    - Remove debugfs entries that duplicate sysfs entries.
    
    SPI NOR manufacturer drivers changes:
    - Use late_init() hook in various drivers to make it clear that those
      flash parameters are either not declared in the JESD216 SFDP standard,
      or the SFDP tables which define those flash parameters are not defined
      by the flash.
    - Fix mtd size for s3an flashes.
    - Write 2 bytes when disabling Octal DTR mode: 1 byte long transactions are
      not allowed in 8D-8D-8D mode.
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    miquelraynal committed Dec 31, 2021
  3. Merge tag 'cfi/for-5.17' into mtd/next

    Hyperbus changes for v5.17-rc1
    
    Hyperbus changes:
    
    Couple of fixes in Renesas hyperbus rpc-if driver to avoid crash on
    module remove and for missing check for error value in probe.
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    miquelraynal committed Dec 31, 2021
  4. Merge tag 'memory-controller-drv-omap-5.17' into nand/next

    Memory controller drivers for v5.17 - OMAP GPMC
    
    1. Add support for AM64 SoC.
    2. Minor improvement: use platform_get_irq().
    
    [miquel.raynal@bootlin.com: A first commit introduced a new omap
    compatible and another moved the IDs to a header which created a
    conflict: moving the new ID as well in the header fixed it.]
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    miquelraynal committed Dec 31, 2021

Commits on Dec 29, 2021

  1. mtd: spi-nor: Remove debugfs entries that duplicate sysfs entries

    SPI NOR sysfs defines partname and jedec_id device attributes, which
    duplicate the information from debugfs. Since the sysfs directory
    structure and the attributes in each directory define an ABI between the
    kernel and user space, thus it can never be removed, remove the debugfs
    entries so that we don't duplicate the information.
    
    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
    Link: https://lore.kernel.org/r/20211217122636.474976-2-tudor.ambarus@microchip.com
    ambarus committed Dec 29, 2021

Commits on Dec 23, 2021

  1. mtd: spi-nor: micron-st: write 2 bytes when disabling Octal DTR mode

    The Octal DTR configuration is stored in the CFR0V register. This
    register is 1 byte wide. But 1 byte long transactions are not allowed in
    8D-8D-8D mode. The next byte address contains the CFR1V register, which
    contains the number of dummy cycles. This is very fortunate since the
    enable path changes the value of this register. Reset the value to its
    default when disabling Octal DTR mode. This way, both changes to the
    flash state made when enabling can be reverted in one single
    transaction.
    
    Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    Link: https://lore.kernel.org/r/20210531181757.19458-4-p.yadav@ti.com
    Pratyush Yadav authored and ambarus committed Dec 23, 2021
  2. mtd: spi-nor: spansion: write 2 bytes when disabling Octal DTR mode

    The Octal DTR configuration is stored in the CFR5V register. This
    register is 1 byte wide. But 1 byte long transactions are not allowed in
    8D-8D-8D mode. Since the next byte address does not contain any
    register, it is safe to write any value to it. Write a 0 to it.
    
    Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    Link: https://lore.kernel.org/r/20210531181757.19458-3-p.yadav@ti.com
    Pratyush Yadav authored and ambarus committed Dec 23, 2021
  3. mtd: spi-nor: core: use 2 data bytes for template ops

    The template ops used in spi_nor_spimem_check_pp() and
    spi_nor_spimem_check_readop() currently set the data phase to 1 byte
    long. This is problematic for 8D-8D-8D protocol where odd length data
    phase is invalid since one cycle transfers 2 bytes and odd number of
    bytes would mean half a cycle is left over. This could result in a
    controller rejecting the op as "not supported" even though it actually
    supports the protocol.
    
    Change the data length to 2 bytes in these templates. One might argue
    that this should only be done for 8D-8D-8D operations but when talking
    about these templates, there is no functional difference between one and
    two bytes, even in STR modes.
    
    Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    Reviewed-by: Michael Walle <michael@walle.cc>
    Link: https://lore.kernel.org/r/20210531181757.19458-2-p.yadav@ti.com
    Pratyush Yadav authored and ambarus committed Dec 23, 2021
  4. mtd: spi-nor: Constify part specific fixup hooks

    Constify 'struct spi_nor_fixups' in order to respect flash_info
    structure declaration.
    
    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
    Link: https://lore.kernel.org/r/20211106102915.153552-1-tudor.ambarus@microchip.com
    ambarus committed Dec 23, 2021
  5. mtd: spi-nor: core: Remove reference to spi-nor.c

    Remove the references to the old spi-nor.c file.
    The old drivers/mtd/spi-nor/spi-nor.c file
    is not more present and now some of its code is contained in:
    drivers/mtd/spi-nor/core.c
    
    Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
    [tudor.ambarus@microchip.com:
    - remove change in Documentation/driver-api/mtd/spi-nor.rst.
    The documentation has to be rewritten entirely.
    - update commit message]
    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
    Link: https://lore.kernel.org/r/20210126092516.1431913-1-f.suligoi@asem.it
    flavio-suligoi authored and ambarus committed Dec 23, 2021

Commits on Dec 22, 2021

  1. mtd: rawnand: gpmi: Use platform_get_irq_byname() to get the interrupt

    platform_get_resource_byname(pdev, IORESOURCE_IRQ, ..) relies on static
    allocation of IRQ resources in DT core code, this causes an issue
    when using hierarchical interrupt domains using "interrupts" property
    in the node as this bypasses the hierarchical setup and messes up the
    irq chaining.
    
    In preparation for removal of static setup of IRQ resource from DT core
    code use platform_get_irq_byname().
    
    Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211221212609.31290-3-prabhakar.mahadev-lad.rj@bp.renesas.com
    prabhakarlad authored and miquelraynal committed Dec 22, 2021
  2. mtd: rawnand: omap_elm: Use platform_get_irq() to get the interrupt

    platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
    allocation of IRQ resources in DT core code, this causes an issue
    when using hierarchical interrupt domains using "interrupts" property
    in the node as this bypasses the hierarchical setup and messes up the
    irq chaining.
    
    In preparation for removal of static setup of IRQ resource from DT core
    code use platform_get_irq().
    
    Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211221212609.31290-2-prabhakar.mahadev-lad.rj@bp.renesas.com
    prabhakarlad authored and miquelraynal committed Dec 22, 2021
  3. mtd: rawnand: omap2: Select GPMC device driver for ARCH_K3

    The GPMC device driver is required for NAND controller
    to work on K3 Architecture. Select it if required.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/r/20211221131757.2030-5-rogerq@kernel.org
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    rogerq authored and krzk committed Dec 22, 2021
  4. memory: omap-gpmc: Use a compatible match table when checking for NAN…

    …D controller
    
    As more compatibles can be added to the GPMC NAND controller driver
    use a compatible match table.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/r/20211221131757.2030-4-rogerq@kernel.org
    [krzysztof: remove "is_nand" variable]
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    rogerq authored and krzk committed Dec 22, 2021
  5. memory: omap-gpmc: Add support for GPMC on AM64 SoC

    The TI's AM64 SoC has the GPMC module. Add compatible for it.
    
    Traditionally GPMC external addresses have always been mapped to first
    1GB physical address. However newer platforms, can have it mapped
    at different locations. Support this address provision via device tree.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Link: https://lore.kernel.org/r/20211221131757.2030-3-rogerq@kernel.org
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    rogerq authored and krzk committed Dec 22, 2021
  6. dt-bindings: memory-controllers: ti,gpmc: Add compatible for AM64

    AM64 SoC contains the GPMC module. Add compatible for it.
    
    Newer SoCs don't necessarily map GPMC data region at the same place
    as legacy SoCs. Add reg-names "data", to provide this information to
    the device driver.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20211221131757.2030-2-rogerq@kernel.org
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    rogerq authored and krzk committed Dec 22, 2021
  7. memory: omap-gpmc: Use platform_get_irq() to get the interrupt

    platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
    allocation of IRQ resources in DT core code, this causes an issue
    when using hierarchical interrupt domains using "interrupts" property
    in the node as this bypasses the hierarchical setup and messes up the
    irq chaining.
    
    In preparation for removal of static setup of IRQ resource from DT core
    code use platform_get_irq().
    
    Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
    Acked-by: Roger Quadros <rogerq@ti.com>
    Link: https://lore.kernel.org/r/20211221203916.18588-2-prabhakar.mahadev-lad.rj@bp.renesas.com
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
    prabhakarlad authored and krzk committed Dec 22, 2021

Commits on Dec 21, 2021

  1. MAINTAINERS: Add an entry for Renesas NAND controller

    Point to the driver and the bindings.
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211217142033.353599-4-miquel.raynal@bootlin.com
    miquelraynal committed Dec 21, 2021
  2. mtd: rawnand: renesas: Add new NAND controller driver

    Introduce Renesas NAND controller driver which currently supports the
    following features on R-Car Gen3 and RZ/N1 SoCs:
    - All ONFI timing modes
    - Different configurations of its internal ECC controller
    - On-die (not tested) and software ECC support
    - Several chips (not tested)
    - Subpage accesses
    - DMA and PIO
    
    This controller was originally provided by Evatronix before being bought
    by Cadence.
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Tested-by: Ralph Siemsen <ralph.siemsen@linaro.org>
    Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Link: https://lore.kernel.org/linux-mtd/20211217142033.353599-3-miquel.raynal@bootlin.com
    miquelraynal committed Dec 21, 2021
  3. dt-bindings: mtd: renesas: Describe Renesas R-Car Gen3 & RZ/N1 NAND c…

    …ontroller
    
    Add a Yaml description for this Renesas NAND controller.
    
    As this controller is embedded on different SoC families, provide:
    * a family-specific "r-car-gen3" compatible and a more specific
      "r8a77951" one
    * a family-specific "rzn1" compatible and a more specific "r9a06g032"
      one
    
    More compatibles can be added later if new SoCs with this controller
    must be supported.
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Link: https://lore.kernel.org/linux-mtd/20211217142033.353599-2-miquel.raynal@bootlin.com
    miquelraynal committed Dec 21, 2021

Commits on Dec 17, 2021

  1. mtd: rawnand: gpmi: remove unneeded variable

    Return status directly from function called.
    
    Reported-by: Zeal Robot <zealci@zte.com.cn>
    Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211213112627.436745-1-chi.minghao@zte.com.cn
    Minghao Chi authored and miquelraynal committed Dec 17, 2021
  2. mtd: rawnand: omap2: drop unused variable

    devsize is not used anywhere in code. Drop it.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211209090458.24830-7-rogerq@kernel.org
    rogerq authored and miquelraynal committed Dec 17, 2021
  3. mtd: rawnand: omap2: fix force_8bit flag behaviour for DMA mode

    In DMA mode we were not considering the force_8bit flag.
    
    Fix it by using regular non-DMA 8-bit I/O if force_8bit flag is set.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211209090458.24830-6-rogerq@kernel.org
    rogerq authored and miquelraynal committed Dec 17, 2021
  4. mtd: rawnand: omap2: Add compatible for AM64 SoC

    AM64 SoC contains the GPMC NAND controller. Add compatible for it.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211209090458.24830-5-rogerq@kernel.org
    rogerq authored and miquelraynal committed Dec 17, 2021
  5. mtd: rawnand: omap2: move to exec_op interface

    Stop using legacy interface and move to the exec_op interface.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211209090458.24830-4-rogerq@kernel.org
    rogerq authored and miquelraynal committed Dec 17, 2021
  6. mtd: rawnand: omap2: Allow build on K3 platforms

    K3 platforms come with GPMC. Enable GPMC build for
    K3 platforms.
    
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211209090458.24830-3-rogerq@kernel.org
    rogerq authored and miquelraynal committed Dec 17, 2021
  7. dt-bindings: mtd: ti, gpmc-nand: Add compatible for AM64 NAND

    AM64 SoC contains the GPMC NAND controller. Add compatible for it.
    
    Cc: Rob Herring <robh+dt@kernel.org>
    Signed-off-by: Roger Quadros <rogerq@kernel.org>
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211209090458.24830-2-rogerq@kernel.org
    rogerq authored and miquelraynal committed Dec 17, 2021

Commits on Dec 9, 2021

  1. mtdchar: prevent unbounded allocation in MEMWRITE ioctl

    In the mtdchar_write_ioctl() function, memdup_user() is called with its
    'len' parameter set to verbatim values provided by user space via a
    struct mtd_write_req.  Both the 'len' and 'ooblen' fields of that
    structure are 64-bit unsigned integers, which means the MEMWRITE ioctl
    can trigger unbounded kernel memory allocation requests.
    
    Fix by iterating over the buffers provided by user space in a loop,
    processing at most mtd->erasesize bytes in each iteration.  Adopt some
    checks from mtd_check_oob_ops() to retain backward user space
    compatibility.
    
    Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
    Signed-off-by: Michał Kępień <kernel@kempniu.pl>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211130113149.21848-1-kernel@kempniu.pl
    kempniu authored and miquelraynal committed Dec 9, 2021
  2. mtd: gen_probe: Use bitmap_zalloc() when applicable

    'chip_map' is a bitmap. So use 'bitmap_zalloc()' to simplify code,
    improve the semantic and avoid some open-coded arithmetic in allocator
    arguments.
    
    Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
    consistency.
    
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/a6fe58dffe553a3e79303777d3ba9c60d7613c5b.1637510255.git.christophe.jaillet@wanadoo.fr
    tititiou36 authored and miquelraynal committed Dec 9, 2021
  3. mtd: Introduce an expert mode for forensics and debugging purposes

    When developping NAND controller drivers or when debugging filesystem
    corruptions, it is quite common to need hacking locally into the
    MTD/NAND core in order to get access to the content of the bad
    blocks. Instead of having multiple implementations out there let's
    provide a simple yet effective specific MTD-wide debugfs entry to fully
    disable these checks on purpose.
    
    A warning is added to inform the user when this mode gets enabled.
    
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211118114659.1282855-1-miquel.raynal@bootlin.com
    miquelraynal committed Dec 9, 2021
  4. dt-bindings: mtd: ti,gpmc-nand: Add missing 'rb-gpios'

    With 'unevaluatedProperties' support implemented, the TI GPMC example
    has a warning:
    
    Documentation/devicetree/bindings/memory-controllers/ti,gpmc.example.dt.yaml: nand@0,0: Unevaluated properties are not allowed ('rb-gpios' was unexpected)
    
    Add the missing definition for 'rb-gpios'.
    
    Cc: Miquel Raynal <miquel.raynal@bootlin.com>
    Cc: Richard Weinberger <richard@nod.at>
    Cc: Vignesh Raghavendra <vigneshr@ti.com>
    Cc: Tony Lindgren <tony@atomide.com>
    Cc: Roger Quadros <rogerq@kernel.org>
    Cc: linux-mtd@lists.infradead.org
    Signed-off-by: Rob Herring <robh@kernel.org>
    Reviewed-by: Thierry Reding <treding@nvidia.com>
    Reviewed-by: Roger Quadros <rogerq@kernel.org>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211206174209.2297565-1-robh@kernel.org
    robherring authored and miquelraynal committed Dec 9, 2021
  5. mtd: onenand: remove redundant variable ooblen

    Variable ooblen is being initialized with a value that is never read.
    The variable is never used after this, so it is redundant and can be
    removed.
    
    Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://lore.kernel.org/linux-mtd/20211205230729.79337-1-colin.i.king@gmail.com
    ColinIanKing authored and miquelraynal committed Dec 9, 2021

Commits on Dec 7, 2021

  1. mtd: spi-nor: issi: is25lp256: Init flash based on SFDP

    Get rid of the static initialization of the flash parameters and
    init them when parsing SFDP.
    Generated a 256 Kbyte random data and did an erase, write, read back
    and compare test. The flash uses for reads SPINOR_OP_READ_1_4_4_4B 0xec,
    for erases SPINOR_OP_BE_4K_4B 0x21, and for writes SPINOR_OP_PP_4B 0x12.
    
    Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
    Link: https://lore.kernel.org/r/20211207140254.87681-15-tudor.ambarus@microchip.com
    ambarus committed Dec 7, 2021
Older