]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
MIPS: Lantiq: fix missing xbar kernel panic
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 15 Mar 2017 22:26:42 +0000 (23:26 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 27 Apr 2017 13:04:05 +0000 (10:04 -0300)
commitdc60c46d697c1882512cdcb595dbf3a4e5c453d3
treeb481278f97004522deb427e583e06dd55e2a4426
parentec3b4bf6451ab5075ec5baf6001684fb2e9f278e
MIPS: Lantiq: fix missing xbar kernel panic

BugLink: http://bugs.launchpad.net/bugs/1682140
commit 6ef90877eee63a0d03e83183bb44b64229b624e6 upstream.

Commit 08b3c894e565 ("MIPS: lantiq: Disable xbar fpi burst mode")
accidentally requested the resources from the pmu address region
instead of the xbar registers region, but the check for the return
value of request_mem_region() was wrong. Commit 98ea51cb0c8c ("MIPS:
Lantiq: Fix another request_mem_region() return code check") fixed the
check of the return value of request_mem_region() which made the kernel
panics.
This patch now makes use of the correct memory region for the cross bar.

Fixes: 08b3c894e565 ("MIPS: lantiq: Disable xbar fpi burst mode")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: John Crispin <john@phrozen.org>
Cc: james.hogan@imgtec.com
Cc: arnd@arndb.de
Cc: sergei.shtylyov@cogentembedded.com
Cc: john@phrozen.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15751
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/mips/lantiq/xway/sysctrl.c