sh: pci: Give SH7786 PHY some time to settle.
authorPaul Mundt <lethal@linux-sh.org>
Sun, 19 Sep 2010 04:57:51 +0000 (13:57 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 19 Sep 2010 04:57:51 +0000 (13:57 +0900)
commit81df84f4060f4f19c7e6f39c7c527a6098436a2a
tree617779f42664440d4787bbdd028a205f17bc825a
parentbdf7499081fc3c521d0f8fc28c6950c7c9bd7e97
sh: pci: Give SH7786 PHY some time to settle.

The spec suggests waiting up to 500ms for the PHY to settle before
testing link state, but practice shows that 100ms is sufficient (this is
the delay value we also use on the other SH-4A PCI controllers, too).
This makes device detection much more reliable, although in the future it
should be a bit faster to simply serialize with a TLP IRQ.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/pcie-sh7786.c