]> git.baikalelectronics.ru Git - kernel.git/commit
enetc: Fix endianness issues for enetc_qos
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Thu, 19 Nov 2020 10:12:15 +0000 (12:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 06:05:42 +0000 (22:05 -0800)
commitc78b007906dd2ee4ec1e1d46ca34a8b48e8896b4
tree0928caa9319e1e637e8358026b55676a987c7188
parent03b008457f0a868131bf74c8930c1dd145e92e0b
enetc: Fix endianness issues for enetc_qos

Currently the control buffer descriptor (cbd) fields have endianness
restrictions while the commands passed into the control buffers
don't (with one exception). This patch fixes offending code,
by adding endianness accessors for cbd fields and removing the
unnecessary ones in case of data buffer fields. Currently there's
no need to convert all commands to little endian format, the patch
only focuses on fixing current endianness issues reported by sparse.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_qos.c