From: Volodymyr Bendiuga Date: Tue, 3 Jan 2017 09:49:09 +0000 (+0100) Subject: dsa:mv88e6xxx: allow address 0x1 in smi_init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07b76ba9f827ffe8faebe78a98c96174a2538078;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git dsa:mv88e6xxx: allow address 0x1 in smi_init Some devices, such as the mv88e6097 do have ADDR[0] external and so it is possible to configure the device to use SMI address 0x1. Remove the restriction, as there are boards using this address. Signed-off-by: Volodymyr Bendiuga Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index f7222dc6581d..b5f0e1ec864d 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -4240,10 +4240,6 @@ static void mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip) static int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int sw_addr) { - /* ADDR[0] pin is unavailable externally and considered zero */ - if (sw_addr & 0x1) - return -EINVAL; - if (sw_addr == 0) chip->smi_ops = &mv88e6xxx_smi_single_chip_ops; else if (mv88e6xxx_has(chip, MV88E6XXX_FLAGS_MULTI_CHIP))