MTK_DMA_SIZE * sizeof(struct mtk_tx_dma),
eth->scratch_ring,
eth->phy_scratch_ring);
-@@ -2510,6 +2511,8 @@ static void mtk_dim_tx(struct work_struc
+@@ -2509,6 +2510,8 @@ static void mtk_dim_tx(struct work_struc
static int mtk_hw_init(struct mtk_eth *eth)
{
int i, val, ret;
if (test_and_set_bit(MTK_HW_INIT, ð->state))
-@@ -2522,6 +2525,10 @@ static int mtk_hw_init(struct mtk_eth *e
+@@ -2521,6 +2524,10 @@ static int mtk_hw_init(struct mtk_eth *e
if (ret)
goto err_disable_pm;
if (MTK_HAS_CAPS(eth->soc->caps, MTK_SOC_MT7628)) {
ret = device_reset(eth->dev);
if (ret) {
-@@ -3071,6 +3078,35 @@ free_netdev:
+@@ -3070,6 +3077,35 @@ free_netdev:
return err;
}
static int mtk_probe(struct platform_device *pdev)
{
struct device_node *mac_np;
-@@ -3084,6 +3120,7 @@ static int mtk_probe(struct platform_dev
+@@ -3083,6 +3119,7 @@ static int mtk_probe(struct platform_dev
eth->soc = of_device_get_match_data(&pdev->dev);
eth->dev = &pdev->dev;
eth->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(eth->base))
return PTR_ERR(eth->base);
-@@ -3132,6 +3169,16 @@ static int mtk_probe(struct platform_dev
+@@ -3131,6 +3168,16 @@ static int mtk_probe(struct platform_dev
}
}