linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pxa: Remove unused MFP LPM definition
@ 2010-04-27  2:46 David Hunter
  2010-04-27  3:16 ` Eric Miao
  0 siblings, 1 reply; 6+ messages in thread
From: David Hunter @ 2010-04-27  2:46 UTC (permalink / raw)
  To: linux-arm-kernel

MFP_LPM_INPUT snuck in some time ago as part of "[PATCH] pxa: better
MFP low power state support for pxa25x/pxa27x", but went unused in the
final revision of said patch. Using it on PXA3xx would cause an
out-of-bounds access of mfpr_table[]. Let's remove it before someone
gets hurt.

Signed-off-by: David Hunter <hunterd42@gmail.com>
---
  arch/arm/plat-pxa/include/plat/mfp.h |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-pxa/include/plat/mfp.h 
b/arch/arm/plat-pxa/include/plat/mfp.h
index 857a683..c5d24e9 100644
--- a/arch/arm/plat-pxa/include/plat/mfp.h
+++ b/arch/arm/plat-pxa/include/plat/mfp.h
@@ -378,7 +378,6 @@ typedef unsigned long mfp_cfg_t;
  #define MFP_LPM_PULL_LOW       (0x3 << 16)
  #define MFP_LPM_PULL_HIGH      (0x4 << 16)
  #define MFP_LPM_FLOAT          (0x5 << 16)
-#define MFP_LPM_INPUT          (0x6 << 16)
  #define MFP_LPM_STATE_MASK     (0x7 << 16)
  #define MFP_LPM_STATE(x)       (((x) >> 16) & 0x7)

--
1.6.0.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [PATCH] pxa: Remove unused MFP LPM definition
@ 2010-04-08 22:00 David Hunter
  0 siblings, 0 replies; 6+ messages in thread
From: David Hunter @ 2010-04-08 22:00 UTC (permalink / raw)
  To: linux-arm-kernel

MFP_LPM_INPUT snuck in some time ago as part of "[PATCH] pxa: better
MFP low power state support for pxa25x/pxa27x", but went unused in the
final revision of said patch. Using it on PXA3xx would cause an
out-of-bounds access of mfpr_table[]. Let's remove it before someone
gets hurt.

Signed-off-by: David Hunter <hunterd42@gmail.com>
---
  arch/arm/plat-pxa/include/plat/mfp.h |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-pxa/include/plat/mfp.h 
b/arch/arm/plat-pxa/include/plat/mfp.h
index 857a683..c5d24e9 100644
--- a/arch/arm/plat-pxa/include/plat/mfp.h
+++ b/arch/arm/plat-pxa/include/plat/mfp.h
@@ -378,7 +378,6 @@ typedef unsigned long mfp_cfg_t;
  #define MFP_LPM_PULL_LOW       (0x3 << 16)
  #define MFP_LPM_PULL_HIGH      (0x4 << 16)
  #define MFP_LPM_FLOAT          (0x5 << 16)
-#define MFP_LPM_INPUT          (0x6 << 16)
  #define MFP_LPM_STATE_MASK     (0x7 << 16)
  #define MFP_LPM_STATE(x)       (((x) >> 16) & 0x7)

--
1.6.0.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-05  0:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27  2:46 [PATCH] pxa: Remove unused MFP LPM definition David Hunter
2010-04-27  3:16 ` Eric Miao
2010-05-04 22:18   ` David Hunter
2010-05-05  0:23     ` Eric Miao
2010-05-05  0:41       ` Marek Vasut
  -- strict thread matches above, loose matches on Subject: below --
2010-04-08 22:00 David Hunter

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