]> 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)
commitc8a989ba066f3eaf5b80025111e254d87c6093f9
treec2389ab66d15bbe8d99345f7ab9fb9c0abe6e645
parent3ed60e1452b42b101bbc747d4423b166f15bd211
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