[usb_moded] Fix mode-switch failure handling
Using MODE_CHARGING_FALLBACK as mode switch failure fallback
causes retriggering of "ask" mode. And overriding only higher
level state data leads to subtle issues later on.
Use MODE_CHARGING as failure fallback, and override both
high and low level mode state info when requested mode can't
be activated.
Signed-off-by:
Simo Piiroinen <simo.piiroinen@jollamobile.com>
Showing
Please register or sign in to comment