Eval boards should not need to mess with ROOT_DEV
Subsystems (3)
PATCH 1/1 Eval boards should not need to mess with ROOT_DEV
From: Grant Likely <[email protected]>
I can't see a good reason for eval board platform code to mess with the ROOT_DEV value instead of using the default behaviour (so I'm writing this patch to see if anyone will clue me in).
---
arch/powerpc/platforms/52xx/efika.c | 9 --------- arch/powerpc/platforms/52xx/lite5200.c | 12 ------------ arch/powerpc/platforms/82xx/mpc82xx_ads.c | 6 ------ arch/powerpc/platforms/8xx/mpc86xads_setup.c | 2 -- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 2 -- arch/powerpc/platforms/chrp/setup.c | 10 ---------- 6 files changed, 0 insertions(+), 41 deletions(-)
arch/powerpc/platforms/52xx/efika.c +0 -9
@@ -197,15 +197,6 @@ static void __init efika_setup_arch(void) {rtas_initialize (); -#ifdef CONFIG_BLK_DEV_INITRD - initrd_below_start_ok =1 ; - -if (initrd_start) -ROOT_DEV = Root_RAM0; - else -#endif -ROOT_DEV = Root_SDA2;/* sda2 (sda1 is for the kernel) */ -efika_pcisetup ();#ifdef CONFIG_PM
arch/powerpc/platforms/52xx/lite5200.c +0 -12
@@ -136,18 +136,6 @@ static void __init lite5200_setup_arch(void) of_node_put(np); }#endif - -#ifdef CONFIG_BLK_DEV_INITRD -if (initrd_start) -ROOT_DEV = Root_RAM0; - else -#endif -#ifdef CONFIG_ROOT_NFS -ROOT_DEV = Root_NFS; -#else -ROOT_DEV = Root_HDA1; -#endif - }static void lite5200_show_cpuinfo (struct seq_file *m)
arch/powerpc/platforms/82xx/mpc82xx_ads.c +0 -6
@@ -575,12 +575,6 @@ static void __init mpc82xx_ads_setup_arch(void)of_node_put (np);#endif -#ifdef CONFIG_ROOT_NFS -ROOT_DEV = Root_NFS; -#else -ROOT_DEV = Root_HDA1; -#endif -if (ppc_md.progress) ppc_md.progress ("mpc82xx_ads_setup_arch(), finish" ,0 ); }
arch/powerpc/platforms/8xx/mpc86xads_setup.c +0 -2
@@ -256,8 +256,6 @@ static void __init mpc86xads_setup_arch(void)cpm_reset ();mpc86xads_board_setup (); - -ROOT_DEV = Root_NFS; }static int __init mpc86xads_probe (void )
arch/powerpc/platforms/8xx/mpc885ads_setup.c +0 -2
@@ -408,8 +408,6 @@ static void __init mpc885ads_setup_arch(void)cpm_reset ();mpc885ads_board_setup (); - -ROOT_DEV = Root_NFS; }static int __init mpc885ads_probe (void )
arch/powerpc/platforms/chrp/setup.c +0 -10
@@ -290,16 +290,6 @@ void __init chrp_setup_arch(void) ppc_md.set_rtc_time = rtas_set_rtc_time; } -#ifdef CONFIG_BLK_DEV_INITRD -/* this is fine for chrp */ - initrd_below_start_ok =1 ; - -if (initrd_start) -ROOT_DEV = Root_RAM0; - else -#endif -ROOT_DEV = Root_SDA2;/* sda2 (sda1 is for the kernel) */ -/* On pegasos, enable the L2 cache if not already done by OF */ pegasos_set_l2cr ();
Quoted 9 lines · Grant Likely
From: Grant Likely <[email protected]>
I can't see a good reason for eval board platform code to mess with the
ROOT_DEVvalue instead of using the default behaviour (so I'm writing this patch to see if anyone will clue me in).Signed-off-by Grant Likely <[email protected]>---
Quoted 7 lines
arch/powerpc/platforms/52xx/efika.c | 9 --------- arch/powerpc/platforms/52xx/lite5200.c | 12 ------------ arch/powerpc/platforms/82xx/mpc82xx_ads.c | 6 ------ arch/powerpc/platforms/8xx/mpc86xads_setup.c | 2 -- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 2 -- arch/powerpc/platforms/chrp/setup.c | 10 ---------- 6 files changed, 0 insertions(+), 41 deletions(-)
FYI, 82xx_ads and 885ads don't have this issue in my tree based on fixes from Scott.
- k
Quoted 21 lines · Kumar Gala
Quoted 10 lines · Grant Likely
From: Grant Likely <[email protected]>
I can't see a good reason for eval board platform code to mess with the
ROOT_DEVvalue instead of using the default behaviour (so I'm writing this patch to see if anyone will clue me in).Signed-off-by Grant Likely <[email protected]>---
Quoted 7 lines
arch/powerpc/platforms/52xx/efika.c | 9 --------- arch/powerpc/platforms/52xx/lite5200.c | 12 ------------ arch/powerpc/platforms/82xx/mpc82xx_ads.c | 6 ------ arch/powerpc/platforms/8xx/mpc86xads_setup.c | 2 -- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 2 -- arch/powerpc/platforms/chrp/setup.c | 10 ---------- 6 files changed, 0 insertions(+), 41 deletions(-)
Quoted 2 lines
FYI, 82xx_ads and 885ads don't have this issue in my tree based on fixes from Scott.
So, if I respin this patch to exclude those two platforms, will you merge it? (Efika and Lite5200 only have it because they were cloned from CHRP.
Powermac and pseries also do this weirdness. Should it be removed from there too?
g.
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 25 lines · Grant Likely
Quoted 21 lines · Kumar Gala
Quoted 10 lines · Grant Likely
From: Grant Likely <[email protected]>
I can't see a good reason for eval board platform code to mess with the
ROOT_DEVvalue instead of using the default behaviour (so I'm writing this patch to see if anyone will clue me in).Signed-off-by Grant Likely <[email protected]>---
Quoted 7 lines
arch/powerpc/platforms/52xx/efika.c | 9 --------- arch/powerpc/platforms/52xx/lite5200.c | 12 ------------ arch/powerpc/platforms/82xx/mpc82xx_ads.c | 6 ------ arch/powerpc/platforms/8xx/mpc86xads_setup.c | 2 -- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 2 -- arch/powerpc/platforms/chrp/setup.c | 10 ---------- 6 files changed, 0 insertions(+), 41 deletions(-)Quoted 2 lines
FYI, 82xx_ads and 885ads don't have this issue in my tree based on fixes from Scott.
Quoted 6 lines
So, if I respin this patch to exclude those two platforms, will you merge it? (Efika and Lite5200 only have it because they were cloned from CHRP.
Powermac and pseries also do this weirdness. Should it be removed from there too?
We need benh to make a comment about powermac.
I think its ok to remove everywhere but we should see if he has any issue.
- k
Quoted 7 lines · Kumar Gala
Quoted 4 lines · Grant Likely
Quoted 3 lines
Quoted 3 lines
I can't see a good reason for eval board platform code to mess with the
ROOT_DEVvalue instead of using the default behaviour (so I'm
Quoted 7 lines
Quoted 2 lines
Powermac and pseries also do this weirdness. Should it be removed from there too?
We need benh to make a comment about powermac.
I think its ok to remove everywhere but we should see if he has any issue.
Ack. I see no problems in removing it.
--linas
Quoted 11 lines · Linas Vepstas
Quoted 10 lines · Kumar Gala
Quoted 6 lines · Grant Likely
Quoted 3 lines
Quoted 3 lines
I can't see a good reason for eval board platform code to mess with the
ROOT_DEVvalue instead of using the default behaviour (so I'mPowermac and pseries also do this weirdness. Should it be removed from there too?
Quoted 6 lines
Quoted 4 lines
We need benh to make a comment about powermac.
I think its ok to remove everywhere but we should see if he has any issue.
Ack. I see no problems in removing it.
Err. I meant my comment to be of limited scope: "for pseries". I know nothing of other platforms.
--linas
Quoted 7 lines · Kumar Gala
Quoted 2 lines
Powermac and pseries also do this weirdness. Should it be removed from there too?
We need benh to make a comment about powermac.
I think its ok to remove everywhere but we should see if he has any issue.
PowerMac has some weirdo auto-detection code for root... I don't want to remove it just yet.
Ben
Quoted 25 lines · Grant Likely
Quoted 21 lines · Kumar Gala
Quoted 10 lines · Grant Likely
From: Grant Likely <[email protected]>
I can't see a good reason for eval board platform code to mess with the
ROOT_DEVvalue instead of using the default behaviour (so I'm writing this patch to see if anyone will clue me in).Signed-off-by Grant Likely <[email protected]>---
Quoted 7 lines
arch/powerpc/platforms/52xx/efika.c | 9 --------- arch/powerpc/platforms/52xx/lite5200.c | 12 ------------ arch/powerpc/platforms/82xx/mpc82xx_ads.c | 6 ------ arch/powerpc/platforms/8xx/mpc86xads_setup.c | 2 -- arch/powerpc/platforms/8xx/mpc885ads_setup.c | 2 -- arch/powerpc/platforms/chrp/setup.c | 10 ---------- 6 files changed, 0 insertions(+), 41 deletions(-)Quoted 2 lines
FYI, 82xx_ads and 885ads don't have this issue in my tree based on fixes from Scott.
Quoted 6 lines
So, if I respin this patch to exclude those two platforms, will you merge it? (Efika and Lite5200 only have it because they were cloned from CHRP.
Powermac and pseries also do this weirdness. Should it be removed from there too?
Oh, and cell does too. Geoff, does cell support really need to do this:
(in cell/setup.c and celleb/setup.c).
if (ROOT_DEV == 0) {
printk("No ramdisk, default root is /dev/hda2\n");
ROOT_DEV = Root_HDA2;
}If not; I'll spin a patch to drop it.
Thanks,
g.
Quoted 9 lines
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 4 lines · Grant Likely
Oh, and cell does too. =A0Geoff, does cell support really need to do this:
(incell/setup.candcelleb/setup.c). =A0=A0=A0=A0=A0=A0=A0=A0if (ROOT_DEV=3D=3D 0) { =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0printk("No ramdisk, defau=
lt root is /dev/hda2\n");
Quoted 4 lines
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0ROOT_DEV =3D
Root_HDA2; =A0=A0=A0=A0=A0=A0=A0=A0}
=20
If not; I'll spin a patch to drop it.
Cell certainly doesn't need this, I believe this is an artifact from copying from pseries, so please kill it when you do the patch.
Arnd <><
Quoted 8 lines · Arnd Bergmann
Quoted 7 lines · Grant Likely
Oh, and cell does too. Geoff, does cell support really need to do this:
(incell/setup.candcelleb/setup.c).
if (ROOT_DEV== 0) {printk("No ramdisk, default root is /dev/hda2\n");ROOT_DEV=Root_HDA2;
}
Quoted 4 lines
Quoted 1 line
If not; I'll spin a patch to drop it.
Cell certainly doesn't need this, I believe this is an artifact from copying from pseries, so please kill it when you do the patch.
Cool; Looks like I'm killing it from all platforms except powermac. Rolling patch now...
Cheers,
g.
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195