]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0 patches
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 13 Sep 2011 13:32:29 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 13 Sep 2011 13:32:29 +0000 (15:32 +0200)
queue-3.0/mxc-iomux-v3-correct-no_pad_ctrl-definition.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/mxc-iomux-v3-correct-no_pad_ctrl-definition.patch b/queue-3.0/mxc-iomux-v3-correct-no_pad_ctrl-definition.patch
new file mode 100644 (file)
index 0000000..e0ffe58
--- /dev/null
@@ -0,0 +1,46 @@
+From 425933b30b0ccfac58065bca6c853ea627443cdf Mon Sep 17 00:00:00 2001
+From: Troy Kisky <troy.kisky@boundarydevices.com>
+Date: Fri, 24 Jun 2011 10:52:56 -0700
+Subject: MXC: iomux-v3: correct NO_PAD_CTRL definition
+
+From: Troy Kisky <troy.kisky@boundarydevices.com>
+
+commit 425933b30b0ccfac58065bca6c853ea627443cdf upstream.
+
+iomux-v3.c uses NO_PAD_CTRL as a 32 bit value
+so it should not be shifted left by MUX_PAD_CTRL_SHIFT(41)
+
+Previously, anything requesting NO_PAD_CTRL would get
+their pad control register set to 0.
+
+Since it is a pad control mask, place it with the other mask values.
+
+Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
+Acked-by: Lothar Waßmann <LW@KARO-electronics.de>
+Tested-by: Lothar Waßmann <LW@KARO-electronics.de>
+Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
+Cc: John Ogness <john.ogness@linutronix.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+ arch/arm/plat-mxc/include/mach/iomux-v3.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/arm/plat-mxc/include/mach/iomux-v3.h
++++ b/arch/arm/plat-mxc/include/mach/iomux-v3.h
+@@ -66,7 +66,6 @@ typedef u64 iomux_v3_cfg_t;
+ #define MUX_MODE_MASK         ((iomux_v3_cfg_t)0x1f << MUX_MODE_SHIFT)
+ #define MUX_PAD_CTRL_SHIFT    41
+ #define MUX_PAD_CTRL_MASK     ((iomux_v3_cfg_t)0x1ffff << MUX_PAD_CTRL_SHIFT)
+-#define NO_PAD_CTRL           ((iomux_v3_cfg_t)1 << (MUX_PAD_CTRL_SHIFT + 16))
+ #define MUX_SEL_INPUT_SHIFT   58
+ #define MUX_SEL_INPUT_MASK    ((iomux_v3_cfg_t)0xf << MUX_SEL_INPUT_SHIFT)
+@@ -85,6 +84,7 @@ typedef u64 iomux_v3_cfg_t;
+  * Use to set PAD control
+  */
++#define NO_PAD_CTRL                   (1 << 16)
+ #define PAD_CTL_DVS                   (1 << 13)
+ #define PAD_CTL_HYS                   (1 << 8)
index c831516acf35515ed1aef72b753a03bb46f4bbe2..e72eb760e46dd53ced62ce216104e77d99503868 100644 (file)
@@ -53,3 +53,4 @@ drm-radeon-kms-make-sure-pci-max-read-request-size-is-valid-on-evergreen-v2.patc
 mm-page-allocator-initialise-zlc-for-first-zone-eligible-for-zone_reclaim.patch
 mm-page-allocator-reconsider-zones-for-allocation-after-direct-reclaim.patch
 igb-fix-wol-on-second-port-of-i350-device.patch
+mxc-iomux-v3-correct-no_pad_ctrl-definition.patch