Skip to content
Commit b0987b72 authored by Claudiu Manoil's avatar Claudiu Manoil Committed by Meng Li
Browse files

enetc: Fix endianness issues for enetc_qos

commit 5316b1611e6cc6ceb2284515ecbfacabd129c24f from
git://source.codeaurora.org/external/qoriq/qoriq-components/linux



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: default avatarClaudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
(cherry picked from commit 0dfd294c)
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarMeng Li <Meng.Li@windriver.com>
parent 1eaa67f3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment