aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorHeikki Krogerus <[email protected]>2024-11-11 10:02:20 +0000
committerGreg Kroah-Hartman <[email protected]>2024-11-12 11:14:47 +0000
commit65c4c9447bfc5b80b88e4d354d09c8fb86fad07f (patch)
treec2c181ce5b2d4d1d729c0213b315bea2b1ee462b /drivers/usb/cdns3/cdns3-starfive.c
parentusb: musb: Fix hardware lockup on first Rx endpoint request (diff)
downloadkernel-65c4c9447bfc5b80b88e4d354d09c8fb86fad07f.tar.gz
kernel-65c4c9447bfc5b80b88e4d354d09c8fb86fad07f.zip
usb: typec: ucsi: Fix a missing bits to bytes conversion in ucsi_init()
The GET_CAPABILITY size is wrong. The definitions for the command sizes are for bitfieds and therefore in bits, not bytes. This fixes an issue that prevents the interface from being registered with UCSI versions older than 2.0 because the command size exceeds the MESSAGE_IN field size. Fixes: 226ff2e681d0 ("usb: typec: ucsi: Convert connector specific commands to bitmaps") Reported-by: Abel Vesa <[email protected]> Closes: https://lore.kernel.org/linux-usb/[email protected]/ Signed-off-by: Heikki Krogerus <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Tested-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions