summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.26/1119-fix-gta01-spi-resume-patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-13 01:54:56 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-13 01:54:56 +0000
commitc931b21161bf3d8a8cab193045b7deb52f914fb2 (patch)
tree6f4c70017b90c8dddb4845ce8a363d61268e016d /target/linux/s3c24xx/patches-2.6.26/1119-fix-gta01-spi-resume-patch.patch
parent738e5ca558af0a32073576d9a361d0b5e6383e8e (diff)
downloadmtk-20170518-c931b21161bf3d8a8cab193045b7deb52f914fb2.zip
mtk-20170518-c931b21161bf3d8a8cab193045b7deb52f914fb2.tar.gz
mtk-20170518-c931b21161bf3d8a8cab193045b7deb52f914fb2.tar.bz2
change prefix for kernelpatchbase 2.6.26
SVN-Revision: 13619
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/1119-fix-gta01-spi-resume-patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches-2.6.26/1119-fix-gta01-spi-resume-patch.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/1119-fix-gta01-spi-resume-patch.patch b/target/linux/s3c24xx/patches-2.6.26/1119-fix-gta01-spi-resume-patch.patch
new file mode 100755
index 0000000..4b4205c
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.26/1119-fix-gta01-spi-resume-patch.patch
@@ -0,0 +1,44 @@
+From 6491a55deecc0ca16e86cc1c2edf76b72b4432d8 Mon Sep 17 00:00:00 2001
+From: Mike Wester <mwester@dis.net>
+Date: Fri, 25 Jul 2008 23:06:06 +0100
+Subject: [PATCH] fix-gta01-spi-resume-patch
+
+Patch to register the SPI device and thus the save/resume for the display
+
+This patch does *NOT* resolve this problem, but it does make things a bit
+better. The SPI device name changed with 2.6.24, and the change was made for
+the gta02 but never propagated to the gta01. With this change, you'll now see
+the entries for the spi bus and the display controller in /sys; and the display
+controller suspend/resume functions will be called.
+
+(via BZ 79)
+
+Signed-off-by: Mike Wester <mwester@dis.net>
+---
+ arch/arm/mach-s3c2410/mach-gta01.c | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/arch/arm/mach-s3c2410/mach-gta01.c b/arch/arm/mach-s3c2410/mach-gta01.c
+index a4384b6..ff08449 100644
+--- a/arch/arm/mach-s3c2410/mach-gta01.c
++++ b/arch/arm/mach-s3c2410/mach-gta01.c
+@@ -530,6 +530,7 @@ static struct s3c2410_spigpio_info spi_gpio_cfg = {
+ .board_size = ARRAY_SIZE(gta01_spi_board_info),
+ .board_info = gta01_spi_board_info,
+ .chip_select = &spi_gpio_cs,
++ .num_chipselect = 2, /*** Should be 1 or 2 for gta01? ***/
+ };
+
+ static struct resource s3c_spi_lcm_resource[] = {
+@@ -552,7 +553,7 @@ static struct resource s3c_spi_lcm_resource[] = {
+ };
+
+ struct platform_device s3c_device_spi_lcm = {
+- .name = "s3c24xx-spi-gpio",
++ .name = "spi_s3c24xx_gpio",
+ .id = 1,
+ .num_resources = ARRAY_SIZE(s3c_spi_lcm_resource),
+ .resource = s3c_spi_lcm_resource,
+--
+1.5.6.3
+