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

* Re: [Question] ehci_hcd: inclusion of multiple platform drivers
       [not found] ` <4d6bde24de4d4824d89438ebe97c6e6c.squirrel-mMfbam+mt9083fI46fginR2eb7JE58TQ@public.gmane.org>
@ 2011-06-17 12:56   ` Anirudh Ghayal
  2011-06-17 13:18     ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 3+ messages in thread
From: Anirudh Ghayal @ 2011-06-17 12:56 UTC (permalink / raw)
  To: mgautam-sgV2jX0FEOL9JmXXK+q4OQ, linux-usb-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA

Including linux-usb.

On 6/17/2011 6:18 PM, mgautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org wrote:
> 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
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Question] ehci_hcd: inclusion of multiple platform drivers
  2011-06-17 12:56   ` Anirudh Ghayal
@ 2011-06-17 13:18     ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2011-06-17 13:18 UTC (permalink / raw)
  To: Anirudh Ghayal; +Cc: mgautam, linux-usb, linux-arm-msm

* Anirudh Ghayal | 2011-06-17 18:26:24 [+0530]:

>Including linux-usb.
>
>On 6/17/2011 6:18 PM, mgautam@codeaurora.org wrote:
>>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:

Take a look at the "usb: host: xhci: give xhci a platform_device" thread
where Felipe suggest a platform device for xhci [0]. Maybe something
similar should be done [eou]hci as well. Simply add one device with
proper ressources.

[0] http://article.gmane.org/gmane.linux.usb.general/48028

Sebastian

^ 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.