Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: mgautam@codeaurora.org
To: linux-usb@vger.kerne&#8203, l.org@codeaurora.org
Cc: linux-arm-msm@vger.kernel.org
Subject: [Question] ehci_hcd: inclusion of multiple platform drivers
Date: Fri, 17 Jun 2011 05:48:16 -0700 (PDT)	[thread overview]
Message-ID: <4d6bde24de4d4824d89438ebe97c6e6c.squirrel@www.codeaurora.org> (raw)

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

             reply	other threads:[~2011-06-17 12:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 12:48 mgautam [this message]
     [not found] ` <4d6bde24de4d4824d89438ebe97c6e6c.squirrel-mMfbam+mt9083fI46fginR2eb7JE58TQ@public.gmane.org>
2011-06-17 12:56   ` [Question] ehci_hcd: inclusion of multiple platform drivers Anirudh Ghayal
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=4d6bde24de4d4824d89438ebe97c6e6c.squirrel@www.codeaurora.org \
    --to=mgautam@codeaurora.org \
    --cc=l.org@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-usb@vger.kerne&#8203 \
    /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