]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: felix: the switch does not support DMA
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 9 Jan 2021 20:34:15 +0000 (22:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Jan 2021 00:16:35 +0000 (16:16 -0800)
commit34943f31eaa000c99c6001f90d4daf0b13072785
tree94cb3bfcbdc07eafb9fe193addf02d9ddfcb94e4
parentc0d033376f6917c87626c31a35b3d7f4b71a4f62
net: dsa: felix: the switch does not support DMA

The code that sets the DMA mask to 64 bits is bogus, it is taken from
the enetc driver together with the rest of the PCI probing boilerplate.

Since this patch is touching the error path to delete err_dma, let's
also change the err_alloc_felix label which was incorrect. The kzalloc
failure does not need a kfree, but it doesn't hurt either, since kfree
works with NULL pointers.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210109203415.2120142-1-olteanv@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/ocelot/felix_vsc9959.c