All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] spi: dw: Reintroduce optional 16 bit data register I/O
@ 2015-06-19  8:43 ` Michael van der Westhuizen
  0 siblings, 0 replies; 41+ messages in thread
From: Michael van der Westhuizen @ 2015-06-19  8:43 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Steffen Trumtrar, Thor Thayer, Andy Shevchenko, Mark Brown,
	Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	Michael van der Westhuizen

The commit dd11444327ce ("spi: dw-spi: Convert 16bit accesses to 32bit
accesses") globally changed all register access in the dw_apb_ssi driver
to 32 bit access, which breaks data register (FIFO) access on picoXcell
platforms.

This series introduces a boolean to the core spi-dw driver to indicate
to the core that 16 bit data register access is appropriate, implements
the code that respects that flag and updates the dw-spi-mmio driver to
allow setting this boolean from the device tree.

A binding documentation fix is included in this series.

Prior to applying this change the following error presents on
a picoCell pc3x3 platform:
  spi_master spi32766: interrupt_transfer: fifo overrun/underrun
  m25p80 spi32766.0: error -5 reading 9f
  m25p80: probe of spi32766.0 failed with error -5

With this series applied:
  m25p80 spi32766.0: m25p40 (512 Kbytes)

Michael van der Westhuizen (2):
  dt: snps,dw-apb-ssi: Describe 16 bit data register usage limitations
  spi: dw: Allow interface drivers to limit data I/O to word sizes

 Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt |  3 +++
 drivers/spi/spi-dw-mmio.c                                 |  5 +++++
 drivers/spi/spi-dw.c                                      | 13 +++++++++++--
 drivers/spi/spi-dw.h                                      | 11 +++++++++++
 4 files changed, 30 insertions(+), 2 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] 41+ messages in thread

end of thread, other threads:[~2015-08-18 10:36 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19  8:43 [PATCH 0/2] spi: dw: Reintroduce optional 16 bit data register I/O Michael van der Westhuizen
2015-06-19  8:43 ` Michael van der Westhuizen
     [not found] ` <1434703435-25198-1-git-send-email-michael-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-06-19  8:43   ` [PATCH 2/2] dt: snps,dw-apb-ssi: Describe 16 bit data register usage limitations Michael van der Westhuizen
2015-06-19  8:43     ` [PATCH 2/2] dt: snps, dw-apb-ssi: " Michael van der Westhuizen
2015-06-19  8:43   ` [PATCH 1/2] spi: dw: Allow interface drivers to limit data I/O to word sizes Michael van der Westhuizen
2015-06-19  8:43     ` Michael van der Westhuizen
     [not found]     ` <1434703435-25198-3-git-send-email-michael-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-06-24 11:57       ` Andy Shevchenko
2015-06-24 11:57         ` Andy Shevchenko
2015-06-24 16:11         ` Michael van der Westhuizen
2015-06-24 16:34   ` [PATCH v2 0/2] spi: dw: Reintroduce optional 16 bit data register I/O Michael van der Westhuizen
2015-06-24 16:34     ` Michael van der Westhuizen
     [not found]     ` <1435163696-14767-1-git-send-email-michael-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-06-24 16:34       ` [PATCH v2 1/2] dt: snps,dw-apb-ssi: Document new I/O data register width property Michael van der Westhuizen
2015-06-24 16:34         ` [PATCH v2 1/2] dt: snps, dw-apb-ssi: " Michael van der Westhuizen
2015-06-24 16:34       ` [PATCH v2 2/2] spi: dw: Allow interface drivers to limit data I/O to word sizes Michael van der Westhuizen
2015-06-24 16:34         ` Michael van der Westhuizen
     [not found]         ` <1435163696-14767-3-git-send-email-michael-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-06-25 14:41           ` Andy Shevchenko
2015-06-25 14:41             ` Andy Shevchenko
2015-07-24 15:30       ` [PATCH v2 0/2] spi: dw: Reintroduce optional 16 bit data register I/O Andy Shevchenko
2015-07-24 15:30         ` Andy Shevchenko
     [not found]         ` <1437751812.29746.74.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-07-24 15:37           ` Mark Brown
2015-07-24 15:37             ` Mark Brown
     [not found]             ` <20150724153704.GM11162-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-07-27 10:58               ` Andy Shevchenko
2015-07-27 10:58                 ` Andy Shevchenko
     [not found]                 ` <1437994691.29746.80.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-07-27 11:19                   ` Mark Brown
2015-07-27 11:19                     ` Mark Brown
     [not found]                     ` <20150727111944.GW11162-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-07-27 11:38                       ` Michael van der Westhuizen
2015-07-27 11:38                         ` Michael van der Westhuizen
     [not found]                         ` <CCC70BC0-E1D0-4C27-A44D-2D16ED9B3049-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-07-27 13:59                           ` Mark Brown
2015-07-27 13:59                             ` Mark Brown
     [not found]                             ` <20150727135915.GY11162-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-08-18 10:29                               ` Andy Shevchenko
2015-08-18 10:29                                 ` Andy Shevchenko
2015-07-27 11:37       ` [RESEND PATCH " Michael van der Westhuizen
2015-07-27 11:37         ` Michael van der Westhuizen
     [not found]         ` <1437997035-3046-1-git-send-email-michael-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-07-27 11:37           ` [RESEND PATCH v2 1/2] dt: snps,dw-apb-ssi: Document new I/O data register width property Michael van der Westhuizen
2015-07-27 11:37             ` [RESEND PATCH v2 1/2] dt: snps, dw-apb-ssi: " Michael van der Westhuizen
     [not found]             ` <1437997035-3046-2-git-send-email-michael-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-07-27 13:35               ` [RESEND PATCH v2 1/2] dt: snps,dw-apb-ssi: " Rob Herring
2015-07-27 13:35                 ` [RESEND PATCH v2 1/2] dt: snps, dw-apb-ssi: " Rob Herring
2015-07-27 11:37           ` [RESEND PATCH v2 2/2] spi: dw: Allow interface drivers to limit data I/O to word sizes Michael van der Westhuizen
2015-07-27 11:37             ` Michael van der Westhuizen
     [not found]             ` <1437997035-3046-3-git-send-email-michael-XrNoQAPr3WXM9gW82pYGhQ@public.gmane.org>
2015-08-18 10:36               ` Andy Shevchenko
2015-08-18 10:36                 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.