UPSTREAM: usb: dwc3: gadget: fix mask and shift order in DWC3_DCFG_NUMP()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 3 May 2016 07:49:00 +0000 (10:49 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit68213a9bacf6f17919aca6fa46a4ca53def56e72
treeb2b980872286ed0286d8668c49796e44b830cc96
parented2c95c369dd8060bde6cb58c0fef2383692b67e
UPSTREAM: usb: dwc3: gadget: fix mask and shift order in DWC3_DCFG_NUMP()

In the original DWC3_DCFG_NUMP() was always zero.  It looks like the
intent was to shift first and then do the mask.

Change-Id: I290fe7bb82bbf7adf626fcb5ee2474fce60167bd
Fixes: 2a58f9c12bb3 ('usb: dwc3: gadget: disable automatic calculation of ACK TP NUMP')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 973986126a4152ab83d09263a02bf7d2d1bf3b6e)
drivers/usb/dwc3/core.h