dwc3 usb2 as host not working

2018-07-05 Thread Ricardo Ribalda Delgado
Hi I have started playing around with a board based on the DragonBoard 820c and I cannot manage to get the USB2 working as host. If I connect a mouse, before I start the board I can see how the system powers up the port (vbus) and enumerates the device, just to kill it a couple of seconds later.

Re: Serdev: USB device and sysdev probing ala i2c

2018-05-24 Thread Ricardo Ribalda Delgado
Hi Rob On Thu, May 24, 2018 at 6:49 PM Rob Herring wrote: > On Thu, May 24, 2018 at 7:18 AM, Ricardo Ribalda Delgado > wrote: > > Hi Johan, > > > > On Thu, May 24, 2018 at 2:07 PM Johan Hovold wrote: > > > >> Hi Ricardo, > > > >> On

Re: Serdev: USB device and sysdev probing ala i2c

2018-05-24 Thread Ricardo Ribalda Delgado
Hi Johan, On Thu, May 24, 2018 at 2:07 PM Johan Hovold wrote: > Hi Ricardo, > On Wed, May 23, 2018 at 11:17:20AM +0200, Ricardo Ribalda Delgado wrote: > > Hi > > > > I have a flash controller connected to the main computer via a usb to > > serial. My plan is t

Re: net2280 and UAS not working

2015-07-06 Thread Ricardo Ribalda Delgado
Hello Paul Thanks for your info, I will not be able to test anything until next week. Regards! -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v1 01/10] usb: gadget: net2280: fix ep_cfg for defect7374

2015-05-13 Thread Ricardo Ribalda Delgado
Tested-by: Ricardo Ribalda Delgado On Tue, May 12, 2015 at 8:37 PM, Mian Yousaf Kaukab wrote: > ep_cfg.IN_EP_ENABLE is only valid in advance mode. > > Signed-off-by: Mian Yousaf Kaukab > --- > drivers/usb/gadget/udc/net2280.c | 4 ++-- > 1 file changed, 2 insertio

Re: usb: gadget: g_multi does not work with net2280

2015-04-21 Thread Ricardo Ribalda Delgado
Can you try with the latest kernel from linux-next? There are some patches from Mian Yousaf Kaukab , that might be related to your problem Regards ps: Make sure your mail client works in text mode or you wont be able to send mails to the mailing list. On Tue, Apr 21, 2015 at 2:39 AM, Praveen Mu

Re: net2280 driver and gadgetfs?

2015-02-02 Thread Ricardo Ribalda Delgado
Hello Carolyn I have tried using g_mass_storage and g_network, but I cannot see why it should not work with gadgetfs. What is exactly the issue? It does not build? it does not behave as expected? I am putting the linux-usb mailing list on cc Regards! On Sat, Jan 31, 2015 at 12:06 AM, Smith, C

Re: net2280 on iMX6

2015-01-23 Thread Ricardo Ribalda Delgado
Hello Tod If you cc the linux-usb mailing list, there will be more chances to get a proper answer :) >From the error message it seems that the device did not have an irq, which is needed by the driver. Take a loop to lspci -vvv to see if it is true. Unfortunately I have not access to that board

Re: hard lockup with USB3380

2015-01-19 Thread Ricardo Ribalda Delgado
b0 >> [ 201.304973] [] ? kthread_create_on_node+0x180/0x180 >> [ 201.305486] ---[ end trace a7f3e86a1a37203b ]— >> Followed by: >> [ 263.311338] net2280 :01:00.0: The dmastat return = 5002!! >> [ 263.409818] g_mass_storage gadget: super-speed config

[PATCH] usb/gadget/net2280: Dont use 0 as NULL pointer

2015-01-13 Thread Ricardo Ribalda Delgado
Fix sparse warning Fixes: cb442ee1592d2681 (usb: gadget: udc: net2280: Re-enable dynamic debug messages) Reported-by: kbuild test robot Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

Re: [PATCH 06/17] net2280: Remove restart_dma inline function definition

2014-12-23 Thread Ricardo Ribalda Delgado
gt;Thanks! >> >>Not at all. :-) >> >> [...] >> >> >>On 11/28/2014 04:50 PM, Ricardo Ribalda Delgado wrote: >> >> >>>restart_dma is not used before it is declaration. Therefore we can >> >> >>s/it is/its/. >&

Re: "Real" USB3 mass storage speed

2014-12-02 Thread Ricardo Ribalda Delgado
Hello >> If I want to get closer to the maximum speed should I just forget >> about mass storage and use something else? What? >> > > You might want to look into UAS (USB Attached SCSI). > There is "USB Gadget Target Fabric Module" in Kconfig. > There is a gadget-cli tool to control it from usersp

"Real" USB3 mass storage speed

2014-12-02 Thread Ricardo Ribalda Delgado
Hello As you know I am trying to improve the net2280 driver to a point where it is usable for my company (qtec.com). We develop smart cameras based on linux, and we want to provide also a mass storage interface to the camera. Right now, the maximum speed I have been able to achieve is around 80 M

Re: [PATCH 06/17] net2280: Remove restart_dma inline function definition

2014-11-28 Thread Ricardo Ribalda Delgado
Hello Thanks for reviewing. I will fix it and resend it on the next version of the patchset to avoid spamming the ML I guess it is ok to add your Reviewed-by Thanks! On Fri, Nov 28, 2014 at 3:46 PM, Sergei Shtylyov wrote: > Hello. > > On 11/28/2014 04:50 PM, Ricardo Ribalda Delg

[PATCH 00/17] net2280: Code cleanout, improve debug and remove broken param

2014-11-28 Thread Ricardo Ribalda Delgado
. Due to the fact that I am implementing the scather gatter on the top of this tree I would like to get this merged/reviewed before continuing. Ricardo Ribalda Delgado (17): net2280: Remove obsolete module param use_dma_chaining net2280: remove full_speed module parameter net2280: Remove

[PATCH 02/17] net2280: remove full_speed module parameter

2014-11-28 Thread Ricardo Ribalda Delgado
Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c index 08c16ee..27b94c6 100644 --- a/drivers/usb/gadget/udc/net2280.c +++ b/drivers/usb/gadget

[PATCH 03/17] net2280: Remove module parameter use_msi

2014-11-28 Thread Ricardo Ribalda Delgado
Parameter use_msi was used to enable msi irq on usb338x chips, it was enabled by default. There is no reason to prefer non-msi irq on usb338x, and it falls back to non msi on error. Therefore remove this option. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 6

[PATCH 01/17] net2280: Remove obsolete module param use_dma_chaining

2014-11-28 Thread Ricardo Ribalda Delgado
meter, which was disabled by default. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 147 --- 1 file changed, 13 insertions(+), 134 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c

[PATCH 04/17] net2280: Remove use_dma module parameter

2014-11-28 Thread Ricardo Ribalda Delgado
use_dma parameter was designed to enable the dma on the chip. It was enabled by default. It comes from the time when the dma was not reliable. Now it has been working ok in production. This patch removes this parameter. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280

[PATCH 05/17] net2280: Remove dma_started field

2014-11-28 Thread Ricardo Ribalda Delgado
Remove dma_started field from net2280_ep structure, since it is not used by any function. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 4 drivers/usb/gadget/udc/net2280.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb

[PATCH 06/17] net2280: Remove restart_dma inline function definition

2014-11-28 Thread Ricardo Ribalda Delgado
restart_dma is not used before it is declaration. Therefore we can remove this definition. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c index

[PATCH 09/17] net2280: Remove function ep_stall

2014-11-28 Thread Ricardo Ribalda Delgado
irqs_superspeed calls ep_stall instead of set/clear_halt, due to a workaround for SS seqnum. Create a function with the workaround and call set/clear_halt instead. This way we can compare the code of super/normal speed and it is easier to follow the code. Signed-off-by: Ricardo Ribalda Delgado

[PATCH 08/17] net2280: Remove field is_halt

2014-11-28 Thread Ricardo Ribalda Delgado
Field is_halt is never used by any function. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 6 +- drivers/usb/gadget/udc/net2280.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc

[PATCH 07/17] net2280: Code cleanout remove ep_stdrsp function

2014-11-28 Thread Ricardo Ribalda Delgado
ep_stdrsp was only called by handle_stat0_irqs_superspeed and with always the same flags. Remove the function and replace the call by the code inside the function, since it is very simple once the dead code is removed. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c

[PATCH 11/17] net2280: Clean function net2280_queue

2014-11-28 Thread Ricardo Ribalda Delgado
Do not duplicate the code for the else branch of the condition. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc

[PATCH 10/17] net2280: Merge abort_dma for 228x and 338x

2014-11-28 Thread Ricardo Ribalda Delgado
We can use the same function for both families of chips and also remove the ep_stop_dma() function. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/drivers/usb/gadget/udc

[PATCH 15/17] net2280: Simplify scan_dma_completions

2014-11-28 Thread Ricardo Ribalda Delgado
After fix superspeed dma_done was applied we can simplify the code by removing the duplicated dma_done and letting the function check if there are more completed dma transactions. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 5 ++--- 1 file changed, 2 insertions

[PATCH 14/17] net2280: Declare allow_status_338x as inline

2014-11-28 Thread Ricardo Ribalda Delgado
The function is very simple, does not declare any variable and it is called in the irq path. The counterpart for net228x is already declared as inline. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 13/17] net2280: Remove function resume_dma

2014-11-28 Thread Ricardo Ribalda Delgado
Function resume_dma is not used, remove it. The reason the compiler did not catch this dead code is the inline modifier. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b

[PATCH 12/17] net2280: Improve patching of defect 7374

2014-11-28 Thread Ricardo Ribalda Delgado
Once the defect 7374 is patched, there is no reason the keep reading the idx scratch register. Cache the content of the scratch idx register on device flag. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 153 +-- drivers/usb

[PATCH 17/17] net2280: Re-enable dynamic debug messages

2014-11-28 Thread Ricardo Ribalda Delgado
Some debug messages were not build due to unconditional #if 0. These messages are very useful for debugging and the user can enable them on demand via dynamic debug. If they are not enabled the performance is not affected. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc

[PATCH 16/17] net2280: Move ASSERT_OUT_NAKING into out_flush

2014-11-28 Thread Ricardo Ribalda Delgado
ASSERT_OUT_NAKING was only called by out_flush and was hidden behind a ifdef. This patch moves the inline function into out_flush and remove the ifdef. The user can decide to print the debug message or not via dynamic printk Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc

Re: net2280: is use_dma_chaining obsolete?

2014-11-25 Thread Ricardo Ribalda Delgado
hello Sebastian On Tue, Nov 25, 2014 at 6:18 PM, Sebastian Andrzej Siewior wrote: > On 11/25/2014 06:10 PM, Ricardo Ribalda Delgado wrote: >> Exactly the same that I am experiencing. I am preparing a patch that >> removes the option, does some dma cleanout and then add support for

Re: net2280: is use_dma_chaining obsolete?

2014-11-25 Thread Ricardo Ribalda Delgado
Now that I open the pandora box Is there any reason to have use_dma, use_msi, enable_suspend and full_speed as parameters? I might as well remove them. Regards! On Tue, Nov 25, 2014 at 6:10 PM, Ricardo Ribalda Delgado wrote: > Hello > > On Tue, Nov 25, 2014 at 6:05 PM, Alan Ste

Re: net2280: is use_dma_chaining obsolete?

2014-11-25 Thread Ricardo Ribalda Delgado
Hello On Tue, Nov 25, 2014 at 6:05 PM, Alan Stern wrote: > On Tue, 25 Nov 2014, Ricardo Ribalda Delgado wrote: > >> Hello Alan >> >> Could you test if the parameter dma_chaining works on your board with >> the current kernel? >> >> #on the target >>

Re: net2280: is use_dma_chaining obsolete?

2014-11-25 Thread Ricardo Ribalda Delgado
On Tue, Nov 25, 2014 at 4:32 PM, Alan Stern wrote: > On Tue, 25 Nov 2014, Ricardo Ribalda Delgado wrote: > >> Hello Felipe >> >> On Tue, Nov 25, 2014 at 3:54 PM, Felipe Balbi wrote: >> > Hi, >> > >> > On Tue, Nov 25, 2014 at 02:44:16AM +01

Re: net2280: is use_dma_chaining obsolete?

2014-11-25 Thread Ricardo Ribalda Delgado
Hello Felipe On Tue, Nov 25, 2014 at 3:54 PM, Felipe Balbi wrote: > Hi, > > On Tue, Nov 25, 2014 at 02:44:16AM +0100, Ricardo Ribalda Delgado wrote: >> > might be better if you can fix the code, instead. We have a "better" >> > scatter-gather suppor

Re: hard lockup with USB3380

2014-11-25 Thread Ricardo Ribalda Delgado
peed config #1: Linux > File-Backed Storage > > Unplugging and re-plugging the USB cable does allow me to remount the volume. > > Paul. > On 25 Nov 2014, at 15:24, Ricardo Ribalda Delgado > wrote: > >> Could you try >> if (likely(t & (BIT(FIFO_EMPTY) | BIT(NAK_

Re: hard lockup with USB3380

2014-11-25 Thread Ricardo Ribalda Delgado
; epstat=16528, td_dma=ce40c050 > > Paul. > > On 25 Nov 2014, at 14:08, Ricardo Ribalda Delgado > wrote: > >> hmm it seems that the code is waiting for a dma to complete. Please print >> >> ep->dma->dmactl >> ep->dma->dmastat >>

Re: hard lockup with USB3380

2014-11-25 Thread Ricardo Ribalda Delgado
= 0, req->valid = 1, le32_to_cpu(req->td->dmacount) = 2952791040 > > Paul. > > On 25 Nov 2014, at 13:09, Ricardo Ribalda Delgado > wrote: > >> Could you print >> >> count, req->valid and le32_to_cpu(req->td->dmacount) just before udelay(1)

Re: hard lockup with USB3380

2014-11-25 Thread Ricardo Ribalda Delgado
op many times. > Even without writing to the device I then get the lockup message while inside > the loop (ep->dev = ep-b). > > Paul. > > On 25 Nov 2014, at 02:06, Ricardo Ribalda Delgado > wrote: > >> Hello >> >> Could you check if the code is stal

Re: net2280: is use_dma_chaining obsolete?

2014-11-24 Thread Ricardo Ribalda Delgado
Hello Felipe > > might be better if you can fix the code, instead. We have a "better" > scatter-gather support in the framework itself. As I understand it, the code was designed to reduce the number of irqs when you expect to send X consecutive packages. In that scenario you only want an irq at

Re: hard lockup with USB3380

2014-11-24 Thread Ricardo Ribalda Delgado
Hello Could you check if the code is stalled at this loop ? https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/gadget/udc/net2280.c#n2594 Regards! On Thu, Nov 13, 2014 at 3:37 PM, Paul Jones wrote: > Hi, > > using the latest kernel from > https://git.kernel.org/cg

net2280: is use_dma_chaining obsolete?

2014-11-24 Thread Ricardo Ribalda Delgado
Hello I cannot make work the parameter use_dma_chaining with g_mass_storage and a usb3380 device. The initial enumeration works, but after a couple of frames the enumeration is restarted. If I compare usbmon with and without the parameter I can see that the device fails to reply to the host. Whi

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-09-01 Thread Ricardo Ribalda Delgado
I could offer you a net3380 usb gadget device (mini pcie or pcie) but the uPD720200 is my notebook, so I cannot afford an extra one for you :) On Mon, Sep 1, 2014 at 2:25 PM, Mathias Nyman wrote: > On 09/01/2014 02:19 PM, Ricardo Ribalda Delgado wrote: >> Do you have a NEC/Renesas uPD7

Re: [PATCH v2] usb: gadget: net2280: Fix invalid handling of Reset irq

2014-09-01 Thread Ricardo Ribalda Delgado
Hello Felipe I think that you have forgotten about this patch :). It is needed by usb3380 in usb3.0 mode. Otherwise the device keeps reseting. Thanks! On Tue, Aug 26, 2014 at 6:00 PM, Ricardo Ribalda Delgado wrote: > Without this patch, some hosts keep restarting indefinitely the tar

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-09-01 Thread Ricardo Ribalda Delgado
Do you have a NEC/Renesas uPD720200 USB 3.0 Host? If so, try with an usb gadget acting as a mass storage. That hits the bug in my machine. Regarsd! On Mon, Sep 1, 2014 at 1:12 PM, Mathias Nyman wrote: > On 09/01/2014 01:26 PM, Ricardo Ribalda Delgado wrote: >> Well, it is hard to

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-09-01 Thread Ricardo Ribalda Delgado
:36 PM, Ricardo Ribalda Delgado wrote: >> After some time of use (one hour or so) my system started to behave >> "weird". I did check dmesg and I was receiving the following line >> again and again: >> >> usb-storage: Error in queuecommand_lck: us->sfb= f

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-09-01 Thread Ricardo Ribalda Delgado
:S On Mon, Sep 1, 2014 at 11:02 AM, Ricardo Ribalda Delgado wrote: > Hello > > The promised dmesg output. Still some "xhci_drop_endpoint called with..." > > Thanks! > > Sep 1 10:52:00 neopili kernel: [ 193.123108] usb 2-2: new SuperSpeed > USB device number 2

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-09-01 Thread Ricardo Ribalda Delgado
i kernel: [ 224.926336] sd 6:0:0:0: [sdb] Mode Sense: 00 00 00 00 On Fri, Aug 29, 2014 at 5:20 PM, Mathias Nyman wrote: > On 08/28/2014 06:09 PM, Ricardo Ribalda Delgado wrote: >> Sure, but the hw leaves my desk until next monday in 30 minutes. >> >> So unless you s

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-08-28 Thread Ricardo Ribalda Delgado
Sure, but the hw leaves my desk until next monday in 30 minutes. So unless you send the patch right now you will have to wait for results until next Monday Thanks! On Thu, Aug 28, 2014 at 5:20 PM, Mathias Nyman wrote: > On 08/28/2014 03:36 PM, Ricardo Ribalda Delgado wrote: >> Hell

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-08-28 Thread Ricardo Ribalda Delgado
5.6: usbfs: process 1521 (pool) did not claim interface 0 before use [ 160.471327] pool[1680]: segfault at fc0e61c0 ip 7f570f036200 sp 7f570639f0d0 error 5 in libc-2.19.so[7f570efee000+19f000] Thanks! On Thu, Aug 28, 2014 at 12:50 PM, Ricardo Ribalda Delgado wrote: > Hello >

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-08-28 Thread Ricardo Ribalda Delgado
Hello On Thu, Aug 28, 2014 at 12:41 PM, Mathias Nyman wrote: > On 08/27/2014 07:10 PM, Ricardo Ribalda Delgado wrote: >> Perhaps we could apply both patches to current tree and backport mine >> to older kernels? >> > > The already applied patch fixes many othe

Re: [PATCH] usb: gadget: net2280: Remove pci_class from PCI_TABLE

2014-08-27 Thread Ricardo Ribalda Delgado
Hello Greg >> >> Not many drivers define the pci interface and there is no other driver >> that has the same vendor and product id. Therefore I see no hurt in >> adding both patches, one to make the driver broader, and another to >> fix pci-sysfs. >> >> Also, the change on pci-sysfs might affect

Re: [PATCH] usb: gadget: net2280: Remove pci_class from PCI_TABLE

2014-08-27 Thread Ricardo Ribalda Delgado
Hello Greg On Wed, Aug 27, 2014 at 9:25 PM, Greg Kroah-Hartman wrote: > On Wed, Aug 27, 2014 at 03:00:29PM +0200, Ricardo Ribalda Delgado wrote: >> Defining the vendor and the product id should be enough to discriminate >> the device. >> >> The reason for th

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-08-27 Thread Ricardo Ribalda Delgado
Perhaps we could apply both patches to current tree and backport mine to older kernels? On Wed, Aug 27, 2014 at 5:27 PM, Mathias Nyman wrote: > On 08/27/2014 05:14 PM, Ricardo Ribalda Delgado wrote: >> At least I have seen the issue on Debian 3.14 and 3.16. Is your patch >&

Status of g_webcam uvc-gadget

2014-08-27 Thread Ricardo Ribalda Delgado
Hello Is somebody using/supporting g_webcam? The only reference userland server is uvc-gadget from http://git.ideasonboard.org/?p=uvc-gadget.git;a=summary ? I have an industrial fpga camera that speaks v4l2, my plan is to export it as an uvc camera via usb3380 as a debug interface. Thanks! --

Re: [PATCH] xhci-ring: Fix Null pointer dereference

2014-08-27 Thread Ricardo Ribalda Delgado
At least I have seen the issue on Debian 3.14 and 3.16. Is your patch going to be backported to linux-stable? The computer crashes very very badly On Wed, Aug 27, 2014 at 4:25 PM, Mathias Nyman wrote: > On 08/26/2014 06:47 PM, Ricardo Ribalda Delgado wrote: >> While testing a usb

[PATCH] usb: gadget: net2280: Remove pci_class from PCI_TABLE

2014-08-27 Thread Ricardo Ribalda Delgado
in lowercase. This means that some implementations modprobe will fail to load the driver. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c

[PATCH v2] usb: gadget: net2280: Fix invalid handling of Reset irq

2014-08-26 Thread Ricardo Ribalda Delgado
Without this patch, some hosts keep restarting indefinitely the target. Fixes: ae8e530 (usb: gadget: net2280: Code Cleanup) Signed-off-by: Ricardo Ribalda Delgado --- v2: Request by Felipe Balbi Use Fixes: on commit message drivers/usb/gadget/udc/net2280.c | 2 +- 1 file changed, 1 insertion

[PATCH] usb: gadget: net2280: Fix invalid handling of Reset irq

2014-08-26 Thread Ricardo Ribalda Delgado
Without this patch, some hosts keeps restarting indefinitely the target. Bug added on ae8e530a7e5d87592cb23996bee7fd6f1eb202ed usb: gadget: net2280: Code Cleanup Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] xhci-ring: Fix Null pointer dereference

2014-08-26 Thread Ricardo Ribalda Delgado
:0e:00.0: WARN Cannot submit Set TR Deq Ptr Aug 26 17:34:37 neopili kernel: [ 4767.480504] xhci_hcd :0e:00.0: WARN deq seg = (null), deq pt = 8805516d7800 Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/host/xhci-ring.c | 3 ++- 1 file changed, 2 insertions(+), 1

BUG: xhci_hcd: Crashes system when reseting endpoint

2014-08-25 Thread Ricardo Ribalda Delgado
Hello When I connect a usb gadget mass storage to my laptop the whole system crashes. It seems that the bug happens when the gadget/host initialize a reset. I lose all control to the computer, and the only way to recover control is rebooting it via powerbutton. Kernel that does not work: 3.14 3

Re: [PATCH] net/usb/hso: Add support for Option GTM671WFS

2014-08-05 Thread Ricardo Ribalda Delgado
wrote: > On Mon, 2014-08-04 at 11:20 +0200, Ricardo Ribalda Delgado wrote: >> Suggested-by: Dan Williams > > Before we apply this patch though, can you grab for the following for > me? > > cat /sys/class/tty/*/hsotype > > and lets see if the firmware actually responds

Re: [PATCH] net/usb/hso: Add support for Option GTM671WFS

2014-08-04 Thread Ricardo Ribalda Delgado
Suggested-by: Dan Williams On Mon, Aug 4, 2014 at 11:11 AM, Ricardo Ribalda Delgado wrote: > After this patch: > > [ 32.985530] hso: drivers/net/usb/hso.c: Option Wireless > [ 33.000452] hso 2-1.4:1.7: Not our interface > [ 33.001849] usbcore: registered new interface driver hso

Re: [PATCH] serial/option: Add support for Option GTM671WFS

2014-08-04 Thread Ricardo Ribalda Delgado
Hello Dan > > Are you 100% sure these don't go into the 'hso' driver? 'option' is > used for mostly older Option devices (like 5+ years old). I tried to > find information about this module, and the closest I could come for > 0af0:9200 was: > > http://trac.gateworks.com/wiki/3g > > which indicat

[PATCH] net/usb/hso: Add support for Option GTM671WFS

2014-08-04 Thread Ricardo Ribalda Delgado
Vendor Specific Class bDeviceSubClass 255 Vendor Specific Subclass bDeviceProtocol 255 Vendor Specific Protocol bMaxPacketSize064 bNumConfigurations 1 Device Status: 0x0001 Self Powered Signed-off-by: Ricardo Ribalda Delgado --- drivers/net/usb/hso.c | 1 + 1

[PATCH] serial/option: Add support for Option GTM671WFS

2014-08-01 Thread Ricardo Ribalda Delgado
255 Vendor Specific Subclass bDeviceProtocol 255 Vendor Specific Protocol bMaxPacketSize064 bNumConfigurations 1 Device Status: 0x0001 Self Powered Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: usb: gadget: net2280: CONFIG_USB_GADGET_PDEBUG_FILES?

2014-07-04 Thread Ricardo Ribalda Delgado
My fault. Thank you very much for reporting it. I have just posted the patch Regards On Fri, Jul 4, 2014 at 9:37 AM, Paul Bolle wrote: > Commit e56e69cc0ff4 ("usb: gadget: net2280: Use pr_* function") is > included in today's linux-next (ie, next-20140704). > > It contains this odd chunk: >

[PATCH] usb: gadget: net2280: Fix typo on #ifdef

2014-07-04 Thread Ricardo Ribalda Delgado
Commit e56e69cc0ff4 ("usb: gadget: net2280: Use pr_* function") includes a editing mistake on one of the #ifdef. This patch fixes it. Reported-by: Paul Bolle Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/udc/net2280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH 00/10] net2280: Support for PLX USB338x and cleanout code

2014-06-30 Thread Ricardo Ribalda Delgado
Hello Felipe Any comment on this patchset? Shall I resend it rebased on v3.16-rc2? Regards On Tue, Jun 10, 2014 at 10:19 PM, Ricardo Ribalda Delgado wrote: > Ping... > > On Tue, May 20, 2014 at 6:30 PM, Ricardo Ribalda Delgado > wrote: >> The USB 3380 is a PCI Expres

Re: [PATCH 00/10] net2280: Support for PLX USB338x and cleanout code

2014-06-10 Thread Ricardo Ribalda Delgado
Ping... On Tue, May 20, 2014 at 6:30 PM, Ricardo Ribalda Delgado wrote: > The USB 3380 is a PCI Express Gen 2 to USB 3.0 SuperSpeed Peripheral > Controller. It shares a lot functionatily with the net228x family. > > This series of patches includes some resend of previous patches

[PATCH 09/10 v2.1] usb: gadget: net2280: Use pr_* function

2014-05-20 Thread Ricardo Ribalda Delgado
Driver was using custom functions WARNING, ERROR, DEBUG, instead of pr_err, pr_dgb... New ep_* macros have been created that use standard pr_* functions. Signed-off-by: Ricardo Ribalda Delgado --- v2: Comment by Joe Perches and Alan Stern -Use ep_* instead of custom DETDEV macro drivers

[PATCH 02/10] usb: gadget: net2280: Dont use magic numbers

2014-05-20 Thread Ricardo Ribalda Delgado
Instead of using magic numbers use #defines Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 68 +++- drivers/usb/gadget/net2280.h | 1 + 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/drivers/usb/gadget/net2280

[PATCH 05/10] usb: gadget: net2280: Use module_pci_driver macro

2014-05-20 Thread Ricardo Ribalda Delgado
Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index b43725a..bd851de 100644 --- a/drivers/usb/gadget/net2280.c +++ b

[PATCH 03/10] usb: gadget: net2280: Use BIT() macro

2014-05-20 Thread Ricardo Ribalda Delgado
Improves readability of the code Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 572 +-- drivers/usb/gadget/net2280.h | 65 ++--- 2 files changed, 318 insertions(+), 319 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b

[PATCH 04/10] usb: gadget: net2280: Use true/false instead of 1/0

2014-05-20 Thread Ricardo Ribalda Delgado
For bool variables Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 5b9368d..b43725a 100644 --- a/drivers/usb/gadget/net2280.c

[PATCH 00/10] net2280: Support for PLX USB338x and cleanout code

2014-05-20 Thread Ricardo Ribalda Delgado
Ricardo Ribalda Delgado (10): usb: gadget: net2280: Add support for PLX USB338X usb: gadget: net2280: Dont use magic numbers usb: gadget: net2280: Use BIT() macro usb: gadget: net2280: Use true/false instead of 1/0 usb: gadget: net2280: Use module_pci_driver macro usb: gadget: net2280

[PATCH 06/10] usb: gadget: net2280: Refactor queues_show

2014-05-20 Thread Ricardo Ribalda Delgado
Replace a long and ugly expresion with an already available function. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index bd851de

[PATCH 08/10 v2.1] usb: gadget: net2280: Code Cleanup

2014-05-20 Thread Ricardo Ribalda Delgado
- Move logical continuations to end of line - Improve spacing Signed-off-by: Ricardo Ribalda Delgado --- v2: Comments by Alan Stern -Use octal notation istead of S_I drivers/usb/gadget/net2280.c | 155 +-- drivers/usb/gadget/net2280.h | 4 +- 2

[PATCH 10/10] usb: gadget: net2280: Use quirks instead of pci id

2014-05-20 Thread Ricardo Ribalda Delgado
Use of quirks improve readability and will be easier to add new devices to this driver. Suggested-by: Alan Stern Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 83 +++- drivers/usb/gadget/net2280.h | 6 2 files changed

Re: [PATCH 2/9] usb: gadget: net2280: Dont use magic numbers

2014-05-20 Thread Ricardo Ribalda Delgado
t mind implementing it, but please as a follow-up patch, since there are 8 patches depending on this :) Regards! On Tue, May 20, 2014 at 4:21 PM, Alan Stern wrote: > On Mon, 19 May 2014, Ricardo Ribalda Delgado wrote: > >> Instead of using magic numbers use #defines >> >

Re: [PATCH 3/5] usb: gadget: net2280: Pass checkpacth.pl test

2014-05-20 Thread Ricardo Ribalda Delgado
Not for grep... But if this is an issue I have no problem going back to the original. We can spend a whole year just talking about codestyle. On Tue, May 20, 2014 at 10:52 AM, David Laight wrote: > From: Alan Stern > ... >> > -static struct usb_request * >> > -net2280_alloc_request (struct usb

Re: [PATCH 0/9] net2280: Support for PLX USB338x and cleanout code

2014-05-19 Thread Ricardo Ribalda Delgado
Hello I have just realized that I havent moved the changleg information under the tear line. I will resend the patchset with this fixed once I have received comments about this patchset. Sorry and thanks for your patience. On Mon, May 19, 2014 at 11:20 PM, Ricardo Ribalda Delgado wrote

[PATCH 0/9] net2280: Support for PLX USB338x and cleanout code

2014-05-19 Thread Ricardo Ribalda Delgado
The USB 3380 is a PCI Express Gen 2 to USB 3.0 SuperSpeed Peripheral Controller. It shares a lot functionatily with the net228x family. This series of patches includes some resend of previous patches. Please check the changelog for every patch. Ricardo Ribalda Delgado (9): usb: gadget

[PATCH 4/9] usb: gadget: net2280: Use true/false instead of 1/0

2014-05-19 Thread Ricardo Ribalda Delgado
For bool variables Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 5b9368d..b43725a 100644 --- a/drivers/usb/gadget/net2280.c

[PATCH 5/9] usb: gadget: net2280: Use module_pci_driver macro

2014-05-19 Thread Ricardo Ribalda Delgado
Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index b43725a..bd851de 100644 --- a/drivers/usb/gadget/net2280.c +++ b

[PATCH 9/9 v2] usb: gadget: net2280: Use pr_* function

2014-05-19 Thread Ricardo Ribalda Delgado
Driver was using custom functions WARNING, ERROR, DEBUG, instead of pr_err, pr_dgb... New ep_* macros have been created that use standard pr_* functions. v2: Comment by Joe Perches and Alan Stern -Use ep_* instead of custom DETDEV macro Signed-off-by: Ricardo Ribalda Delgado --- drivers

[PATCH 2/9] usb: gadget: net2280: Dont use magic numbers

2014-05-19 Thread Ricardo Ribalda Delgado
Instead of using magic numbers use #defines Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 68 +++- drivers/usb/gadget/net2280.h | 1 + 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/drivers/usb/gadget/net2280

[PATCH 6/9] usb: gadget: net2280: Refactor queues_show

2014-05-19 Thread Ricardo Ribalda Delgado
Replace a long and ugly expresion with an already available function. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index bd851de

[PATCH 3/9] usb: gadget: net2280: Use BIT() macro

2014-05-19 Thread Ricardo Ribalda Delgado
Improves readability of the code Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 572 +-- drivers/usb/gadget/net2280.h | 65 ++--- 2 files changed, 318 insertions(+), 319 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b

[PATCH 8/9 v2] usb: gadget: net2280: Code Cleanup

2014-05-19 Thread Ricardo Ribalda Delgado
- Move logical continuations to end of line - Improve spacing v2: Comments by Alan Stern -Use octal notation istead of S_I Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 155 +-- drivers/usb/gadget/net2280.h | 4 +- 2

Re: [PATCH 5/5] usb: gadget: net2280: Use pr_* function

2014-05-19 Thread Ricardo Ribalda Delgado
Good idea. I am going to define ep_* and use them. btw, DEBUG cannot be used if not unset, because there is a namespace collision. Regards! On Mon, May 19, 2014 at 10:29 PM, Joe Perches wrote: > On Mon, 2014-05-19 at 16:17 -0400, Alan Stern wrote: >> On Mon, 19 May 2014, Ricard

Re: [PATCH 5/5] usb: gadget: net2280: Use pr_* function

2014-05-19 Thread Ricardo Ribalda Delgado
014, Ricardo Ribalda Delgado wrote: > >> Driver was using custom functions WARNING, ERROR, DEBUG, instead of >> pr_err, pr_dgb... > > What's wrong with that, and why bother to change it? > >> diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c >

Re: [PATCH 4/5] usb: gadget: net2280: Code Cleanup

2014-05-19 Thread Ricardo Ribalda Delgado
Hello Alan I am trying to be consistent around the file. On a previous patch I was asked to move the operators at the end. I did so, and now I am modifying the file to look alike. On Mon, May 19, 2014 at 9:43 PM, Alan Stern wrote: > On Mon, 19 May 2014, Ricardo Ribalda Delgado wr

Re: [PATCH 5/5] usb: gadget: net2280: Use pr_* function

2014-05-19 Thread Ricardo Ribalda Delgado
Hello Joe OK, then I will use dev_vdbg. Thanks! On Mon, May 19, 2014 at 9:42 PM, Joe Perches wrote: > On Mon, 2014-05-19 at 21:33 +0200, Ricardo Ribalda Delgado wrote: >> I think dev_vdg cannot be controlled with DYNAMIC_DEBUG, therefore I >> replaced it with dev_dbg. >>

Re: [PATCH 2/5] usb: gadget: net2280: Use S_I macros

2014-05-19 Thread Ricardo Ribalda Delgado
Hello Alan What about using octal notation in all the file and merge the patch with the other big patch of the series? I am trying to have some consistency in the file :) Thanks! On Mon, May 19, 2014 at 9:30 PM, Alan Stern wrote: > On Mon, 19 May 2014, Ricardo Ribalda Delgado wr

Re: [PATCH 5/5] usb: gadget: net2280: Use pr_* function

2014-05-19 Thread Ricardo Ribalda Delgado
Hello Joe I think dev_vdg cannot be controlled with DYNAMIC_DEBUG, therefore I replaced it with dev_dbg. But if you prefer to use dev_dbg, I will modify it to use dev_dbg Thanks! On Mon, May 19, 2014 at 9:16 PM, Joe Perches wrote: > On Mon, 2014-05-19 at 21:11 +0200, Ricardo Ribalda Delg

[PATCH 0/5] usb: gadget: net2280: Code cleanout

2014-05-19 Thread Ricardo Ribalda Delgado
10 patches, only the new ones. Ricardo Ribalda Delgado (5): usb: gadget: net2280: Refactor queues_show usb: gadget: net2280: Use S_I macros usb: gadget: net2280: Pass checkpacth.pl test usb: gadget: net2280: Code Cleanup usb: gadget: net2280: Use pr_* function drivers/usb/gadget

[PATCH 2/5] usb: gadget: net2280: Use S_I macros

2014-05-19 Thread Ricardo Ribalda Delgado
Instead of octal notation, to be consistent around the file. Signed-off-by: Ricardo Ribalda Delgado --- drivers/usb/gadget/net2280.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index c3205ec..5b2ab68 100644

  1   2   >