Re: Delayed "registered new interface driver snd-usb-audio"

2018-08-14 Thread Ran Shalit
On Tue, Aug 14, 2018 at 9:36 AM, Greg KH wrote: > On Tue, Aug 14, 2018 at 09:29:26AM +0300, Ran Shalit wrote: >> On Mon, Aug 13, 2018 at 9:57 PM, Greg KH wrote: >> > On Mon, Aug 13, 2018 at 09:34:37PM +0300, Ran Shalit wrote: >> >> Hello, >> >> >&g

Re: Delayed "registered new interface driver snd-usb-audio"

2018-08-14 Thread Ran Shalit
On Mon, Aug 13, 2018 at 9:57 PM, Greg KH wrote: > On Mon, Aug 13, 2018 at 09:34:37PM +0300, Ran Shalit wrote: >> Hello, >> >> I have a strange behabiour with sound card usb. >> I use kernel 3.18.11-rt7 (real-time kernel ) > > Ugh, please go get support fr

Delayed "registered new interface driver snd-usb-audio"

2018-08-13 Thread Ran Shalit
Hello, I have a strange behabiour with sound card usb. I use kernel 3.18.11-rt7 (real-time kernel ) It takes 10 (!) seconds between detection of usb device till it is registered ("registered new interface driver snd-usb-audio") in kernel. We take the usb device out of reset using another HW.

Q: How does gadgetfs knows that host initiated IN transfer ?

2018-03-01 Thread Ran Shalit
Hello, I am developing simple loopback using gadgetfs, but I am a bit confused as to how gadgefs knows that host initiated IN transfer. Gadgetfs use read/write on endpoints, so as to my understanding, it can only: 1. When using "read" on OUT endpoint - accept a new transfer from host to device.

Re: Q: Does mass storage gadget use DMA ?

2018-02-26 Thread Ran Shalit
On Mon, Feb 26, 2018 at 5:59 PM, Oliver Neukum <oneu...@suse.com> wrote: > Am Donnerstag, den 15.02.2018, 11:00 +0200 schrieb Ran Shalit: >> I actually asked about DMA, because I see that it is possible to send >> urb using DMA allocated buffers or not (cohe

usb transfer length

2018-02-26 Thread Ran Shalit
Hello, When performing usb transfer we request for maximum size of transfer, yet another size of message (shorter or longer) might be sent from device to host. Are both cases (shorter/longer) legal in usb standard ? In case both are legal: If it is shorter, I guess there is no issue at all. If

Re: Host & gadget transparent driver

2018-02-22 Thread Ran Shalit
On Thu, Feb 22, 2018 at 10:46 AM, Krzysztof Opasiak <k.opas...@samsung.com> wrote: > > > On 02/22/2018 07:53 AM, Greg KH wrote: >> >> On Wed, Feb 21, 2018 at 11:23:26PM +0200, Ran Shalit wrote: >>> >>> Hello, >>> >>> I am facing the fo

Host & gadget transparent driver

2018-02-21 Thread Ran Shalit
Hello, I am facing the following challenge: We have a camera device, and a ready drivers in the following configuration: (1) host <--> camera The drivers for host is a binary, i.e. source code is probably not available, and also the protocol datasheet is probably not available. But we need to

www.linux-usb.org is offline

2018-02-17 Thread Ran Shalit
Hello, I am trying to open http://www.linux-usb.org/ for several days now, but I get the following message: "Project web is currently offline pending the final migration of its data to our new datacenter." Is the information available meantime in another site ? Thank you, ranran -- To

Re: Q: usb_control_msg() parameters

2018-02-15 Thread Ran Shalit
On Fri, Feb 16, 2018 at 8:54 AM, Greg KH <gre...@linuxfoundation.org> wrote: > On Fri, Feb 16, 2018 at 01:00:06AM +0200, Ran Shalit wrote: >> Hello, >> >> I am trying to understand article on reverse engineering usb driver, >> published in >> http://www

Q: usb_control_msg() parameters

2018-02-15 Thread Ran Shalit
Hello, I am trying to understand article on reverse engineering usb driver, published in http://www.linuxjournal.com/node/7353/print (2004) I have difficulties understanding the input to the function usb_control_msg() especially the 0x12, 0xc8 numbers. I could not find them in the article, then

Re: Q: Does mass storage gadget use DMA ?

2018-02-15 Thread Ran Shalit
On Thu, Feb 15, 2018 at 10:56 AM, Ran Shalit <ransha...@gmail.com> wrote: > On Mon, Feb 12, 2018 at 2:39 PM, Oliver Neukum <oneu...@suse.com> wrote: >> Am Sonntag, den 11.02.2018, 22:17 +0200 schrieb Ran Shalit: >>> On Tue, Feb 6, 2018 at 8:55 AM, Felipe Balbi >

Re: Q: Does mass storage gadget use DMA ?

2018-02-15 Thread Ran Shalit
On Mon, Feb 12, 2018 at 2:39 PM, Oliver Neukum <oneu...@suse.com> wrote: > Am Sonntag, den 11.02.2018, 22:17 +0200 schrieb Ran Shalit: >> On Tue, Feb 6, 2018 at 8:55 AM, Felipe Balbi >> <felipe.ba...@linux.intel.com> wrote: >> > >> > >> >

Re: Q: Does mass storage gadget use DMA ?

2018-02-11 Thread Ran Shalit
On Tue, Feb 6, 2018 at 8:55 AM, Felipe Balbi <felipe.ba...@linux.intel.com> wrote: > > Hi, > > Ran Shalit <ransha...@gmail.com> writes: >> Hello, >> >> I check code in: >> https://elixir.free-electrons.com/linux/v3.3/source/drivers/usb/gadget/f_mass

Re: usb drivers in userspace

2018-02-06 Thread Ran Shalit
On Tue, Feb 6, 2018 at 1:35 PM, Felipe Balbi <felipe.ba...@linux.intel.com> wrote: > > Hi, > > Ran Shalit <ransha...@gmail.com> writes: >> Hello, >> >> Is it possible to write a usb driver in userspace ? >> I see that for periph

usb drivers in userspace

2018-02-06 Thread Ran Shalit
Hello, Is it possible to write a usb driver in userspace ? I see that for peripheral/gadget, there is gadgetfs which can be used for that. What about host drivers ? Can we use for example vfio (seems to be used with pci so I'm not sure) ? Or is there another way ? Thank you, Ran -- To

Q: Does mass storage gadget use DMA ?

2018-02-05 Thread Ran Shalit
Hello, I check code in: https://elixir.free-electrons.com/linux/v3.3/source/drivers/usb/gadget/f_mass_storage.c but I see no API usage of DMA, yet it is being mentioned as if it is used. Is it that DMA used in this driver ? Why can't I find any DMA APIs inside? Thank you, Ran -- To unsubscribe