]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: hns: bug fix about led control logic when link down
authorDaode Huang <huangdaode@hisilicon.com>
Tue, 21 Jun 2016 03:56:35 +0000 (11:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 08:51:55 +0000 (04:51 -0400)
commitd8a8371e8ba24e49d8e42d691a0c47e9cfc42cdd
tree27d6c9c60fbacd33191ec3bec7eb9b674632ce80
parent454784d85de372991ad2e473d562d4ad31f4502a
net: hns: bug fix about led control logic when link down

The default driver sets anchor led bit to 0 when link down,
actually, the anchor bit should be set to 1, so fixes it when
link status is down.
Secondly, change the return value of cpld_set_led_id to 0, which
means leave the cpld to control led blink frequece other than the
driver itself.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c