hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/usb/storage/uas-detect.h
....@@ -116,6 +116,19 @@
116116 if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bc2)
117117 flags |= US_FL_NO_ATA_1X;
118118
119
+ /*
120
+ * RTL9210-based enclosure from HIKSEMI, MD202 reportedly have issues
121
+ * with UAS. This isn't distinguishable with just idVendor and
122
+ * idProduct, use manufacturer and product too.
123
+ *
124
+ * Reported-by: Hongling Zeng <zenghongling@kylinos.cn>
125
+ */
126
+ if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bda &&
127
+ le16_to_cpu(udev->descriptor.idProduct) == 0x9210 &&
128
+ (udev->manufacturer && !strcmp(udev->manufacturer, "HIKSEMI")) &&
129
+ (udev->product && !strcmp(udev->product, "MD202")))
130
+ flags |= US_FL_IGNORE_UAS;
131
+
119132 usb_stor_adjust_quirks(udev, &flags);
120133
121134 if (flags & US_FL_IGNORE_UAS) {