net: dsa: mv88e6xxx: handle SERDES error appropriately
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 26 May 2017 22:02:42 +0000 (18:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 May 2017 22:54:02 +0000 (18:54 -0400)
commit523a89041c319bc0f6df60627ccb2413f441fb84
treebdfaff9d79a4611e4eb8dd923c5077df4e5134a0
parent5f1d258d5389643ee306bf616385d992ce39eac5
net: dsa: mv88e6xxx: handle SERDES error appropriately

mv88e6xxx_serdes_power returns an error, so no need to print an error
message inside of it. Rather print it in its caller when the error is
ignored, which is in the mv88e6xxx_port_disable void function.

Catch and return its error in the counterpart mv88e6xxx_port_enable.

Fixes: 04aca9938255 ("dsa: mv88e6xxx: Enable/Disable SERDES on port enable/disable")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c