]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: Add ACPI support to check SFP present
authorDaode Huang <huangdaode@hisilicon.com>
Thu, 30 Mar 2017 15:37:41 +0000 (16:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Apr 2017 19:10:58 +0000 (12:10 -0700)
commit649be3a06a095dd6cc0edeec7179b6edba4c9f21
tree900a80c6e2ed26d3ccd1f1f627145805392e8d18
parentec8f3d01481c4c4d7feba6d87c82255c5e289619
net: hns: Add ACPI support to check SFP present

The current code only supports DT to check SFP present.
This patch adds ACPI support as well.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.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