]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: identify resource groups
authorAlex Elder <elder@linaro.org>
Fri, 26 Mar 2021 15:11:13 +0000 (10:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 22:02:38 +0000 (15:02 -0700)
commit969f1679d93eba53779681ba1f9f31085cf73d59
treec2389ab66d15bbe8d99345f7ab9fb9c0abe6e645
parentc70ab211eb14ddf7ac4370bbd50ff6e6d203badb
net: ipa: identify resource groups

Define a new ipa_resource_group_id enumerated type, whose members
have numeric values that match the resource group number used when
programming the hardware.  Each platform supports a different number
of source and destination resource groups, so define the type
separately for each platform in its configuration data file.

Use these new symbolic values when specifying the resource group an
endpoint is associated with.  And use them to index the limits
arrays for source and destination resources, making it clearer how
these values are used.

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