Re: Tegra3 ehci_suspend and ehci_resume

2012-12-13 Thread Alan Stern
On Thu, 13 Dec 2012, Timur wrote: > On 12/12/2012 07:34 PM, Alan Stern wrote: > > > Okay. Then how about this: Unplug both the power connector and the > > slave connector. After the N7 goes into deep sleep, plug the power > > connector back in but leave the slave unplugged. Then a few seconds

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-13 Thread Timur
On 12/12/2012 07:34 PM, Alan Stern wrote: Okay. Then how about this: Unplug both the power connector and the slave connector. After the N7 goes into deep sleep, plug the power connector back in but leave the slave unplugged. Then a few seconds later, plug in the slave. This always fails (-7

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Timur wrote: > Nexus 7 and USB slave get their power via USB cable. This makes it a > little difficult to connect power, but leave the USB connection > unplugged. I'm not sure how to proceed with this. > > This is the USB Y-adapter I am using: > https://sites.google.com/si

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-12 Thread Timur
On 12.12.2012 16:20, Alan Stern wrote: On Wed, 12 Dec 2012, Timur wrote: - Unplugging and re-plugging the slave device works well. - Unplugging the Y-cable (disconnecting slave and external power at the same time) then re-plugging the Y-cable works well. - Disconnecting external power to both d

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Timur wrote: > - Unplugging and re-plugging the slave device works well. > - Unplugging the Y-cable (disconnecting slave and external power at the > same time) then re-plugging the Y-cable works well. > - Disconnecting external power to both devices, then waiting for the > h

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Timur
On 12/11/2012 11:24 PM, Alan Stern wrote: On Tue, 11 Dec 2012, Timur wrote: I am talking about both devices loosing external power at the same time. Losing external power is different from losing power. I'm trying to be as precise as I can. The N7 will then switch to it's internal battery.

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Alan Stern
On Tue, 11 Dec 2012, Timur wrote: > I am talking about both devices loosing external power at the same time. Losing external power is different from losing power. > The N7 will then switch to it's internal battery. Right. It will continue running, because the battery continues to supply powe

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Timur
On 12/11/2012 08:13 PM, Alan Stern wrote: On Tue, 11 Dec 2012, Timur wrote: Thank you for your response. Yes, unplugging helps. But host and slave should also function in a fixed installation setup, where cables are hidden. I tried different slave devices and they are all "not accepting address

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Alan Stern
On Tue, 11 Dec 2012, Timur wrote: > > Thank you for your response. Yes, unplugging helps. But host and slave > > should also function in a fixed installation setup, where cables are > > hidden. I tried different slave devices and they are all "not > > accepting address xx, error -71" after powe

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Timur
On 12/11/2012 06:36 PM, Timur wrote: On 12/11/2012 04:34 PM, Alan Stern wrote: On Mon, 10 Dec 2012, Timur wrote: N7 is not using a vanilla kernel. It is one thing to apply modifications to the given code base. It would be far more difficult (I think) to replace the kernel as a whole. Maybe I

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Timur
On 12/11/2012 04:34 PM, Alan Stern wrote: On Mon, 10 Dec 2012, Timur wrote: N7 is not using a vanilla kernel. It is one thing to apply modifications to the given code base. It would be far more difficult (I think) to replace the kernel as a whole. Maybe I should back port just as little code as

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Greg KH
On Tue, Dec 11, 2012 at 01:29:19AM +0100, Timur wrote: > On 12/11/2012 12:04 AM, Greg KH wrote: > >On Mon, Dec 10, 2012 at 11:53:27PM +0100, Timur wrote: > >> > >>N7 is not using a vanilla kernel. > >Yes, I know that quite well :) > > > >>It is one thing to apply > >>modifications to the given code

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-11 Thread Alan Stern
On Mon, 10 Dec 2012, Timur wrote: > N7 is not using a vanilla kernel. It is one thing to apply modifications > to the given code base. It would be far more difficult (I think) to > replace the kernel as a whole. Maybe I should back port just as little > code as possible? Or maybe I should try t

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-10 Thread Timur
On 12/11/2012 12:04 AM, Greg KH wrote: On Mon, Dec 10, 2012 at 11:53:27PM +0100, Timur wrote: N7 is not using a vanilla kernel. Yes, I know that quite well :) It is one thing to apply modifications to the given code base. It would be far more difficult (I think) to replace the kernel as a wh

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-10 Thread Greg KH
On Mon, Dec 10, 2012 at 11:53:27PM +0100, Timur wrote: > On 12/10/2012 11:08 PM, Greg KH wrote: > >On Mon, Dec 10, 2012 at 10:42:50PM +0100, Timur wrote: > >>Hi. I created a replacement kernel for the Nexus 7. Together with a > >>USB Y-cable, this mod enables charging the N7, while running the > >>

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-10 Thread Timur
On 12/10/2012 11:08 PM, Greg KH wrote: On Mon, Dec 10, 2012 at 10:42:50PM +0100, Timur wrote: Hi. I created a replacement kernel for the Nexus 7. Together with a USB Y-cable, this mod enables charging the N7, while running the device in USB host mode. People are using this to operate N7 + USB DA

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-10 Thread Greg KH
On Mon, Dec 10, 2012 at 10:42:50PM +0100, Timur wrote: > Hi. I created a replacement kernel for the Nexus 7. Together with a > USB Y-cable, this mod enables charging the N7, while running the > device in USB host mode. People are using this to operate N7 + USB > DAC devices in their cars and other

Tegra3 ehci_suspend and ehci_resume

2012-12-10 Thread Timur
Hi. I created a replacement kernel for the Nexus 7. Together with a USB Y-cable, this mod enables charging the N7, while running the device in USB host mode. People are using this to operate N7 + USB DAC devices in their cars and other things. It's a fun project. I'm currently trying to solve