]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: imx6: Fix imprecise abort handler
authorTim Harvey <tharvey@gateworks.com>
Fri, 18 Oct 2013 00:27:22 +0000 (17:27 -0700)
committerRichard Zhu <r65037@freescale.com>
Wed, 20 Nov 2013 06:10:27 +0000 (14:10 +0800)
commit222447da9a4bfeeae785895d3f0f04f985aedf72
treeb2da14bd24c1b9de2c39ca6dfb790fe21c330222
parentd357358dc546068f22802e6e96efd62247b31a3a
PCI: imx6: Fix imprecise abort handler

An imprecise abort is triggered when a port behind a switch is accessed
and no device is present.  At enumeration, imprecise aborts are not enabled
thus this ends up getting deferred until the kernel has completed init.  At
that point we must not adjust PC - the handler must do nothing, but a
handler must exist.

This fixes random crashes that occur right after freeing init.

Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Marek Vasut <marex@denx.de>(cherry picked from commit 4ec3ed7f5e91e9325c810dcb995ef5a55e4a79a6)
drivers/pci/host/pci-imx6.c