From: Felipe Balbi <balbi@kernel.org>
To: Baolin Wang <baolin.wang@linaro.org>,
gregkh@linuxfoundation.org, mathias.nyman@linux.intel.com
Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, broonie@kernel.org,
baolin.wang@linaro.org
Subject: Re: [PATCH 1/4] usb: host: xhci: Move the xhci quirks checking to the right place
Date: Thu, 18 Aug 2016 10:17:11 +0300 [thread overview]
Message-ID: <87lgzu5yx4.fsf@linux.intel.com> (raw)
In-Reply-To: <b2f0db747a0e1bf3b57221b7fcde6623ad3011d1.1468571634.git.baolin.wang@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 1536 bytes --]
Hi,
Baolin Wang <baolin.wang@linaro.org> writes:
> It will reset the xhci quirks in xhci_gen_setup() function when xhci try to
> add one hcd, thus we need to move the XHCI_LPM_SUPPORT quirk checking after
> adding hcd.
>
> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
> ---
> drivers/usb/host/xhci-plat.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
> index 1f3f981..e2e2487 100644
> --- a/drivers/usb/host/xhci-plat.c
> +++ b/drivers/usb/host/xhci-plat.c
> @@ -223,10 +223,6 @@ static int xhci_plat_probe(struct platform_device *pdev)
> goto disable_clk;
> }
>
> - if ((node && of_property_read_bool(node, "usb3-lpm-capable")) ||
> - (pdata && pdata->usb3_lpm_capable))
> - xhci->quirks |= XHCI_LPM_SUPPORT;
> -
> if (HCC_MAX_PSA(xhci->hcc_params) >= 4)
> xhci->shared_hcd->can_do_streams = 1;
>
> @@ -250,6 +246,10 @@ static int xhci_plat_probe(struct platform_device *pdev)
> if (ret)
> goto dealloc_usb2_hcd;
>
> + if ((node && of_property_read_bool(node, "usb3-lpm-capable")) ||
> + (pdata && pdata->usb3_lpm_capable))
> + xhci->quirks |= XHCI_LPM_SUPPORT;
> +
Mathias, any comments here?
> return 0;
>
>
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
next prev parent reply other threads:[~2016-08-18 7:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 9:13 [PATCH 0/4] Support dwc3 host suspend/resume Baolin Wang
2016-07-15 9:13 ` [PATCH 1/4] usb: host: xhci: Move the xhci quirks checking to the right place Baolin Wang
2016-08-18 7:17 ` Felipe Balbi [this message]
2016-08-30 12:04 ` Baolin Wang
2016-07-15 9:13 ` [PATCH 2/4] usb: host: xhci: Introduce one new 'usb3_slow_suspend' member for xhci private data Baolin Wang
2016-08-18 7:18 ` Felipe Balbi
2016-08-18 8:54 ` Baolin Wang
2016-08-18 12:25 ` Felipe Balbi
2016-08-18 12:47 ` Baolin Wang
2016-08-18 13:42 ` Felipe Balbi
2016-08-19 7:52 ` Baolin Wang
2016-07-15 9:13 ` [PATCH 3/4] usb: dwc3: core: Move the mode setting to the right place Baolin Wang
2016-07-15 9:13 ` [PATCH 4/4] usb: dwc3: core: Support the dwc3 host suspend/resume Baolin Wang
2016-07-15 16:17 ` kbuild test robot
2016-07-15 18:25 ` kbuild test robot
2016-08-18 7:33 ` Felipe Balbi
2016-08-18 8:59 ` Baolin Wang
2016-08-18 12:25 ` Felipe Balbi
2016-08-18 12:52 ` Baolin Wang
2016-08-18 13:42 ` Felipe Balbi
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=87lgzu5yx4.fsf@linux.intel.com \
--to=balbi@kernel.org \
--cc=baolin.wang@linaro.org \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=mathias.nyman@linux.intel.com \
/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
Powered by JetHome