• Mika Westerberg's avatar
    thunderbolt: Add runtime PM for Software CM · 6ac6faee
    Mika Westerberg authored
    This adds runtime PM support for the Software Connection Manager parts
    of the driver. This allows to save power when either there is no device
    attached at all or there is a device attached and all following
    conditions are true:
    
      - Tunneled PCIe root/downstream ports are runtime suspended
      - Tunneled USB3 ports are runtime suspended
      - No active DisplayPort stream
      - No active XDomain connection
    
    For the first two we take advantage of device links that were added in
    previous patch. Difference for the system sleep case is that we also
    enable wakes when something is geting plugged in/out of the Thunderbolt
    ports.
    Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
    6ac6faee
tb.h 32.2 KB