Skip to contentSkip to conversation

powerpc/prom_init: remove linux,stdout-package property

PATCH Superseded Murilo Opsfelder Araujo 2 participants 4 messages Jul 12, 2018 – Jul 19, 2018 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/prom_init: remove linux,stdout-package property

This property was added in 2004 by

    https://github.com/mpe/linux-fullhistory/commit/689fe5072fe9a0dec914bfa4fa60aed1e54563e6

and the only use of it, which was already inside #if 0, was removed a month later by

    https://github.com/mpe/linux-fullhistory/commit/1fbe5a6d90f6cd4ea610737ef488719d1a875de7
---
 arch/powerpc/kernel/prom_init.c | 2 --
 1 file changed, 2 deletions(-)
arch/powerpc/kernel/prom_init.c +0 -2
index 5425dd3d6a9f..c45fb463c9e5 100644
@@ -2102,8 +2102,6 @@ static void __init prom_init_stdout(void)
 	stdout_node = call_prom("instance-to-package", 1, 1, prom.stdout);
 	if (stdout_node != PROM_ERROR) {
 		val = cpu_to_be32(stdout_node);
-		prom_setprop(prom.chosen, "/chosen", "linux,stdout-package",
-			     &val, sizeof(val));
 
 		/* If it's a display, note it */
 		memset(type, 0, sizeof(type));
Signature · 1 line
2.17.1
#1 lore raw

Hi Murilo,

Thanks for the patch.

Quoted 10 lines · Murilo Opsfelder Araujo

This property was added in 2004 by

    https://github.com/mpe/linux-fullhistory/commit/689fe5072fe9a0dec914bfa4fa60aed1e54563e6

and the only use of it, which was already inside #if 0, was removed a month later by

    https://github.com/mpe/linux-fullhistory/commit/1fbe5a6d90f6cd4ea610737ef488719d1a875de7

That is going to confuse some scripts that are expecting that to be a "Fixes: <some commit>" tag :)

The proper tag to use there would be "Link:".

But, I'd prefer we didn't add github issue links to the history, as I'm not sure they won't bit-rot eventually. Not because I'm a anti-Microsoft conspiracy person but just because it's a repo I set up and manage and there's no long term plan for it necessarily.

Quoted 3 lines
---
 arch/powerpc/kernel/prom_init.c | 2 --
 1 file changed, 2 deletions(-)

Including the link here would be ideal, as it means it doesn't end up in the commit history, but it does end up in the mail archive. So if we ever really need to find it, it should be there.

cheers

Quoted 15 lines
arch/powerpc/kernel/prom_init.c +0 -2
index 5425dd3d6a9f..c45fb463c9e5 100644
@@ -2102,8 +2102,6 @@ static void __init prom_init_stdout(void)
 	stdout_node = call_prom("instance-to-package", 1, 1, prom.stdout);
 	if (stdout_node != PROM_ERROR) {
 		val = cpu_to_be32(stdout_node);
-		prom_setprop(prom.chosen, "/chosen", "linux,stdout-package",
-			     &val, sizeof(val));
 
 		/* If it's a display, note it */
 		memset(type, 0, sizeof(type));
Signature · 1 line
2.17.1
#2 lore raw
Quoted 30 lines · Michael Ellerman

Hi Murilo,

Thanks for the patch.

Quoted 10 lines · Murilo Opsfelder Araujo

This property was added in 2004 by

    https://github.com/mpe/linux-fullhistory/commit/689fe5072fe9a0dec914bfa4fa60aed1e54563e6

and the only use of it, which was already inside #if 0, was removed a month later by

    https://github.com/mpe/linux-fullhistory/commit/1fbe5a6d90f6cd4ea610737ef488719d1a875de7

That is going to confuse some scripts that are expecting that to be a "Fixes: <some commit>" tag :)

The proper tag to use there would be "Link:".

But, I'd prefer we didn't add github issue links to the history, as I'm not sure they won't bit-rot eventually. Not because I'm a anti-Microsoft conspiracy person but just because it's a repo I set up and manage and there's no long term plan for it necessarily.

Quoted 3 lines
---
 arch/powerpc/kernel/prom_init.c | 2 --
 1 file changed, 2 deletions(-)
Quoted 5 lines

Including the link here would be ideal, as it means it doesn't end up in the commit history, but it does end up in the mail archive. So if we ever really need to find it, it should be there.

cheers

Hi, Michael.

Thanks for reviewing it. I've sent v2 with your suggestions:

    https://lkml.kernel.org/r/[email protected]

Cheers

--
Murilo

#3 lore raw
Quoted 31 lines · Murilo Opsfelder Araujo
Quoted 30 lines · Michael Ellerman
Quoted 10 lines · Murilo Opsfelder Araujo

This property was added in 2004 by

    https://github.com/mpe/linux-fullhistory/commit/689fe5072fe9a0dec914bfa4fa60aed1e54563e6

and the only use of it, which was already inside #if 0, was removed a month later by

    https://github.com/mpe/linux-fullhistory/commit/1fbe5a6d90f6cd4ea610737ef488719d1a875de7

That is going to confuse some scripts that are expecting that to be a "Fixes: <some commit>" tag :)

The proper tag to use there would be "Link:".

But, I'd prefer we didn't add github issue links to the history, as I'm not sure they won't bit-rot eventually. Not because I'm a anti-Microsoft conspiracy person but just because it's a repo I set up and manage and there's no long term plan for it necessarily.

Quoted 3 lines
---
 arch/powerpc/kernel/prom_init.c | 2 --
 1 file changed, 2 deletions(-)

Including the link here would be ideal, as it means it doesn't end up in the commit history, but it does end up in the mail archive. So if we ever really need to find it, it should be there.

Quoted 7 lines
Quoted 1 line

cheers

Hi, Michael.

Thanks for reviewing it. I've sent v2 with your suggestions:

    https://lkml.kernel.org/r/[email protected]

Thanks.

I had actually already applied the first version, but I didn't say that in my email did I :}

So I've rebased and applied your v2, thanks.

cheers