]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: save a copy of endpoint default config
authorAlex Elder <elder@linaro.org>
Thu, 19 May 2022 15:12:17 +0000 (10:12 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2022 10:12:24 +0000 (11:12 +0100)
commit660e52d651ab7faa20d1ba08ae90a306b023e395
treefbb29038d335d841c858528f89678390ad6c9630
parentcf4e73a1667e620ef703ff1f86ae96471ffa80f6
net: ipa: save a copy of endpoint default config

All elements of the default endpoint configuration are used in the
code when programming an endpoint for use.  But none of the other
configuration data is ever needed once things are initialized.

So rather than saving a pointer to *all* of the configuration data,
save a copy of only the endpoint configuration portion.

This will eventually allow endpoint configuration to be modifiable
at runtime.  But even before that it means we won't keep a pointer
to configuration data after when no longer needed.

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