linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: l2c: Improve l2c310_of_parse() error message
@ 2014-10-29 11:28 Fabio Estevam
  2014-10-29 11:30 ` Russell King - ARM Linux
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2014-10-29 11:28 UTC (permalink / raw)
  To: linux-arm-kernel

From: Fabio Estevam <fabio.estevam@freescale.com>

Russell King suggested [1]:

"I'd ask for one change.  Please make all these messages start with
"L2C-310 OF" not "PL310 OF:".  The device is described in ARM
documentation as a L2C-310 not PL310.  (Also note the : is dropped
too - most of the other messages don't have the : either.)

The:

"PL310 OF: cache setting yield illegal associativity
PL310 OF: -1073346556 calculated, only 8 and 16 legal"

message could also be changed to something like:

"L2C-310 OF cache associativity %d invalid, only 8 or 16 permitted\n" "

[1] http://www.spinics.net/lists/arm-kernel/msg372776.html

Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mm/cache-l2x0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 4a785fc..2fb4742 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -1174,8 +1174,7 @@ static void __init l2c310_of_parse(const struct device_node *np,
 		*aux_mask &= ~L2X0_AUX_CTRL_ASSOC_MASK;
 		break;
 	default:
-		pr_err("PL310 OF: cache setting yield illegal associativity\n");
-		pr_err("PL310 OF: %d calculated, only 8 and 16 legal\n", assoc);
+		pr_err("L2C-310 OF cache associativity %d invalid, only 8 or 16 permitted\n", assoc);
 		break;
 	}
 }
-- 
1.9.1

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

* [PATCH] ARM: l2c: Improve l2c310_of_parse() error message
  2014-10-29 11:28 [PATCH] ARM: l2c: Improve l2c310_of_parse() error message Fabio Estevam
@ 2014-10-29 11:30 ` Russell King - ARM Linux
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2014-10-29 11:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Oct 29, 2014 at 09:28:32AM -0200, Fabio Estevam wrote:
> -		pr_err("PL310 OF: cache setting yield illegal associativity\n");
> -		pr_err("PL310 OF: %d calculated, only 8 and 16 legal\n", assoc);
> +		pr_err("L2C-310 OF cache associativity %d invalid, only 8 or 16 permitted\n", assoc);

Almost, but that'll upset the checkpatch brigade.  Best move the " assoc);"
onto the next line. :)

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

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

end of thread, other threads:[~2014-10-29 11:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 11:28 [PATCH] ARM: l2c: Improve l2c310_of_parse() error message Fabio Estevam
2014-10-29 11:30 ` Russell King - ARM Linux

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