summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2015-10-02 10:23:30 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-10-02 10:06:47 +0200
commitd0a5ea479e6d3d89ea3ce0586de7eb51c9c39131 (patch)
tree2059aeac672decc73e4742b4c3ceb3c2cf667d22 /common
parentb0ae09acdacd212e681a3b6b670563d911a89153 (diff)
downloadbarebox-d0a5ea479e6d3d89ea3ce0586de7eb51c9c39131.tar.gz
barebox-d0a5ea479e6d3d89ea3ce0586de7eb51c9c39131.tar.xz
usb: core: drop unnecessary le16_to_cpu() conversion
In drivers/usb/core/usb.c we already have le16_to_cpus() conversion just after usb_get_descriptor(): 390 /* correct le values */ 391 le16_to_cpus(&dev->descriptor->bcdUSB); 392 le16_to_cpus(&dev->descriptor->idVendor); 393 le16_to_cpus(&dev->descriptor->idProduct); 394 le16_to_cpus(&dev->descriptor->bcdDevice); so no additional idVendor/idProduct descriptor fields le16_to_cpu() conversion is needed after that. On the big-endian machines extra le16_to_cpu() conversion leads to wrong idVendor/idProduct USB device parameters values (e.g. see devinfo <usb-device> output), and to a much more serious problem: idVendor/idProduct-based USB device detection does not work. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions