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

2013-01-24 Thread Venu Byravarasu
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 --- First version of patch can be found at

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

2013-01-24 Thread Felipe Balbi
Hi, On Thu, Jan 24, 2013 at 03:57:03PM +0530, 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

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

2013-01-24 Thread BVG Rao
On Thu, Jan 24, 2013 at 7:35 PM, Felipe Balbi wrote: > Hi, > > On Thu, Jan 24, 2013 at 03:57:03PM +0530, 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_rem

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

2013-01-24 Thread Felipe Balbi
On Thu, Jan 24, 2013 at 09:28:32PM +0530, BVG Rao wrote: > On Thu, Jan 24, 2013 at 7:35 PM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Jan 24, 2013 at 03:57:03PM +0530, Venu Byravarasu wrote: > >> As pointer to PHY structure can be stored in struct usb_hcd > >> making use of it, to call Tegra PHY

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

2013-01-24 Thread Alan Stern
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:

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

2013-01-24 Thread Stephen Warren
On 01/24/2013 06:05 AM, Felipe Balbi wrote: > Hi, > > On Thu, Jan 24, 2013 at 03:57:03PM +0530, 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(),

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

2013-01-24 Thread Felipe Balbi
On Thu, Jan 24, 2013 at 08:57:01AM -0800, Stephen Warren wrote: > On 01/24/2013 06:05 AM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Jan 24, 2013 at 03:57:03PM +0530, Venu Byravarasu wrote: > >> As pointer to PHY structure can be stored in struct usb_hcd > >> making use of it, to call Tegra PHY

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

2013-01-24 Thread Greg KH
On Thu, Jan 24, 2013 at 08:57:01AM -0800, Stephen Warren wrote: > On 01/24/2013 06:05 AM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Jan 24, 2013 at 03:57:03PM +0530, Venu Byravarasu wrote: > >> As pointer to PHY structure can be stored in struct usb_hcd > >> making use of it, to call Tegra PHY

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

2013-01-28 Thread Stephen Warren
On 01/24/2013 03:27 AM, 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. I have applied th