RE: Chipidea gadget unplug/disconnect event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
> 
> Is it possible to get the chipidea to generate an event on udc unplugging?
> 

Yes, it has already implemented at ci_usc_vbus_session.

> I see the code path in ci_udc_vbus_session of udc.c to trigger such an
> event, but unfortunately it was never possible to run into that code.
> 
> The function ci_otg_work in otg.c is prepared to do that in case the irq
> got triggered by OTGSC_BSVIS bit change.
> 
> This is true for plugging, but never happened to be called on unplugging.
> Is there anything missing to get this working? Or is this completely
> impossible by the core? I was already fiddling around with the other irq
> cases OTGSC_*IE, but never got anything useful.

Once the vbus lower than B_SESSION_VALID, it will trigger (set OTGSC_BSVIS too)
BSV interrupt. Check your vbus after unplugging please.

Peter

> 
> I am working on the imx25 otg capable SoC.
> 
> 

--
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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux