Re: [PATCH v2] usb: host: tegra: make use of PHY pointer of HCD

From: Alan Stern
Date: Thu Jan 24 2013 - 11:28:00 EST


On Thu, 24 Jan 2013, Venu Byravarasu wrote:

> As pointer to PHY structure can be stored in struct usb_hcd
> making use of it, to call Tegra PHY APIs.
>
> Call to usb_phy_shutdown() is moved up in tegra_ehci_remove(),
> so that to avoid dereferencing of hcd after its freed up.
>
> Signed-off-by: Venu Byravarasu <vbyravarasu@xxxxxxxxxx>
> ---
> First version of patch can be found at
> http://marc.info/?l=linux-kernel&m=135581479020213&w=2. As it was not
> yet applied, sending v2 of the patch.
>
> delta from v1:
> Modified all Tegra PHY APIs to use standard 'structu usb_phy *' as
> their parameter instead of proprietary parameter of type 'struct tegra_usb_phy *'.

For ehci-tegra.c:

Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/