From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/4] USB: EHCI: Export the ehci_hub_control function
Date: Tue, 15 Apr 2014 11:18:43 -0600 [thread overview]
Message-ID: <534D69F3.2050006@wwwdotorg.org> (raw)
In-Reply-To: <1397578005-3341-3-git-send-email-laurent.pinchart@ideasonboard.com>
On 04/15/2014 10:06 AM, Laurent Pinchart wrote:
> Platform drivers sometimes need to perform specific handling of hub
> control requests. Make this possible by exporting the ehci_hub_control()
> function which can then be called from a custom hub control handler in
> the default case.
I recall trying to do something like this in the past, but IIRC Alan
Stern didn't want to make this easy for odd drivers needing this unusual
case. Witness the comment right above the context of the modified code
in ehci-tegra.c:
> diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
/*
* The Tegra HW has some unusual quirks, which require Tegra-specific
* workarounds. We override certain hc_driver functions here to
* achieve that. We explicitly do not enhance ehci_driver_overrides to
* allow this more easily, since this is an unusual case, and we don't
* want to encourage others to override these functions by making it
* too easy.
*/
orig_hub_control = tegra_ehci_hc_driver.hub_control;
> @@ -531,8 +527,6 @@ static int __init ehci_tegra_init(void)
> * too easy.
> */
>
> - orig_hub_control = tegra_ehci_hc_driver.hub_control;
> -
next prev parent reply other threads:[~2014-04-15 17:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 16:06 [PATCH v2 0/4] Allow OHCI drivers to override hub control operations Laurent Pinchart
2014-04-15 16:06 ` [PATCH v2 1/4] USB: OHCI: Export the ohci_hub_control function Laurent Pinchart
2014-04-15 18:01 ` Alan Stern
2014-04-15 23:00 ` Laurent Pinchart
2014-04-15 16:06 ` [PATCH v2 2/4] USB: EHCI: Export the ehci_hub_control function Laurent Pinchart
2014-04-15 17:18 ` Stephen Warren [this message]
2014-04-15 17:57 ` Alan Stern
2014-04-15 16:06 ` [PATCH v2 3/4] USB: ohci-pxa27x: Add support for external vbus regulators Laurent Pinchart
2014-04-15 16:06 ` [PATCH v2 4/4] ARM: pxa: zeus: Replace OHCI init/exit functions with a regulator Laurent Pinchart
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=534D69F3.2050006@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=linux-arm-kernel@lists.infradead.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.