diff options
author | Alex Elder <elder@linaro.org> | 2021-02-01 11:28:46 -0600 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-02 17:42:35 -0800 |
commit | 893b838e73391c97c9388ef972899213bbb3049d (patch) | |
tree | 25bea4e392f88ed87c684c3344b2ff6b04863228 /drivers/net/ethernet/intel/igc | |
parent | 697e834e143afa733913fe2c9bc06b5e4d139c66 (diff) |
net: ipa: introduce __gsi_channel_start()
Create a new function that does most of the work of starting a
channel. What's different is that it takes a flag indicating
whether the channel should really be started or not. Create
another new function __gsi_channel_stop() that behaves similarly.
IPA v3.5.1 implements suspend using a special SUSPEND endpoint
setting. If the endpoint is suspended when an I/O completes on the
underlying GSI channel, a SUSPEND interrupt is generated.
Newer versions of IPA do not implement the SUSPEND endpoint mode.
Instead, endpoint suspend is implemented by simply stopping the
underlying GSI channel. In this case, a completing I/O on a
*stopped* channel causes the SUSPEND interrupt condition.
These new functions put all activity related to starting or stopping
a channel (including "thawing/freezing" the channel) in one place,
whether or not the channel is actually started or stopped.
Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions