Copy machine descriptor after probe succeed
PATCH 1/1 Copy machine descriptor after probe succeed
This patch fix minor issue with machine probe process, It's much better to copy machine descriptor after probe succeed.
arch/powerpc/kernel/setup-common.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-
PATCH 1/1 Copy machine descriptor after probe succeed
From: Bill Carson <[email protected]>
It make more sense to copy machine descriptor AFTER machine probe return succeed.
--- arch/powerpc/kernel/setup-common.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kernel/setup-common.c +2 -2
@@ -574,9 +574,9 @@ void probe_machine(void) machine_id < &__machine_desc_end; machine_id++) {DBG (" %s ..." , machine_id->name); -memcpy (&ppc_md, machine_id,sizeof (struct machdep_calls )); -if (ppc_md.probe ()) { +if (machine_id->probe ()) {DBG (" match !\n" ); +memcpy (&ppc_md, machine_id,sizeof (struct machdep_calls ));break ; }DBG ("\n" );
Signature · 1 line
1.6.3.1
Hi Bill,
Quoted 5 lines · On Tue, 20 Dec 2011 17:08:47 +0800 [email protected] wrote:
From: Bill Carson <[email protected]>
It make more sense to copy machine descriptor AFTER machine probe return succeed.
Some of the platform's probe routines modify the ppc_md structure and so assume that it is has been popluated before the probe routine is called.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 10 lines · Stephen Rothwell
Hi Bill,
Quoted 4 lines · On Tue, 20 Dec 2011 17:08:47 +0800 [email protected] wrote:
From: Bill Carson<[email protected]>
It make more sense to copy machine descriptor AFTER machine probe return succeed.
Some of the platform's probe routines modify the
ppc_mdstructure and so assume that it is has been popluated before the probe routine is called.
I didn't see the whole picture before :(
thanks for your point.
Signature · 4 lines
I am a slow learner but I will keep trying to fight for my dreams! --bill