IB/hns: Add support of ACPI to the Hisilicon RoCE driver
authorSalil <salil.mehta@huawei.com>
Tue, 23 Aug 2016 20:44:50 +0000 (04:44 +0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 25 Aug 2016 14:05:10 +0000 (10:05 -0400)
commit528f1deb16e5b82e9fe161ebd8caa5983766f0f0
treee491e9ea31baec5c606cc0f5bf69b2bfcbf6f857
parentd605916b76593417340397fe281acd2e8a953706
IB/hns: Add support of ACPI to the Hisilicon RoCE driver

This patch is meant to add support of ACPI to the Hisilicon RoCE
driver.

Changes done are primarily meant to detect the type and then either
use DT specific or ACPI spcific functions. Where ever possible,
this patch tries to make use of Unified Device Property Interface
APIs to support both DT and ACPI through single interface.

This patch depends upon HNS ethernet driver to Reset RoCE. This
function within HNS ethernet driver has also been enhanced to
support ACPI and is part of other accompanying patch with this
patch-set.

NOTE: The changes in this patch are done over below branch,
https://github.com/dledford/linux/tree/hns-roce

Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_eq.c
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v1.h
drivers/infiniband/hw/hns/hns_roce_main.c