]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: mscc: ocelot: add missing VCAP ES0 and IS1 regmaps for VSC7514
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 6 Oct 2020 15:02:48 +0000 (18:02 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 9 Oct 2020 00:52:19 +0000 (17:52 -0700)
commitde997e545df4d7c61f7fe7e7cd12650abff8642d
tree0ba72d994a374b7779cbb89fe093a17898c3b9f0
parentd9fb8c507d42256034b457ec59347855bec9e569
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: e3aea296d86f ("net: mscc: ocelot: add definitions for VCAP ES0 keys, actions and target")
Fixes: a61e365d7c18 ("net: mscc: ocelot: add definitions for VCAP IS1 keys, actions and target")
Reported-by: Divya Koppera <Divya.Koppera@microchip.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_vsc7514.c