From: David Daney <ddaney@caviumnetworks.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] usb: add EHCI and OHCI support for SH7757
Date: Fri, 25 Feb 2011 18:41:42 +0000 [thread overview]
Message-ID: <4D67F7E6.4000700@caviumnetworks.com> (raw)
In-Reply-To: <4D660C04.9070800@renesas.com>
On 02/24/2011 01:47 AM, Yoshihiro Shimoda wrote:
> Signed-off-by: Yoshihiro Shimoda<yoshihiro.shimoda.uh@renesas.com>
> ---
> about v2:
> - fix the condition for other CPU in ehci-hcd.c.
>
> drivers/usb/host/ehci-hcd.c | 3 ++-
> drivers/usb/host/ohci-hcd.c | 1 +
> 2 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
> index 4c77a81..b396567 100644
> --- a/drivers/usb/host/ehci-hcd.c
> +++ b/drivers/usb/host/ehci-hcd.c
> @@ -1184,7 +1184,8 @@ MODULE_LICENSE ("GPL");
> #define PLATFORM_DRIVER ehci_mxc_driver
> #endif
>
> -#ifdef CONFIG_CPU_SUBTYPE_SH7786
> +#if defined(CONFIG_CPU_SUBTYPE_SH7757) || \
> + defined(CONFIG_CPU_SUBTYPE_SH7786)
> #include "ehci-sh.c"
> #define PLATFORM_DRIVER ehci_hcd_sh_driver
> #endif
> diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
> index 759a12f..257974e 100644
> --- a/drivers/usb/host/ohci-hcd.c
> +++ b/drivers/usb/host/ohci-hcd.c
> @@ -1070,6 +1070,7 @@ MODULE_LICENSE ("GPL");
>
> #if defined(CONFIG_CPU_SUBTYPE_SH7720) || \
> defined(CONFIG_CPU_SUBTYPE_SH7721) || \
> + defined(CONFIG_CPU_SUBTYPE_SH7757) || \
> defined(CONFIG_CPU_SUBTYPE_SH7763) || \
> defined(CONFIG_CPU_SUBTYPE_SH7786)
> #include "ohci-sh.c"
I wonder if all that #ifdefery could be moved into the arch/sh Kconfig.
Patching the core ehci/ohci code each time a new sh CPU variant is
released seems like the wrong approach.
David Daney
next prev parent reply other threads:[~2011-02-25 18:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 7:43 [PATCH] usb: add EHCI and OHCI support for SH7757 Yoshihiro Shimoda
2011-02-24 8:16 ` Kuninori Morimoto
2011-02-24 8:35 ` Yoshihiro Shimoda
2011-02-24 9:47 ` Yoshihiro Shimoda
2011-02-24 11:26 ` Sergei Shtylyov
2011-02-25 0:26 ` Yoshihiro Shimoda
2011-02-25 3:19 ` Paul Mundt
2011-02-25 4:26 ` Yoshihiro Shimoda
2011-02-25 18:41 ` David Daney [this message]
2011-02-25 19:39 ` Greg KH
2011-02-28 4:40 ` Yoshihiro Shimoda
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=4D67F7E6.4000700@caviumnetworks.com \
--to=ddaney@caviumnetworks.com \
--cc=linux-sh@vger.kernel.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 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.