]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: acm: fix endianness in notifications
authorOliver Neukum <oneukum@suse.com>
Tue, 14 Mar 2017 11:09:56 +0000 (12:09 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 22 Mar 2017 09:20:52 +0000 (11:20 +0200)
commit44f7b4b02db3c6c5f4253ead5de7ee66d294ca51
treee73898f472e1b8da0a3f6879bd3a44e9f317148c
parent2bb121f03d66ea49f3f98a75c9445758cce0c604
usb: gadget: acm: fix endianness in notifications

The gadget code exports the bitfield for serial status changes
over the wire in its internal endianness. The fix is to convert
to little endian before sending it over the wire.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Tested-by: 家瑋 <momo1208@gmail.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_acm.c