]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: use tag process on modem crash
authorAlex Elder <elder@linaro.org>
Thu, 7 May 2020 19:14:04 +0000 (14:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 May 2020 21:00:29 +0000 (14:00 -0700)
commit46dccced3d1a7b43dc4d27c95fa7da5bde7fd666
tree4f26d2a11f42749d6a8d49709f45cd71b24ec4a2
parent03d49374f07fc59371597670f4436cae1bdf8cd2
net: ipa: use tag process on modem crash

One part of recovering from a modem crash is performing a "tag
sequence" of several IPA immediate commands, to clear the hardware
pipeline.  The sequence ends with a data transfer request on the
command endpoint (which is not otherwise done).  Unfortunately,
attempting to do the data transfer led to a hang, so that request
plus two other commands were commented out.

The previous commit fixes the bug that was causing that hang.  And
with that bug fixed we can properly issue the tag sequence when the
modem crashes, to return the hardware to a known state.

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