1. 09 Apr, 2019 1 commit
  2. 05 Sep, 2018 2 commits
  3. 24 Aug, 2018 3 commits
    • spiiroin's avatar
      [dyn-config] Align config parsing for readability · 9dd55147
      spiiroin authored
      Long member and key names, and interleaved debug logging makes the config
      parsing code difficult to read.
      
      Add whitespace to increase ease visual inspection. Move debug logging
      to occur after each configuration block has been parsed.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      9dd55147
    • 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
    • spiiroin's avatar
      [usb_moded] Add configfs support. Fixes JB#42083 · 692c2cb3
      spiiroin authored
      Add custom Makefile for faster smoke-test rebuilds without spending time
      in configure, autotools, document generation and/or rolling rpm packages.
      
      Add multiple include protection to all header files.
      
      Move function prototypes away from header files that included in the
      development package.
      
      Mass rename functions to have a prefix giving context for the function.
      For the most part the prefix is derived from the name of the compilation
      module containing the function.
      
      Mass normalize indentation to four spaces in all source files.
      
      Augment author lists on each source file based on git committers.
      
      Remove "inline" attributes from not-really-inlineable functions.
      
      Remove .gitignore.
      
      Remove unused modules-android.c source file.
      
      Define _GNU_SOURCE for whole build rather than in individual files.
      
      Fix resource leaks here and there.
      
      Try to avoid hard-coding android usb paths.
      
      Add configfs backend for usb cadget configuration.
      
      Probe supported backends (configfs, android usb, or kmod) on usb-moded
      startup and make them mutually exclusive with each other.
      
      Allow configfs and android usb control structures some time to show up
      if usb-moded is started during device bootup.
      
      Refactor udev event listener to utilize a state machine. Simplifies
      book keeping and makes pc/charger detection heuristics easier to control.
      
      Refactor mode selection to utilize three interconnected mini state machines.
      Allows separating logically wanted mode from mode programmed to usb and
      mode exposed over D-Bus.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      692c2cb3
  4. 28 Mar, 2018 1 commit
  5. 07 Nov, 2016 1 commit
  6. 07 Jul, 2016 2 commits
    • spiiroin's avatar
      [appsync] Start/stop only applications relevant to mode. JB#35683 · 206c9573
      spiiroin authored
      The boolean state data for tracking active/inactive applications makes
      it difficult to separate applications that are not relevant to the mode
      and as a result an attempt to stop also those irrelevant apps that were
      not started is made when exiting the mode.
      
      Switch from boolean to inactive|active|dontcare state tracking.
      
      When starting appsync, mark apps relevant to the mode as inactive and
      the rest as dontcare.
      
      When stopping appsync, stop only those applications that have been
      activated by usb-moded.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      206c9573
    • spiiroin's avatar
      [appsync] Stop post-enum apps before stopping pre-enum apps. JB#35683 · df105a6b
      spiiroin authored
      When appsync is starting applications, pre-enum applications are started
      before post-enum apps. However stopping applications is done in whatever
      order they happen to be after configuration parsing - which could cause
      problems if post apps have explicit dependencies on pre apps.
      
      Do also application stopping in two phases: first post-enum apps followed
      by pre-enum apps.
      
      Also, apart from usb-moded startup/shutdown, attempt to skip stopping of
      applications that have not been started.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      df105a6b
  7. 24 Sep, 2015 1 commit
  8. 28 Apr, 2015 1 commit
  9. 10 Mar, 2014 1 commit
  10. 11 Dec, 2013 1 commit
  11. 22 Oct, 2013 1 commit
  12. 05 Jun, 2013 1 commit
  13. 01 Mar, 2012 1 commit
  14. 10 May, 2011 1 commit
  15. 21 Apr, 2011 1 commit
  16. 22 Mar, 2011 1 commit