Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: mvpp2: do not bypass the mvpp22_port_mii_set function

The mvpp22_port_mii_set() function was added by 2697582144dd, but the
function directly returns without doing anything. This return was used
when debugging and wasn't removed before sending the patch. Fix this.

Fixes: 2697582144dd ("net: mvpp2: handle misc PPv2.1/PPv2.2 differences")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Antoine Ténart and committed by
David S. Miller
e173db36 3a807b75

-2
-2
drivers/net/ethernet/marvell/mvpp2.c
··· 4186 4186 { 4187 4187 u32 val; 4188 4188 4189 - return; 4190 - 4191 4189 /* Only GOP port 0 has an XLG MAC */ 4192 4190 if (port->gop_id == 0) { 4193 4191 val = readl(port->base + MVPP22_XLG_CTRL3_REG);