1. 11 Sep, 2015 3 commits
    • Boris BREZILLON's avatar
      mtd: nand: sunxi: rely on nand_dt_init initialization · a3d22a55
      Boris BREZILLON authored
      nand_dt_init(), called from nand_scan_ident(), is already parsing the
      generic MTD/NAND DT properties, and initializing the nand_chip struct
      accordingly.
      Rely on this initialization instead of manually parsing those properties.
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      [Brian: rename 'np' -> 'flash_node' to accomodate for prior rename patch]
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      a3d22a55
    • Marek Vasut's avatar
      mtd: nand: Rename nand_chip .dn to .flash_node · 61528d88
      Marek Vasut authored
      Use a more descriptive name for the device_node element in struct nand_chip .
      This name matches the element name used for device_node property of a flash
      in the spi-nor framework.
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      61528d88
    • Marek Vasut's avatar
      mtd: spi-nor: Decouple SPI NOR's device_node from controller device · 11bff0b7
      Marek Vasut authored
      The problem this patch is trying to address is such, that SPI NOR flash
      devices attached to a dedicated SPI NOR controller cannot read their
      properties from the associated struct device_node.
      
      A couple of facts first:
      1) Each SPI NOR flash has a struct spi_nor associated with it.
      2) Each SPI NOR flash has certain device properties associated
         with it, for example the OF property 'm25p,fast-read' is a
         good pick. These properties are used by the SPI NOR core to
         select which opcodes are sent to such SPI NOR flash. These
         properties are coming from spi_nor .dev->of_node .
      
      The problem is, that for SPI NOR controllers, the struct spi_nor .dev
      element points to the struct device of the SPI NOR controller, not the
      SPI NOR flash. Therefore, the associated dev->of_node also is the
      one of the controller and therefore the SPI NOR core code is trying to
      parse the SPI NOR controller's properties, not the properties of the
      SPI NOR flash.
      
      Note: The m25p80 driver is not affected, because the controller and
            the flash are the same device, so the associated device_node
            of the controller and the flash are the same.
      
      This patch adjusts the SPI NOR core such that the device_node is not
      picked from spi_nor .dev directly, but from a new separate spi_nor
      .flash_node element. This let's the SPI NOR controller drivers set up
      a different spi_nor .flash_node element for each SPI NOR flash.
      
      This patch also fixes the controller drivers to be compatible with
      this modification and correctly set the spi_nor .flash_node element.
      
      This patch is inspired by 5844feea
      mtd: nand: add common DT init code
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      11bff0b7
  2. 09 Sep, 2015 2 commits
  3. 02 Sep, 2015 11 commits
  4. 27 Aug, 2015 1 commit
  5. 25 Aug, 2015 3 commits
  6. 22 Aug, 2015 1 commit
  7. 19 Aug, 2015 11 commits
  8. 14 Aug, 2015 5 commits
  9. 07 Aug, 2015 1 commit
  10. 06 Aug, 2015 2 commits