mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Babu Moger <babu.moger@oracle.com>
Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers/usb: Skip auto handoff for TI and RENESAS usb controllers
Date: Thu, 7 Jan 2016 09:29:57 -0800	[thread overview]
Message-ID: <20160107172957.GA29783@kroah.com> (raw)
In-Reply-To: <1452187407-34440-1-git-send-email-babu.moger@oracle.com>

On Thu, Jan 07, 2016 at 09:23:27AM -0800, Babu Moger wrote:
> I have never seen auto handoff working on TI and RENESAS cards.
> Eventually, we force handoff. This code forces the handoff
> unconditionally. It saves 5 seconds boot time for each card.
> 
> Signed-off-by: Babu Moger <babu.moger@oracle.com>
> ---
>  drivers/usb/host/pci-quirks.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c
> index f940056..b7ee895 100644
> --- a/drivers/usb/host/pci-quirks.c
> +++ b/drivers/usb/host/pci-quirks.c
> @@ -1003,6 +1003,13 @@ static void quirk_usb_handoff_xhci(struct pci_dev *pdev)
>  		ext_cap_offset = xhci_find_next_cap_offset(base, ext_cap_offset);
>  	} while (1);
>  
> +	/* Auto handoff never worked for these devices. Force it and continue */
> +	if (pdev->vendor == PCI_VENDOR_ID_TI ||
> +			pdev->vendor == PCI_VENDOR_ID_RENESAS) {
> +		val  =  (val | XHCI_HC_OS_OWNED) & ~XHCI_HC_BIOS_OWNED;

odd spaces here, why this format?

And are you sure that all TI and Renesas host controllers have this
issue?  That's a very wide and broad test you are making here...

thanks,

greg k-h

  reply	other threads:[~2016-01-07 17:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-07 17:23 Babu Moger
2016-01-07 17:29 ` Greg KH [this message]
2016-01-07 17:51   ` Babu Moger
2016-01-07 18:28     ` Greg KH
2016-01-08  0:04 ` [PATCH v2] " Babu Moger
2016-01-08  1:01   ` Greg KH
2016-01-08 15:36     ` Babu Moger
2016-01-08 15:39 ` Babu Moger
2016-03-16 22:26   ` Babu Moger

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=20160107172957.GA29783@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=babu.moger@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@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