1. 27 10月, 2015 11 次提交
  2. 20 10月, 2015 10 次提交
    • V
      mtd: lpc32xx_mlc: fix warnings caused by enabling unprepared clock · 64862dbc
      Vladimir Zapolskiy 提交于
      If common clock framework is configured, the driver generates a warning,
      which is fixed by this change:
      
          WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:727 clk_core_enable+0x2c/0xa4()
          Modules linked in:
          CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0-rc2+ #206
          Hardware name: LPC32XX SoC (Flattened Device Tree)
          Backtrace:
          [<>] (dump_backtrace) from [<>] (show_stack+0x18/0x1c)
          [<>] (show_stack) from [<>] (dump_stack+0x20/0x28)
          [<>] (dump_stack) from [<>] (warn_slowpath_common+0x90/0xb8)
          [<>] (warn_slowpath_common) from [<>] (warn_slowpath_null+0x24/0x2c)
          [<>] (warn_slowpath_null) from [<>] (clk_core_enable+0x2c/0xa4)
          [<>] (clk_core_enable) from [<>] (clk_enable+0x24/0x38)
          [<>] (clk_enable) from [<>] (lpc32xx_nand_probe+0x208/0x248)
          [<>] (lpc32xx_nand_probe) from [<>] (platform_drv_probe+0x50/0xa0)
          [<>] (platform_drv_probe) from [<>] (driver_probe_device+0x18c/0x408)
          [<>] (driver_probe_device) from [<>] (__driver_attach+0x70/0x94)
          [<>] (__driver_attach) from [<>] (bus_for_each_dev+0x74/0x98)
          [<>] (bus_for_each_dev) from [<>] (driver_attach+0x20/0x28)
          [<>] (driver_attach) from [<>] (bus_add_driver+0x11c/0x248)
          [<>] (bus_add_driver) from [<>] (driver_register+0xa4/0xe8)
          [<>] (driver_register) from [<>] (__platform_driver_register+0x50/0x64)
          [<>] (__platform_driver_register) from [<>] (lpc32xx_nand_driver_init+0x18/0x20)
          [<>] (lpc32xx_nand_driver_init) from [<>] (do_one_initcall+0x11c/0x1dc)
          [<>] (do_one_initcall) from [<>] (kernel_init_freeable+0x10c/0x1d4)
          [<>] (kernel_init_freeable) from [<>] (kernel_init+0x10/0xec)
          [<>] (kernel_init) from [<>] (ret_from_fork+0x14/0x24)
      Signed-off-by: NVladimir Zapolskiy <vz@mleia.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      64862dbc
    • V
      mtd: lpc32xx_slc: fix warnings caused by enabling unprepared clock · 44cab9c9
      Vladimir Zapolskiy 提交于
      If common clock framework is configured, the driver generates a warning,
      which is fixed by this change:
      
          WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:727 clk_core_enable+0x2c/0xa4()
          Modules linked in:
          CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0-rc2+ #201
          Hardware name: LPC32XX SoC (Flattened Device Tree)
          Backtrace:
          [<>] (dump_backtrace) from [<>] (show_stack+0x18/0x1c)
          [<>] (show_stack) from [<>] (dump_stack+0x20/0x28)
          [<>] (dump_stack) from [<>] (warn_slowpath_common+0x90/0xb8)
          [<>] (warn_slowpath_common) from [<>] (warn_slowpath_null+0x24/0x2c)
          [<>] (warn_slowpath_null) from [<>] (clk_core_enable+0x2c/0xa4)
          [<>] (clk_core_enable) from [<>] (clk_enable+0x24/0x38)
          [<>] (clk_enable) from [<>] (lpc32xx_nand_probe+0x290/0x568)
          [<>] (lpc32xx_nand_probe) from [<>] (platform_drv_probe+0x50/0xa0)
          [<>] (platform_drv_probe) from [<>] (driver_probe_device+0x18c/0x408)
          [<>] (driver_probe_device) from [<>] (__driver_attach+0x70/0x94)
          [<>] (__driver_attach) from [<>] (bus_for_each_dev+0x74/0x98)
          [<>] (bus_for_each_dev) from [<>] (driver_attach+0x20/0x28)
          [<>] (driver_attach) from [<>] (bus_add_driver+0x11c/0x248)
          [<>] (bus_add_driver) from [<>] (driver_register+0xa4/0xe8)
          [<>] (driver_register) from [<>] (__platform_driver_register+0x50/0x64)
          [<>] (__platform_driver_register) from [<>] (lpc32xx_nand_driver_init+0x18/0x20)
          [<>] (lpc32xx_nand_driver_init) from [<>] (do_one_initcall+0x11c/0x1dc)
          [<>] (do_one_initcall) from [<>] (kernel_init_freeable+0x10c/0x1d4)
          [<>] (kernel_init_freeable) from [<>] (kernel_init+0x10/0xec)
          [<>] (kernel_init) from [<>] (ret_from_fork+0x14/0x24)
      Signed-off-by: NVladimir Zapolskiy <vz@mleia.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      44cab9c9
    • B
      mtd: maps: rbtx4939-flash: fix compile error · ff84d2b7
      Brian Norris 提交于
      We got the syntax wrong here. Compile tested this time!
      
      Error:
      
         drivers/mtd/maps/rbtx4939-flash.c: In function 'rbtx4939_flash_probe':
      >> drivers/mtd/maps/rbtx4939-flash.c:99:11: error: request for member 'dev' in something not a structure or union
           info->mtd.dev.parent = &dev->dev;
                    ^
      
      Fixes: 9aa7e502 ("mtd: maps: rbtx4939-flash: show parent device in sysfs")
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Cc: Frans Klaver <fransklaver@gmail.com>
      ff84d2b7
    • D
      mtd: mtdram: check offs and len in mtdram->erase · ab84fce5
      Dongsheng Yang 提交于
      We should prevent user to erasing mtd device with
      an unaligned offset or length.
      Signed-off-by: NDongsheng Yang <yangds.fnst@cn.fujitsu.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      ab84fce5
    • B
      mtd: pxa3xx_nand: switch to device PM · d3e94f3f
      Brian Norris 提交于
      The old PM model is deprecated. This is equivalent.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Tested-by: NEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
      Acked-by: NEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
      d3e94f3f
    • B
      mtd: pxa3xx_nand: don't duplicate MTD suspend/resume · 2e17497c
      Brian Norris 提交于
      mtd_{suspend,resume}() get called from mtdcore in a class suspend/resume
      callback. We don't need to call them again here. In practice, this would
      actually work OK, as nand_base actually handles nesting OK -- it just
      might print warnings.
      
      Untested, but there are few (no?) users of PM for this driver AFAIK.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Tested-by: NEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
      Acked-by: NEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
      2e17497c
    • F
      mtd: fsl-quadspi: Include <linux/sizes.h> to avoid build error · 01a3c625
      Fabio Estevam 提交于
      Building for x86 results in the following build errors:
      
         drivers/mtd/spi-nor/fsl-quadspi.c: In function 'fsl_qspi_init_lut':
      >> drivers/mtd/spi-nor/fsl-quadspi.c:355:21: error: 'SZ_16M' undeclared (first use in this function)
           if (q->nor_size <= SZ_16M) {
                              ^
         drivers/mtd/spi-nor/fsl-quadspi.c:355:21: note: each undeclared identifier is reported only once for each function it appears in
         drivers/mtd/spi-nor/fsl-quadspi.c: In function 'fsl_qspi_read':
      >> drivers/mtd/spi-nor/fsl-quadspi.c:208:27: error: 'SZ_4M' undeclared (first use in this function)
          #define QUADSPI_MIN_IOMAP SZ_4M
                                    ^
      >> drivers/mtd/spi-nor/fsl-quadspi.c:845:25: note: in expansion of macro 'QUADSPI_MIN_IOMAP'
            q->memmap_len = len > QUADSPI_MIN_IOMAP ? len : QUADSPI_MIN_IOMAP;
      
      Explicitly include <linux/sizes.h> to fix the problem.
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      01a3c625
    • B
      mtd: fsl-quadspi: allow building for other ARCHes with COMPILE_TEST · d26a22d0
      Brian Norris 提交于
      This driver doesn't actually need ARCH_MXC to compile. Relax the
      constraints.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Acked-by: NHan xu <han.xu@freescale.com>
      d26a22d0
    • B
      mtd: fsl-quadspi: fix printk() format warning for size_t · a5c603a2
      Brian Norris 提交于
      Seen when compile-testing on non-32-bit arch:
      
          CC      drivers/mtd/spi-nor/fsl-quadspi.o
        drivers/mtd/spi-nor/fsl-quadspi.c: In function 'fsl_qspi_read':
        drivers/mtd/spi-nor/fsl-quadspi.c:873:2: warning: format '%d' expects argument of type 'int', but argument 6 has type 'size_t' [-Wformat=]
          dev_dbg(q->dev, "cmd [%x],read from 0x%p, len:%d\n",
          ^
      
      Also drop the '0x' prefixing to the '%p' formatter, since %p already
      knows how to format pointers appropriately.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Acked-by: NHan xu <han.xu@freescale.com>
      a5c603a2
    • B
      mtd: spi-nor: add DUAL_READ for w25q{32,64}dw · a23eb341
      Brian Norris 提交于
      These flash support dual and quad read. Tested dual read on the 32 Mbit
      version.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      a23eb341
  3. 14 10月, 2015 19 次提交