drivers/net/phy/m88e1512: Switch the page back to 0 only once
When the configuration of Marvell PHY 88E1512 is finished, then switch the page back to 0 only once at the end of the Init function. Change-Id: I9e516870a7c5928724df2bd3ac9c5c8f3249af2e Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73017 Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
e27f6543b6
commit
33ef5c4e3a
|
@ -52,9 +52,6 @@ static void m88e1512_init(struct device *dev)
|
|||
clrsetbits16(®, LED_FUNC_CTRL_MASK, config->led_0_ctrl |
|
||||
(config->led_1_ctrl << 4) | (config->led_2_ctrl << 8));
|
||||
mdio_write(dev, LED_FUNC_CTRL_REG, reg);
|
||||
|
||||
/* Switch back to page 0. */
|
||||
switch_page(dev, 0);
|
||||
}
|
||||
|
||||
/* INTn can be routed to LED[2] pin. */
|
||||
|
@ -68,10 +65,10 @@ static void m88e1512_init(struct device *dev)
|
|||
reg = mdio_read(dev, LED_TIMER_CTRL_REG);
|
||||
setbits16(®, LED_IRQ_ENABLE);
|
||||
mdio_write(dev, LED_TIMER_CTRL_REG, reg);
|
||||
}
|
||||
|
||||
/* Switch back to page 0. */
|
||||
switch_page(dev, 0);
|
||||
}
|
||||
}
|
||||
|
||||
struct device_operations m88e1512_ops = {
|
||||
|
|
Loading…
Reference in New Issue