Commit f443b5c2 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

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: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3beb6da5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);
		}
	}