Skip to content

Commit 586f433

Browse files
Thinh Nguyenfelipebalbi
authored andcommitted
usb: dwc3: Fix GTXFIFOSIZ.TXFDEP macro name
Change the macro name DWC3_GTXFIFOSIZ_TXFDEF to DWC3_GTXFIFOSIZ_TXFDEP to match with the register name GTXFIFOSIZ.TXFDEP. Fixes: 457e84b ("usb: dwc3: gadget: dynamically re-size TxFifos") Fixes: 0cab8d2 ("usb: dwc3: Update DWC_usb31 GTXFIFOSIZ reg fields") Signed-off-by: Thinh Nguyen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 09b04ab commit 586f433

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/usb/dwc3/core.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@
307307

308308
/* Global TX Fifo Size Register */
309309
#define DWC31_GTXFIFOSIZ_TXFRAMNUM BIT(15) /* DWC_usb31 only */
310-
#define DWC31_GTXFIFOSIZ_TXFDEF(n) ((n) & 0x7fff) /* DWC_usb31 only */
311-
#define DWC3_GTXFIFOSIZ_TXFDEF(n) ((n) & 0xffff)
310+
#define DWC31_GTXFIFOSIZ_TXFDEP(n) ((n) & 0x7fff) /* DWC_usb31 only */
311+
#define DWC3_GTXFIFOSIZ_TXFDEP(n) ((n) & 0xffff)
312312
#define DWC3_GTXFIFOSIZ_TXFSTADDR(n) ((n) & 0xffff0000)
313313

314314
/* Global Event Size Registers */

drivers/usb/dwc3/gadget.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,9 +2236,9 @@ static int dwc3_gadget_init_in_endpoint(struct dwc3_ep *dep)
22362236

22372237
size = dwc3_readl(dwc->regs, DWC3_GTXFIFOSIZ(dep->number >> 1));
22382238
if (dwc3_is_usb31(dwc))
2239-
size = DWC31_GTXFIFOSIZ_TXFDEF(size);
2239+
size = DWC31_GTXFIFOSIZ_TXFDEP(size);
22402240
else
2241-
size = DWC3_GTXFIFOSIZ_TXFDEF(size);
2241+
size = DWC3_GTXFIFOSIZ_TXFDEP(size);
22422242

22432243
/* FIFO Depth is in MDWDITH bytes. Multiply */
22442244
size *= mdwidth;

0 commit comments

Comments
 (0)