mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
net: lan966x: remove PHY reset support
The PHY subsystem as well as the MIIM mdio driver (in case of the integrated PHYs) will take care of the resets. A separate reset driver isn't needed. There is no in-tree user of this feature. Remove the support. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4fdabd509d
commit
5b06ef8682
1 changed files with 1 additions and 7 deletions
|
@ -937,7 +937,7 @@ static int lan966x_ram_init(struct lan966x *lan966x)
|
||||||
|
|
||||||
static int lan966x_reset_switch(struct lan966x *lan966x)
|
static int lan966x_reset_switch(struct lan966x *lan966x)
|
||||||
{
|
{
|
||||||
struct reset_control *switch_reset, *phy_reset;
|
struct reset_control *switch_reset;
|
||||||
int val = 0;
|
int val = 0;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -946,13 +946,7 @@ static int lan966x_reset_switch(struct lan966x *lan966x)
|
||||||
return dev_err_probe(lan966x->dev, PTR_ERR(switch_reset),
|
return dev_err_probe(lan966x->dev, PTR_ERR(switch_reset),
|
||||||
"Could not obtain switch reset");
|
"Could not obtain switch reset");
|
||||||
|
|
||||||
phy_reset = devm_reset_control_get_shared(lan966x->dev, "phy");
|
|
||||||
if (IS_ERR(phy_reset))
|
|
||||||
return dev_err_probe(lan966x->dev, PTR_ERR(phy_reset),
|
|
||||||
"Could not obtain phy reset\n");
|
|
||||||
|
|
||||||
reset_control_reset(switch_reset);
|
reset_control_reset(switch_reset);
|
||||||
reset_control_reset(phy_reset);
|
|
||||||
|
|
||||||
lan_wr(SYS_RESET_CFG_CORE_ENA_SET(0), lan966x, SYS_RESET_CFG);
|
lan_wr(SYS_RESET_CFG_CORE_ENA_SET(0), lan966x, SYS_RESET_CFG);
|
||||||
lan_wr(SYS_RAM_INIT_RAM_INIT_SET(1), lan966x, SYS_RAM_INIT);
|
lan_wr(SYS_RAM_INIT_RAM_INIT_SET(1), lan966x, SYS_RAM_INIT);
|
||||||
|
|
Loading…
Reference in a new issue