As expected, I do see link not being up during resume path [2021-06-29 09:45:18.984] [ 89.036196] tegra-pcie-dw 14140000.pcie: link is down
Also, I see a lot of error messages from the WiFi driver during suspend (also, it looks like the system didn’t go into suspend in one go… it attempted multiple times before entering into the suspend state).
Do we have if the WiFi driver is known to work for suspend/resume use case?
This seems to be a device specific issue.
Could you please the following? cd /sys/bus/platform/drivers/tegra-pcie-dw echo "14140000.pcie" > unbind
and then echo "14140000.pcie" > bind
Also, if the PCIe link speed with this WiFi is Gen-2, please downgrade it to Gen-1 (for debugging purpose) and see if there is any change in the behavior. (This can be done by changing the ‘max-speed’ entry in the respective root port’s DT node to ‘1’.)
I don’t see this issue to be a Tegra specific issue.
Could you please try insmod’ing and rmmod’ing the driver (i.e. endpoint’s device driver) and does it work fine?
I think your driver seems broken. Since rmmod itself is not working, I guess there is some issue with the uninitialization path here. Please work with the endpoint vendor for this issue.