Re: [PATCH v1 1/9] powerpc/machdep: Define 'compatible' property in ppc_md and use it

2023-02-15 Thread Nathan Lynch
Christophe Leroy writes: > Most probe functions do nothing else than checking whether > the machine is compatible to a given string. > > Define that string in ppc_md structure and check it directly from > probe_machine() instead of using ppc_md.probe() for that. > > Keep checking in

[PATCH v1 1/9] powerpc/machdep: Define 'compatible' property in ppc_md and use it

2023-02-15 Thread Christophe Leroy
Most probe functions do nothing else than checking whether the machine is compatible to a given string. Define that string in ppc_md structure and check it directly from probe_machine() instead of using ppc_md.probe() for that. Keep checking in ppc_md.probe() only for more complex probing.