hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/scsi/scsi_scan.c
....@@ -1129,8 +1129,7 @@
11291129 * that no LUN is present, so don't add sdev in these cases.
11301130 * Two specific examples are:
11311131 * 1) NetApp targets: return PQ=1, PDT=0x1f
1132
- * 2) IBM/2145 targets: return PQ=1, PDT=0
1133
- * 3) USB UFI: returns PDT=0x1f, with the PQ bits being "reserved"
1132
+ * 2) USB UFI: returns PDT=0x1f, with the PQ bits being "reserved"
11341133 * in the UFI 1.0 spec (we cannot rely on reserved bits).
11351134 *
11361135 * References:
....@@ -1144,8 +1143,8 @@
11441143 * PDT=00h Direct-access device (floppy)
11451144 * PDT=1Fh none (no FDD connected to the requested logical unit)
11461145 */
1147
- if (((result[0] >> 5) == 1 ||
1148
- (starget->pdt_1f_for_no_lun && (result[0] & 0x1f) == 0x1f)) &&
1146
+ if (((result[0] >> 5) == 1 || starget->pdt_1f_for_no_lun) &&
1147
+ (result[0] & 0x1f) == 0x1f &&
11491148 !scsi_is_wlun(lun)) {
11501149 SCSI_LOG_SCAN_BUS(3, sdev_printk(KERN_INFO, sdev,
11511150 "scsi scan: peripheral device type"