OpenCloudOS-Kernel/drivers/infiniband/hw/hns
Wei Hu(Xavier) 13ca970e36 RDMA/hns: Modify assignment device variable to support both PCI device and platform device
In order to support the scalability of the hardware version, the
features irrelevant to the hardware will be located in the hns-roce.ko,
and the hardware relevant operations will be located in hns_roce_hw_v1.ko
or hns_roce_hw_v2.ko based on the series chips.

The hip08 RoCE engine is a PCI device, hip06 RoCE engine is a platform
device. In order to support both platform device and PCI device, We
replace &hr_dev->pdev->dev with hr_dev->dev in hns-roce.ko as belows:
	Before modification:
		struct device *dev = hr_dev->dev;
	After modification:
		struct device *dev = &hr_dev->pdev->dev;

	The related structure:
	struct hns_roce_dev {
		...
		struct platform_device  *pdev;
		struct pci_dev		*pci_dev;
		struct device		*dev;
		...
	}

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-09-27 08:34:55 -04:00
..
Kconfig RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
Makefile RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
hns_roce_ah.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_alloc.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_cmd.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_cmd.h IB/hns: Fix the bug when free mr 2016-12-03 14:20:42 -05:00
hns_roce_common.h IB/hns: Fix the bug when free cq 2016-12-03 14:20:42 -05:00
hns_roce_cq.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_device.h RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
hns_roce_eq.c IB/hns: include linux/interrupt.h 2017-07-31 14:44:47 -04:00
hns_roce_eq.h IB/hns: Optimize code of aeq and ceq interrupt handle and fix the bug of qpn 2016-10-03 11:43:15 -04:00
hns_roce_hem.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_hem.h IB/hns: Fix bug of clear hem 2016-10-03 11:43:15 -04:00
hns_roce_hw_v1.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_hw_v1.h IB/hns: Fix the bug when free mr 2016-12-03 14:20:42 -05:00
hns_roce_hw_v2.c RDMA/hns: Initialize the PCI device for hip08 RoCE 2017-09-27 08:34:55 -04:00
hns_roce_main.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_mr.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_pd.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
hns_roce_qp.c RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00