staging: mt7621-pci: fix reset lines for each pcie port
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sat, 24 Nov 2018 17:54:54 +0000 (18:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2018 19:59:05 +0000 (20:59 +0100)
commite51844bf825169024e0c743a92cf264e27f2366f
tree96ab5f4f56c0dd31d001a6771607a21dcab75233
parentfe62afd7eb0b54d676b5e4ae1a5b93cef704b78a
staging: mt7621-pci: fix reset lines for each pcie port

Depending of chip revision reset lines are inverted. It is also
necessary to read PCIE_FTS_NUM register before enabling the phy.
Hence update the code to achieve this.

Fixes: 745eeeac68d7 ("staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function")
Reported-by: NeilBrown <neil@brown.name>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Tested-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c