net: dsa: lan9303: Add adjust_link() method
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Tue, 19 Sep 2017 08:09:24 +0000 (10:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Sep 2017 21:13:52 +0000 (14:13 -0700)
commit4d6a78b477dd9686e7034aa140057ce7a5da5fd3
tree2b5018c3470ed063d1f4cdb74a2aa459786d9dce
parent00ba4cb36da682c68dc87d1703a8aaffe2b4e9c5
net: dsa: lan9303: Add adjust_link() method

Make the driver react to device tree "fixed-link" declaration on CPU port.

- turn off autonegotiation
- force speed 10 or 100 mb/s
- force duplex mode

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c