Skip to contentSkip to conversation

ARM: mvebu: remove two selects of ARM_ERRATA_753970

PATCH In review Paul Bolle 4 participants 6 messages Jan 19, 2015 – Jan 21, 2015

Subsystems (4)
lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

PATCH v4 1/1 ARM: mvebu: remove two selects of ARM_ERRATA_753970

ARM_ERRATA_753970 was renamed to PL310_ERRATA_753970 in v3.2, through commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for PL310 errata workarounds"). Still, two selects were added in v3.15 that used the previous name. So these selects have always been nops.

It is clear that the intention here was to select PL310_ERRATA_753970. But as, apparently, nothing broke for four releases we can assume PL310_ERRATA_753970 isn't actually needed. So let's not rename these two selects but just drop them instead.

---
v4: Do no bother anymore to rename these selects. I've tried to do that a few times ever since v3.15-rc1 was released. Last time, v3, was in
https://lkml.org/lkml/2014/9/12/231 . And since the people who intruduced this issue apparently aren't bothered by it, neither should I. So just do the safe and easy thing, which is removing these two selects, as they are nops now.

Done on top of next-20150119.

 arch/arm/mach-mvebu/Kconfig | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-mvebu/Kconfig +0 -2
index c1e4567a5ab3..e8e5fa25121c 100644
@@ -37,7 +37,6 @@ config MACH_ARMADA_370
 config MACH_ARMADA_375
 	bool "Marvell Armada 375 boards" if ARCH_MULTI_V7
 	select ARM_ERRATA_720789
-	select ARM_ERRATA_753970
 	select ARM_GIC
 	select ARMADA_375_CLK
 	select HAVE_ARM_SCU
@@ -52,7 +51,6 @@ config MACH_ARMADA_375
 config MACH_ARMADA_38X
 	bool "Marvell Armada 380/385 boards" if ARCH_MULTI_V7
 	select ARM_ERRATA_720789
-	select ARM_ERRATA_753970
 	select ARM_GIC
 	select ARMADA_38X_CLK
 	select HAVE_ARM_SCU
Signature · 1 line
1.9.3
author
#1 lore raw

Andy, Joe,

Quoted 11 lines · Paul Bolle

ARM_ERRATA_753970 was renamed to PL310_ERRATA_753970 in v3.2, through commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for PL310 errata workarounds"). Still, two selects were added in v3.15 that used the previous name. So these selects have always been nops.

It is clear that the intention here was to select PL310_ERRATA_753970. But as, apparently, nothing broke for four releases we can assume PL310_ERRATA_753970 isn't actually needed. So let's not rename these two selects but just drop them instead.

Checkpatch in next-21050119 complains:
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for PL310 errata workarounds")' #7:
commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for

total: 1 errors, 0 warnings, 14 lines checked

Your patch has style problems, please review.

Perhaps it doesn't notice the quote spans two lines. Can this be fixed please?

Thanks,

Paul Bolle

maintainer
#2 lore raw

PATCH 1/1 checkpatch: Add ability to coalesce commit descriptions on multiple lines

If a git commit description is split on consecutive lines, coalesce it before testing.

This allows:

commit <foo> ("some long
description")

---

Quoted 11 lines

Checkpatch in next-21050119 complains:
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for PL310 errata workarounds")' #7:
commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for

total: 1 errors, 0 warnings, 14 lines checked

Your patch has style problems, please review.

Perhaps it doesn't notice the quote spans two lines. Can this be fixed please?

Oh bother...

 scripts/checkpatch.pl | 7 +++++++
 1 file changed, 7 insertions(+)
scripts/checkpatch.pl +7 -0
index 41223c9..6a3baa0 100755
@@ -2198,6 +2198,13 @@ sub process {
 				 defined $rawlines[$linenr] &&
 				 $rawlines[$linenr] =~ /^\s*\("([^"]+)"\)/) {
 				$orig_desc = $1;
+			} elsif ($line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("[^"]+$/i &&
+				 defined $rawlines[$linenr] &&
+				 $rawlines[$linenr] =~ /^\s*[^"]+"\)/) {
+				$line =~ /\bcommit\s+[0-9a-f]{5,}\s+\("([^"]+)$/i;
+				$orig_desc = $1;
+				$rawlines[$linenr] =~ /^\s*([^"]+)"\)/;
+				$orig_desc .= " " . $1;
 			}
 
 			($id, $description) = git_commit_info($orig_commit,
author
#3 lore raw

Re: [PATCH] checkpatch: Add ability to coalesce commit descriptions on multiple lines

Joe, Andrew,

Quoted 10 lines · Joe Perches

If a git commit description is split on consecutive lines, coalesce it before testing.

This allows:

commit <foo> ("some long
description")

Works as advertised (ie, that particular commit explanation doesn't trigger an error anymore). And Andrew M. already added it to the -mm tree.

Thanks, both of you!

Paul Bolle

#4 lore raw
In reply to Paul Bolle
Quoted 10 lines · Paul Bolle

ARM_ERRATA_753970 was renamed to PL310_ERRATA_753970 in v3.2, through commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for PL310 errata workarounds"). Still, two selects were added in v3.15 that used the previous name. So these selects have always been nops.

It is clear that the intention here was to select PL310_ERRATA_753970. But as, apparently, nothing broke for four releases we can assume PL310_ERRATA_753970 isn't actually needed. So let's not rename these two selects but just drop them instead.

Quoted 8 lines

---
v4: Do no bother anymore to rename these selects. I've tried to do that a few times ever since v3.15-rc1 was released. Last time, v3, was in
https://lkml.org/lkml/2014/9/12/231 . And since the people who intruduced this issue apparently aren't bothered by it, neither should I. So just do the safe and easy thing, which is removing these two selects, as they are nops now.

It's really for those who introduced these select statements to decide what they want to do about them - but in principle, I'd agree with you.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
#5 lore raw
In reply to Paul Bolle

Hi Paul,

Quoted 19 lines · Paul Bolle

ARM_ERRATA_753970 was renamed to PL310_ERRATA_753970 in v3.2, through commit fa0ce4035d48 ("ARM: 7162/1: errata: tidy up Kconfig options for PL310 errata workarounds"). Still, two selects were added in v3.15 that used the previous name. So these selects have always been nops.

It is clear that the intention here was to select PL310_ERRATA_753970. But as, apparently, nothing broke for four releases we can assume PL310_ERRATA_753970 isn't actually needed. So let's not rename these two selects but just drop them instead.

---
v4: Do no bother anymore to rename these selects. I've tried to do that a few times ever since v3.15-rc1 was released. Last time, v3, was in
https://lkml.org/lkml/2014/9/12/231 . And since the people who intruduced this issue apparently aren't bothered by it, neither should I. So just do the safe and easy thing, which is removing these two selects, as they are nops now.

Quoted 1 line

Done on top of next-20150119.

I think you're right, however I am still going to ask the hardware designers if we need PL310_ERRATA_753970.

Thanks,

Gregory

Quoted 25 lines
 arch/arm/mach-mvebu/Kconfig | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-mvebu/Kconfig +0 -2
index c1e4567a5ab3..e8e5fa25121c 100644
@@ -37,7 +37,6 @@ config MACH_ARMADA_370
 config MACH_ARMADA_375
 	bool "Marvell Armada 375 boards" if ARCH_MULTI_V7
 	select ARM_ERRATA_720789
-	select ARM_ERRATA_753970
 	select ARM_GIC
 	select ARMADA_375_CLK
 	select HAVE_ARM_SCU
@@ -52,7 +51,6 @@ config MACH_ARMADA_375
 config MACH_ARMADA_38X
 	bool "Marvell Armada 380/385 boards" if ARCH_MULTI_V7
 	select ARM_ERRATA_720789
-	select ARM_ERRATA_753970
 	select ARM_GIC
 	select ARMADA_38X_CLK
 	select HAVE_ARM_SCU
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com