]> 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)
commit8603bdb5f4be0cd92f0f6507c05a757085027071
treefbb29038d335d841c858528f89678390ad6c9630
parent40787364170b71f99fdc10abae8e24ec3d5b5c16
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