On Tue, Jan 19, 2016 at 01:45:36PM +0800, Li Jun wrote: > Enable HNP polling support for chipidea gadget and allocate memory > for host request flag when otg fsm init. > > Signed-off-by: Li Jun <jun.li@xxxxxxx> > --- > drivers/usb/chipidea/otg_fsm.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c > index e5def6a..c71e5fa 100644 > --- a/drivers/usb/chipidea/otg_fsm.c > +++ b/drivers/usb/chipidea/otg_fsm.c > @@ -799,6 +799,10 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) > ci->fsm.id = hw_read_otgsc(ci, OTGSC_ID) ? 1 : 0; > ci->fsm.otg->state = OTG_STATE_UNDEFINED; > ci->fsm.ops = &ci_otg_ops; > + ci->gadget.hnp_polling_support = 1; > + ci->fsm.host_req_flag = devm_kzalloc(ci->dev, 1, GFP_KERNEL); > + if (!ci->fsm.host_req_flag) > + return -ENOMEM; > > mutex_init(&ci->fsm.lock); > > -- > 1.9.1 > Acked-by: Peter Chen <peter.chen@xxxxxxx> -- Best Regards, Peter Chen -- 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