On Sun, May 24, 2020 at 09:46:06AM +0200, Till Dörges wrote: > Am 23.05.20 um 22:33 schrieb Alan Stern: > > >>>> I'm trying to get external HDDs from Sony to work under Linux with USB 3.0. > >> [...] > >>>> - PSZ-HA2T: idVendor=054c, idProduct=087d > >>>> - PSZ-HA1T: idVendor=054c, idProduct=087d > >>>> - PSZ-HA50: idVendor=054c, idProduct=087d > >>>> - PSZ-HC1T: idVendor=054c, idProduct=0c4f > [...] > >> Because with setting the f flag (via options usb-storage quirks=054c:087d:f) the > >> PSZ-HA*1*T starts behaving nicely. > [...] > >> The PSZ-HA*2*T, however, still doesn't work with that. > [...] > > That device seems to be behaving so badly, it's hard to tell what the > > underlying problem is. > > > > I'd start by blacklisting the device for UAS, so forcing it to use > > usb-storage, which is a somewhat simpler protocol. Next, you should > > collect a usbmon trace showing what happens when you plug in the > > PSZ-HA2T. That will tell us what's going on, even if it doesn't suggest > > a way to work around the problems. > > > > (The instructions for usbmon are in the kernel source file > > Documentation/usb/usbmon.rst.) > > Thanks. Will give that a shot. > > > Is there any way to differentiate between devices other than vendor and product ID? > > Because the PSZ-HA1T (which seems to be working thanks to your help) and the PSZ-HA2T > (which still refuses to work) have the *same* vendor and product ID. There's also the bcdDevice value. It is ignored for quirks specified by the "quirks=" module parameter, but it is used for quirks stored in the unusual_devs.h or unusual_uas.h files in the kernel source code. Alan Stern