]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: use gsi->version for channel suspend/resume
authorAlex Elder <elder@linaro.org>
Tue, 3 Aug 2021 14:00:58 +0000 (09:00 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 09:12:05 +0000 (10:12 +0100)
commit29c6c59a7da143c07b74de2e9d939f4919738059
treea1864b4d88da0d9d371b78b3d7595a073556a9cb
parentf7112450e6aa6ac2892af79edfa986c72a33f627
net: ipa: use gsi->version for channel suspend/resume

The GSI layer has the IPA version now, so there's no need for
version-specific flags to be passed from IPA.  One instance of
this is in gsi_channel_suspend() and gsi_channel_resume(), which
indicate whether or not the endpoint suspend is implemented by
GSI stopping the channel.  We can make that determination based
on gsi->version, eliminating the need for a Boolean flag in those
functions.

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