1. 16 Mar, 2021 2 commits
  2. 02 Mar, 2021 3 commits
    • Simo Piiroinen's avatar
      [usb_moded] Implement and use common mode selection logic. Fixes JB#53122 · 3f3d04ff
      Simo Piiroinen authored
      When device is booted up with cable connected and device lock code is
      not used, usb-mode is left at fallback_charging. This happens because
      usb-mode is re-evaluated on device unlock event, which does not occur
      when device lock is not used. Due to duplication of mode selection
      logic in various notification handlers, similar hard to find corner
      cases are likely to occur also when order of events is not as
      expected.
      
      Collect all mode selection logic into a single function and refactor
      control flow so that all triggers that might require a mode change are
      directed there.
      
      Additional changes to existing logic:
      - All mode changes are blocked until usb-moded enters mainloop
      - When shutdown is initiated, dynamic mode changes are blocked
      - Dynamic modes are canceled when user change is started, and
      - Re-evaluated / activated after user change is finished
      - Exception: already active rescue mode persists over user changes
      
      Reduce the amount of conditional MEEGOLOCK code by adding abstract
      helper functions in usb_moded.c and using those instead of functions
      that might not be available based on configuration options.
      
      Clean up unnecessary header file includes resulting from these and
      earlier changes.
      Signed-off-by: default avatarSimo Piiroinen <simo.piiroinen@jolla.com>
      3f3d04ff
    • Simo Piiroinen's avatar
      Bump version to 0.86.0+mer54 · 758e080b
      Simo Piiroinen authored
      Signed-off-by: default avatarSimo Piiroinen <simo.piiroinen@jolla.com>
      758e080b
    • spiiroin's avatar
      Merge branch 'jb53356_backend_timeout' into 'master' · 8b86ea3c
      spiiroin authored
      Allow longer delay at usb backend probing
      
      See merge request !76
      8b86ea3c
  3. 01 Mar, 2021 1 commit
    • Simo Piiroinen's avatar
      [usb-moded] Allow longer delay at backend probing. Fixes JB#53356 · eb008deb
      Simo Piiroinen authored
      Usb-moded chooses between android-usb and configfs backends by
      periodically polling which kind of control structure shows up in
      the device file system. In Xperia 10 II it can happen that usb
      setup done by droid-hal-init takes long enough usb-moded to
      give up waiting and continue in effectively defunct state.
      
      Increase backend wait time from 10 to 20 seconds by adjusting
      sleep time in between probe attempts.
      
      Also adjust usb-moded.service startup timeout so that systemd
      tolerates the increased worst case wait time.
      Signed-off-by: default avatarSimo Piiroinen <simo.piiroinen@jolla.com>
      eb008deb
  4. 15 Feb, 2021 2 commits
  5. 13 Feb, 2021 1 commit
  6. 09 Feb, 2021 2 commits
  7. 04 Nov, 2020 3 commits
  8. 19 Oct, 2020 2 commits
  9. 25 Sep, 2020 3 commits
  10. 24 Sep, 2020 7 commits
  11. 23 Sep, 2020 8 commits
  12. 22 Sep, 2020 4 commits
  13. 28 Aug, 2020 2 commits