Skip to content
Snippets Groups Projects
  1. Mar 24, 2023
  2. Mar 20, 2023
  3. Mar 16, 2023
  4. Mar 15, 2023
  5. Mar 14, 2023
    • Sebastian Krzyszkowiak's avatar
      usb: core: hub: Don't wait for TRSMRCY on resuming already active ports · 28f3d47b
      Sebastian Krzyszkowiak authored and Martin Kepplinger's avatar Martin Kepplinger committed
      
      In cases where USB global suspend has been used instead of selectively
      suspending the port, there's no need to TRSMRCY delay since there was
      no resume request sent to the hub in the first place.
      
      Signed-off-by: default avatarSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
      28f3d47b
    • Sebastian Krzyszkowiak's avatar
      hack: usb: core: hub: Add a quirk to disable selective suspend of a given port · 9cceaf04
      Sebastian Krzyszkowiak authored and Martin Kepplinger's avatar Martin Kepplinger committed
      
      This can be useful when wanting to rely on global suspend instead
      for improved wakeup latency and/or reliability.
      
      Kernel's logical devices are still tracking PM status as usual so
      we know when to suspend the upstream hub.
      
      Special care needs to be taken in order to still support remote
      wakeup functionality. When the port isn't being actually suspended,
      we have no idea which port has generated a wakeup request after
      resuming its hub because there's no change reported in port's status,
      so we force every port marked with this quirk to be resumed. Also,
      there's no way for the device to send remote wakeup request while
      it's not actually suspended, so we need to take care not to logically
      suspend such devices while a sibling port is active.
      
      This code is likely to break on different USB topologies than
      the one present on the Librem 5's internal bus, where we want
      to use this quirk on modem's and hub's upstream ports in order
      to avoid resets happening when the modem sends remote wakeup request
      while the hub is being suspended.
      
      Signed-off-by: default avatarSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
      9cceaf04
  6. Mar 13, 2023
Loading