1. 06 Mar, 2015 1 commit
    • Andy Shevchenko's avatar
      spi: dw: make sure SPI controller is enabled · 45746e82
      Andy Shevchenko authored
      The error handling is partially broken since the controller is disabled on
      error and is not re-enabled until condition occurs, i.e. mode (poll, PIO/DMA),
      chip (cs_change), or speed (clk_div) is changed. In the result of these changes
      we will have a predictable state of the SPi controller independently on how
      successfull was a previous transfer.
      The patch disables interrupts and re-enables the SPI controller wherever it
      needs to be done. Thus most of the time the SPI controller is kept enabled. The
      runtime PM, when it will be implemented, must take care of the controller
      disabling and re-enabling.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
  2. 28 Oct, 2014 1 commit
  3. 02 Oct, 2014 1 commit
  4. 13 Sep, 2014 2 commits
  5. 24 Apr, 2014 2 commits
  6. 31 Dec, 2013 1 commit
  7. 30 Dec, 2013 1 commit
  8. 21 Sep, 2011 1 commit
    • H Hartley Sweeten's avatar
      spi: spi-dw: fix all sparse warnings · 7eb187b3
      H Hartley Sweeten authored
      The dw_{read,write}[lw] macros produce sparse warnings everytime they
      are used.  The "read" ones cause:
      warning: cast removes address space of expression
      warning: incorrect type in argument 1 (different address spaces)
         expected void const volatile [noderef] <asn:2>*addr
         got unsigned int *<noident>
      And the "write" ones:
      warning: cast removes address space of expression
      warning: incorrect type in argument 2 (different address spaces)
         expected void volatile [noderef] <asn:2>*addr
         got unsigned int *<noident>
      Fix this by removing struct dw_spi_reg and converting all the register
      offsets to #defines. Then convert the macros into inlined functions so
      that proper type checking can occur.
      While here, also fix the three sparse warnings in spi-dw-mid.c due to
      the return value of ioremap_nocache being stored in a u32 * not a
      void __iomem *.
      With these changes the spi-dw* files all build with no sparse warnings.
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Acked-by: default avatarFeng Tang <feng.tang@intel.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
  9. 08 Jul, 2011 1 commit
  10. 06 Jun, 2011 1 commit
  11. 31 Mar, 2011 2 commits
  12. 18 Mar, 2011 2 commits
    • Grant Likely's avatar
      spi/dw_spi: move dw_spi.h into drivers/spi · 568a60ed
      Grant Likely authored
      include/linux/dw_spi.h only includes driver internal data.  It doesn't
      expose a platform_data configuration structure or similar (at least
      nothing in-tree).  This patch moves the header into drivers/spi so
      that the scope is limited to only the dw_spi_*.c driver files
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Cc: Feng Tang <feng.tang@intel.com>
      Cc: spi-devel-general@lists.sourceforge.net
    • Jiri Slaby's avatar
      spi/dw_spi: Fix missing header · 46165a3d
      Jiri Slaby authored
      Currently, build on PPC dies with:
      In file included from drivers/spi/dw_spi_mmio.c:16:
      include/linux/spi/dw_spi.h:147: error: field ‘tx_sgl’ has incomplete type
      include/linux/spi/dw_spi.h:149: error: field ‘rx_sgl’ has incomplete type
      Add linux/scatterlist.h include to dw_spi.h, because we need to know
      the contents of the structure.
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
  13. 24 Dec, 2010 1 commit
  14. 08 Sep, 2010 1 commit
  15. 21 Jan, 2010 1 commit
  16. 20 Jan, 2010 1 commit
  17. 17 Dec, 2009 1 commit