All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Vinod Koul <vkoul@kernel.org>
Cc: "Mathias Nyman" <mathias.nyman@intel.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	linux-arm-msm@vger.kernel.org,
	"Bjorn Andersson" <bjorn.andersson@linaro.org>,
	"Yoshihiro Shimoda" <yoshihiro.shimoda.uh@renesas.com>,
	"Christian Lamparter" <chunkeey@googlemail.com>,
	"John Stultz" <john.stultz@linaro.org>,
	"Alan Stern" <stern@rowland.harvard.edu>,
	"Andreas Böhler" <dev@aboehler.at>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v10 3/5] usb: xhci: Add support for Renesas controller with memory
Date: Thu, 30 Apr 2020 11:16:49 +0300	[thread overview]
Message-ID: <2cf10102-7529-6543-476a-e99730772c64@linux.intel.com> (raw)
In-Reply-To: <20200430062055.GE948789@vkoul-mobl.Dlink>

On 30.4.2020 9.20, Vinod Koul wrote:
> On 29-04-20, 19:58, Vinod Koul wrote:
>> On 29-04-20, 16:53, Mathias Nyman wrote:
>>> On 24.4.2020 13.14, Vinod Koul wrote:
> 
>>>>  	/* Prevent runtime suspending between USB-2 and USB-3 initialization */
>>>>  	pm_runtime_get_noresume(&dev->dev);
>>>> @@ -388,6 +401,9 @@ static void xhci_pci_remove(struct pci_dev *dev)
>>>>  {
>>>>  	struct xhci_hcd *xhci;
>>>>  
>>>> +	if (renesas_device)
>>>> +		renesas_xhci_pci_exit(dev);
>>>> +
>>>
>>> Ah, I see, what we really should do is make sure the quirks in the driver data get
>>> added to xhci->quirks, and then just check for the correct quirk in xhci_pci_remove.
>>
>> Ah sure that does sound better, I will update this as well and send an
>> update with these changes
> 
> This works for me.. But I have kept the code as in the xhci_pci_probe(),
> ofcourse removed bool renesas_device.

That's fine, xhci is just hcd->hcd_priv, and it doesn't exists before
usb_hcd_pci_probe() is called

usb_hcd_pci_probe()
  usb_create_hcd()
    hcd = kzalloc(sizeof(*hcd) + driver->hcd_priv_size, GFP_KERNEL);

-Mathias



  reply	other threads:[~2020-04-30  8:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 10:14 [PATCH v10 0/5] usb: xhci: Add support for Renesas USB controllers Vinod Koul
2020-04-24 10:14 ` [PATCH v10 1/5] usb: hci: add hc_driver as argument for usb_hcd_pci_probe Vinod Koul
2020-04-24 10:14 ` [PATCH v10 2/5] usb: renesas-xhci: Add the renesas xhci driver Vinod Koul
2020-04-24 10:14 ` [PATCH v10 3/5] usb: xhci: Add support for Renesas controller with memory Vinod Koul
2020-04-29 13:53   ` Mathias Nyman
2020-04-29 14:28     ` Vinod Koul
2020-04-30  6:20       ` Vinod Koul
2020-04-30  8:16         ` Mathias Nyman [this message]
2020-04-30  9:16           ` Vinod Koul
2020-04-24 10:14 ` [PATCH v10 4/5] usb: renesas-xhci: Add ROM loader for uPD720201 Vinod Koul
2020-04-29 14:39   ` Mathias Nyman
2020-04-30  9:17     ` Vinod Koul
2020-04-24 10:14 ` [PATCH v10 5/5] usb: xhci: provide a debugfs hook for erasing rom Vinod Koul

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=2cf10102-7529-6543-476a-e99730772c64@linux.intel.com \
    --to=mathias.nyman@linux.intel.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=chunkeey@googlemail.com \
    --cc=dev@aboehler.at \
    --cc=gregkh@linuxfoundation.org \
    --cc=john.stultz@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=stern@rowland.harvard.edu \
    --cc=vkoul@kernel.org \
    --cc=yoshihiro.shimoda.uh@renesas.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 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.