staging: mt7621-pci: delete no more needed 'mt7621_reset_port'
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 13 Mar 2020 20:09:13 +0000 (21:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 11:53:08 +0000 (12:53 +0100)
After review all the resets at the beggining the function
'mt7621_reset_port' is not needed anymore. Hence delete it
and its uses.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200313200913.24321-7-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c

index 0d9dd14f6becb130cd7ffee331aa54698bd432e8..973be9aa7bb2a88a7e61d5c6881a93310b952fbf 100644 (file)
@@ -255,13 +255,6 @@ static inline void mt7621_control_deassert(struct mt7621_pcie_port *port)
                reset_control_assert(port->pcie_rst);
 }
 
-static void mt7621_reset_port(struct mt7621_pcie_port *port)
-{
-       mt7621_control_assert(port);
-       msleep(100);
-       mt7621_control_deassert(port);
-}
-
 static void setup_cm_memory_region(struct mt7621_pcie *pcie)
 {
        struct resource *mem_resource = &pcie->mem;
@@ -427,12 +420,6 @@ static int mt7621_pcie_init_port(struct mt7621_pcie_port *port)
        u32 slot = port->slot;
        int err;
 
-       /*
-        * Any MT7621 Ralink pcie controller that doesn't have 0x0101 at
-        * the end of the chip_id has inverted PCI resets.
-        */
-       mt7621_reset_port(port);
-
        err = phy_init(port->phy);
        if (err) {
                dev_err(dev, "failed to initialize port%d phy\n", slot);