]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Oct 2012 17:02:12 +0000 (10:02 -0700)
commit24d76b99f3422973490ce436776978e419d46c16
tree021b3df0525f386e41e970ae4d2ee8a8dad48d0f
parent1468380b7f96472fc03cf7c9459323cdc9d7d405
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>
drivers/usb/class/cdc-acm.c