OSDN Git Service

MIPS: Lantiq: fix missing xbar kernel panic
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 15 Mar 2017 22:26:42 +0000 (23:26 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 21 Mar 2017 20:34:43 +0000 (21:34 +0100)
commit6ef90877eee63a0d03e83183bb44b64229b624e6
tree4e296f3cabceb435817ee5689bf7d8119b5d8857
parentfb2155e3c30dc2043b52020e26965067a3e7779c
MIPS: Lantiq: fix missing xbar kernel panic

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: <stable@vger.kernel.org> # 4.4.x-
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15751
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lantiq/xway/sysctrl.c