• Mika Westerberg's avatar
    thunderbolt: Enable wakes from system suspend · b2911a59
    Mika Westerberg authored
    In order for the router and the whole domain to wake up from system
    suspend states we need to enable wakes for the connected routers. For
    device routers we enable wakes from PCIe and USB 3.x. This allows
    devices such as keyboards connected to USB 3.x hub that is tunneled to
    wake the system up as expected. For all routers we enabled wake on USB4
    for each connected ports. This is used to propagate the wake from router
    to another.
    
    Do the same for legacy routers through link controller vendor specific
    registers as documented in USB4 spec chapter 13.
    
    While there correct kernel-doc of usb4_switch_set_sleep() -- it does not
    enable wakes instead there is a separate function (usb4_switch_set_wake())
    that does.
    Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
    b2911a59
lc.c 10.4 KB