]> 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)
commit4fb37e3f22ec1a3d3646e3513101789882cd9e4b
tree451519a98e4bdc5377fdf3a6922d73271abd53a3
parente0ac8425490b0980b9170b5aab02fee07fde0d5d
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