1. 13 Jul, 2017 1 commit
  2. 08 Jul, 2017 3 commits
    • Brian Norris's avatar
      Merge tag 'nand/for-4.13' into MTD · ef32476f
      Brian Norris authored
      From Boris:
      """
      This pull request contains the following core changes:
      
      * addition of on-ecc support to Micron driver
      * addition of helpers to help drivers choose most appropriate ECC
        settings
      * deletion of dead-code (cached programming and ->errstat() hook)
      * make sure drivers that do not support the SET/GET FEATURES command
        return ENOTSUPP use a dummy ->set/get_features implementation
        returning -ENOTSUPP (required for Micron on-die ECC)
      * change the semantic of ecc->write_page() for drivers setting the
        NAND_ECC_CUSTOM_PAGE_ACCESS flag
      * support exiting 'GET STATUS' command in default ->cmdfunc()
        implementations
      * change the prototype of ->setup_data_interface()
      
      A bunch of driver related changes:
      
      * various cleanup, fixes and improvements of the MTK driver
      * OMAP DT bindings fixes
      * support for ->setup_data_interface() in the fsmc driver
      * support for imx7 in the gpmi driver
      * finalization of the denali driver rework (thanks to Masahiro for the
        work he's done on this driver)
      * fix "bitflips in erased pages" handling in the ifc driver
      * addition of PM ops and dynamic timing configuration to the atmel
        driver
      
      And as usual we also have a few minor cleanup/fixes/improvements
      patches across the subsystem.
      """
      ef32476f
    • Brian Norris's avatar
      Merge tag 'spi-nor/for-4.13' into MTD · 8b9ef8f9
      Brian Norris authored
      From Cyrille:
      """
      This pull request contains the following notable changes:
      - introduce support to the SPI 1-2-2 and 1-4-4 protocols.
      - introduce support to the Double Data Rate (DDR) mode.
      - introduce support to the Octo SPI protocols.
      - add support to new memory parts for Spansion, Macronix and Winbond.
      - add fixes for the Aspeed, STM32 and Cadence QSPI controler drivers.
      - clean up the st_spi_fsm driver.
      """
      8b9ef8f9
    • Boris Brezillon's avatar
      mtd: Fix check in mtd_unpoint() · b9504247
      Boris Brezillon authored
      The code checks that ->_point is not NULL, but we should actually check
      ->_unpoint value which is dereferenced a few lines after the check.
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      b9504247
  3. 03 Jul, 2017 1 commit
  4. 27 Jun, 2017 2 commits
    • Cyrille Pitchen's avatar
      mtd: st_spi_fsm: remove SPINOR_OP_RDSR2 and use SPINOR_OP_RDCR instead · 9447332f
      Cyrille Pitchen authored
      The 35h instruction op code has two aliases/macro definitions:
      - SPINOR_OP_RDCR from include/linux/mtd/spi-nor.h
      - SPINOR_OP_RDSR2 from drivers/mtd/devices/serial_flash_cmds.h
      
      Actually, some manufacturers name the associated internal register Status
      Register 2 whereas other manufacturers name it Configuration Register
      hence the two different macros for the very same instruction op code.
      
      Since the spi-nor.h file is the reference file for all SPI NOR instruction
      op codes, this patch removes the definition of the SPINOR_OP_RDSR2 macro.
      
      Also the SPINOR_OP_RDSR2 macro will be associated to another instruction
      op code in a further patch so we need to avoid a conflict defining this
      macro twice. Indeed the JESD216 rev B specification, defining the SFDP
      tables, also refers to the 3Eh and 3Fh instruction op codes to write/read
      the Status Register 2 on some SPI NOR flash memories, the 35h op code
      still being used to read the Configuration Register/Status Register 2 on
      other memories.
      Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@microchip.com>
      Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      9447332f
    • Arnd Bergmann's avatar
      mtd: spi-nor: cqspi: remove duplicate const · 315e9c76
      Arnd Bergmann authored
      The variable was already marked 'const' before the previous
      patch, but the qualifier was in an unusual place, and now the
      extra 'const' causes a harmless warning:
      
      drivers/mtd/spi-nor/cadence-quadspi.c:1286:34: error: duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
      
      This removes the other 'const' instead.
      
      Fixes: f993c123 ("mtd: spi-nor: cqspi: make of_device_ids const")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
      315e9c76
  5. 26 Jun, 2017 2 commits
  6. 25 Jun, 2017 5 commits
  7. 23 Jun, 2017 2 commits
  8. 22 Jun, 2017 10 commits
  9. 21 Jun, 2017 1 commit
    • Cédric Le Goater's avatar
      mtd: spi-nor: aspeed: configure chip window on AHB bus · 7ef0e5e1
      Cédric Le Goater authored
      The segment registers of the SMC controller provide a way to configure
      the mapping windows of the chips on the AHB bus. The settings are
      required to be correct when the controller operates in Command mode,
      which is the case for DMAs and the LPC mapping.
      
      This tries to set the segment registers of each chip depending on the
      size of the flash device and depending on the previous segment
      settings, in order to have a contiguous window across multiple chips.
      
      Unfortunately, the AST2500 SPI controller has a bug and it is not
      possible to configure a full 128MB window for a chip of the same
      size. The window size needs to be restricted to 120MB. This issue only
      applies to CE0.
      Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
      Reviewed-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
      7ef0e5e1
  10. 20 Jun, 2017 13 commits