1. 30 11月, 2020 3 次提交
  2. 28 9月, 2020 1 次提交
  3. 27 8月, 2020 1 次提交
  4. 31 5月, 2020 1 次提交
  5. 09 10月, 2019 1 次提交
    • S
      mtd: Remove dev_err() usage after platform_get_irq() · aab478ca
      Stephen Boyd 提交于
      We don't need dev_err() messages when platform_get_irq() fails now that
      platform_get_irq() prints an error message itself when something goes
      wrong. Let's remove these prints with a simple semantic patch.
      
      // <smpl>
      @@
      expression ret;
      struct platform_device *E;
      @@
      
      ret =
      (
      platform_get_irq(E, ...)
      |
      platform_get_irq_byname(E, ...)
      );
      
      if ( \( ret < 0 \| ret <= 0 \) )
      {
      (
      -if (ret != -EPROBE_DEFER)
      -{ ...
      -dev_err(...);
      -... }
      |
      ...
      -dev_err(...);
      )
      ...
      }
      // </smpl>
      
      While we're here, remove braces on if statements that only have one
      statement (manually).
      
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Brian Norris <computersforpeace@gmail.com>
      Cc: Marek Vasut <marek.vasut@gmail.com>
      Cc: Miquel Raynal <miquel.raynal@bootlin.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Vignesh Raghavendra <vigneshr@ti.com>
      Cc: linux-mtd@lists.infradead.org
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NStephen Boyd <swboyd@chromium.org>
      Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
      aab478ca
  6. 29 8月, 2019 1 次提交
  7. 19 6月, 2019 1 次提交
  8. 18 4月, 2019 1 次提交
  9. 05 2月, 2019 2 次提交
  10. 15 12月, 2018 1 次提交
  11. 03 10月, 2018 17 次提交
  12. 31 7月, 2018 2 次提交
  13. 29 3月, 2018 1 次提交
  14. 16 2月, 2018 1 次提交
  15. 14 12月, 2017 3 次提交
  16. 27 10月, 2017 1 次提交
    • R
      mtd: nand: omap2: Fix subpage write · 739c6441
      Roger Quadros 提交于
      Since v4.12, NAND subpage writes were causing a NULL pointer
      dereference on OMAP platforms (omap2-nand) using OMAP_ECC_BCH4_CODE_HW,
      OMAP_ECC_BCH8_CODE_HW and OMAP_ECC_BCH16_CODE_HW.
      
      This is because for those ECC modes, omap_calculate_ecc_bch()
      generates ECC bytes for the entire (multi-sector) page and this can
      overflow the ECC buffer provided by nand_write_subpage_hwecc()
      as it expects ecc.calculate() to return ECC bytes for just one sector.
      
      However, the root cause of the problem is present since v3.9
      but was not seen then as NAND buffers were being allocated
      as one big chunk prior to commit 3deb9979 ("mtd: nand: allocate
      aligned buffers if NAND_OWN_BUFFERS is unset").
      
      Fix the issue by providing a OMAP optimized write_subpage()
      implementation.
      
      Fixes: 62116e51 ("mtd: nand: omap2: Support for hardware BCH error correction.")
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NRoger Quadros <rogerq@ti.com>
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      739c6441
  17. 14 10月, 2017 2 次提交