net: hns: add ACPI mode support for ethtool -p
authorJian Shen <shenjian15@huawei.com>
Fri, 29 Dec 2017 09:11:11 +0000 (17:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 19:50:39 +0000 (14:50 -0500)
commit3abbcccc6f318f858ffbd4e3d82839b66ff1b960
treea37eaa0719de4a9fa20b038a1e243a11199ada7d
parent8d93ac003ff7cf49ea0669a3a92528be250179f9
net: hns: add ACPI mode support for ethtool -p

The locate operation interface of fiber port can only
work with DT mode. Add a new interface to control the
locate led for ACPI mode.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Tested-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c