Re: [RFC] usb: phy: generic: get rid of VBUS handling

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

 



Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> writes:

>>  - amend the drivers (for my part I have pxa27x_udc.c and probably pxa25x_udc.c)
>>  to subscribe to the notifier, and in the action function call either
>>  usb_gadget_vbus_connect() or usb_gadget_vbus_disconnect().
>>
>> Would that kind of approach solve the layering issue, what do you think ?
>
> I like second option of having PHY simply sending the notification and
> relying on UDC to actually call usb_gadget_vbus_*().
>
> I could write the patches, but I wouldn't have any means to test them
> :-s
>
> Let me know if you prefer to write them yourself or want me to give it a
> shot.
Hi Felipe,

I'll write the 3 patches and test them, as it's easier when you have the proper
hardware :
 - one for pxa27x_udc.c
 - one for pxa25x_udc.c
 - one for phy-generic.c

I don't know if there are other users than pxa, I'll make the assumption there
aren't.

Cheers.

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