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)
commitc4566aec6e8088b28687d006a48469498b9f2af8
tree451519a98e4bdc5377fdf3a6922d73271abd53a3
parent593532668f635d19d207510e0fbb5c2250f56b6f
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