1. 12 9月, 2015 5 次提交
    • J
      mtd: spi-nor: Zap unneeded write_enable from write_reg · f9f3ce83
      Jagan Teki 提交于
      The 'write_enable' argument is unused and unneeded, so remove it from
      the API.
      Signed-off-by: NJagan Teki <jteki@openedev.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Han Xu <han.xu@freescale.com>
      [Brian: fixed for nxp-spifi.c]
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      f9f3ce83
    • J
      mtd: spi-nor: Use write_sr for write status · fd725234
      Jagan Teki 提交于
      Use existing write_sr() call instead of decoding and
      calling nor->write_reg separately.
      Signed-off-by: NJagan Teki <jteki@openedev.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      fd725234
    • B
      mtd: nand: sunxi: rely on nand_dt_init initialization · a3d22a55
      Boris BREZILLON 提交于
      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: NBoris Brezillon <boris.brezillon@free-electrons.com>
      [Brian: rename 'np' -> 'flash_node' to accomodate for prior rename patch]
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      a3d22a55
    • M
      mtd: nand: Rename nand_chip .dn to .flash_node · 61528d88
      Marek Vasut 提交于
      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: NMarek Vasut <marex@denx.de>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      61528d88
    • M
      mtd: spi-nor: Decouple SPI NOR's device_node from controller device · 11bff0b7
      Marek Vasut 提交于
      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: NMarek Vasut <marex@denx.de>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      11bff0b7
  2. 10 9月, 2015 2 次提交
  3. 03 9月, 2015 11 次提交
  4. 28 8月, 2015 1 次提交
  5. 26 8月, 2015 3 次提交
  6. 22 8月, 2015 1 次提交
  7. 20 8月, 2015 3 次提交
  8. 19 8月, 2015 8 次提交
  9. 15 8月, 2015 5 次提交
  10. 08 8月, 2015 1 次提交