Re: am335x musb_hdrc broken(?)

2014-09-09 Thread Felipe Balbi
Hi, On Tue, Sep 09, 2014 at 09:16:50PM +0400, Matwey V. Kornilov wrote: > I am still running 3.16.1 no BeagleBone Black and after I sorted out > the configuration nothing oopses, but there is another problem. > I can't attach any device (including but not limited to USB-hub with > external power)

Re: am335x musb_hdrc broken(?)

2014-09-09 Thread Matwey V. Kornilov
2014-09-09 21:49 GMT+04:00 Felipe Balbi : > Hi, > > On Tue, Sep 09, 2014 at 09:16:50PM +0400, Matwey V. Kornilov wrote: >> I am still running 3.16.1 no BeagleBone Black and after I sorted out >> the configuration nothing oopses, but there is another problem. >> I can't attach any device (including

Re: am335x musb_hdrc broken(?)

2014-09-09 Thread Felipe Balbi
Hi, On Tue, Sep 09, 2014 at 09:55:10PM +0400, Matwey V. Kornilov wrote: > 2014-09-09 21:49 GMT+04:00 Felipe Balbi : > > Hi, > > > > On Tue, Sep 09, 2014 at 09:16:50PM +0400, Matwey V. Kornilov wrote: > >> I am still running 3.16.1 no BeagleBone Black and after I sorted out > >> the configuration n

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Matwey V. Kornilov
2014-09-09 22:20 GMT+04:00 Felipe Balbi : > oh, so it's not really a BBB. I have never seen an EMBEST RevB3. Do you > have access to that board's accessory and/or a real BBB to check ? They claim it is just A5A. So, I've booted into Angstrom with kernel 3.8.6 (which is preinstalled on eMMC), and U

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Felipe Balbi
Hi, On Wed, Sep 10, 2014 at 11:06:05AM +0400, Matwey V. Kornilov wrote: > 2014-09-09 22:20 GMT+04:00 Felipe Balbi : > > oh, so it's not really a BBB. I have never seen an EMBEST RevB3. Do you > > have access to that board's accessory and/or a real BBB to check ? > > They claim it is just A5A. So,

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Matwey V. Kornilov
2014-09-10 17:52 GMT+04:00 Felipe Balbi : > Hi, > > On Wed, Sep 10, 2014 at 11:06:05AM +0400, Matwey V. Kornilov wrote: >> 2014-09-09 22:20 GMT+04:00 Felipe Balbi : >> > oh, so it's not really a BBB. I have never seen an EMBEST RevB3. Do you >> > have access to that board's accessory and/or a real

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Felipe Balbi
On Wed, Sep 10, 2014 at 06:45:32PM +0400, Matwey V. Kornilov wrote: > 2014-09-10 17:52 GMT+04:00 Felipe Balbi : > > Hi, > > > > On Wed, Sep 10, 2014 at 11:06:05AM +0400, Matwey V. Kornilov wrote: > >> 2014-09-09 22:20 GMT+04:00 Felipe Balbi : > >> > oh, so it's not really a BBB. I have never seen a

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Matwey V. Kornilov
2014-09-10 19:53 GMT+04:00 Felipe Balbi : > you probably need a USB sniffer. usbmon (Documentation/usb/usbmon.txt) > will help to some extent, but some details can only be seen with a hw > sniffer. Hi To this moment I've found the following. Angstrom 3.8 works as expected, 3.16 also works until i

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Felipe Balbi
Hi, On Wed, Sep 10, 2014 at 11:02:23PM +0400, Matwey V. Kornilov wrote: > 2014-09-10 19:53 GMT+04:00 Felipe Balbi : > > you probably need a USB sniffer. usbmon (Documentation/usb/usbmon.txt) > > will help to some extent, but some details can only be seen with a hw > > sniffer. > > Hi > > To this

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Alan Stern
On Wed, 10 Sep 2014, Felipe Balbi wrote: > Hi, > > On Wed, Sep 10, 2014 at 11:02:23PM +0400, Matwey V. Kornilov wrote: > > 2014-09-10 19:53 GMT+04:00 Felipe Balbi : > > > you probably need a USB sniffer. usbmon (Documentation/usb/usbmon.txt) > > > will help to some extent, but some details can on

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-11 0:32 GMT+04:00 Alan Stern : > If all else fails, git bisect might pinpoint the cause of the problem. > > Alan Stern > I would have need config bisect. -- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2...@jabber.ru -- To unsubscribe from this list: send the l

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-10 23:50 GMT+04:00 Felipe Balbi : > hmmm, protocol error. Hi, I've found the root of the problem. CONFIG_USB_MUSB_TUSB6010=m affects the code inside musb_hdrc inspite of tusb6010 not loaded at all. When I disable CONFIG_USB_MUSB_TUSB6010 in my configuration, everything works fine. After

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Felipe Balbi
Hi, On Tue, Sep 16, 2014 at 08:40:14PM +0400, Matwey V. Kornilov wrote: > 2014-09-10 23:50 GMT+04:00 Felipe Balbi : > > hmmm, protocol error. > > Hi, > > I've found the root of the problem. CONFIG_USB_MUSB_TUSB6010=m affects > the code inside musb_hdrc inspite of tusb6010 not loaded at all. > Wh

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-16 20:51 GMT+04:00 Felipe Balbi : > this can't be applied as it would break tusb6010. Sure. MUSB_FIFO_OFFSET is used only in musb_core_init to set endpoints. Can not understand whether endpoint setup can be moved to musb_platform_init. Or yet another callback to musb_platform_ops has to b

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Felipe Balbi
Hi, On Tue, Sep 16, 2014 at 09:08:17PM +0400, Matwey V. Kornilov wrote: > 2014-09-16 20:51 GMT+04:00 Felipe Balbi : > > this can't be applied as it would break tusb6010. > > Sure. > > MUSB_FIFO_OFFSET is used only in musb_core_init to set endpoints. > Can not understand whether endpoint setup ca

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-16 21:25 GMT+04:00 Felipe Balbi : > we could, perhaps, pass a flag to change those offsets, but not a new > callback, I'm trying to get rid of some of them :-) We could have a tool musb_is_tusb(musb) (like dev_is_pci(dev)) instead of just a flag. But it is also a leakage in abstraction. I

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
Ok. What is about musb_io.h? What does it mean "TUSB6010 doesn't allow 8-bit access; 16-bit access is the minimum."? I think __raw_readb is kind of return *(u8_t*)(addr), but this is CPU stuff as far as I understand. -- With best regards, Matwey V. Kornilov http://blog.matwey.name xmpp://0x2...@

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Felipe Balbi
Hi, (man, talk about trimming... leave some context ;-) On Tue, Sep 16, 2014 at 10:06:33PM +0400, Matwey V. Kornilov wrote: > Ok. What is about musb_io.h? What does it mean "TUSB6010 doesn't allow > 8-bit access; 16-bit access is the minimum."? it means that readb() won't work. > I think __raw_

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-16 22:39 GMT+04:00 Felipe Balbi : > Hi, > > (man, talk about trimming... leave some context ;-) > > On Tue, Sep 16, 2014 at 10:06:33PM +0400, Matwey V. Kornilov wrote: >> Ok. What is about musb_io.h? What does it mean "TUSB6010 doesn't allow >> 8-bit access; 16-bit access is the minimum."?

Re: am335x musb_hdrc broken(?)

2014-09-17 Thread Felipe Balbi
On Wed, Sep 17, 2014 at 10:46:57AM +0400, Matwey V. Kornilov wrote: > 2014-09-16 22:39 GMT+04:00 Felipe Balbi : > > Hi, > > > > (man, talk about trimming... leave some context ;-) > > > > On Tue, Sep 16, 2014 at 10:06:33PM +0400, Matwey V. Kornilov wrote: > >> Ok. What is about musb_io.h? What does

Re: am335x musb_hdrc broken(?)

2014-09-17 Thread Matwey V. Kornilov
2014-09-17 19:25 GMT+04:00 Felipe Balbi : > On Wed, Sep 17, 2014 at 10:46:57AM +0400, Matwey V. Kornilov wrote: >> 2014-09-16 22:39 GMT+04:00 Felipe Balbi : >> > Hi, >> > >> > (man, talk about trimming... leave some context ;-) >> > >> > On Tue, Sep 16, 2014 at 10:06:33PM +0400, Matwey V. Kornilov

Re: am335x musb_hdrc broken(?)

2014-09-17 Thread Felipe Balbi
On Wed, Sep 17, 2014 at 07:35:14PM +0400, Matwey V. Kornilov wrote: > 2014-09-17 19:25 GMT+04:00 Felipe Balbi : > > On Wed, Sep 17, 2014 at 10:46:57AM +0400, Matwey V. Kornilov wrote: > >> 2014-09-16 22:39 GMT+04:00 Felipe Balbi : > >> > Hi, > >> > > >> > (man, talk about trimming... leave some con

Re: am335x musb_hdrc broken(?)

2014-09-18 Thread Matwey V. Kornilov
2014-09-17 19:46 GMT+04:00 Felipe Balbi : > On Wed, Sep 17, 2014 at 07:35:14PM +0400, Matwey V. Kornilov wrote: >> 2014-09-17 19:25 GMT+04:00 Felipe Balbi : >> > On Wed, Sep 17, 2014 at 10:46:57AM +0400, Matwey V. Kornilov wrote: >> >> 2014-09-16 22:39 GMT+04:00 Felipe Balbi : >> >> > Hi, >> >> > >