.. | .. |
---|
116 | 116 | if (le16_to_cpu(udev->descriptor.idVendor) == 0x0bc2) |
---|
117 | 117 | flags |= US_FL_NO_ATA_1X; |
---|
118 | 118 | |
---|
| 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 | + |
---|
119 | 132 | usb_stor_adjust_quirks(udev, &flags); |
---|
120 | 133 | |
---|
121 | 134 | if (flags & US_FL_IGNORE_UAS) { |
---|