Re: am335x musb_hdrc broken(?)

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

Re: am335x musb_hdrc broken(?)

2014-09-17 Thread Matwey V. Kornilov
2014-09-16 22:39 GMT+04:00 Felipe Balbi ba...@ti.com: 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

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 ba...@ti.com: 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 ba...@ti.com: On Wed, Sep 17, 2014 at 10:46:57AM +0400, Matwey V. Kornilov wrote: 2014-09-16 22:39 GMT+04:00 Felipe Balbi ba...@ti.com: Hi, (man, talk about trimming... leave some context ;-) On Tue, Sep 16, 2014 at 10:06:33PM +0400, Matwey V.

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 ba...@ti.com: On Wed, Sep 17, 2014 at 10:46:57AM +0400, Matwey V. Kornilov wrote: 2014-09-16 22:39 GMT+04:00 Felipe Balbi ba...@ti.com: Hi, (man, talk about trimming... leave

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-11 0:32 GMT+04:00 Alan Stern st...@rowland.harvard.edu: 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

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-10 23:50 GMT+04:00 Felipe Balbi ba...@ti.com: 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

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 ba...@ti.com: 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.

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-16 20:51 GMT+04:00 Felipe Balbi ba...@ti.com: 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

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 ba...@ti.com: 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

Re: am335x musb_hdrc broken(?)

2014-09-16 Thread Matwey V. Kornilov
2014-09-16 21:25 GMT+04:00 Felipe Balbi ba...@ti.com: 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

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

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

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Matwey V. Kornilov
2014-09-09 22:20 GMT+04:00 Felipe Balbi ba...@ti.com: 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

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 ba...@ti.com: 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

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Matwey V. Kornilov
2014-09-10 17:52 GMT+04:00 Felipe Balbi ba...@ti.com: 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 ba...@ti.com: oh, so it's not really a BBB. I have never seen an EMBEST RevB3. Do you have access to that board's accessory

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 ba...@ti.com: 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 ba...@ti.com: oh, so it's not really a BBB. I have

Re: am335x musb_hdrc broken(?)

2014-09-10 Thread Matwey V. Kornilov
2014-09-10 19:53 GMT+04:00 Felipe Balbi ba...@ti.com: 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

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 ba...@ti.com: 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

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 ba...@ti.com: you probably need a USB sniffer. usbmon (Documentation/usb/usbmon.txt) will help to some extent, but some details can

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) to

Re: am335x musb_hdrc broken(?)

2014-09-09 Thread Matwey V. Kornilov
2014-09-09 21:49 GMT+04:00 Felipe Balbi ba...@ti.com: 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