net: ipa: remove endpoint delay mode feature
authorAlex Elder <elder@linaro.org>
Mon, 4 May 2020 23:37:13 +0000 (18:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 00:37:54 +0000 (17:37 -0700)
A "delay mode" feature was put in place to work around a problem
that was observed during development of the upstream IPA driver.  It
used TX endpoint "delay mode" in order to prevent transmitting
packets toward the modem before it was ready.

A race condition that would explain the problem has long since been
fixed, and we have concluded that the "delay mode" feature is no
longer required.  So get rid of it.

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

index f7ba85717edf5b4690c07e2c5ea0489db0969baa..52d4b84e0dac6568afff2c1a8677c879ab8936ce 100644 (file)
@@ -74,7 +74,6 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = {
                                .tx = {
                                        .status_endpoint =
                                                IPA_ENDPOINT_MODEM_AP_RX,
-                                       .delay  = true,
                                },
                        },
                },
index 16dfd74717b15d971d9c6240a2262c19c4b542f6..7fc1058a5ca936e60f38a0bb6aab189f3521fedf 100644 (file)
@@ -80,18 +80,12 @@ struct gsi_channel_data {
 /**
  * struct ipa_endpoint_tx_data - configuration data for TX endpoints
  * @status_endpoint:   endpoint to which status elements are sent
- * @delay:             whether endpoint starts in delay mode
- *
- * Delay mode prevents a TX endpoint from transmitting anything, even if
- * commands have been presented to the hardware.  Once the endpoint exits
- * delay mode, queued transfer commands are sent.
  *
  * The @status_endpoint is only valid if the endpoint's @status_enable
  * flag is set.
  */
 struct ipa_endpoint_tx_data {
        enum ipa_endpoint_name status_endpoint;
-       bool delay;
 };
 
 /**
index 81bf41ecd3f66072f482c4af1336b2e0a315eaa4..dec1dc8618edd838be237fcc044e9cddb0fd583f 100644 (file)
@@ -1341,10 +1341,8 @@ int ipa_endpoint_stop(struct ipa_endpoint *endpoint)
 static void ipa_endpoint_program(struct ipa_endpoint *endpoint)
 {
        if (endpoint->toward_ipa) {
-               bool delay_mode = endpoint->data->tx.delay;
-
                if (endpoint->ipa->version != IPA_VERSION_4_2)
-                       ipa_endpoint_program_delay(endpoint, delay_mode);
+                       ipa_endpoint_program_delay(endpoint, false);
                ipa_endpoint_init_hdr_ext(endpoint);
                ipa_endpoint_init_aggr(endpoint);
                ipa_endpoint_init_deaggr(endpoint);