Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[usb_moded] Arrange a route for signaling mode switch failures. JB#41748
If gadget configuration / other mode selection related activites fail, usb-moded attempts to activate charging only configuration / does fallback to undefined mode. This situation is not propagated upwards and thus incorrect information is exposed over D-Bus. Add feedback function that lower level functionality can use to signal failures / successfully completed mode change, and delay broadcasting of D-Bus signals until completing the change. As the mode change actions can potentially block for extended periods of time and render usb-moded unresponsive, mark places where worker thread signaling could be utilized instead of function calls. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters