USB: DWC3: Correct DWC3_DSTS_SOFFN_MASK definition
authorPratyush Anand <pratyush.anand@st.com>
Mon, 21 May 2012 09:21:30 +0000 (14:51 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 4 Jun 2012 15:17:29 +0000 (18:17 +0300)
SOF Number is bit16:3 of DSTS. Correct the mask accordingly.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h

index ce43b1f5f341c077618052e8b8091cd48e5c1100..e402022b9e15c61cf3d137b8de5241089c6bc888 100644 (file)
 
 #define DWC3_DSTS_RXFIFOEMPTY          (1 << 17)
 
-#define DWC3_DSTS_SOFFN_MASK           (0x3ff << 3)
+#define DWC3_DSTS_SOFFN_MASK           (0x3fff << 3)
 #define DWC3_DSTS_SOFFN(n)             (((n) & DWC3_DSTS_SOFFN_MASK) >> 3)
 
 #define DWC3_DSTS_CONNECTSPD           (7 << 0)