PCI: mvebu: Change delay after reset to the PCIe spec mandated 100ms
authorLucas Stach <l.stach@pengutronix.de>
Thu, 2 Feb 2017 17:15:31 +0000 (18:15 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 8 Feb 2017 19:33:57 +0000 (13:33 -0600)
commit8ed81ec82a8c57c3a6ad69b4c4d3e4801163c256
treec764dfcd5a0d894c3f3a9ecf625156c634aa6d3a
parentd9bf28e2650fe3eeefed7e34841aea07d10c6543
PCI: mvebu: Change delay after reset to the PCIe spec mandated 100ms

The current default of 20ms cause some devices, which are slow to
initialize, to not show up during the bus scanning.  Change this to the
PCIe spec mandated 100ms and document this in the DT binding.

From PCIe base spec rev 3.0, chapter "6.6.1. Conventional Reset":

  To allow components to perform internal initialization, system software
  must wait a specified minimum period following the end of a Conventional
  Reset of one or more devices before it is permitted to issue
  Configuration Requests to those devices.

  With a Downstream Port that does not support Link speeds greater than 5.0
  GT/s, software must wait a minimum of 100 ms before sending a
  Configuration Request to the device immediately below that Port.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Documentation/devicetree/bindings/pci/mvebu-pci.txt
drivers/pci/host/pci-mvebu.c