net: ipa: head-of-line block registers are RX only
authorAlex Elder <elder@linaro.org>
Tue, 30 Jun 2020 13:33:00 +0000 (08:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 22:30:33 +0000 (15:30 -0700)
The INIT_HOL_BLOCK_EN and INIT_HOL_BLOCK_TIMER endpoint registers
are only valid for RX endpoints.

Have ipa_endpoint_modem_hol_block_clear_all() skip writing these
registers for TX endpoints.

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

index 2f56981..d414328 100644 (file)
@@ -686,7 +686,7 @@ void ipa_endpoint_modem_hol_block_clear_all(struct ipa *ipa)
        for (i = 0; i < IPA_ENDPOINT_MAX; i++) {
                struct ipa_endpoint *endpoint = &ipa->endpoint[i];
 
-               if (endpoint->ee_id != GSI_EE_MODEM)
+               if (endpoint->toward_ipa || endpoint->ee_id != GSI_EE_MODEM)
                        continue;
 
                (void)ipa_endpoint_init_hol_block_timer(endpoint, 0);