aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorAdam Thomson <[email protected]>2018-07-17 14:36:19 +0000
committerGreg Kroah-Hartman <[email protected]>2018-07-20 14:40:04 +0000
commitc413767e6698ae24ac1904827314470cacff1497 (patch)
tree825af8205081da8dec375eb9dc38cbc9de3ce81b /lib/debugobjects.c
parentusb: gadget: f_fs: Only return delayed status when len is 0 (diff)
downloadkernel-c413767e6698ae24ac1904827314470cacff1497.tar.gz
kernel-c413767e6698ae24ac1904827314470cacff1497.zip
usb: typec: tcpm: Fix sink PDO starting index for PPS APDO selection
There is a bug in the sink PDO search code when trying to select a PPS APDO. The current code actually sets the starting index for searching to whatever value 'i' is, rather than choosing index 1 to avoid the first PDO (always 5V fixed). As a result, for sources which support PPS but whose PPS APDO index does not match with the supporting sink PPS APDO index for the platform, no valid PPS APDO will be found so this feature will not be permitted. Sadly in testing, both Source and Sink capabilities matched up and this was missed. Code is now updated to correctly set the start index to 1, and testing with additional PPS capable sources show this to work as expected. Signed-off-by: Adam Thomson <[email protected]> Fixes: 2eadc33f40d4 ("typec: tcpm: Add core support for sink side PPS") Reviewed-by: Heikki Krogerus <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions