Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[usb_moded] Refactor entering/leaving usb mode. JB#41748
Split mode switching to three layers: Tracking cable connection state, choosing target mode, and performing required actions to activate the chosen mode. Try to minimize places where layer borders are crossed - which should work also as an enabler for moving blocking actions to separate thread later on. Arrange logic in such manner that usb gadget is always configured as being able to serve some function - fallback being the dummy mass_storage function used for charging. Deprecate command line options that serve no useful purpose after the changes. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
11 changed files
with
252 additions
and
441 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
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
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
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
Oops, something went wrong.