1. 28 2月, 2015 2 次提交
  2. 29 5月, 2014 1 次提交
    • T
      mtd: pxa3xx_nand: make the driver work on big-endian systems · b7e46062
      Thomas Petazzoni 提交于
      The pxa3xx_nand driver currently uses __raw_writel() and __raw_readl()
      to access I/O registers. However, those functions do not do any
      endianness swapping, which means that they won't work when the CPU
      runs in big-endian but the I/O registers are little endian, which is
      the common situation for ARM systems running big endian.
      
      Since __raw_writel() and __raw_readl() do not include any memory
      barriers and the pxa3xx_nand driver can only be compiled for ARM
      platforms, the closest I/o accessors functions that do endianess
      swapping are writel_relaxed() and readl_relaxed().
      
      This patch has been verified to work on Armada XP GP: without the
      patch, the NAND is not detected when the kernel runs big endian while
      it is properly detected when the kernel runs little endian. With the
      patch applied, the NAND is properly detected in both situations
      (little and big endian).
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: <stable@vger.kernel.org> # v3.13+
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      b7e46062
  3. 22 5月, 2014 2 次提交
  4. 21 5月, 2014 1 次提交
  5. 11 3月, 2014 2 次提交
  6. 21 1月, 2014 1 次提交
  7. 13 1月, 2014 1 次提交
  8. 04 1月, 2014 26 次提交
  9. 13 12月, 2013 2 次提交
  10. 07 11月, 2013 2 次提交