Skip to content

Commit 5eb3dc1

Browse files
lweiss-fairphonekuba-moo
authored andcommitted
net: ipa: Fix v4.7 resource group names
In the downstream IPA driver there's only one group defined for source and destination, and the destination group doesn't have a _DPL suffix. Fixes: b310de7 ("net: ipa: add IPA v4.7 support") Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Reviewed-by: Alex Elder <elder@riscstar.com> Link: https://patch.msgid.link/20250227-ipa-v4-7-fixes-v1-1-a88dd8249d8a@fairphone.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 3c6a041 commit 5eb3dc1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

drivers/net/ipa/data/ipa_data-v4.7.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ enum ipa_resource_type {
2828
enum ipa_rsrc_group_id {
2929
/* Source resource group identifiers */
3030
IPA_RSRC_GROUP_SRC_UL_DL = 0,
31-
IPA_RSRC_GROUP_SRC_UC_RX_Q,
3231
IPA_RSRC_GROUP_SRC_COUNT, /* Last in set; not a source group */
3332

3433
/* Destination resource group identifiers */
35-
IPA_RSRC_GROUP_DST_UL_DL_DPL = 0,
36-
IPA_RSRC_GROUP_DST_UNUSED_1,
34+
IPA_RSRC_GROUP_DST_UL_DL = 0,
3735
IPA_RSRC_GROUP_DST_COUNT, /* Last; not a destination group */
3836
};
3937

@@ -81,7 +79,7 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = {
8179
},
8280
.endpoint = {
8381
.config = {
84-
.resource_group = IPA_RSRC_GROUP_DST_UL_DL_DPL,
82+
.resource_group = IPA_RSRC_GROUP_DST_UL_DL,
8583
.aggregation = true,
8684
.status_enable = true,
8785
.rx = {
@@ -128,7 +126,7 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = {
128126
},
129127
.endpoint = {
130128
.config = {
131-
.resource_group = IPA_RSRC_GROUP_DST_UL_DL_DPL,
129+
.resource_group = IPA_RSRC_GROUP_DST_UL_DL,
132130
.qmap = true,
133131
.aggregation = true,
134132
.rx = {
@@ -197,12 +195,12 @@ static const struct ipa_resource ipa_resource_src[] = {
197195
/* Destination resource configuration data for an SoC having IPA v4.7 */
198196
static const struct ipa_resource ipa_resource_dst[] = {
199197
[IPA_RESOURCE_TYPE_DST_DATA_SECTORS] = {
200-
.limits[IPA_RSRC_GROUP_DST_UL_DL_DPL] = {
198+
.limits[IPA_RSRC_GROUP_DST_UL_DL] = {
201199
.min = 7, .max = 7,
202200
},
203201
},
204202
[IPA_RESOURCE_TYPE_DST_DPS_DMARS] = {
205-
.limits[IPA_RSRC_GROUP_DST_UL_DL_DPL] = {
203+
.limits[IPA_RSRC_GROUP_DST_UL_DL] = {
206204
.min = 2, .max = 2,
207205
},
208206
},

0 commit comments

Comments
 (0)