mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
net: pcs: xpcs: get rid of xpcs_init_iface()
xpcs_init_iface() no longer does anything with the interface mode, and now merely does configuration related to the PMA ID. Move this back into xpcs_create() as it doesn't warrant being a separate function anymore. Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1svfML-005ZIF-84@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
92fb898608
commit
a487c9e7cf
|
|
@ -1483,16 +1483,6 @@ static int xpcs_init_id(struct dw_xpcs *xpcs)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int xpcs_init_iface(struct dw_xpcs *xpcs)
|
||||
{
|
||||
if (xpcs->info.pma == WX_TXGBE_XPCS_PMA_10G_ID)
|
||||
xpcs->pcs.poll = false;
|
||||
else
|
||||
xpcs->need_reset = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev)
|
||||
{
|
||||
struct dw_xpcs *xpcs;
|
||||
|
|
@ -1510,9 +1500,10 @@ static struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev)
|
|||
if (ret)
|
||||
goto out_clear_clks;
|
||||
|
||||
ret = xpcs_init_iface(xpcs);
|
||||
if (ret)
|
||||
goto out_clear_clks;
|
||||
if (xpcs->info.pma == WX_TXGBE_XPCS_PMA_10G_ID)
|
||||
xpcs->pcs.poll = false;
|
||||
else
|
||||
xpcs->need_reset = true;
|
||||
|
||||
return xpcs;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user