linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 RESEND] Fix displays requiring 9 bit transfers on RPi
@ 2015-08-23 14:06 Stefan Brüns
  0 siblings, 0 replies; only message in thread
From: Stefan Brüns @ 2015-08-23 14:06 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA
  Cc: Mark Brown, Noralf Trønnes, Stefan Brüns

Some displays need 9 bit long SPI transfers (Command/Data flag plus
8 bit data). FBTFT has emulation code in case the controller only
supports 8 bit transfers, but this is only used if the controller
setup function report an error if bits_per_word is set to 9.

Report unsupported bits_per_word settings in spi_setup Currently the
SPI core only checks bits_per_word on transfer, but not on setup.

Replace invocations of master->setup(...) with spi_setup(...).

Tested on RPi B with an Ilitek9341 based TFT display in 9 bit mode.

Stefan Brüns (2):
  spi: check bits_per_word in spi_setup
  staging/fbtft: use spi_setup instead of direct call to master->setup

 drivers/spi/spi.c                    | 27 +++++++++++++++++++--------
 drivers/staging/fbtft/fb_watterott.c |  4 ++--
 drivers/staging/fbtft/fbtft-core.c   |  4 ++--
 drivers/staging/fbtft/flexfb.c       |  4 ++--
 4 files changed, 25 insertions(+), 14 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] only message in thread

only message in thread, other threads:[~2015-08-23 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-23 14:06 [PATCH 0/2 RESEND] Fix displays requiring 9 bit transfers on RPi Stefan Brüns

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).