All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: l2c: squelch warning dump on power control setting
@ 2014-06-17 10:34 ` Sekhar Nori
  0 siblings, 0 replies; 48+ messages in thread
From: Sekhar Nori @ 2014-06-17 10:34 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Russell King, Linux OMAP Mailing List, Linux ARM Mailing List,
	Nishanth Menon, Sekhar Nori

ROM code on AM437x does not support writing to L2C-310 power control
register. The L2C driver, however, tries writing to this register for
all revisions >= r3p0.

This leads to a warning dump on boot which leads most users to believe
that L2 cache is non-functional.

Since the problem is understood, and cannot be addressed through software,
replace the warning with a pr_info() while maintaining the WARN_ON() for
other truly unexpected scenarios.

Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 arch/arm/mach-omap2/omap4-common.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
index 326cd98..9139729 100644
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -188,6 +188,10 @@ static void omap4_l2c310_write_sec(unsigned long val, unsigned reg)
 		smc_op = OMAP4_MON_L2X0_PREFETCH_INDEX;
 		break;
 
+	case L310_POWER_CTRL:
+		pr_info_once("OMAP L2C310: ROM does not support power control setting\n");
+		return;
+
 	default:
 		WARN_ONCE(1, "OMAP L2C310: ignoring write to reg 0x%x\n", reg);
 		return;
-- 
1.7.10.1


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

end of thread, other threads:[~2014-07-14 10:46 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 10:34 [PATCH] ARM: OMAP2+: l2c: squelch warning dump on power control setting Sekhar Nori
2014-06-17 10:34 ` Sekhar Nori
2014-06-17 13:19 ` Felipe Balbi
2014-06-17 13:19   ` Felipe Balbi
2014-07-01 19:47   ` Felipe Balbi
2014-07-01 19:47     ` Felipe Balbi
2014-07-02  8:11     ` Tony Lindgren
2014-07-02  8:11       ` Tony Lindgren
2014-07-07 10:47       ` Tony Lindgren
2014-07-07 10:47         ` Tony Lindgren
2014-07-07 10:49         ` Russell King - ARM Linux
2014-07-07 10:49           ` Russell King - ARM Linux
2014-07-07 11:02           ` Tony Lindgren
2014-07-07 11:02             ` Tony Lindgren
2014-07-07 11:50             ` Sekhar Nori
2014-07-07 11:50               ` Sekhar Nori
2014-07-07 12:15               ` Russell King - ARM Linux
2014-07-07 12:15                 ` Russell King - ARM Linux
2014-07-07 12:39                 ` Tony Lindgren
2014-07-07 12:39                   ` Tony Lindgren
2014-07-07 13:40                   ` Russell King - ARM Linux
2014-07-07 13:40                     ` Russell King - ARM Linux
2014-07-07 15:10                     ` Felipe Balbi
2014-07-07 15:10                       ` Felipe Balbi
2014-07-08  4:54                       ` Sekhar Nori
2014-07-08  4:54                         ` Sekhar Nori
2014-07-08  8:29                         ` Tony Lindgren
2014-07-08  8:29                           ` Tony Lindgren
2014-07-09  9:25                           ` Tony Lindgren
2014-07-09  9:25                             ` Tony Lindgren
2014-07-09 12:26                             ` Sekhar Nori
2014-07-09 12:26                               ` Sekhar Nori
2014-07-09 12:31                               ` Tony Lindgren
2014-07-09 12:31                                 ` Tony Lindgren
2014-07-09 12:39                               ` Russell King - ARM Linux
2014-07-09 12:39                                 ` Russell King - ARM Linux
2014-07-09 14:15                                 ` Santosh Shilimkar
2014-07-09 14:15                                   ` Santosh Shilimkar
2014-07-14 10:46                                   ` Sekhar Nori
2014-07-14 10:46                                     ` Sekhar Nori
2014-07-09 13:55                               ` Felipe Balbi
2014-07-09 13:55                                 ` Felipe Balbi
2014-07-14 10:41                                 ` Sekhar Nori
2014-07-14 10:41                                   ` Sekhar Nori
2014-07-09 13:51                             ` Felipe Balbi
2014-07-09 13:51                               ` Felipe Balbi
2014-07-09 14:06                     ` Santosh Shilimkar
2014-07-09 14:06                       ` Santosh Shilimkar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.