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