Upstream removed this in commit
bafbdd527d56 ("phylib: Add device reset
GPIO support") but it was added by mistake while backporting in a way
that breaks arm64 build.
Fixes:
0c27b23fd1b1 ("MLK-15309-01 net: phy: at803x: add EEE mode, 1.8V IO, led_act blinding workaround support")
This phy driver is used on imx8 mek boards.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
struct at803x_priv {
bool phy_reset:1;
- struct gpio_desc *gpiod_reset;
u32 quirks;
};
if (of_property_read_bool(dev->of_node, "at803x,vddio-1p8v"))
priv->quirks |= AT803X_VDDIO_1P8V;
- if (phydev->drv->phy_id != ATH8030_PHY_ID)
- goto does_not_require_reset_workaround;
-
- gpiod_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
- if (IS_ERR(gpiod_reset))
- return PTR_ERR(gpiod_reset);
-
- priv->gpiod_reset = gpiod_reset;
-
-does_not_require_reset_workaround:
phydev->priv = priv;
return 0;