Skip to content

Commit de997e5

Browse files
vladimirolteankuba-moo
authored andcommitted
net: mscc: ocelot: add missing VCAP ES0 and IS1 regmaps for VSC7514
Without these definitions, the driver will crash in: mscc_ocelot_probe -> ocelot_init -> ocelot_vcap_init -> __ocelot_target_read_ix I missed this because I did not have the VSC7514 hardware to test, only the VSC9959 and VSC9953, and the probing part is different. Fixes: e3aea29 ("net: mscc: ocelot: add definitions for VCAP ES0 keys, actions and target") Fixes: a61e365 ("net: mscc: ocelot: add definitions for VCAP IS1 keys, actions and target") Reported-by: Divya Koppera <[email protected]> Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d9fb8c5 commit de997e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mscc/ocelot_vsc7514.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ static const u32 *ocelot_regmap[TARGET_MAX] = {
320320
[QSYS] = ocelot_qsys_regmap,
321321
[REW] = ocelot_rew_regmap,
322322
[SYS] = ocelot_sys_regmap,
323+
[S0] = ocelot_vcap_regmap,
324+
[S1] = ocelot_vcap_regmap,
323325
[S2] = ocelot_vcap_regmap,
324326
[PTP] = ocelot_ptp_regmap,
325327
[DEV_GMII] = ocelot_dev_gmii_regmap,

0 commit comments

Comments
 (0)