power: supply: axp20x_usb_power: fix race condition with usb bc
authorAren Moynihan <aren@peacevolution.org>
Tue, 30 Jan 2024 20:27:59 +0000 (15:27 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 2 Feb 2024 22:21:53 +0000 (23:21 +0100)
commit06a807e6e5ffaa35327e85b386f00c8614f6caaa
tree578978b31aefb13cf56313f0dabbf101f61d3632
parentb02fbd830edf9f2cce076d93b787827aac1e402a
power: supply: axp20x_usb_power: fix race condition with usb bc

When input_current_limit is set while USB BC is in progress, the BC
module will overwrite the value that was set when it finishes detection.

Signed-off-by: Aren Moynihan <aren@peacevolution.org>
Link: https://lore.kernel.org/r/20240130203714.3020464-4-aren@peacevolution.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_usb_power.c