netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: ipa: non-setup bug fixes
@ 2020-10-06 21:30 Alex Elder
  2020-10-06 21:30 ` [PATCH net 1/2] net: ipa: only clear hardware state if setup has completed Alex Elder
  2020-10-06 21:30 ` [PATCH net 2/2] net: ipa: skip suspend/resume activities if not set up Alex Elder
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Elder @ 2020-10-06 21:30 UTC (permalink / raw)
  To: davem, kuba
  Cc: evgreen, subashab, cpratapa, bjorn.andersson, mka, netdev, linux-kernel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-09 19:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06 21:30 [PATCH net 0/2] net: ipa: non-setup bug fixes Alex Elder
2020-10-06 21:30 ` [PATCH net 1/2] net: ipa: only clear hardware state if setup has completed Alex Elder
2020-10-09 19:25   ` Jakub Kicinski
2020-10-09 19:39     ` Alex Elder
2020-10-09 19:41       ` Jakub Kicinski
2020-10-06 21:30 ` [PATCH net 2/2] net: ipa: skip suspend/resume activities if not set up Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).