Re: [PATCH] ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt

2018-12-03 Thread Olof Johansson
On Sun, Dec 02, 2018 at 04:53:07PM +0100, Arnd Bergmann wrote: > On Sun, Dec 2, 2018 at 12:12 PM Lubomir Rintel wrote: > > > > cpu_is_mmp2() was equivalent to cpu_is_pj4(), wouldn't be correct for > > multiplatform kernels. Fix it by also considering mmp_chip_id, as is > > done for cpu_is_pxa168()

Re: [PATCH] ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt

2018-12-02 Thread Arnd Bergmann
On Sun, Dec 2, 2018 at 12:12 PM Lubomir Rintel wrote: > > cpu_is_mmp2() was equivalent to cpu_is_pj4(), wouldn't be correct for > multiplatform kernels. Fix it by also considering mmp_chip_id, as is > done for cpu_is_pxa168() and cpu_is_pxa910() above. > > Moreover, it is only available with CONFI

[PATCH] ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt

2018-12-02 Thread Lubomir Rintel
cpu_is_mmp2() was equivalent to cpu_is_pj4(), wouldn't be correct for multiplatform kernels. Fix it by also considering mmp_chip_id, as is done for cpu_is_pxa168() and cpu_is_pxa910() above. Moreover, it is only available with CONFIG_CPU_MMP2 and thus doesn't work on DT-based MMP2 machines. Enable