1. 08 12月, 2011 3 次提交
    • J
      spi/fsl-espi: disable CONFIG_SPI_FSL_ESPI=m build · d9ddcec3
      Jiri Slaby 提交于
      When spi_fsl_espi is chosen to be built as a module, there is a build
      error because we test only CONFIG_SPI_FSL_ESPI in declaration of
      struct mpc8xxx_spi in drivers/spi/spi_fsl_lib.h. Also some called
      functions are not exported.
      
      So we forbid CONFIG_SPI_FSL_ESPI to be tristate here.
      
      The error looks like:
      drivers/spi/spi_fsl_espi.c: In function 'fsl_espi_bufs':
      drivers/spi/spi_fsl_espi.c:232: error: 'struct mpc8xxx_spi' has no member named 'len'
      ...
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Acked-by: NKumar Gala <galak@kernel.crashing.org>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      d9ddcec3
    • A
      spi/nuc900: Include linux/module.h · 00d2952c
      Axel Lin 提交于
      Include linux/module.h to fix below build error:
      
        CC      drivers/spi/spi-nuc900.o
      drivers/spi/spi-nuc900.c:484: error: 'THIS_MODULE' undeclared here (not in a function)
      drivers/spi/spi-nuc900.c:489: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-nuc900.c:489: warning: data definition has no type or storage class
      drivers/spi/spi-nuc900.c:489: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
      drivers/spi/spi-nuc900.c:489: warning: function declaration isn't a prototype
      drivers/spi/spi-nuc900.c:490: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-nuc900.c:490: warning: data definition has no type or storage class
      drivers/spi/spi-nuc900.c:490: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
      drivers/spi/spi-nuc900.c:490: warning: function declaration isn't a prototype
      drivers/spi/spi-nuc900.c:491: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-nuc900.c:491: warning: data definition has no type or storage class
      drivers/spi/spi-nuc900.c:491: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      drivers/spi/spi-nuc900.c:491: warning: function declaration isn't a prototype
      drivers/spi/spi-nuc900.c:492: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-nuc900.c:492: warning: data definition has no type or storage class
      drivers/spi/spi-nuc900.c:492: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'
      drivers/spi/spi-nuc900.c:492: warning: function declaration isn't a prototype
      make[2]: *** [drivers/spi/spi-nuc900.o] Error 1
      make[1]: *** [drivers/spi] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Acked-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      00d2952c
    • G
      spi/ath79: fix compile error due to missing include · 807cc4b1
      Gabor Juhos 提交于
      Whithout including 'linux/module.h' spi-ath79 driver fails to compile
      with the these errors:
      
      drivers/spi/spi-ath79.c:273:12: error: 'THIS_MODULE' undeclared here (not in a function)
      drivers/spi/spi-ath79.c:278:20: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-ath79.c:278:1: warning: data definition has no type or storage class
      drivers/spi/spi-ath79.c:278:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
      drivers/spi/spi-ath79.c:278:20: warning: function declaration isn't a prototype
      drivers/spi/spi-ath79.c:279:15: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-ath79.c:279:1: warning: data definition has no type or storage class
      drivers/spi/spi-ath79.c:279:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
      drivers/spi/spi-ath79.c:279:15: warning: function declaration isn't a prototype
      drivers/spi/spi-ath79.c:280:16: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-ath79.c:280:1: warning: data definition has no type or storage class
      drivers/spi/spi-ath79.c:280:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      drivers/spi/spi-ath79.c:280:16: warning: function declaration isn't a prototype
      drivers/spi/spi-ath79.c:281:14: error: expected declaration specifiers or '...' before string constant
      drivers/spi/spi-ath79.c:281:1: warning: data definition has no type or storage class
      drivers/spi/spi-ath79.c:281:1: warning: type defaults to 'int' in declaration of 'MODULE_ALIAS'
      drivers/spi/spi-ath79.c:281:14: warning: function declaration isn't a prototype
      Signed-off-by: NGabor Juhos <juhosg@openwrt.org>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      807cc4b1
  2. 27 11月, 2011 1 次提交
  3. 09 11月, 2011 2 次提交
  4. 01 11月, 2011 2 次提交
  5. 25 10月, 2011 2 次提交
  6. 24 10月, 2011 2 次提交
  7. 16 10月, 2011 1 次提交
  8. 15 10月, 2011 1 次提交
  9. 05 10月, 2011 5 次提交
  10. 27 9月, 2011 1 次提交
  11. 24 9月, 2011 1 次提交
  12. 22 9月, 2011 2 次提交
    • P
      ARM: 7079/1: spi: Fix builderror in spi-pl022.c · 6cfa6279
      Peter Hüwe 提交于
      This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
      runtime PM support to core Primecell driver") which unfortunately was a little
      bit incomplete and did contain a typo (11 instead of 22).
      I'm not sure how this patch could have been tested back then, if it
      doesn't even compile ;)
      
      The build failure was:
      drivers/spi/spi-pl022.c:2292: error: 'adev' undeclared (first use in
      this function)
      drivers/spi/spi-pl022.c:2344: error: 'pl022_suspend' undeclared here
      (not in a function)
      
      The build failure appears e.g. for the u8500 and realview defconfig.
      Signed-off-by: NPeter Huewe <peterhuewe@gmx.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      6cfa6279
    • R
      PM: add runtime PM support to core Primecell driver · 92b97f0a
      Russell King 提交于
      Add runtime PM support to the core Primecell driver, following the PCI
      model of how this is done.
      
      Rather than having every driver fiddle about with enabling runtime PM,
      that's dealt with in the core and instead, drivers just do a put() in
      their probe and a balancing get() in their remove function to activate
      runtime PM for the device.
      
      As we're dealing with enabling runtime PM in the core, fix up spi-pl022
      as it must not enable and disable runtime PM itself anymore.
      Tested-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      92b97f0a
  13. 21 9月, 2011 6 次提交
  14. 16 9月, 2011 1 次提交
    • F
      spi/imx: Fix spi-imx when the hardware SPI chipselects are used · 4cc122ac
      Fabio Estevam 提交于
      commit 22a85e4c (spi/imx: add device tree probe support) broke spi-imx usage
      when the SPI chipselect is the one internal to the controller.
      
      On a mx31pdk board the following error is seen:
      
      Registering mxc_nand as whole device
      ------------[ cut here ]------------
      WARNING: at drivers/gpio/gpiolib.c:101 gpio_ensure_requested+0x4c/0xf4()
      autorequest GPIO-0
      Modules linked in:
      [<c0014410>] (unwind_backtrace+0x0/0xf4) from [<c0025754>] (warn_slowpath_common+0x4c/0x64)
      [<c0025754>] (warn_slowpath_common+0x4c/0x64) from [<c0025800>] (warn_slowpath_fmt+0x30/0x40)
      [<c0025800>] (warn_slowpath_fmt+0x30/0x40) from [<c0198688>] (gpio_ensure_requested+0x4c/0xf4)
      [<c0198688>] (gpio_ensure_requested+0x4c/0xf4) from [<c01988c8>] (gpio_direction_output+0xa0/0x138)
      [<c01988c8>] (gpio_direction_output+0xa0/0x138) from [<c01ed198>] (spi_imx_setup+0x38/0x4c)
      [<c01ed198>] (spi_imx_setup+0x38/0x4c) from [<c01eb5d0>] (spi_setup+0x38/0x50)
      [<c01eb5d0>] (spi_setup+0x38/0x50) from [<c01eb85c>] (spi_add_device+0x94/0x124)
      [<c01eb85c>] (spi_add_device+0x94/0x124) from [<c01eb960>] (spi_new_device+0x74/0xac)
      [<c01eb960>] (spi_new_device+0x74/0xac) from [<c01eb9b8>] (spi_match_master_to_boardinfo+0x20/0x40)
      [<c01eb9b8>] (spi_match_master_to_boardinfo+0x20/0x40) from [<c01eba88>] (spi_register_master+0xb0/0x104)
      [<c01eba88>] (spi_register_master+0xb0/0x104) from [<c01ec0b4>] (spi_bitbang_start+0x104/0x17c)
      [<c01ec0b4>] (spi_bitbang_start+0x104/0x17c) from [<c02c2c4c>] (spi_imx_probe+0x2fc/0x404)
      [<c02c2c4c>] (spi_imx_probe+0x2fc/0x404) from [<c01c2498>] (platform_drv_probe+0x18/0x1c)
      [<c01c2498>] (platform_drv_probe+0x18/0x1c) from [<c01c1058>] (driver_probe_device+0x78/0x174)
      [<c01c1058>] (driver_probe_device+0x78/0x174) from [<c01c11e0>] (__driver_attach+0x8c/0x90)
      [<c01c11e0>] (__driver_attach+0x8c/0x90) from [<c01c0860>] (bus_for_each_dev+0x60/0x8c)
      [<c01c0860>] (bus_for_each_dev+0x60/0x8c) from [<c01c0088>] (bus_add_driver+0xa0/0x288)
      [<c01c0088>] (bus_add_driver+0xa0/0x288) from [<c01c179c>] (driver_register+0x78/0x18c)
      [<c01c179c>] (driver_register+0x78/0x18c) from [<c0008490>] (do_one_initcall+0x34/0x178)
      [<c0008490>] (do_one_initcall+0x34/0x178) from [<c03a5204>] (kernel_init+0x74/0x118)
      [<c03a5204>] (kernel_init+0x74/0x118) from [<c000f65c>] (kernel_thread_exit+0x0/0x8)
      ---[ end trace 759f924b30fd5a44 ]---
      
      Fix this issue by using the original chip select logic and make spi-imx to work again.
      
      Tested on a mx31pdk that uses the hardware SPI chipselect pins and also
      on a mx27pdk that uses GPIO as SPI chipselect.
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      4cc122ac
  15. 14 9月, 2011 2 次提交
  16. 08 8月, 2011 1 次提交
  17. 02 8月, 2011 1 次提交
  18. 15 7月, 2011 6 次提交