patch "usb: dwc3: gadget: Fix incorrect DEPCMD and DGCMD status macros" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: dwc3: gadget: Fix incorrect DEPCMD and DGCMD status macros
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
459e210c4fd034d20077bcec31fec9472a700fe9Mon Sep 17 00:00:00 2001
From: Subbaraya Sundeep Bhatta <[email protected]>
Date: Thu, 21 May 2015 15:46:46 +0530
Subject: usb: dwc3: gadget: Fix incorrect DEPCMD and DGCMD status macros
Fixed the incorrect macro definitions correctly as per databook.
--- drivers/usb/dwc3/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/dwc3/core.h +2 -2
@@ -339,7 +339,7 @@#define DWC3_DGCMD_SET_ENDPOINT_NRDY 0x0c#define DWC3_DGCMD_RUN_SOC_BUS_LOOPBACK 0x10 -#define DWC3_DGCMD_STATUS (n) (((n) >> 15) & 1) +#define DWC3_DGCMD_STATUS (n) (((n) >> 12) & 0x0F)#define DWC3_DGCMD_CMDACT (1 << 10)#define DWC3_DGCMD_CMDIOC (1 << 8)
@@ -355,7 +355,7 @@#define DWC3_DEPCMD_PARAM_SHIFT 16#define DWC3_DEPCMD_PARAM (x) ((x) << DWC3_DEPCMD_PARAM_SHIFT)#define DWC3_DEPCMD_GET_RSC_IDX (x) (((x) >> DWC3_DEPCMD_PARAM_SHIFT) & 0x7f) -#define DWC3_DEPCMD_STATUS (x) (((x) >> 15) & 1) +#define DWC3_DEPCMD_STATUS (x) (((x) >> 12) & 0x0F)#define DWC3_DEPCMD_HIPRI_FORCERM (1 << 11)#define DWC3_DEPCMD_CMDACT (1 << 10)#define DWC3_DEPCMD_CMDIOC (1 << 8)
Signature · 1 line
2.4.1