1. 09 Apr, 2019 1 commit
  2. 21 Feb, 2019 1 commit
  3. 05 Sep, 2018 1 commit
    • spiiroin's avatar
      [usb-moded] Remove redundant include statements · 176b53cf
      spiiroin authored
      Make all local header files self-sufficient.
      
      Normalize order of including header files, so that header corresponding with
      compilation module is included first, followed by local headers, system
      headers, standard headers, and finally headers from auxiliary libraries.
      
      Remove all include statements that are, or are made redundant by the above
      changes.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      176b53cf
  4. 24 Aug, 2018 3 commits
    • spiiroin's avatar
      [android] Use wrapper function for all sysfs writes. JB#41748 · 7896a728
      spiiroin authored
      Writing empty string gets ignored. This causes problems for example
      when switching from mass-storage mode to charging only as the
      lua/file attribute does not get cleared.
      
      Use a wrapper function to append a linefeed to strings written to sysfs.
      This avoids zero length writes and makes behavior similar to how
      redirected echo from command line works.
      
      Also tweak unexpected-sysfs-content-change tracker so that it ignores
      changes in whitespace.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      7896a728
    • spiiroin's avatar
      [android] Refactor android usb handling module. JB#41748 · 4f9ffa6d
      spiiroin authored
      Make it logically match what is available in configfs module.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      4f9ffa6d
    • 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
  5. 08 Mar, 2018 1 commit
    • spiiroin's avatar
      [android] Do not require android configuration block. Fixes JB#41303 · 7a2607c1
      spiiroin authored
      Usb-moded does android usb initialization only if there is a non-empty
      configuration block in the ini-files. This does not make sense anymore
      as the values defined in the config file are used as fallback solution
      if required data can't be obtained by other means.
      
      If android_usb specific sysfs controls are present on the device, try
      to initialize them regardless of whether ubs-moded configuration files
      contain relevant information or not.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      7a2607c1
  6. 05 Nov, 2015 1 commit
  7. 23 Aug, 2013 1 commit
  8. 14 Aug, 2013 1 commit
  9. 02 Aug, 2013 1 commit
  10. 17 Jan, 2013 1 commit
  11. 16 May, 2011 1 commit
  12. 21 Apr, 2011 1 commit
  13. 22 Mar, 2011 1 commit