Re: question about functionfs and composite gadget

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

 



On Wed, Jul 27, 2011 at 05:58:26AM -0700, jacob pan wrote:
> On Wed, 27 Jul 2011 14:29:05 +0200
> Michal Nazarewicz <mina86@xxxxxxxxxx> wrote:
> 
> > On Wed, 27 Jul 2011 14:17:28 +0200, jacob pan
> > <jacob.jun.pan@xxxxxxxxx> wrote:
> > > my goal is to inform userspace the connection status of otg port
> > > such that user can make a decision on which gadget role he wants to
> > > use for the device. It seems these ffs_data_xxx functions cannot
> > > definitively tell the connection state. I guess i may have to add
> > > uevents to the UDC driver or OTG transcriver driver. But it would
> > > not be a generic solution as functionfs.

if all you want to do is notify cable connection, just notify VBUS from
the transceiver. If VBUS is on, your cable is connected to a host PC. If
ID IRQ is triggered (instead of VBUS) then you're supposed to be host.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux