usb-storage: restrict bcdDevice range for Super Top in Cypress ATACB
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 30 Jan 2014 15:20:29 +0000 (10:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Feb 2014 20:41:28 +0000 (12:41 -0800)
commitcb5238e402af4fe036bccf05ca94e80c406b6401
tree4ac6eb17c1822563b2661aaeabf43bd9ee6565d3
parentd563f80596aa9aaae98fdc29baff1df274e6baee
usb-storage: restrict bcdDevice range for Super Top in Cypress ATACB

commit a9c143c82608bee2a36410caa56d82cd86bdc7fa upstream.

The Cypress ATACB unusual-devs entry for the Super Top SATA bridge
causes problems.  Although it was originally reported only for
bcdDevice = 0x160, its range was much larger.  This resulted in a bug
report for bcdDevice 0x220, so the range was capped at 0x219.  Now
Milan reports errors with bcdDevice 0x150.

Therefore this patch restricts the range to just 0x160.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Milan Svoboda <milan.svoboda@centrum.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/unusual_cypress.h