25 Dec, 2016

1 commit


18 Dec, 2016

1 commit

  • Pull MTD updates from Brian Norris:
    "Nothing enormous here, though notably we have some of the first work
    of a few new maintainers. I think for now I'll still be sending pull
    requests, but that's open to change in the future. Summary:

    Core:

    - dynamic BDI object allocation (resolves some problems when built as
    a module)
    - cleanups in the ooblayout handling

    NAND:

    - new tango NAND controller driver
    - new ox820 NAND controller driver
    - addition of a new full-ID entry in the nand_ids table
    - rework of the s3c240 driver to support DT
    - extension of the nand_sdr_timings to expose tCCS, tPROG and tR
    - addition of a new flag to ask the core to wait for tCCS when
    sending a RNDIN/RNDOUT command
    - addition of a new flag to ask the core to let the controller driver
    send the READ/PROGPAGE command

    Minor fixes/cleanup/cosmetic changes:

    - properly support 512 ECC step size in the sunxi driver
    - improve the error messages in the PXA probe path
    - fix module autoload in the omap2 driver
    - cleanup of several nand drivers to return nand_scan{_tail}() error
    code instead of returning -EIO
    - various cleanups in the denali driver
    - fix an error check in nandsim

    SPI NOR:

    - new flash IDs
    - wait for Spansion flash to be ready after quad-enable
    - error handling fixes for Candence QSPI
    - constify some structures in Freescale QSPI driver"

    * tag 'for-linus-20161216' of git://git.infradead.org/linux-mtd: (71 commits)
    mtd: Allocate bdi objects dynamically
    mtd: nand: tango: Add standard legalese header
    mtd: maps: add missing iounmap() in error path
    mtd: spi-nor: constify fsl_qspi_devtype_data
    mtd: spi-nor: Add support for mr25h40
    mtd: spi-nor: Add support for N25Q016A
    mtd: spi-nor: Add at25df321 spi-nor flash support
    mtd: spi-nor: Fix some error codes in cqspi_setup_flash()
    mtd: spi-nor: Off by one in cqspi_setup_flash()
    mtd: spi-nor: add support for s25fl208k
    mtd: spi-nor: fix flags for s25fl128s
    mtd: spi-nor: fix spansion quad enable
    mtd: spi-nor: add Macronix mx25u25635f to list of known devices.
    mtd: mtdswap: fix spelling mistake "erassure" -> "erasure"
    mtd: bcm47xxpart: fix parsing first block after aligned TRX
    mtd: nand: tango: Use nand_to_mtd() instead of directly accessing chip->mtd
    mtd: remove unneeded initializer in mtd_ooblayout_count_bytes()
    mtd: use min_t() to refactor mtd_ooblayout_{get, set}_bytes()
    mtd: remove unneeded initializer in mtd_ooblayout_{get, set}_bytes()
    mtd: nand: nandsim: fix error check
    ...

    Linus Torvalds
     

02 Dec, 2016

2 commits

  • The MTD backing dev info objects mtd_bdi was statically allocated.
    So when MTD is built as a loadable module, this object fall in the
    vmalloc address space.

    The problem with that, is that the BDI APIs use wake_up_bit(), which calls
    virt_to_page() to retrieve the memory zone of the page containing the
    wait_queue to wake up, and virt_to_page() is not valid for vmalloc or
    highmem addresses.

    Fix this by allocating the BDI objects dynamically with kmalloc. The
    objects now fall in the logical address space so that BDI APIs will
    work in all cases (mtd builtin or module).

    Signed-off-by: Steve Longerbeam
    Signed-off-by: Jim Baxter
    Signed-off-by: Sandeep Jain
    Reviewed-by: Richard Weinberger
    Reviewed-by: Marek Vasut
    Signed-off-by: Brian Norris

    Steve Longerbeam
     
  • Provide proper copyright notice and license information.

    Signed-off-by: Marc Gonzalez
    Signed-off-by: Brian Norris

    Marc Gonzalez
     

01 Dec, 2016

1 commit

  • This patch was triggered by the following Coccinelle error:

    ./drivers/mtd/maps/sc520cdp.c:246:3-9: \
    ERROR: missing iounmap; ioremap on line 242 \
    and execution via conditional on line 244

    Since do_map_probe() is also invoked in this loop, it is also necessary to
    map_destroy() any initialised struct mtd_info.

    Signed-off-by: Luis Henriques
    Reviewed-by: Marek Vasut
    Signed-off-by: Brian Norris

    Luis Henriques
     

30 Nov, 2016

2 commits

  • From Cyrille Pitchen:

    """
    This pull request contains the following notable changes:
    - add support to new memory parts.
    - fix of spansion_quad_enable().
    - fix of the Candence QSPI driver.
    - constify some structure instances of the Freescale QSPI driver.
    """

    Brian Norris
     
  • From Boris Brezillon:

    """
    This pull request contains the following notable changes:
    - new tango NAND controller driver
    - new ox820 NAND controller driver
    - addition of a new full-ID entry in the nand_ids table
    - rework of the s3c240 driver to support DT
    - extension of the nand_sdr_timings to expose tCCS, tPROG and tR
    - addition of a new flag to ask the core to wait for tCCS when sending
    a RNDIN/RNDOUT command
    - addition of a new flag to ask the core to let the controller driver
    send the READ/PROGPAGE command

    This pull request also contains minor fixes/cleanup/cosmetic changes:
    - properly support 512 ECC step size in the sunxi driver
    - improve the error messages in the pxa probe path
    - fix module autoload in the omap2 driver
    - cleanup of several nand drivers to return nand_scan{_tail}() error
    code instead of returning -EIO
    - various cleanups in the denali driver
    - cleanups in the ooblayout handling (MTD core)
    - fix an error check in nandsim
    """

    Brian Norris
     

27 Nov, 2016

4 commits


26 Nov, 2016

4 commits


23 Nov, 2016

4 commits


21 Nov, 2016

1 commit


20 Nov, 2016

3 commits


19 Nov, 2016

15 commits


08 Nov, 2016

1 commit

  • BCM53573 is a new series of Broadcom's SoCs. It's based on ARM and uses
    this old ChipCommon-based flash access. Early tests resulted in flash
    corruptions that were tracked down to using cached MMIO for flash read
    access. Switch to ioremap_nocache conditionally to support BCM53573 and
    don't break performance on old MIPS devices.

    Signed-off-by: Rafał Miłecki
    Reviewed-by: Boris Brezillon
    Signed-off-by: Brian Norris

    Rafał Miłecki
     

07 Nov, 2016

1 commit