Re: [RFC/PATCH] Introduce USB Gadget Class

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

 



On Thu, Sep 09, 2010 at 06:08:11AM -0500, Balbi, Felipe wrote:
Hi Matthieu,

On Thu, Sep 09, 2010 at 04:17:34AM -0500, Matthieu CASTET wrote:
For information I am developing a something similar
for allowing building more than one controller in kernel.
My patch is much simpler, but it does only that.

yeah, I saw that now. It also doesn't work if you have a board with two
gadget controllers, right ?

I wanted to abstract most of the stuff, so we can add an atomic notifier
sending information about the gadget to whoever is interested. Charger
chips wants to know when the gadget is enumerated so they can fix the
input current to USB charging (for example).

I will have a look to your proposal.

the version attached probably has more to see, it shows better the
approach, I think.

Dave, if you have any tips on how I should link struct usb_gadget and
struct usb_composite_dev I would be glad to hear. I can't of anything
other than saving a pointer to usb_composite_dev inside usb_gadget,
since with this gadget->dev->drvdata contains a gadget and not a cdev.

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