net: phy: at803x: disable delay only for RGMII mode
authorVinod Koul <vkoul@kernel.org>
Thu, 21 Feb 2019 10:23:15 +0000 (15:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
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 <peter.ujfalusi@ti.com>
Reviewed-by: Niklas Cassel <niklas.cassel@linaro.org>
Tested-by: Peter Ujfalusi <peter.ujflausi@ti.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c