• Mika Westerberg's avatar
    thunderbolt: Perform USB4 router NVM upgrade in two phases · 661b1947
    Mika Westerberg authored
    The currect code expects that the router returns back the status of the
    NVM authentication immediately. When tested against a real USB4 device
    what happens is that the router is reset and only after that the result
    is updated in the ROUTER_CS_26 register status field. This also seems to
    align better what the spec suggests.
    
    For this reason do the same what we already do with the Thunderbolt 3
    devices and perform the NVM upgrade in two phases. First start the
    NVM_AUTH router operation and once the router is added back after the
    reset read the status in ROUTER_CS_26 and expose it to the userspace
    accordingly.
    Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
    661b1947
switch.c 68.7 KB