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 21:32:28 +0000 (13:32 -0800)
commit4c43e4acd66456f5da9b3365eaf7de6c793c8567
treefc4aa50a23d4ffd229113921d5f08f0c39cff03e
parent52c95efe90fdd5fc754f2dc51b9fead2a36a175f
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