Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12814a3f authored by Grigor Tovmasyan's avatar Grigor Tovmasyan Committed by Felipe Balbi
Browse files

usb: dwc2: Fix interval type issue



The maximum value that unsigned char can hold is 255, meanwhile
the maximum value of interval is  2^(bIntervalMax-1)=2^15.

Signed-off-by: default avatarGrigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent ecd29dab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -217,7 +217,7 @@ struct dwc2_hsotg_ep {
	unsigned char           dir_in;
	unsigned char           index;
	unsigned char           mc;
	unsigned char           interval;
	u16                     interval;

	unsigned int            halted:1;
	unsigned int            periodic:1;