1. 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>
    • 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>
    • 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>
  2. 06 Jun, 2018 1 commit
  3. 04 Apr, 2018 1 commit
  4. 29 Mar, 2018 2 commits
  5. 14 Mar, 2018 1 commit
  6. 04 Dec, 2017 1 commit
  7. 15 Nov, 2017 1 commit
  8. 23 Aug, 2017 2 commits
  9. 18 Aug, 2017 1 commit
  10. 05 May, 2017 1 commit
  11. 26 Apr, 2017 3 commits
  12. 24 Mar, 2017 2 commits
  13. 13 Mar, 2017 1 commit
  14. 14 Feb, 2017 1 commit
  15. 31 Jan, 2017 1 commit
  16. 07 Dec, 2016 4 commits
    • Lourens-Rich's avatar
      Update project url · a28578a2
      Lourens-Rich authored
    • 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
    • spiiroin's avatar
      Bump version to 0.86.0+mer8 · bb64b6d3
      spiiroin authored
    • 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>
  17. 07 Nov, 2016 1 commit
  18. 03 Nov, 2016 2 commits
  19. 02 Nov, 2016 1 commit
  20. 18 Oct, 2016 3 commits
  21. 05 Oct, 2016 1 commit
  22. 04 Oct, 2016 1 commit
    • spiiroin's avatar
      [usb-moded] Add mtp_mode-android-ffs configuration. JB#27650 · d580e69c
      spiiroin authored
      Existing configuration files do not cover case where android kernel
      is used to implement just mtp functionality using ffs based userspace
      code - mtp_mode-android uses "mtp" instead of "ffs" and pc_suite-android
      activates both mtp and obex support.
      Add mtp_mode-android-ffs.ini that is identical with pc_suite-android.ini
      except for the mode name which is "mtp" instead of "pc_suite".
  23. 07 Jul, 2016 1 commit
  24. 11 May, 2016 1 commit
  25. 13 Oct, 2015 1 commit
  26. 12 Oct, 2015 1 commit
  27. 05 Oct, 2015 1 commit