Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1373669 > unrolled thread
| Started by | Leonid Moiseichuk <leonid.moiseichuk@gmail.com> |
|---|---|
| First post | 2016-04-07 21:00 +0200 |
| Last post | 2016-04-12 04:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v3] mvsas: Generalize Marvell 9485 in pci_device_id Leonid Moiseichuk <leonid.moiseichuk@gmail.com> - 2016-04-07 21:00 +0200
Re: [PATCH v3] mvsas: Generalize Marvell 9485 in pci_device_id "Martin K. Petersen" <martin.petersen@oracle.com> - 2016-04-12 04:20 +0200
| From | Leonid Moiseichuk <leonid.moiseichuk@gmail.com> |
|---|---|
| Date | 2016-04-07 21:00 +0200 |
| Subject | [PATCH v3] mvsas: Generalize Marvell 9485 in pci_device_id |
| Message-ID | <rlnjR-8fc-39@gated-at.bofh.it> |
For generic subvendor has sense to use generic subdevice.
If subdevice ID not equal to 0x9480/0x9485 mvsas will be not activated.
Tested on ASUS P9A-I/C2550/SAS/4L which uses vendor-specific 1043:8635.
v3: add comment and changelog according to Andy's findings
v2: re-phrased commit message
Signed-off-by: Leonid Moiseichuk <leonid.moiseichuk@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
---
drivers/scsi/mvsas/mv_init.c | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index c7c250519c4b..8280046fd1f0 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -704,24 +704,7 @@ static struct pci_device_id mvs_pci_table[] = {
.class_mask = 0,
.driver_data = chip_9445,
},
- {
- .vendor = PCI_VENDOR_ID_MARVELL_EXT,
- .device = 0x9485,
- .subvendor = PCI_ANY_ID,
- .subdevice = 0x9480,
- .class = 0,
- .class_mask = 0,
- .driver_data = chip_9485,
- },
- {
- .vendor = PCI_VENDOR_ID_MARVELL_EXT,
- .device = 0x9485,
- .subvendor = PCI_ANY_ID,
- .subdevice = 0x9485,
- .class = 0,
- .class_mask = 0,
- .driver_data = chip_9485,
- },
+ { PCI_VDEVICE(MARVELL_EXT, 0x9485), chip_9485 }, /* Marvell 9480/9485 (any vendor/model) */
{ PCI_VDEVICE(OCZ, 0x1021), chip_9485}, /* OCZ RevoDrive3 */
{ PCI_VDEVICE(OCZ, 0x1022), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact model unknown) */
{ PCI_VDEVICE(OCZ, 0x1040), chip_9485}, /* OCZ RevoDrive3/zDriveR4 (exact model unknown) */
--
2.8.0.rc3
[toc] | [next] | [standalone]
| From | "Martin K. Petersen" <martin.petersen@oracle.com> |
|---|---|
| Date | 2016-04-12 04:20 +0200 |
| Message-ID | <rmW5P-7US-3@gated-at.bofh.it> |
| In reply to | #1373669 |
>>>>> "Leonid" == Leonid Moiseichuk <leonid.moiseichuk@gmail.com> writes: Leonid> For generic subvendor has sense to use generic subdevice. If Leonid> subdevice ID not equal to 0x9480/0x9485 mvsas will be not Leonid> activated. Applied to 4.7/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web