All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux kernel 6.1 - drivers/usb/storage/unusual_cypress.h "Super Top" minimum bcdDevice too high
@ 2023-10-26 15:32 LihaSika
  2023-10-26 19:14 ` Greg KH
  0 siblings, 1 reply; 20+ messages in thread
From: LihaSika @ 2023-10-26 15:32 UTC (permalink / raw)
  To: stable; +Cc: regressions

Hi,	

in kernel 6.1 (maybe 5.x - 6.x) there's an ATACB setting for "Super Top 
USB 2.0 SATA Bridge" -devices, where the minimum bcdDevice version to 
match has been set to 1.60. It's in the file 
drivers/usb/storage/unusual_cypress.h:

"""
UNUSUAL_DEV( 0x14cd, 0x6116, 0x0160, 0x0160,
  		"Super Top",
  		"USB 2.0  SATA BRIDGE",
  		USB_SC_CYP_ATACB, USB_PR_DEVICE, NULL, 0),
"""

My old USB HDD with a "Super Top" bridge has bcdDevice version 1.50, 
thus the setting won't match and it will not mount.

I'm not sure when this changed (after kernel 4.x?), but it used to work 
before. Reading some earlier bug reports, it seems that the max version 
used to be 0x9999, which then caused corruption in "Super Top" devices 
with version >=2.20. So that's a reason for lowering the maximum value, 
but I wonder why the minimum value has also been set to 0x0160.


I created a patch, changing 0x0160 to 0x0150 (though I should've left 
the max version as it was...):

"""
UNUSUAL_DEV( 0x14cd, 0x6116, 0x0150, 0x0150,
"""

Built, installed and rebooted; now the USB HDD can be mounted and works 
perfectly again. I did some write & read tests, checked with diff, cmp 
and md5sum - no corruption, everything OK 👍


Best regards,
LihaS

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-10-28 11:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26 15:32 Linux kernel 6.1 - drivers/usb/storage/unusual_cypress.h "Super Top" minimum bcdDevice too high LihaSika
2023-10-26 19:14 ` Greg KH
2023-10-26 19:39   ` LihaSika
2023-10-27  1:27     ` Bagas Sanjaya
2023-10-27 12:15       ` [PATCH] set 1.50 as the lower bcdDevice value for "Super Top"-device in drivers/usb/storage/unusual_cypress.h LihaSika
2023-10-27 12:22         ` Greg KH
2023-10-27 12:37           ` LihaSika
2023-10-27 12:46             ` Greg KH
2023-10-27 13:06               ` [PATCH] usb: storage: set 1.50 as the lower bcdDevice compatibility for older "Super Top"-device to work LihaSika
2023-10-27 13:41                 ` [PATCH] usb: storage: set 1.50 as the lower bcdDevice for older "Super Top" compatibility LihaSika
2023-10-27 13:53                   ` Greg KH
2023-10-27 17:26                     ` LihaSika
2023-10-27 17:28                     ` LihaSika
2023-10-28  7:02                       ` Bagas Sanjaya
2023-10-28 10:23                         ` Greg Kroah-Hartman
2023-10-28 11:05                           ` Bagas Sanjaya
2023-10-28 11:20                             ` LihaSika
2023-10-27 12:56             ` [PATCH] set 1.50 as the lower bcdDevice value for "Super Top"-device in drivers/usb/storage/unusual_cypress.h Bagas Sanjaya
2023-10-27 13:05               ` Greg KH
2023-10-27 13:09                 ` Bagas Sanjaya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.