001-4.16-03-bcm63xx_enet-remove-pointless-mac_id-check.patch 975 B

12345678910111213141516171819202122232425
  1. From 8c61608e5dd2e15575c171ee9cd558ddc3b94962 Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <[email protected]>
  3. Date: Sun, 17 Dec 2017 12:54:30 +0100
  4. Subject: [PATCH 3/4] bcm63xx_enet: remove pointless mac_id check
  5. Enabling the ephy clock for mac 1 is harmless, and the actual usage of
  6. the ephy is not restricted to mac 0, so we might as well remove the
  7. check.
  8. Signed-off-by: Jonas Gorski <[email protected]>
  9. ---
  10. drivers/net/ethernet/broadcom/bcm63xx_enet.c | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  13. +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  14. @@ -1807,7 +1807,7 @@ static int bcm_enet_probe(struct platfor
  15. priv->tx_chan = pd->tx_chan;
  16. }
  17. - if (priv->mac_id == 0 && priv->has_phy && !priv->use_external_mii) {
  18. + if (priv->has_phy && !priv->use_external_mii) {
  19. /* using internal PHY, enable clock */
  20. priv->phy_clk = devm_clk_get(&pdev->dev, "ephy");
  21. if (IS_ERR(priv->phy_clk)) {