All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question] ehci_hcd: inclusion of multiple platform drivers
@ 2011-06-17 12:48 mgautam
       [not found] ` <4d6bde24de4d4824d89438ebe97c6e6c.squirrel-mMfbam+mt9083fI46fginR2eb7JE58TQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: mgautam @ 2011-06-17 12:48 UTC (permalink / raw)
  To: linux-usb, l.org; +Cc: linux-arm-msm

Hi,

I am working on an SOC where requirement is to include more than one host
controller platform driver from ehci_hcd.c.
Since, the current framework supports inclusion of just one platform
driver,  I was wondering if we can have some generic solution similar to
below in ehci_hcd.c:

#ifdef CONFIG_USB_EHCI_FSL
#include "ehci-fsl.c"
#endif

#ifdef CONFIG_USB_EHCI_MXC
#include "ehci-mxc.c"
#endif

<...snip....>

static struct platform_driver *plat_drivers[]  = { #ifdef
CONFIG_USB_EHCI_FSL &ehci_fsl_driver, #endif

#ifdef CONFIG_USB_EHCI_MXC
&ehci_mxc_driver,
#endif

.....
}

And we can register all the drivers entries in a for loop from ehci_hcd_init.

Kindly let me know if this approach looks fine. I shall then submit a patch.
I am sorry for not placing the actual patch in this mail for review.


Thanks,
Manu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-17 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 12:48 [Question] ehci_hcd: inclusion of multiple platform drivers mgautam
     [not found] ` <4d6bde24de4d4824d89438ebe97c6e6c.squirrel-mMfbam+mt9083fI46fginR2eb7JE58TQ@public.gmane.org>
2011-06-17 12:56   ` Anirudh Ghayal
2011-06-17 13:18     ` Sebastian Andrzej Siewior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.