]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Fix speed selection for reverse MII
authorAndrew Lunn <andrew@lunn.ch>
Tue, 11 Sep 2018 23:53:12 +0000 (01:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:24:21 +0000 (20:24 -0700)
commita383361355b86cb8cf16636104a5280361e52489
treedf4d384c0ecfd12f839fcf48a77735f1e0ec257b
parent94abc83cfe5855e01402179b340ec683cd7df0e4
net: bcmgenet: Fix speed selection for reverse MII

The phy supported speed is being used to determine if the MAC should
be configured to 100 or 1G. The masking logic is broken. Instead, look
at 1G supported speeds to enable 1G MAC support.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c