[PATCH 4/4][Bionic] scsi: hisi_sas: add v3 hw MODULE_DEVICE_TABLE()

dann frazier dann.frazier at canonical.com
Thu Apr 12 16:44:12 UTC 2018

From: Xiang Chen <chenxiang66 at hisilicon.com>

BugLink: https://bugs.launchpad.net/bugs/1762824

Export device table of v3 hw to userspace, or auto probe will fail for v3

Also change the module alias to include "pci", instead of "platform".

Signed-off-by: Xiang Chen <chenxiang66 at hisilicon.com>
Signed-off-by: John Garry <john.garry at huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen at oracle.com>
(cherry picked from commit 40ec66b1bf4352315025b821f7a5aead3d8ea645)
Signed-off-by: dann frazier <dann.frazier at canonical.com>
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
index 1cfeb6488238..30b7bf7c2218 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
@@ -2398,6 +2398,7 @@ static const struct pci_device_id sas_v3_pci_table[] = {
 	{ PCI_VDEVICE(HUAWEI, 0xa230), hip08 },
+MODULE_DEVICE_TABLE(pci, sas_v3_pci_table);
 static const struct pci_error_handlers hisi_sas_err_handler = {
 	.error_detected	= hisi_sas_error_detected_v3_hw,
@@ -2420,4 +2421,4 @@ module_pci_driver(sas_v3_pci_driver);
 MODULE_AUTHOR("John Garry <john.garry at huawei.com>");
 MODULE_DESCRIPTION("HISILICON SAS controller v3 hw driver based on pci device");
-MODULE_ALIAS("platform:" DRV_NAME);

More information about the kernel-team mailing list