OpenCloudOS-Kernel/drivers/infiniband/hw
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
..
bnxt_re First -rc update for 4.14 kernel 2017-09-23 05:47:04 -10:00
cxgb3 RDMA: Simplify get firmware interface 2017-08-10 13:28:10 +03:00
cxgb4 iw_cxgb4: remove the stid on listen create failure 2017-09-22 12:59:42 -04:00
hfi1 lib/interval_tree: fast overlap detection 2017-09-08 18:26:49 -07:00
hns RDMA/hns: Modify assignment device variable to support both PCI device and platform device 2017-09-27 08:34:55 -04:00
i40iw i40iw: Add support for port reuse on active side connections 2017-09-22 13:43:36 -04:00
mlx4 IB/mlx4: fix sprintf format warning 2017-09-13 18:53:15 -07:00
mlx5 IB/mlx5: fix debugfs cleanup 2017-09-22 13:17:32 -04:00
mthca RDMA/mthca: Make explicit conversion to 64bit value 2017-08-24 16:27:10 -04:00
nes RDMA/nes: Remove zeroed parameter from port query callback 2017-08-24 16:44:48 -04:00
ocrdma IB/ocrdma: fix incorrect fall-through on switch statement 2017-09-22 13:16:00 -04:00
qedr RDMA/qedr: fix spelling mistake: "invlaid" -> "invalid" 2017-08-24 17:34:57 -04:00
qib IB/qib: Convert qp_stats debugfs interface to use new iterator API 2017-08-28 19:12:30 -04:00
usnic lib/interval_tree: fast overlap detection 2017-09-08 18:26:49 -07:00
vmw_pvrdma RDMA/vmw_pvrdma: Fix reporting correct opcodes for completion 2017-09-22 13:32:22 -04:00
Makefile RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00