Re: Nokia N900: musb is in wrong state after boot

2016-06-10 Thread Bin Liu
Hi, On Fri, Jun 10, 2016 at 06:15:26PM +0200, joerg Reisenweber wrote: > On Fri 10 June 2016 10:59:40 Bin Liu wrote: > > The musb ug says the testmde is not used in normal operation, so my > > opinion is force_host should not be used for hacking n900 host mode if > > this is for real product devel

Re: Nokia N900: musb is in wrong state after boot

2016-06-10 Thread joerg Reisenweber
On Fri 10 June 2016 12:04:43 Nishanth Menon wrote: > I think there was some unfortunately choice of words used in the > thread. It is TI intention to support community effort [...] > software, unfortunately these modes do not tend to be well tested and > the typical "official disclaimer" is "Not fo

Re: Nokia N900: musb is in wrong state after boot

2016-06-10 Thread Nishanth Menon
On 06/10/2016 11:15 AM, joerg Reisenweber wrote: Sorry for butting in... > On Fri 10 June 2016 10:59:40 Bin Liu wrote: >> The musb ug says the testmde is not used in normal operation, so my >> opinion is force_host should not be used for hacking n900 host mode if >> this is for real product devel

Re: Nokia N900: musb is in wrong state after boot

2016-06-10 Thread joerg Reisenweber
On Fri 10 June 2016 10:59:40 Bin Liu wrote: > The musb ug says the testmde is not used in normal operation, so my > opinion is force_host should not be used for hacking n900 host mode if > this is for real product development or support. You're aware N900 OS aka maemo is a) FOSS, and b) EOL at lea

Re: Nokia N900: musb is in wrong state after boot

2016-06-10 Thread Bin Liu
Hi, On Fri, Jun 10, 2016 at 05:23:11PM +0200, joerg Reisenweber wrote: > On Fri 10 June 2016 10:08:08 Bin Liu wrote: > > Hi, > > > > On Thu, Jun 09, 2016 at 11:25:57PM +0200, joerg Reisenweber wrote: > > > On Thu 09 June 2016 15:58:56 Bin Liu wrote: > > > > But I am not sure how this will fix n90

Re: Nokia N900: musb is in wrong state after boot

2016-06-10 Thread joerg Reisenweber
On Fri 10 June 2016 10:08:08 Bin Liu wrote: > Hi, > > On Thu, Jun 09, 2016 at 11:25:57PM +0200, joerg Reisenweber wrote: > > On Thu 09 June 2016 15:58:56 Bin Liu wrote: > > > But I am not sure how this will fix n900 host mode problem, since > > > testmode is not used in normal operation. > > > >

Re: Nokia N900: musb is in wrong state after boot

2016-06-10 Thread Bin Liu
Hi, On Thu, Jun 09, 2016 at 11:25:57PM +0200, joerg Reisenweber wrote: > On Thu 09 June 2016 15:58:56 Bin Liu wrote: > > But I am not sure how this will fix n900 host mode problem, since > > testmode is not used in normal operation. > > Please see http://talk.maemo.org/showthread.php?p=685367 and

Re: Nokia N900: musb is in wrong state after boot

2016-06-09 Thread joerg Reisenweber
On Thu 09 June 2016 15:58:56 Bin Liu wrote: > But I am not sure how this will fix n900 host mode problem, since > testmode is not used in normal operation. Please see http://talk.maemo.org/showthread.php?p=685367 and http://maemo.org/packages/view/hostmode-gui/ which indeed is _no_ normal hostmo

Re: Nokia N900: musb is in wrong state after boot

2016-06-09 Thread Bin Liu
Hi, On Wed, Jun 08, 2016 at 01:02:00PM +0300, Felipe Balbi wrote: > > Hi, > > Tony Lindgren writes: > > * Pali Rohár [160607 05:53]: > >> > Tony, what do you think about that patch? > >> > > >> > >> Tony, PING > > > > Yeah I don't know, AFAIK we don't have a generic way to > > force MUSB to

Re: Nokia N900: musb is in wrong state after boot

2016-06-09 Thread Bin Liu
Hi, On Sun, May 29, 2016 at 12:38:24PM +0200, Pali Rohár wrote: > > Hello, attached patch for musb debugfs adds option to force both > > hostmode with speed. It is just example, I tested only compilation. > > > > Something like that will be needed for usb host mode on Nokia N900. > > > > -- >

Re: Nokia N900: musb is in wrong state after boot

2016-06-08 Thread Sergei Shtylyov
On 6/8/2016 3:18 PM, joerg Reisenweber wrote: Tony, what do you think about that patch? Tony, PING Yeah I don't know, AFAIK we don't have a generic way to force MUSB to change mode without ID pin. If you have figured something generic for that which does not actually tinker with the PHY regi

Re: Nokia N900: musb is in wrong state after boot

2016-06-08 Thread joerg Reisenweber
On Wed 08 June 2016 15:04:02 Sergei Shtylyov wrote: > On 6/8/2016 1:02 PM, Felipe Balbi wrote: > >> * Pali Rohár [160607 05:53]: > Tony, what do you think about that patch? > >>> > >>> Tony, PING > >> > >> Yeah I don't know, AFAIK we don't have a generic way to > >> force MUSB to change mod

Re: Nokia N900: musb is in wrong state after boot

2016-06-08 Thread Sergei Shtylyov
On 6/8/2016 1:02 PM, Felipe Balbi wrote: * Pali Rohár [160607 05:53]: Tony, what do you think about that patch? Tony, PING Yeah I don't know, AFAIK we don't have a generic way to force MUSB to change mode without ID pin. If you have figured something generic for that which does not actual

Re: Nokia N900: musb is in wrong state after boot

2016-06-08 Thread joerg Reisenweber
On Wed 08 June 2016 13:02:00 Felipe Balbi wrote: > Hi, > > Tony Lindgren writes: > > Yeah I don't know, AFAIK we don't have a generic way to > > force MUSB to change mode without ID pin. If you have figured > #define MUSB_TEST_FORCE_HOST 0x80 > > Can someone confirm on MUSB's docs (and actual r

Re: Nokia N900: musb is in wrong state after boot

2016-06-08 Thread Pali Rohár
On Wednesday 08 June 2016 12:02:00 Felipe Balbi wrote: > Hi, > > Tony Lindgren writes: > > * Pali Rohár [160607 05:53]: > >> > Tony, what do you think about that patch? > >> > >> Tony, PING > > > > Yeah I don't know, AFAIK we don't have a generic way to > > force MUSB to change mode without ID

Re: Nokia N900: musb is in wrong state after boot

2016-06-08 Thread Felipe Balbi
Hi, Tony Lindgren writes: > * Pali Rohár [160607 05:53]: >> > Tony, what do you think about that patch? >> > >> >> Tony, PING > > Yeah I don't know, AFAIK we don't have a generic way to > force MUSB to change mode without ID pin. If you have figured > something generic for that which does not

Re: Nokia N900: musb is in wrong state after boot

2016-06-08 Thread Tony Lindgren
* Pali Rohár [160607 05:53]: > > Tony, what do you think about that patch? > > > > Tony, PING Yeah I don't know, AFAIK we don't have a generic way to force MUSB to change mode without ID pin. If you have figured something generic for that which does not actually tinker with the PHY registers di

Re: Nokia N900: musb is in wrong state after boot

2016-06-07 Thread Pali Rohár
On Sunday 29 May 2016 12:38:24 Pali Rohár wrote: > > From fd67b58e3538c0732750ecad915cde736da099dc Mon Sep 17 00:00:00 2001 > > From: =?UTF-8?q?Pali=20Roh=C3=A1r?= > > Date: Sat, 9 Jan 2016 16:57:59 +0100 > > Subject: [PATCH] musb: debugfs: Add support in testmode for forcing host > > mode > > t

Re: Nokia N900: musb is in wrong state after boot

2016-05-29 Thread Pali Rohár
On Saturday 23 January 2016 13:57:32 Pali Rohár wrote: > On Thursday 21 January 2016 20:21:13 Tony Lindgren wrote: > > * joerg Reisenweber [160121 10:45]: > > > On Thu 21 January 2016 09:41:46 Tony Lindgren wrote: > > > > Then for supporting the USB host mode.. We should add regulator > > > > supp

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Adam Ford
For what it's worth, I tried running the MUSB via the twl4030 on Linux-Next (I don't remember which snapshot), and it was broken for me on a DM3730 (OMAP 3630), but Kernel 4.4.2 worked. Are you using Linux-Next or one of the stable kernels? I can try again later this week with a newer linux-next

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Bin Liu
Hi, On Mon, Feb 22, 2016 at 10:54:21AM +0200, Felipe Balbi wrote: > > Hi, > > Pali Rohár writes: > > On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: > >> Pali Rohár writes: > >> > >> > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: > >> >> * Pali Rohár [160126 06:35]: > >>

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Felipe Balbi
Hi, Pali Rohár writes: > On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: >> Pali Rohár writes: >> >> > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: >> >> * Pali Rohár [160126 06:35]: >> >> > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: >> >> > > * joerg Reisen

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Felipe Balbi
Hi, Pali Rohár writes: > On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: >> Pali Rohár writes: >> >> > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: >> >> * Pali Rohár [160126 06:35]: >> >> > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: >> >> > > * joerg Reisen

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Pali Rohár
On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: > Pali Rohár writes: > > > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: > >> * Pali Rohár [160126 06:35]: > >> > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > >> > > * joerg Reisenweber [160121 11:35]: > >> > > >

Re: Nokia N900: musb is in wrong state after boot

2016-02-21 Thread Felipe Balbi
Pali Rohár writes: > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: >> * Pali Rohár [160126 06:35]: >> > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: >> > > * joerg Reisenweber [160121 11:35]: >> > > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: >> > > > > Do you

Re: Nokia N900: musb is in wrong state after boot

2016-02-21 Thread Pali Rohár
On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: > * Pali Rohár [160126 06:35]: > > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > > > * joerg Reisenweber [160121 11:35]: > > > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > > > > Do you have some pointer > > > > >

Re: Nokia N900: musb is in wrong state after boot

2016-01-26 Thread Tony Lindgren
* Pali Rohár [160126 06:35]: > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > > * joerg Reisenweber [160121 11:35]: > > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > > > Do you have some pointer > > > > to the "certain resistor value on ID to GND" spec? Is it maybe part

Re: Nokia N900: musb is in wrong state after boot

2016-01-26 Thread Pali Rohár
On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > * joerg Reisenweber [160121 11:35]: > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > > Do you have some pointer > > > to the "certain resistor value on ID to GND" spec? Is it maybe part of > > > the carkit related parts of the

Re: Nokia N900: musb is in wrong state after boot

2016-01-23 Thread Pali Rohár
On Thursday 21 January 2016 20:21:13 Tony Lindgren wrote: > * joerg Reisenweber [160121 10:45]: > > On Thu 21 January 2016 09:41:46 Tony Lindgren wrote: > > > Then for supporting the USB host mode.. We should add regulator > > > support to the USB PHY driver so if the ID pin is grounded, the > > >

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Tony Lindgren
* joerg Reisenweber [160121 11:35]: > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > Do you have some pointer > > to the "certain resistor value on ID to GND" spec? Is it maybe part of > > the carkit related parts of the USB spec? > > ""Three additional ID pin states are defined[4] at t

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread joerg Reisenweber
On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > Do you have some pointer > to the "certain resistor value on ID to GND" spec? Is it maybe part of > the carkit related parts of the USB spec? ""Three additional ID pin states are defined[4] at the nominal resistance values of 124 kΩ, 68 kΩ, a

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Tony Lindgren
* joerg Reisenweber [160121 10:45]: > On Thu 21 January 2016 09:41:46 Tony Lindgren wrote: > > Then for supporting the USB host mode.. We should add regulator support > > to the USB PHY driver so if the ID pin is grounded, the PHY driver enables > > the VBUS regulator. That too seems to need some

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread joerg Reisenweber
On Thu 21 January 2016 09:41:46 Tony Lindgren wrote: > Then for supporting the USB host mode.. We should add regulator support > to the USB PHY driver so if the ID pin is grounded, the PHY driver enables > the VBUS regulator. That too seems to need some coordination between the > drivers/phy/phy-tw

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Tony Lindgren
* joerg Reisenweber [160121 02:30]: > On Thu 21 January 2016 09:40:07 Pali Rohár wrote: > > On Tuesday 19 January 2016 12:33:15 Tony Lindgren wrote: > > > Hi, > > > > > > * Pali Rohár [160109 07:16]: > > > > Hello, > > > > > > > > when I boot 4.4.0-rc7+ kernel compiled with g_nokia into zImage

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread joerg Reisenweber
On Thu 21 January 2016 09:40:07 Pali Rohár wrote: > On Tuesday 19 January 2016 12:33:15 Tony Lindgren wrote: > > Hi, > > > > * Pali Rohár [160109 07:16]: > > > Hello, > > > > > > when I boot 4.4.0-rc7+ kernel compiled with g_nokia into zImage on Nokia > > > N900 into userspace then usb gadget (g

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Ivaylo Dimitrov
On 21.01.2016 12:23, Pali Rohár wrote: You probably forgot to specify page in PDF or other location where is that PHY interrupt. As I wrote I tried to find it, but do not see it there. Oh, sorry, I misunderstood what you wrote - I was under the impression that you can't find the schematics

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Pali Rohár
On Thursday 21 January 2016 11:57:48 Ivaylo Dimitrov wrote: > > > On 21.01.2016 10:40, Pali Rohár wrote: > > > >I do not know now. I tried to find it in N900 schemantics, but do not > >see it. > > > >CCing Joerg, do you know? > > > > > http://plan9.stanleylieber.com/hardware/n900/n900.schematic

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Ivaylo Dimitrov
On 21.01.2016 10:40, Pali Rohár wrote: I do not know now. I tried to find it in N900 schemantics, but do not see it. CCing Joerg, do you know? http://plan9.stanleylieber.com/hardware/n900/n900.schematics.pdf -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the bo

Re: Nokia N900: musb is in wrong state after boot

2016-01-21 Thread Pali Rohár
On Tuesday 19 January 2016 12:33:15 Tony Lindgren wrote: > Hi, > > * Pali Rohár [160109 07:16]: > > Hello, > > > > when I boot 4.4.0-rc7+ kernel compiled with g_nokia into zImage on Nokia > > N900 into userspace then usb gadget (g_nokia) does not work. Notebook, > > connected on other side doe