Skip to content

Commit

Permalink
staging:rts_pstor:Avoid "Bad target number" message when probing driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wwang authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 0d05568 commit b5bd70a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/staging/rts_pstor/rtsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit b5bd70a

Please sign in to comment.