Skip to content

Commit

Permalink
usb: dwc3: keep default hird threshold value as 4b1100
Browse files Browse the repository at this point in the history
as per data book any HIRD threshold value greater than 4b1100 is
invalid. So set the maximum valid value as default values.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Pratyush Anand authored and Felipe Balbi committed Jul 2, 2012
1 parent 08f0d96 commit cbc725b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -2448,7 +2448,7 @@ int __devinit dwc3_gadget_init(struct dwc3 *dwc)
reg &= ~(DWC3_DCTL_HIRD_THRES_MASK | DWC3_DCTL_L1_HIBER_EN);

/* TODO: This should be configurable */
reg |= DWC3_DCTL_HIRD_THRES(31);
reg |= DWC3_DCTL_HIRD_THRES(28);

dwc3_writel(dwc->regs, DWC3_DCTL, reg);

Expand Down

0 comments on commit cbc725b

Please sign in to comment.