staging: fsl-mc/dpio: Fix early writing of valid bit
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Wed, 5 Apr 2017 13:24:17 +0000 (08:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:05:59 +0000 (17:05 +0200)
commit141a10aead9ce72ea8b22c036d37bb31c3a693f6
tree48430d68560689f8b5fcf804b948e0af8c38c30c
parentad3dbb9a106fb5f9899b3137534f09507862fed8
staging: fsl-mc/dpio: Fix early writing of valid bit

Commands written to the QMan software portals have a valid
bit in the "verb" field of the command that, when set with
the right value, notifies the hardware that the command is
fully written and ready to be processed.

The "verb" field should be the last one to be written in the
swp command registers, after all other fields are filled in.
The current implementation doesn't follow this rule for all
commands, which may result in an incompletely configured
command being processed by the hardware. Enforce the correct
order of writes to avoid this situation.

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