diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-11-04 11:49:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-11 11:36:15 -0800 |
commit | f443b5c22ebdbd4f3543d1f7ec44b0c455420665 (patch) | |
tree | 084b18200a2a6a6ff2a41e07e58a7e08da0b30f9 /drivers/staging/mt7621-pci | |
parent | staging: mt7621-pci: factor out 'mt7621_enable_phy' function (diff) | |
download | linux-f443b5c22ebdbd4f3543d1f7ec44b0c455420665.tar.gz linux-f443b5c22ebdbd4f3543d1f7ec44b0c455420665.tar.bz2 linux-f443b5c22ebdbd4f3543d1f7ec44b0c455420665.zip |
staging: mt7621-pci: debug port N_FTS inside 'mt7621_pcie_enable_port'
Move debug for the port N_FTS from driver probe function to the more
appropiate one 'mt7621_pcie_enable_port'.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-pci')
-rw-r--r-- | drivers/staging/mt7621-pci/pci-mt7621.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index 7e76d30907c4..50c7bd79ba44 100644 --- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -575,6 +575,9 @@ static int mt7621_pcie_enable_port(struct mt7621_pcie_port *port) mt7621_enable_phy(port); + val = read_config(pcie, slot, 0x70c); + dev_info(dev, "Port %d N_FTS = %x\n", (unsigned int)val, slot); + return 0; } @@ -661,9 +664,6 @@ static int mt7621_pci_probe(struct platform_device *pdev) if (err) { dev_err(dev, "enabling port %d failed\n", slot); list_del(&port->list); - } else { - val = read_config(pcie, slot, 0x70c); - dev_info(dev, "Port %d N_FTS = %x\n", (unsigned int)val, slot); } } |