Skip to content

Commit 602a1c7

Browse files
Alex Elderkuba-moo
authored andcommitted
net: ipa: three small fixes
Some time ago changes were made to stop referring to clearing the hardware pipeline as a "tag process." Fix a comment to use the newer terminology. Get rid of a pointless double-negation of the Boolean toward_ipa flag in ipa_endpoint_config(). make ipa_endpoint_exit_one() private; it's only referenced inside "ipa_endpoint.c". Signed-off-by: Alex Elder <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 57ab8ca commit 602a1c7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

drivers/net/ipa/ipa_endpoint.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ int ipa_endpoint_modem_exception_reset_all(struct ipa *ipa)
397397
/* We need one command per modem TX endpoint. We can get an upper
398398
* bound on that by assuming all initialized endpoints are modem->IPA.
399399
* That won't happen, and we could be more precise, but this is fine
400-
* for now. We need to end the transaction with a "tag process."
400+
* for now. End the transaction with commands to clear the pipeline.
401401
*/
402402
count = hweight32(initialized) + ipa_cmd_pipeline_clear_count();
403403
trans = ipa_cmd_trans_alloc(ipa, count);
@@ -1755,7 +1755,7 @@ int ipa_endpoint_config(struct ipa *ipa)
17551755

17561756
/* Make sure it's pointing in the right direction */
17571757
endpoint = &ipa->endpoint[endpoint_id];
1758-
if ((endpoint_id < rx_base) != !!endpoint->toward_ipa) {
1758+
if ((endpoint_id < rx_base) != endpoint->toward_ipa) {
17591759
dev_err(dev, "endpoint id %u wrong direction\n",
17601760
endpoint_id);
17611761
ret = -EINVAL;
@@ -1791,7 +1791,7 @@ static void ipa_endpoint_init_one(struct ipa *ipa, enum ipa_endpoint_name name,
17911791
ipa->initialized |= BIT(endpoint->endpoint_id);
17921792
}
17931793

1794-
void ipa_endpoint_exit_one(struct ipa_endpoint *endpoint)
1794+
static void ipa_endpoint_exit_one(struct ipa_endpoint *endpoint)
17951795
{
17961796
endpoint->ipa->initialized &= ~BIT(endpoint->endpoint_id);
17971797

drivers/net/ipa/ipa_endpoint.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ int ipa_endpoint_modem_exception_reset_all(struct ipa *ipa);
8787

8888
int ipa_endpoint_skb_tx(struct ipa_endpoint *endpoint, struct sk_buff *skb);
8989

90-
void ipa_endpoint_exit_one(struct ipa_endpoint *endpoint);
91-
9290
int ipa_endpoint_enable_one(struct ipa_endpoint *endpoint);
9391
void ipa_endpoint_disable_one(struct ipa_endpoint *endpoint);
9492

0 commit comments

Comments
 (0)