OSDN Git Service

net: hns: fix LED configuration for marvell phy
authorYonglong Liu <liuyonglong@huawei.com>
Mon, 22 Jul 2019 05:59:12 +0000 (13:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2019 01:18:35 +0000 (18:18 -0700)
commitf4e5f775db5a4631300dccd0de5eafb50a77c131
treeb4b34dd41501ddf860ee3e38743e2fbf216a48f9
parentbba18318e7d1d5c8b0bbafd65010a0cee3c65608
net: hns: fix LED configuration for marvell phy

Since commit(net: phy: marvell: change default m88e1510 LED configuration),
the active LED of Hip07 devices is always off, because Hip07 just
use 2 LEDs.
This patch adds a phy_register_fixup_for_uid() for m88e1510 to
correct the LED configuration.

Fixes: 077772468ec1 ("net: phy: marvell: change default m88e1510 LED configuration")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Reviewed-by: linyunsheng <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c