Hello, > Before sending PME_TURN_OFF, don't test the LTSSM state. Since it's safe > to send PME_TURN_OFF message regardless of whether the link is up or > down. So, there would be no need to test the LTSSM state before sending > PME_TURN_OFF message. > > Only print the message when ltssm_stat is not in DETECT and POLL. > In the other words, there isn't an error message when no endpoint is > connected at all. I applied the same patch from the following series: https://lore.kernel.org/linux-pci/20241210081557.163555-1-hongxing.zhu@xxxxxxx The above one is still a v4. Hopefully, there is no issue with using the other series. However, if you prefer this version here, then do let me know, so I can mend things directly on the branch itself. Thank you! Krzysztof