staging: fsl-mc/dpio: Fix incorrect masking
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Tue, 6 Mar 2018 17:43:47 +0000 (11:43 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2018 17:57:37 +0000 (09:57 -0800)
commitc5f370c76770c2ec7ffb400c6612777f7e8fdd4c
treeb67653a2d2380787f6c6581ae3cfee0ba8dab9e2
parent6d02512fa808d080f044fdcb084a8e6f3d38c9b0
staging: fsl-mc/dpio: Fix incorrect masking

In qbman_swp_alt_fq_state(), we need to mask the fqid value
before converting it to little endian, otherwise we write a
wrong value to hardware when running in big endian mode.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dpio/qbman-portal.c