]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: count the number of modem TX endpoints
authorAlex Elder <elder@linaro.org>
Sun, 22 May 2022 00:32:19 +0000 (19:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 19:46:12 +0000 (20:46 +0100)
commit644a35d78b16bce48ab558b836c97c91eed9c0db
tree36aa93655eca022d9ace507055b3f7bcd870ccc0
parent6e86dddcca3a45bb04380cc1d27c5c7c9aaecd16
net: ipa: count the number of modem TX endpoints

In ipa_endpoint_modem_exception_reset_all(), a high estimate was
made of the number of endpoints that need their status register
updated.  We only used what was needed, so the high estimate didn't
matter much.

However the next few patches are going to limit the number of
commands in a single transaction, and the overestimate would exceed
that.  So count the number of modem TX endpoints at initialization
time, and use it in ipa_endpoint_modem_exception_reset_all().

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