Re: [PATCH 2/9] scripts/modpost: add a exception for USB gadgetdrivers

From: Felipe Balbi
Date: Thu Aug 16 2012 - 09:07:40 EST


On Thu, Aug 16, 2012 at 06:35:07PM +0530, ABRAHAM, KISHON VIJAY wrote:
> Hi Sebastian,
>
> On Thu, Aug 16, 2012 at 1:29 AM, Sebastian Andrzej Siewior
> <bigeasy@xxxxxxxxxxxxx> wrote:
> > The "driver" struct for a gadget driver is named *_driver. On module
> > load, the gadget expects a UDC driver to be loaded and avaiable. If this
> > is not the case => -ENODEV and bye bye. That means that the gadget
> Will this be taken care of in your future series (with configfs?).
> There might be cases when your gadget driver gets loaded before the
> UDC driver.

with configfs that won't be a problem because even though function
drivers are loaded, they won't bind to any controller until we tell them
to through configfs. IOW, functions will only bind to UDCs after we
assign them to a particular usb interface through configfs.

--
balbi

Attachment: signature.asc
Description: Digital signature