usb: acm: fix the computation of the number of data bits
authorNicolas Boullis <nboullis@debian.org>
Mon, 15 Oct 2012 22:06:23 +0000 (00:06 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:26:50 +0000 (23:26 +0000)
commit04dd5c71af5db7aa9b9c303292857bdfe57ff817
tree66effb4e514d47749fbf77609ce29a2604e6ea93
parent8716d18b3d70ac1f6f6b5b350d691bff020ccc52
usb: acm: fix the computation of the number of data bits

commit 301a29da6e891e7eb95c843af0ecdbe86d01f723 upstream.

The current code assumes that CSIZE is 0000060, which appears to be
wrong on some arches (such as powerpc).

Signed-off-by: Nicolas Boullis <nboullis@debian.org>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/class/cdc-acm.c