net: ipa: use a bitmap for available endpoints
authorAlex Elder <elder@linaro.org>
Wed, 2 Nov 2022 22:11:36 +0000 (17:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2022 10:16:53 +0000 (10:16 +0000)
commit88de7672404de72e273c4f1f4228120b8d7f01f1
tree86327d56f8c70c89c7d0fccbf5ef47befd16277c
parent9a9f512974d5e3e721e106f30429c16dfeb23326
net: ipa: use a bitmap for available endpoints

Similar to the previous patch, replace the 32-bit unsigned used to
track endpoints supported by hardware with a Linux bitmap, to allow
an arbitrary number of endpoints to be represented.

Move ipa_endpoint_deconfig() above ipa_endpoint_config() and use
it in the error path of the latter function.

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
drivers/net/ipa/ipa_interrupt.c