Skip to contentSkip to conversation

ARM: l2c: Improve l2c310_of_parse() error message

PATCH Superseded Fabio Estevam 2 participants 2 messages Oct 29, 2014 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: l2c: Improve l2c310_of_parse() error message

From: Fabio Estevam <[email protected]>

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

---
 arch/arm/mm/cache-l2x0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mm/cache-l2x0.c +1 -2
index 4a785fc..2fb4742 100644
@@ -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;
 	}
 }
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARM: l2c: Improve l2c310_of_parse() error message

arch/arm/mm/cache-l2x0.c static void __init l2c310_of_parse(const struct device_node *np, · line 1177

Quoted 3 lines · Fabio Estevam
arch/arm/mm/cache-l2x0.c +1 -2
-		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. :)

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