]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
staging: fsl-dpaa2/eth: fix off-by-one FD ctrl bitmaks
authorHoria Geantă <horia.geanta@nxp.com>
Fri, 1 Sep 2017 12:58:41 +0000 (15:58 +0300)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 10 Sep 2017 23:08:42 +0000 (18:08 -0500)
BugLink: http://bugs.launchpad.net/bugs/1716284
commit 11b86a84bc535a602fcf72ba6b3aa4eaa748764f upstream.

Fix the values of DPAA2_FD_CTRL_FSE and DPAA2_FD_CTRL_FAERR,
which are shifted off by one bit.

Fixes: 39163c0ce0f48 ("staging: fsl-dpaa2/eth: Errors checking update")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h

index e6d28a249fc191603f1d1a1befc4783bf4db7d93..bfbabae1aad80d1bec3e3371de3e7f58be0a005f 100644 (file)
@@ -123,8 +123,8 @@ struct dpaa2_eth_swa {
 /* Error bits in FD CTRL */
 #define DPAA2_FD_CTRL_UFD              0x00000004
 #define DPAA2_FD_CTRL_SBE              0x00000008
-#define DPAA2_FD_CTRL_FSE              0x00000010
-#define DPAA2_FD_CTRL_FAERR            0x00000020
+#define DPAA2_FD_CTRL_FSE              0x00000020
+#define DPAA2_FD_CTRL_FAERR            0x00000040
 
 #define DPAA2_FD_RX_ERR_MASK           (DPAA2_FD_CTRL_SBE      | \
                                         DPAA2_FD_CTRL_FAERR)