From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Alban Bedel <albeu@free.fr>, linux-usb@vger.kernel.org
Cc: Tony Prisk <linux@prisktech.co.nz>,
Alan Stern <stern@rowland.harvard.edu>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: ehci-platform: Fix using multiple controllers from OF
Date: Mon, 3 Aug 2015 22:23:42 +0300 [thread overview]
Message-ID: <55BFBFBE.5050905@cogentembedded.com> (raw)
In-Reply-To: <1438629150-11662-1-git-send-email-albeu@free.fr>
On 08/03/2015 10:12 PM, Alban Bedel wrote:
> When using OF defined controllers the platform data struct is shared
> between all devices, so it can't be used for device specific settings.
> However it is currently used for the OF properties
> needs-reset-on-resume and has-transaction-translator.
> To fix this issue move setting hcd->has_tt to the probe and
> move pdata->reset_on_resume to the private data.
> Signed-off-by: Alban Bedel <albeu@free.fr>
> ---
> drivers/usb/host/ehci-platform.c | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)
> diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c
> index 2593def..40d029e 100644
> --- a/drivers/usb/host/ehci-platform.c
> +++ b/drivers/usb/host/ehci-platform.c
> @@ -45,6 +45,7 @@ struct ehci_platform_priv {
> struct reset_control *rst;
> struct phy **phys;
> int num_phys;
> + bool reset_on_resume;
> };
>
> static const char hcd_name[] = "ehci-platform";
[...]
> @@ -193,11 +193,11 @@ static int ehci_platform_probe(struct platform_device *dev)
>
> if (of_property_read_bool(dev->dev.of_node,
> "needs-reset-on-resume"))
> - pdata->reset_on_resume = 1;
> + priv->reset_on_resume = 1;
'true' since the typi is 'bool'.
[...]
MBR, Sergei
next prev parent reply other threads:[~2015-08-03 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 19:12 [PATCH] usb: ehci-platform: Fix using multiple controllers from OF Alban Bedel
2015-08-03 19:23 ` Sergei Shtylyov [this message]
2015-08-03 19:39 ` Alan Stern
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=55BFBFBE.5050905@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=albeu@free.fr \
--cc=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux@prisktech.co.nz \
--cc=stern@rowland.harvard.edu \
/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