]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: dp83869: Update port-mirroring to read straps
authorDan Murphy <dmurphy@ti.com>
Thu, 21 May 2020 17:47:37 +0000 (12:47 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 23:13:10 +0000 (16:13 -0700)
commitc97f9bd796ac1973ebd26e7ea14377c1b91259b1
tree451519a98e4bdc5377fdf3a6922d73271abd53a3
parent751906d5fa4135a70bb4aa2609e03c8ec0361ee4
net: phy: dp83869: Update port-mirroring to read straps

The device tree may not have the property set for port mirroring
because the hardware may have it strapped. If the property is not in the
DT then check the straps and set the port mirroring bit appropriately.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83869.c