1. 18 Feb, 2019 1 commit
  2. 16 Jan, 2019 1 commit
  3. 14 Nov, 2018 1 commit
  4. 12 Sep, 2018 1 commit
  5. 06 Sep, 2018 1 commit
  6. 27 Aug, 2018 1 commit
  7. 24 Aug, 2018 3 commits
    • spiiroin's avatar
      [usb_moded] Explicitly start/stop mtp daemon. Fixes JB#41748 · 041d46de
      spiiroin authored
      The mtp functionality is started roughly as follows:
      
      1. usb-moded completes whole gadget configuration, and then
      2. signals mtp mode activation on D-Bus
      3. msyncd sees the mode change and loads mtp plugin
      4. mtp plugin writes endpoint configuration, and then
      5. scans storage ares to enumerate files exposed via mtp, but
      6. does not really respond to ptp/mtp requests until storages are ready
      
      The problems are:
      
      While the above sequence has worked with with android usb, it does cause
      timing issues for usb enumeration and longer than expected response times
      from pc side mtp initiator point of view.
      
      Additionally when configfs is used, the gadget configuration can't even
      be completed before mtp daemon gets a chance to write configuration data
      to the control endpoint.
      
      To remedy the situation the following changes are made:
      
      1. buteo-mtp-qt5-sync-plugin package is removed from the system -> mtp
         functionality is no longer handled by msyncd process
      
      2. mtp daemon is made to enumerate storage content before writing config
         data to control endpoint -> when usb enumeration is possible, mtp
         daemon is already ready to handle commands from initiator
      
      3. usb-moded explicitly starts/stops mtp daemon when it is about to
         activate/deactivate mtp_mode -> usb stays configured in charging
         mode until it is ready to handle mtp
      
      This patch handles step (3). Step (2) is in buteo-mtp-qt5 >= 0.5.0,
      and (1) needs to be fixed in device specific package configuration.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      041d46de
    • spiiroin's avatar
      [mtp-mode] Require buteo-mtp-qt5 · 154bc19c
      spiiroin authored
      The "buteo-mtp" package name is probably old qt4 package that does not
      exist anymore.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      154bc19c
    • 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
  8. 06 Jun, 2018 1 commit
  9. 04 Apr, 2018 1 commit
  10. 29 Mar, 2018 2 commits
  11. 14 Mar, 2018 1 commit
  12. 04 Dec, 2017 1 commit
  13. 15 Nov, 2017 1 commit
  14. 23 Aug, 2017 2 commits
  15. 18 Aug, 2017 1 commit
  16. 05 May, 2017 1 commit
  17. 26 Apr, 2017 3 commits
  18. 24 Mar, 2017 2 commits
  19. 13 Mar, 2017 1 commit
  20. 14 Feb, 2017 1 commit
  21. 31 Jan, 2017 1 commit
  22. 07 Dec, 2016 4 commits
    • Lourens-Rich's avatar
      Update project url · a28578a2
      Lourens-Rich authored
      a28578a2
    • spiiroin's avatar
      Bump version to 0.86.0+mer9 · 23cc613d
      spiiroin authored
      Forgot to add bug ref to commit, so 0.86.0+mer8 got rejected by ci-bot.
      
      Make a dummy version bump and add bug ref to make ci-bot happy.
      
      [ssu] Use ssusysinfo instead of SSU D-Bus interface. Fixes JB#36841
      23cc613d
    • spiiroin's avatar
      Bump version to 0.86.0+mer8 · bb64b6d3
      spiiroin authored
      bb64b6d3
    • spiiroin's avatar
      [ssu] Use ssusysinfo instead of SSU D-Bus interface · 536e0e4f
      spiiroin authored
      During bootup usb-moded needs device name / model information before
      the system has reached a point where SSU daemon can be started. This
      can cause systemd deadlocks and/or timeouts as usb-moded waits for SSU
      daemon and the rest of the bootup is blocked until usb-moded reaches
      ready state.
      
      Use ssu-sysinfo C-library that can provide the device details required
      by usb-moded without using any IPC mechanisms.
      Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
      536e0e4f
  23. 07 Nov, 2016 1 commit
  24. 03 Nov, 2016 2 commits
  25. 02 Nov, 2016 1 commit
  26. 18 Oct, 2016 3 commits
  27. 05 Oct, 2016 1 commit