Skip to content

spi: dw: refactor to use SPI core message handling

Andy Shevchenko linux-spi 4 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am 1425301137-8043-1-git-send-email-andriy.shevchenko@linux.intel.com

Versions newest first · linked by author and title

  1. v4 Latest3 patches 5 repliesApplied
  2. v33 patches 1 replySuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches3 repliesSuperseded

Changes in v4 from the cover letter

- rename spi_disable_intr() -> spi_reset_chip() which is more proper (patch 1/3)
- simplify patch 2/3

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3spi: dw: make sure SPI controller is enableddrivers/spi/spi-dw.c drivers/spi/spi-dw.h+14 -51 reply
2/3spi: dw: program registers as soon as possibledrivers/spi/spi-dw.c+15 -231 reply
3/3spi: dw: move to SPI core message handlingdrivers/spi/spi-dw-mid.c drivers/spi/spi-dw.c drivers/spi/spi-dw.h+49 -1641 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] spi: dw: refactor to use SPI core message handling

This patch series is dedicated to refactoring of spi-dw driver to use SPI core message handling. The driver has been tested in PIO mode on Intel Medfield device in loopback mode.

Note, the patch 3/3 depends on [1].

[1] http://www.spinics.net/lists/linux-spi/msg02982.html

Changelog v4:
- rename spi_disable_intr() -> spi_reset_chip() which is more proper (patch 1/3)
- simplify patch 2/3

Changelog v3:
- introduce patch 1/3 and 2/3 to make state of the SPI controller consistent
- return 1 instead of transfer length from transfer_one()
- use newly introduced handle_err()

Changelog v2:
- remove leftovers from spi-dw.h
- remove unused members of dw_spi, i.e. cur_dev, max_bits_per_word
- reuse chip->cs_control directly

Andy Shevchenko (3):
spi: dw: make sure SPI controller is enabled
spi: dw: program registers as soon as possible
spi: dw: move to SPI core message handling

 drivers/spi/spi-dw-mid.c |   4 +-
 drivers/spi/spi-dw.c     | 226 +++++++++++++----------------------------------
 drivers/spi/spi-dw.h     |  38 +++-----
 3 files changed, 77 insertions(+), 191 deletions(-)
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html