]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: add new default led configure for m88e151x
authorJian Shen <shenjian15@huawei.com>
Mon, 22 Apr 2019 13:52:23 +0000 (21:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 17:40:32 +0000 (10:40 -0700)
commitffba1116ee05457528fb3a8d242f6f2746142ad6
treeb453d59c1875a1bf2641472c13d612b866d7aed3
parent6338db978d0bd9d6ec2f4be9a279e63b104706d9
net: phy: marvell: add new default led configure for m88e151x

The default m88e151x LED configuration is 0x1177, used LED[0]
for 1000M link, LED[1] for 100M link, and LED[2] for active.
But for some boards, which use LED[0] for link, and LED[1] for
active, prefer to be 0x1040. To be compatible with this case,
this patch defines a new dev_flag, and set it before connect
phy in HNS3 driver. When phy initializing, using the new
LED configuration if this dev_flag is set.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
drivers/net/phy/marvell.c
include/linux/marvell_phy.h