[ARM] orion/kirkwood: reset PCIe unit on boot
authorOlaf Rempel <razzor@kopf-tisch.de>
Tue, 8 Jun 2010 20:32:38 +0000 (22:32 +0200)
committerNicolas Pitre <nico@fluxnic.net>
Sat, 17 Jul 2010 02:01:57 +0000 (22:01 -0400)
commit21f0ba90a447090153edeaf2f14f9f7e8bd9bc80
tree89daf1b0ba284bf0ed43e5f75ff910ff120ca781
parent6f2b186a0f1e70be411ca260d4577f1ed35d58e0
[ARM] orion/kirkwood: reset PCIe unit on boot

Patch found in QNAPs vendor source package, with some cleanups
(proper defines, shortened max. timeout from 1s to 200ms).

Without this patch the PCIe SATA controller (Marvell 88sx7042/sata_mv)
in my QNAP TS-419P (Marvell 88f6281/Kirkwood) stops working after a
few minutes.

The symptomes are described in this thread:
http://marc.info/?l=linux-ide&m=124822863706181&w=2

[ Note: this is a workaround in need of a better analysis/solution -- NP ]

Acked-by: Saeed Bishara <saeed@marvell.com>
Tested-by: Bernhard R. Link <brl@pcpool00.mathematik.uni-freiburg.de>
Seconded-by: Martin Michlmayr <tbm@cyrius.com>
I'm_not_very_happy_with_it-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/plat-orion/pcie.c