linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] spi: dw: refactor to use SPI core message handling
@ 2015-02-27 16:36 Andy Shevchenko
       [not found] ` <1425054977-9859-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2015-02-27 16:36 UTC (permalink / raw)
  To: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA; +Cc: Andy Shevchenko

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 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     | 236 +++++++++++++++--------------------------------
 drivers/spi/spi-dw.h     |  26 ------
 3 files changed, 77 insertions(+), 189 deletions(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-27 20:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 16:36 [PATCH v3 0/3] spi: dw: refactor to use SPI core message handling Andy Shevchenko
     [not found] ` <1425054977-9859-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-02-27 16:36   ` [PATCH v3 1/3] spi: dw: make sure SPI controller is enabled Andy Shevchenko
2015-02-27 16:36   ` [PATCH v3 2/3] spi: dw: program registers as soon as possible Andy Shevchenko
     [not found]     ` <1425054977-9859-3-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-02-27 20:11       ` Andy Shevchenko
2015-02-27 16:36   ` [PATCH v3 3/3] spi: dw: move to SPI core message handling Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).