]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 2 Dec 2018 11:12:24 +0000 (12:12 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit67c9b043c7e6428e427d56ecd86abb432b154791
tree026ba4ec78d784f456626e0ee06899abb797bfd4
parent13063335d2bfeef7b9bf0686a4c209e181dc76c4
ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt

BugLink: https://bugs.launchpad.net/bugs/1837257
commit 76f4e2c3b6a560cdd7a75b87df543e04d05a9e5f upstream.

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 it on CONFIG_MACH_MMP2_DT too.

Note: CONFIG_CPU_MMP2 is only used for machines that use board files
instead of DT. It should perhaps be renamed. I'm not doing it now, because
I don't have a better idea.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: stable@vger.kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm/mach-mmp/cputype.h