net: phy: at803x: disable delay only for RGMII mode
authorVinod Koul <[email protected]>
Thu, 21 Feb 2019 10:23:15 +0000 (15:53 +0530)
committerDavid S. Miller <[email protected]>
Fri, 22 Feb 2019 23:30:03 +0000 (15:30 -0800)
commit6d4cd041f0af5b4c8fc742b4a68eac22e420e28c
tree65cea3fcbc0e15e87ae9d17873567ae3560c2982
parent43f2ebd5571653f5a02c178d6d73ab642e8a0cad
net: phy: at803x: disable delay only for RGMII mode

Per "Documentation/devicetree/bindings/net/ethernet.txt" RGMII mode
should not have delay in PHY whereas RGMII_ID and RGMII_RXID/RGMII_TXID
can have delay in PHY.

So disable the delay only for RGMII mode and enable for other modes.
Also treat the default case as disabled delays.

Fixes: cd28d1d6e52e: ("net: phy: at803x: Disable phy delay for RGMII mode")
Reported-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Niklas Cassel <[email protected]>
Tested-by: Peter Ujfalusi <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/phy/at803x.c