return 0;
}
-static void rtl838x_hw_stop(struct rteth_ctrl *ctrl)
+static void rteth_hw_stop(struct rteth_ctrl *ctrl)
{
u32 force_mac = ctrl->r->family_id == RTL8380_FAMILY_ID ? 0x6192C : 0x75;
pr_info("in %s\n", __func__);
phylink_stop(ctrl->phylink);
- rtl838x_hw_stop(ctrl);
+ rteth_hw_stop(ctrl);
for (int i = 0; i < RTETH_RX_RINGS; i++)
napi_disable(&ctrl->rx_qs[i].napi);
pr_warn("%s\n", __func__);
spin_lock_irqsave(&ctrl->lock, flags);
- rtl838x_hw_stop(ctrl);
+ rteth_hw_stop(ctrl);
rteth_hw_ring_setup(ctrl);
rtl838x_hw_en_rxtx(ctrl);
netif_trans_update(ndev);
if (dev) {
pr_info("Removing platform driver for rtl838x-eth\n");
- rtl838x_hw_stop(ctrl);
+ rteth_hw_stop(ctrl);
netif_tx_stop_all_queues(dev);