]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95d2d236cf5aa1ddd840f9f573a4e9fe53bc9177
tree55a5fda68baa3a01a976be1ea642724ff4ef61b8
parent89c17ea17ab92fb22c7ceec6c15b16ac59d2e584
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: d40e8068ff4c ("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