On 1.12.2015 13:39, Raghava Aditya Renukunta wrote: > From: Raghava Aditya Renukunta <raghavaaditya.renukunta@xxxxxxxx> > > Added module parameter that disables device ID wild card binding. What is the use case for this? It looks like something which could be solved in the modprobe config, without a module option. Cheers, Tomas > > Signed-off-by: Raghava Aditya Renukunta <raghavaaditya.renukunta@xxxxxxxx> > --- > drivers/scsi/aacraid/aachba.c | 5 +++++ > drivers/scsi/aacraid/aacraid.h | 1 + > drivers/scsi/aacraid/linit.c | 5 +++++ > 3 files changed, 11 insertions(+) > > diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c > index 06cbab8..87f4f21 100644 > --- a/drivers/scsi/aacraid/aachba.c > +++ b/drivers/scsi/aacraid/aachba.c > @@ -315,6 +315,11 @@ MODULE_PARM_DESC(wwn, "Select a WWN type for the arrays:\n" > "\t1 - Array Meta Data Signature (default)\n" > "\t2 - Adapter Serial Number"); > > +int aac_disable_device_id_wildcards; > +module_param_named(disable_device_id_wildcards, > + aac_disable_device_id_wildcards, int, S_IRUGO | S_IWUSR); > +MODULE_PARM_DESC(disable_device_id_wildcards, > + "Disable device ID wildcards"); > > static inline int aac_valid_context(struct scsi_cmnd *scsicmd, > struct fib *fibptr) { > diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h > index 594de5f..7708a2c 100644 > --- a/drivers/scsi/aacraid/aacraid.h > +++ b/drivers/scsi/aacraid/aacraid.h > @@ -2177,3 +2177,4 @@ extern int aac_commit; > extern int update_interval; > extern int check_interval; > extern int aac_check_reset; > +extern int aac_disable_device_id_wildcards; > diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c > index 3a4dbe7..2094842 100644 > --- a/drivers/scsi/aacraid/linit.c > +++ b/drivers/scsi/aacraid/linit.c > @@ -1135,6 +1135,11 @@ static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) > u64 dmamask; > extern int aac_sync_mode; > > + if (aac_disable_device_id_wildcards && > + id->subvendor == PCI_ANY_ID && > + id->subdevice == PCI_ANY_ID) > + return -ENODEV; > + > /* > * Only series 7 needs freset. > */ -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html