staging: fsl-mc/dpio: add cpu <--> LE conversion for dpaa2_fd
authorHoria Geantă <horia.geanta@nxp.com>
Fri, 28 Apr 2017 14:38:58 +0000 (17:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 15:51:54 +0000 (17:51 +0200)
commit11270059e8d0b6f80801fac910c4ef751ca05c4c
tree55a5fda68baa3a01a976be1ea642724ff4ef61b8
parentec4d9227d79a6f0d1cedbbb8f023c92779c16551
staging: fsl-mc/dpio: add cpu <--> LE conversion for dpaa2_fd

While dpaa2_fd.simple structure fields are marked __leXX,
corresponding cpu_to_leXX / leXX_to_cpu conversions are missing.

While here, fix dpaa2_fd_{get,set}_bpid such that BMT, IVP bits
sharing the 16-bit field with BPID are not affected.

Fixes: d3269bdc7ebc ("bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/include/dpaa2-fd.h