lkml.org 
[lkml]   [2020]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net 0/2] net: ipa: non-setup bug fixes
Date
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

\
 
 \ /
  Last update: 2020-10-06 23:32    [W:0.046 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site