• spiiroin's avatar
    [usb_moded] Refactor entering/leaving usb mode. JB#41748 · 64350689
    spiiroin authored
    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: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    64350689
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...