mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
staging:rts_pstor:Avoid "Bad target number" message when probing driver
Avoid "Bad LUN" and "Bad target number" message by setting the supported max_lun and max_id for the scsi host Signed-off-by: wwang <wei_wang@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0d05568ac7
commit
b5bd70a162
1 changed files with 5 additions and 0 deletions
|
@ -1000,6 +1000,11 @@ static int __devinit rtsx_probe(struct pci_dev *pci,
|
|||
|
||||
rtsx_init_chip(dev->chip);
|
||||
|
||||
/* set the supported max_lun and max_id for the scsi host
|
||||
* NOTE: the minimal value of max_id is 1 */
|
||||
host->max_id = 1;
|
||||
host->max_lun = dev->chip->max_lun;
|
||||
|
||||
/* Start up our control thread */
|
||||
th = kthread_run(rtsx_control_thread, dev, CR_DRIVER_NAME);
|
||||
if (IS_ERR(th)) {
|
||||
|
|
Loading…
Reference in a new issue