0064-net-mediatek-remove-superflous-reset-call.patch 826 B

1234567891011121314151617181920212223242526
  1. From 2597d2cedba62b2a3fdca9c044187705f98a0372 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <blogic@openwrt.org>
  3. Date: Fri, 25 Mar 2016 04:24:27 +0100
  4. Subject: [PATCH 064/102] net: mediatek: remove superflous reset call
  5. HW reset is triggered int he mtk_hw_init() function. There is no need to
  6. reset the core during probe.
  7. Signed-off-by: John Crispin <blogic@openwrt.org>
  8. ---
  9. drivers/net/ethernet/mediatek/mtk_eth_soc.c | 4 ----
  10. 1 file changed, 4 deletions(-)
  11. --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  12. +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
  13. @@ -1679,10 +1679,6 @@ static int mtk_probe(struct platform_dev
  14. struct mtk_eth *eth;
  15. int err;
  16. - err = device_reset(&pdev->dev);
  17. - if (err)
  18. - return err;
  19. -
  20. match = of_match_device(of_mtk_match, &pdev->dev);
  21. soc = (struct mtk_soc_data *)match->data;