mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
net: pcs: xpcs: rearrange xpcs_link_up_1000basex()
Rearrange xpcs_link_up_1000basex() to make it more obvious what will happen in the following commit. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Tested-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
8d2aeab4ce
commit
b61a465a76
@ -1133,12 +1133,13 @@ static void xpcs_link_up_1000basex(struct dw_xpcs *xpcs, unsigned int neg_mode,
|
||||
return;
|
||||
}
|
||||
|
||||
if (duplex != DUPLEX_FULL)
|
||||
dev_err(&xpcs->mdiodev->dev, "%s: half duplex not supported\n",
|
||||
__func__);
|
||||
|
||||
val = BMCR_SPEED1000;
|
||||
if (duplex == DUPLEX_FULL)
|
||||
val |= BMCR_FULLDPLX;
|
||||
else
|
||||
dev_err(&xpcs->mdiodev->dev, "%s: half duplex not supported\n",
|
||||
__func__);
|
||||
|
||||
ret = xpcs_write(xpcs, MDIO_MMD_VEND2, MII_BMCR, val);
|
||||
if (ret)
|
||||
|
Loading…
Reference in New Issue
Block a user