Peter Chen <peter.chen@xxxxxxxxxxxxx> writes: > On Tue, May 15, 2012 at 09:58:18PM +0800, Richard Zhao wrote: >> It's 0 for host only device. >> >> Signed-off-by: Richard Zhao <richard.zhao@xxxxxxxxxxxxx> >> --- >> drivers/usb/chipidea/core.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c >> index f568b8e..15e03b3 100644 >> --- a/drivers/usb/chipidea/core.c >> +++ b/drivers/usb/chipidea/core.c >> @@ -195,7 +195,7 @@ static int hw_device_init(struct ci13xxx *ci, void __iomem *base) >> ffs_nr(DCCPARAMS_DEN); >> ci->hw_ep_max = reg * 2; /* cache hw ENDPT_MAX */ >> >> - if (ci->hw_ep_max == 0 || ci->hw_ep_max > ENDPT_MAX) >> + if (ci->hw_ep_max > ENDPT_MAX) >> return -ENODEV; > Can you move this get hw_ep_max code to udc.c? As hw_ep_max is only used > for device driver. What do you think, Alex? Yes, I think this needs to go to udc.c in the future. Regards, -- Alex -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html