linux/drivers/staging/fbtft
Andy Shevchenko 9ed2bfb3e3 staging: fbtft: convert fbtft_reset() to be non-atomic
First of all, fbtft in current state doesn't allow to override GPIOs to be
optional, like "reset" one. It might be a bug somewhere, but rather out of
scope of this fix.

Second, not all GPIOs available on the board would be SoC based, some of them
might sit on I2C GPIO expanders, for example, on Intel Edison/Arduino, and thus
any communication with them might sleep.

Besides that using udelay() and mdelay() is kinda resource wasteful.

Summarize all of the above, convert fbtft_reset() function to non-atomic
variant by using gpio_set_value_cansleep(), usleep_range(), and msleep().

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-19 12:50:27 +01:00
..
fb_agm1264k-fl.c staging: fbtft: fix code alignment with open parenthesis 2017-01-03 16:33:17 +01:00
fb_bd663474.c
fb_hx8340bn.c
fb_hx8347d.c
fb_hx8353d.c
fb_hx8357d.c
fb_hx8357d.h
fb_ili9163.c
fb_ili9320.c Staging: fbtft: fixed unsigned type warnings 2016-08-21 17:52:47 +02:00
fb_ili9325.c Staging:fbtft: Replace decimal permissions with 4 digit octal 2016-10-25 09:50:53 +02:00
fb_ili9340.c
fb_ili9341.c
fb_ili9481.c staging: fbtft: Convert int arrays to s16 2016-10-16 10:26:13 +02:00
fb_ili9486.c staging: fbtft: Convert int arrays to s16 2016-10-16 10:26:13 +02:00
fb_pcd8544.c Staging: fbtft: fixed unsigned type warnings 2016-08-21 17:52:47 +02:00
fb_ra8875.c staging: fbtft: fb_ra8875.c: Remove unneeded void pointer cast 2016-03-11 22:09:09 -08:00
fb_s6d02a1.c staging: fbtft: Convert int arrays to s16 2016-10-16 10:26:13 +02:00
fb_s6d1121.c staging: fbtft: fb_s6d1121.c: Fix checkpatch warning 2016-09-01 18:03:21 +02:00
fb_ssd1289.c staging: fbtft: fb_ssd1289: Fix checkpatch warning 2016-09-01 18:03:21 +02:00
fb_ssd1305.c
fb_ssd1306.c staging: fbtft: fb_ssd1306: Fix checkpatch warning 2016-09-01 18:03:21 +02:00
fb_ssd1325.c
fb_ssd1331.c staging: fbtft: fb_ssd1331: Fix checkpatch warning 2016-09-01 18:03:22 +02:00
fb_ssd1351.c staging: fbtft: add spaces around << 2016-09-16 10:31:18 +02:00
fb_st7735r.c staging: fbtft: Convert int arrays to s16 2016-10-16 10:26:13 +02:00
fb_st7789v.c
fb_tinylcd.c
fb_tls8204.c staging: fbtft: fb_tls8204: Fix checkpatch warning 2016-09-01 18:03:22 +02:00
fb_uc1611.c Staging: fbtft: fixed unsigned type warnings 2016-08-21 17:52:47 +02:00
fb_uc1701.c
fb_upd161704.c
fb_watterott.c Staging: fbtft: fixed unsigned type warnings 2016-08-21 17:52:47 +02:00
fbtft_device.c staging: fbtft: Convert int arrays to s16 2016-10-16 10:26:13 +02:00
fbtft-bus.c staging: fbtft: fbtft-bus: Fix checkpatch warning 2016-09-01 18:03:22 +02:00
fbtft-core.c staging: fbtft: convert fbtft_reset() to be non-atomic 2017-01-19 12:50:27 +01:00
fbtft-io.c Staging: fbtft: fbtft-io: No space is necessary after cast. 2016-03-28 07:30:36 -07:00
fbtft-sysfs.c
fbtft.h staging: fbtft: Convert int arrays to s16 2016-10-16 10:26:13 +02:00
flexfb.c staging: fbtft: replace decimal with 4-digit octal permissions 2017-01-19 10:53:15 +01:00
internal.h
Kconfig
Makefile
README

  FBTFT
=========

Linux Framebuffer drivers for small TFT LCD display modules.
The module 'fbtft' makes writing drivers for some of these displays very easy.

Development is done on a Raspberry Pi running the Raspbian "wheezy" distribution.

INSTALLATION
  Download kernel sources

  From Linux 3.15
    cd drivers/video/fbdev/fbtft
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/fbdev/Kconfig:   source "drivers/video/fbdev/fbtft/Kconfig"
    Add to drivers/video/fbdev/Makefile:  obj-y += fbtft/

  Before Linux 3.15
    cd drivers/video
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/Kconfig:   source "drivers/video/fbtft/Kconfig"
    Add to drivers/video/Makefile:  obj-y += fbtft/

  Enable driver(s) in menuconfig and build the kernel


See wiki for more information: https://github.com/notro/fbtft/wiki


Source: https://github.com/notro/fbtft/