]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: don't suspend endpoints if setup not complete
authorAlex Elder <elder@linaro.org>
Tue, 27 Jul 2021 21:19:33 +0000 (16:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 23:06:27 +0000 (00:06 +0100)
commitffc9869dabdebc74b72bec8dbb5b1757464eaa17
tree7c7c63df08318aa80d16ef54eef1cb515b093b1e
parent83c5ad9b897860c5b3b07378a0f86c9b4de8d7ed
net: ipa: don't suspend endpoints if setup not complete

Until we complete the setup stage of initialization, GSI is not
initialized and therefore endpoints aren't usable.  So avoid
suspending endpoints during system suspend unless setup is complete.

Clear the setup_complete flag at the top of ipa_teardown() to
reflect the fact that things are no longer in setup state.

Get rid of a misplaced (and superfluous) comment.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_main.c