projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22ffeb4
)
qla2xxx: Restrict max_lun to 16-bit for older HBAs
author
Hannes Reinecke
<
[email protected]
>
Tue, 3 Jun 2014 08:58:54 +0000
(10:58 +0200)
committer
Christoph Hellwig
<
[email protected]
>
Thu, 17 Jul 2014 20:07:36 +0000
(22:07 +0200)
Older HBAs are only capable of supporting 16-bit LUNs,
so we need to make sure to adjust max_lun accordingly.
Signed-off-by: Hannes Reinecke <
[email protected]
>
Acked-by: Chad Dupuis <
[email protected]
>
Reviewed-by: Ewan Milne <
[email protected]
>
Signed-off-by: Christoph Hellwig <
[email protected]
>
drivers/scsi/qla2xxx/qla_os.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_os.c
b/drivers/scsi/qla2xxx/qla_os.c
index d96bfb55e57b25359b1180140e2973ae1af2a045..5269aee1df3b7b36f1f1a2956d978f740fbc4e76 100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_os.c
+++ b/
drivers/scsi/qla2xxx/qla_os.c
@@
-2661,7
+2661,12
@@
qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
else
host->max_cmd_len = MAX_CMDSZ;
host->max_channel = MAX_BUSES - 1;
- host->max_lun = ql2xmaxlun;
+ /* Older HBAs support only 16-bit LUNs */
+ if (!IS_QLAFX00(ha) && !IS_FWI2_CAPABLE(ha) &&
+ ql2xmaxlun > 0xffff)
+ host->max_lun = 0xffff;
+ else
+ host->max_lun = ql2xmaxlun;
host->transportt = qla2xxx_transport_template;
sht->vendor_id = (SCSI_NL_VID_TYPE_PCI | PCI_VENDOR_ID_QLOGIC);