[PATCH net 0/2] net: ipa: non-setup bug fixes

From: Alex Elder
Date: Tue Oct 06 2020 - 17:31:00 EST


This series fixes two bugs that occur if the IPA driver has not
completed its setup phase of initialization when an event occurs.

One event is the crash of the modem. If the modem crashes,
ipa_modem_crashed() is called, and it performs various activities
intended to put the IPA hardware into a good state before the modem
reboots. But if the IPA setup has not completed, resources used
for this cleanup will not be properly initialized. So we must
skip doing this activity if we have not completed setup.

Similarly, if a system suspend is initiated but IPA setup has not
completed, the processing done in ipa_endpoint_suspend() should be
avoided. And a subsequent system resume should also avoid resuming
endpoints that have not been initialized by IPA setup.

-Alex

Alex Elder (2):
net: ipa: only clear hardware state if setup has completed
net: ipa: skip suspend/resume activities if not set up

drivers/net/ipa/ipa_endpoint.c | 6 ++++++
drivers/net/ipa/ipa_modem.c | 3 +++
2 files changed, 9 insertions(+)

--
2.20.1