mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 17:36:12 +02:00
realtek: eth: convert link up/down to regmap
Make use of regmap in rteth_mac_link_down and rteth_mac_link_up. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/23067 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
0102403696
commit
62e0f63aa3
@ -1114,7 +1114,7 @@ static void rteth_mac_link_down(struct phylink_config *config,
|
||||
|
||||
pr_debug("In %s\n", __func__);
|
||||
/* Stop TX/RX to port */
|
||||
sw_w32_mask(0x03, 0, ctrl->r->mac_l2_port_ctrl);
|
||||
regmap_clear_bits(ctrl->map, ctrl->r->mac_l2_port_ctrl, 0x3);
|
||||
}
|
||||
|
||||
static void rteth_mac_link_up(struct phylink_config *config,
|
||||
@ -1127,7 +1127,7 @@ static void rteth_mac_link_up(struct phylink_config *config,
|
||||
|
||||
pr_debug("In %s\n", __func__);
|
||||
/* Restart TX/RX to port */
|
||||
sw_w32_mask(0, 0x03, ctrl->r->mac_l2_port_ctrl);
|
||||
regmap_set_bits(ctrl->map, ctrl->r->mac_l2_port_ctrl, 0x3);
|
||||
}
|
||||
|
||||
static void rteth_set_mac_hw(struct net_device *dev, u8 *mac)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user