Commit 493362dd authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Borislav Petkov

EDAC/armada_xp: Fix some log messages

Fix spelling (s/Aramda/Armada/) in a log message and in a comment. While
at it, add a trailing '\n' in messages.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarJan Luebbe <jlu@pengutronix.de>
Link: https://lkml.kernel.org/r/20200413041556.3514-1-christophe.jaillet@wanadoo.fr
parent 8f3d9f35
...@@ -78,7 +78,7 @@ struct axp_mc_drvdata { ...@@ -78,7 +78,7 @@ struct axp_mc_drvdata {
char msg[128]; char msg[128];
}; };
/* derived from "DRAM Address Multiplexing" in the ARAMDA XP Functional Spec */ /* derived from "DRAM Address Multiplexing" in the ARMADA XP Functional Spec */
static uint32_t axp_mc_calc_address(struct axp_mc_drvdata *drvdata, static uint32_t axp_mc_calc_address(struct axp_mc_drvdata *drvdata,
uint8_t cs, uint8_t bank, uint16_t row, uint8_t cs, uint8_t bank, uint16_t row,
uint16_t col) uint16_t col)
...@@ -160,12 +160,12 @@ static void axp_mc_check(struct mem_ctl_info *mci) ...@@ -160,12 +160,12 @@ static void axp_mc_check(struct mem_ctl_info *mci)
if (cnt_sbe) if (cnt_sbe)
cnt_sbe--; cnt_sbe--;
else else
dev_warn(mci->pdev, "inconsistent SBE count detected"); dev_warn(mci->pdev, "inconsistent SBE count detected\n");
} else { } else {
if (cnt_dbe) if (cnt_dbe)
cnt_dbe--; cnt_dbe--;
else else
dev_warn(mci->pdev, "inconsistent DBE count detected"); dev_warn(mci->pdev, "inconsistent DBE count detected\n");
} }
/* report earlier errors */ /* report earlier errors */
...@@ -304,7 +304,7 @@ static int axp_mc_probe(struct platform_device *pdev) ...@@ -304,7 +304,7 @@ static int axp_mc_probe(struct platform_device *pdev)
config = readl(base + SDRAM_CONFIG_REG); config = readl(base + SDRAM_CONFIG_REG);
if (!(config & SDRAM_CONFIG_ECC_MASK)) { if (!(config & SDRAM_CONFIG_ECC_MASK)) {
dev_warn(&pdev->dev, "SDRAM ECC is not enabled"); dev_warn(&pdev->dev, "SDRAM ECC is not enabled\n");
return -EINVAL; return -EINVAL;
} }
...@@ -532,9 +532,9 @@ static int aurora_l2_probe(struct platform_device *pdev) ...@@ -532,9 +532,9 @@ static int aurora_l2_probe(struct platform_device *pdev)
l2x0_aux_ctrl = readl(base + L2X0_AUX_CTRL); l2x0_aux_ctrl = readl(base + L2X0_AUX_CTRL);
if (!(l2x0_aux_ctrl & AURORA_ACR_PARITY_EN)) if (!(l2x0_aux_ctrl & AURORA_ACR_PARITY_EN))
dev_warn(&pdev->dev, "tag parity is not enabled"); dev_warn(&pdev->dev, "tag parity is not enabled\n");
if (!(l2x0_aux_ctrl & AURORA_ACR_ECC_EN)) if (!(l2x0_aux_ctrl & AURORA_ACR_ECC_EN))
dev_warn(&pdev->dev, "data ECC is not enabled"); dev_warn(&pdev->dev, "data ECC is not enabled\n");
dci = edac_device_alloc_ctl_info(sizeof(*drvdata), dci = edac_device_alloc_ctl_info(sizeof(*drvdata),
"cpu", 1, "L", 1, 2, NULL, 0, 0); "cpu", 1, "L", 1, 2, NULL, 0, 0);
...@@ -618,7 +618,7 @@ static int __init armada_xp_edac_init(void) ...@@ -618,7 +618,7 @@ static int __init armada_xp_edac_init(void)
res = platform_register_drivers(drivers, ARRAY_SIZE(drivers)); res = platform_register_drivers(drivers, ARRAY_SIZE(drivers));
if (res) if (res)
pr_warn("Aramda XP EDAC drivers fail to register\n"); pr_warn("Armada XP EDAC drivers fail to register\n");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment