From: Anirudh Ghayal <aghayal-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
To: mgautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [Question] ehci_hcd: inclusion of multiple platform drivers
Date: Fri, 17 Jun 2011 18:26:24 +0530 [thread overview]
Message-ID: <4DFB4EF8.101@codeaurora.org> (raw)
In-Reply-To: <4d6bde24de4d4824d89438ebe97c6e6c.squirrel-mMfbam+mt9083fI46fginR2eb7JE58TQ@public.gmane.org>
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
next prev parent reply other threads:[~2011-06-17 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-06-17 13:18 ` Sebastian Andrzej Siewior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DFB4EF8.101@codeaurora.org \
--to=aghayal-sgv2jx0feol9jmxxk+q4oq@public.gmane.org \
--cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mgautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox