Re: [PATCH] chipidea: Fix issue in reconnecing gadget without insmod/rmmod

2017-04-14 Thread Peter Chen
On Wed, Apr 12, 2017 at 06:18:20PM +0530, Niranjan Dighe wrote: > > Hi Niranjan, > > > > When working with iAP device, there are two role-switch methods > > - Through OTG FSM, and using sysfs entries under > > /sys/bus/platform/devices/ci_hdrc.0/inputs > > but you may need to patch code to keep vbu

Re: [PATCH] chipidea: Fix issue in reconnecing gadget without insmod/rmmod

2017-04-12 Thread Niranjan Dighe
On Wed, Apr 12, 2017 at 5:21 PM, Peter Chen wrote: > On Tue, Apr 11, 2017 at 08:46:24PM +0530, Niranjan Dighe wrote: >> Currently usb_gadget_connect() is called only through gadget >> registration via composite_driver_probe(). As a result, after a >> disconnection, if the role transitions to host

Re: [PATCH] chipidea: Fix issue in reconnecing gadget without insmod/rmmod

2017-04-12 Thread Peter Chen
On Tue, Apr 11, 2017 at 08:46:24PM +0530, Niranjan Dighe wrote: > Currently usb_gadget_connect() is called only through gadget > registration via composite_driver_probe(). As a result, after a > disconnection, if the role transitions to host and back to gadget, > the gadget is not recognized by the

Re: [PATCH] chipidea: Fix issue in reconnecing gadget without insmod/rmmod

2017-04-11 Thread kbuild test robot
Hi Niranjan, [auto build test ERROR on usb/usb-testing] [also build test ERROR on v4.11-rc6] [cannot apply to next-20170411] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Niranjan-Dighe/chipide

Re: [PATCH] chipidea: Fix issue in reconnecing gadget without insmod/rmmod

2017-04-11 Thread kbuild test robot
Hi Niranjan, [auto build test ERROR on usb/usb-testing] [also build test ERROR on v4.11-rc6] [cannot apply to next-20170411] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Niranjan-Dighe/chipide

[PATCH] chipidea: Fix issue in reconnecing gadget without insmod/rmmod

2017-04-11 Thread Niranjan Dighe
Currently usb_gadget_connect() is called only through gadget registration via composite_driver_probe(). As a result, after a disconnection, if the role transitions to host and back to gadget, the gadget is not recognized by the host anymore. This is a typical scenario with an iAP device in the foll