ramips: fix Tenbay T-MB5EU v1 Wireless MAC
[openwrt/openwrt.git] / target / linux / ramips / patches-5.4 / 0105-staging-mt7621-pci-delete-no-more-needed-mt7621_rese.patch
1 From 4be54c3a495f08c05a8e485566e5b88cd3537f16 Mon Sep 17 00:00:00 2001
2 From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
3 Date: Fri, 13 Mar 2020 21:09:13 +0100
4 Subject: [PATCH] staging: mt7621-pci: delete no more needed
5 'mt7621_reset_port'
6
7 After review all the resets at the beggining the function
8 'mt7621_reset_port' is not needed anymore. Hence delete it
9 and its uses.
10
11 Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
12 Link: https://lore.kernel.org/r/20200313200913.24321-7-sergio.paracuellos@gmail.com
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 ---
15 drivers/staging/mt7621-pci/pci-mt7621.c | 13 -------------
16 1 file changed, 13 deletions(-)
17
18 --- a/drivers/staging/mt7621-pci/pci-mt7621.c
19 +++ b/drivers/staging/mt7621-pci/pci-mt7621.c
20 @@ -255,13 +255,6 @@ static inline void mt7621_control_deasse
21 reset_control_assert(port->pcie_rst);
22 }
23
24 -static void mt7621_reset_port(struct mt7621_pcie_port *port)
25 -{
26 - mt7621_control_assert(port);
27 - msleep(100);
28 - mt7621_control_deassert(port);
29 -}
30 -
31 static void setup_cm_memory_region(struct mt7621_pcie *pcie)
32 {
33 struct resource *mem_resource = &pcie->mem;
34 @@ -427,12 +420,6 @@ static int mt7621_pcie_init_port(struct
35 u32 slot = port->slot;
36 int err;
37
38 - /*
39 - * Any MT7621 Ralink pcie controller that doesn't have 0x0101 at
40 - * the end of the chip_id has inverted PCI resets.
41 - */
42 - mt7621_reset_port(port);
43 -
44 err = phy_init(port->phy);
45 if (err) {
46 dev_err(dev, "failed to initialize port%d phy\n", slot);