summaryrefslogtreecommitdiff
path: root/packages/linux/linux-2.6.21/mmc-card-detect.patch
diff options
context:
space:
mode:
authorOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2007-10-18 19:29:43 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2007-10-18 19:29:43 +0000
commit1010441880aee280580534f0fb0a68e4a98eb375 (patch)
tree58800c7dbb1b770ab67a02fa08d9767f6fc9471c /packages/linux/linux-2.6.21/mmc-card-detect.patch
parent7bcfa6ab969ca61e3bcde9eee3240f32f578d1e5 (diff)
parentfdb7f09ca89562f586e1d9a6235e6a72da1ff77b (diff)
merge of '947287d07500dfb42d1f2f6b23d0bcd2ed00c920'
and 'da91d7ddb56154d2bd01a37943cd55b4ba49ac8a'
Diffstat (limited to 'packages/linux/linux-2.6.21/mmc-card-detect.patch')
-rw-r--r--packages/linux/linux-2.6.21/mmc-card-detect.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/linux/linux-2.6.21/mmc-card-detect.patch b/packages/linux/linux-2.6.21/mmc-card-detect.patch
index 9a853b4df8..26dd970e3b 100644
--- a/packages/linux/linux-2.6.21/mmc-card-detect.patch
+++ b/packages/linux/linux-2.6.21/mmc-card-detect.patch
@@ -2,7 +2,7 @@ Index: linux-2.6.21gum/arch/arm/mach-pxa/gumstix.c
===================================================================
--- linux-2.6.21gum.orig/arch/arm/mach-pxa/gumstix.c
+++ linux-2.6.21gum/arch/arm/mach-pxa/gumstix.c
-@@ -29,19 +29,51 @@
+@@ -29,19 +29,55 @@
#include "generic.h"
@@ -38,9 +38,13 @@ Index: linux-2.6.21gum/arch/arm/mach-pxa/gumstix.c
+static int gumstix_mci_get_ro(struct device *dev)
+{
++#ifdef CONFIG_ARCH_GUMSTIX_VERDEX
++ return 0; // microSD is always writable on verdex
++#else
+ int ro;
+ ro = GPLR(GUMSTIX_GPIO_nSD_WP) & GPIO_bit(GUMSTIX_GPIO_nSD_WP);
+ return ro;
++#endif
+}
+
+static void gumstix_mci_exit(struct device *dev, void *data)