]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: Force CPU port to its highest bandwidth
authorMichal Vokáč <vokac.m@gmail.com>
Wed, 23 May 2018 06:20:21 +0000 (08:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 19:46:18 +0000 (15:46 -0400)
commit3c7847af822d20eaa9f57dc91a04513673c2c7f9
treee97c99dd280177e6be2915af8889c15535f63e9b
parent7568dac0dad4d850d6bbf3eaaa0f236316dde9c7
net: dsa: qca8k: Force CPU port to its highest bandwidth

By default autonegotiation is enabled to configure MAC on all ports.
For the CPU port autonegotiation can not be used so we need to set
some sensible defaults manually.

This patch forces the default setting of the CPU port to 1000Mbps/full
duplex which is the chip maximum capability.

Also correct size of the bit field used to configure link speed.

Fixes: aa915a44b814 ("net-next: dsa: add new driver for qca8xxx family")
Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h