Skip to content

Commit 4a7843c

Browse files
LorenzoBianconikuba-moo
authored andcommitted
net: airoha: Add missing field to ppe_mbox_data struct
The official Airoha EN7581 firmware requires adding max_packet field in ppe_mbox_data struct while the unofficial one used to develop the Airoha EN7581 flowtable support does not require this field. This patch does not introduce any real backwards compatible issue since EN7581 fw is not publicly available in linux-firmware or other repositories (e.g. OpenWrt) yet and the official fw version will use this new layout. For this reason this change needs to be backported. Moreover, make explicit the padding added by the compiler introducing the rsv array in init_info struct. At the same time use u32 instead of int for init_info and set_info struct definitions in ppe_mbox_data struct. Fixes: 23290c7 ("net: airoha: Introduce Airoha NPU support") Reviewed-by: Simon Horman <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/20250506-airoha-en7581-fix-ppe_mbox_data-v5-1-29cabed6864d@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent dc75a43 commit 4a7843c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/net/ethernet/airoha/airoha_npu.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,14 @@ struct ppe_mbox_data {
104104
u8 xpon_hal_api;
105105
u8 wan_xsi;
106106
u8 ct_joyme4;
107-
int ppe_type;
108-
int wan_mode;
109-
int wan_sel;
107+
u8 max_packet;
108+
u8 rsv[3];
109+
u32 ppe_type;
110+
u32 wan_mode;
111+
u32 wan_sel;
110112
} init_info;
111113
struct {
112-
int func_id;
114+
u32 func_id;
113115
u32 size;
114116
u32 data;
115117
} set_info;

0 commit comments

Comments
 (0)