]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 May 2016 21:32:07 +0000 (14:32 -0700)
commit8ed6ddc1b9ce97123c71189ded9c34e99c8d6395
tree85b7985839de640e8807d0aa6af76906374fef36
parente1cbb4c53b3de3178d33966fde5e6bc759e35396
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.

Fixes: 94c7297265de ('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>
drivers/usb/dwc3/core.h