Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1373272 > unrolled thread
| Started by | Mathias Nyman <mathias.nyman@linux.intel.com> |
|---|---|
| First post | 2016-04-07 13:00 +0200 |
| Last post | 2016-04-07 13:50 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v10 8/9] usb: xhci: Add NVIDIA Tegra XUSB controller driver Mathias Nyman <mathias.nyman@linux.intel.com> - 2016-04-07 13:00 +0200
Re: [PATCH v10 8/9] usb: xhci: Add NVIDIA Tegra XUSB controller driver Thierry Reding <thierry.reding@gmail.com> - 2016-04-07 13:10 +0200
Re: [PATCH v10 8/9] usb: xhci: Add NVIDIA Tegra XUSB controller driver Mathias Nyman <mathias.nyman@linux.intel.com> - 2016-04-07 13:50 +0200
| From | Mathias Nyman <mathias.nyman@linux.intel.com> |
|---|---|
| Date | 2016-04-07 13:00 +0200 |
| Subject | Re: [PATCH v10 8/9] usb: xhci: Add NVIDIA Tegra XUSB controller driver |
| Message-ID | <rlfPk-2zu-29@gated-at.bofh.it> |
On 04.03.2016 18:19, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> Add support for the on-chip XUSB controller present on Tegra SoCs. This
> controller, when loaded with external firmware, exposes an interface
> compliant with xHCI. This driver loads the firmware, starts the
> controller, and is able to service host-specific messages sent by the
> controller's firmware.
>
> The controller also supports USB device mode as well as powergating
> of the SuperSpeed and host-controller logic when not in use, but
> support for these is not yet implemented.
>
> Based on work by:
> Ajay Gupta <ajayg@nvidia.com>
> Bharath Yadav <byadav@nvidia.com>
> Andrew Bresticker <abrestic@chromium.org>
>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Mathias Nyman <mathias.nyman@intel.com>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
...
> +static int tegra_xusb_remove(struct platform_device *pdev)
> +{
> + struct tegra_xusb *tegra = platform_get_drvdata(pdev);
> + struct usb_hcd *hcd = tegra->hcd;
> + struct xhci_hcd *xhci;
> +
> + if (tegra->fw_loaded) {
> + xhci = hcd_to_xhci(hcd);
> + usb_remove_hcd(xhci->shared_hcd);
> + usb_put_hcd(xhci->shared_hcd);
> + usb_remove_hcd(hcd);
> + tegra_xusb_padctl_put(tegra->padctl);
> + usb_put_hcd(hcd);
> + kfree(xhci);
Don't free xhci here, xhci is a part of hcd (hcd_priv) and hcd is already freed in usb_put_hcd()
Other than that I can't see any issues
-Mathias
[toc] | [next] | [standalone]
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Date | 2016-04-07 13:10 +0200 |
| Subject | Re: [PATCH v10 8/9] usb: xhci: Add NVIDIA Tegra XUSB controller driver |
| Message-ID | <rlfZ0-2UP-25@gated-at.bofh.it> |
| In reply to | #1373272 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, Apr 07, 2016 at 02:03:45PM +0300, Mathias Nyman wrote:
> On 04.03.2016 18:19, Thierry Reding wrote:
> > From: Thierry Reding <treding@nvidia.com>
> >
> > Add support for the on-chip XUSB controller present on Tegra SoCs. This
> > controller, when loaded with external firmware, exposes an interface
> > compliant with xHCI. This driver loads the firmware, starts the
> > controller, and is able to service host-specific messages sent by the
> > controller's firmware.
> >
> > The controller also supports USB device mode as well as powergating
> > of the SuperSpeed and host-controller logic when not in use, but
> > support for these is not yet implemented.
> >
> > Based on work by:
> > Ajay Gupta <ajayg@nvidia.com>
> > Bharath Yadav <byadav@nvidia.com>
> > Andrew Bresticker <abrestic@chromium.org>
> >
> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > Cc: Mathias Nyman <mathias.nyman@intel.com>
> > Signed-off-by: Thierry Reding <treding@nvidia.com>
> > ---
>
> ...
>
> > +static int tegra_xusb_remove(struct platform_device *pdev)
> > +{
> > + struct tegra_xusb *tegra = platform_get_drvdata(pdev);
> > + struct usb_hcd *hcd = tegra->hcd;
> > + struct xhci_hcd *xhci;
> > +
> > + if (tegra->fw_loaded) {
> > + xhci = hcd_to_xhci(hcd);
> > + usb_remove_hcd(xhci->shared_hcd);
> > + usb_put_hcd(xhci->shared_hcd);
> > + usb_remove_hcd(hcd);
> > + tegra_xusb_padctl_put(tegra->padctl);
> > + usb_put_hcd(hcd);
> > + kfree(xhci);
>
> Don't free xhci here, xhci is a part of hcd (hcd_priv) and hcd is already freed in usb_put_hcd()
Ah, this was indeed reported to me about two weeks ago and fixed since
then in my local tree.
> Other than that I can't see any issues
Thanks. Does this count as an Acked-by provided the kfree() is removed?
Thierry
[toc] | [prev] | [next] | [standalone]
| From | Mathias Nyman <mathias.nyman@linux.intel.com> |
|---|---|
| Date | 2016-04-07 13:50 +0200 |
| Message-ID | <rlgBI-3br-15@gated-at.bofh.it> |
| In reply to | #1373273 |
On 07.04.2016 14:05, Thierry Reding wrote:
> On Thu, Apr 07, 2016 at 02:03:45PM +0300, Mathias Nyman wrote:
>> On 04.03.2016 18:19, Thierry Reding wrote:
>>> From: Thierry Reding <treding@nvidia.com>
>>>
>>> Add support for the on-chip XUSB controller present on Tegra SoCs. This
>>> controller, when loaded with external firmware, exposes an interface
>>> compliant with xHCI. This driver loads the firmware, starts the
>>> controller, and is able to service host-specific messages sent by the
>>> controller's firmware.
>>>
>>> The controller also supports USB device mode as well as powergating
>>> of the SuperSpeed and host-controller logic when not in use, but
>>> support for these is not yet implemented.
>>>
>>> Based on work by:
>>> Ajay Gupta <ajayg@nvidia.com>
>>> Bharath Yadav <byadav@nvidia.com>
>>> Andrew Bresticker <abrestic@chromium.org>
>>>
>>> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>> Cc: Mathias Nyman <mathias.nyman@intel.com>
>>> Signed-off-by: Thierry Reding <treding@nvidia.com>
>>> ---
>>
>> ...
>>
>>> +static int tegra_xusb_remove(struct platform_device *pdev)
>>> +{
>>> + struct tegra_xusb *tegra = platform_get_drvdata(pdev);
>> > + struct usb_hcd *hcd = tegra->hcd;
>>> + struct xhci_hcd *xhci;
>>> +
>>> + if (tegra->fw_loaded) {
>>> + xhci = hcd_to_xhci(hcd);
>>> + usb_remove_hcd(xhci->shared_hcd);
>>> + usb_put_hcd(xhci->shared_hcd);
>>> + usb_remove_hcd(hcd);
>>> + tegra_xusb_padctl_put(tegra->padctl);
>>> + usb_put_hcd(hcd);
>>> + kfree(xhci);
>>
>> Don't free xhci here, xhci is a part of hcd (hcd_priv) and hcd is already freed in usb_put_hcd()
>
> Ah, this was indeed reported to me about two weeks ago and fixed since
> then in my local tree.
>
>> Other than that I can't see any issues
>
> Thanks. Does this count as an Acked-by provided the kfree() is removed?
>
yes,
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web