Re: Is this 32-bit NCM?

2014-11-30 Thread Enrico Mioso
Sorry - by error I did not send the message to all. Hi everyone, and good Sunday! The problem is that - between those two firmwares things might change, and so we don't know what Windows does when it meets this specific branch /version of the firmware. I am desperately suspecting that we would no

Re: Is this 32-bit NCM?

2014-11-30 Thread Enrico Mioso
Here are two USB captures. In m1 - the computer is "silent": and it can listen to ARP traffic coming from the modem. In m2, the computer tries to talk, performing DHCP with dhclient from Ubuntu. Any strange thing? Is the device really interpreting ndpOffset as Offset in the specs Kevin? If so we m

Re: Is this 32-bit NCM?

2014-11-30 Thread Enrico Mioso
My impression guys is that this is not cdc_ncm protocol. Look how many short packets you can see in there. Without any ncm signature. right? On Sun, 30 Nov 2014, Alex Strizhevsky wrote: ==Date: Sun, 30 Nov 2014 05:22:20 ==From: Alex Strizhevsky ==To: Mrkiko Rs ==Cc: Eli Britstein , linux-usb@v

Re: [Update 2x][PATCH] USB / PM: Drop CONFIG_PM_RUNTIME from the USB core

2014-11-30 Thread Alan Stern
On Sat, 29 Nov 2014, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > selected) PM_RUNTIME is always set if PM is set, so quite a few > #ifdef blocks depending on CONFIG_PM_RUNTIME may now be changed to > depend on CON

[PATCH 8/8] wusb: replace memset by memzero_explicit

2014-11-30 Thread Julia Lawall
From: Julia Lawall Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ iden

[PATCH 0/8] replace memset by memzero_explicit

2014-11-30 Thread Julia Lawall
Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. The complete semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; local idexpression e; type

[PATCH 8/8 v2] wusb: replace memset by memzero_explicit

2014-11-30 Thread Julia Lawall
From: Julia Lawall Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ iden

[PATCH 0/8] replace memset by memzero_explicit

2014-11-30 Thread Julia Lawall
Memset on a local variable may be removed when it is called just before the variable goes out of scope. Using memzero_explicit defeats this optimization. The complete semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; local idexpression e; type

Re: Is this 32-bit NCM?

2014-11-30 Thread Enrico Mioso
this is a capture equivalent to the m1 capture in the previous message; the E3251 modem is communicating us the arp traffic of the gateway asking who will have our IP in case of DHCP. So you have some comparison. See preivous mail in case. Note: at^dialmode returns 3,2 in our case, which should

[PATCH 4/4] usbip: remove unneeded structure

2014-11-30 Thread Julia Lawall
From: Julia Lawall Delete a local structure that is only used to be initialized by memset. A semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x,i; @@ { ... when any -struct i x; <+... when != x - memset(&x,...); ...+> } // Signed-off-by: Jul

[PATCH 0/4] remove unneeded array

2014-11-30 Thread Julia Lawall
Remove an array or structure that only serves as the first argument to memset. The complete semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ identifier x; type T; @@ { ... when any -T x[...]; <+... when != x - memset(x,...); ...+> } @@ identifier x,i; @@

Re: [PATCH] USB: enable all functions remote wakeup for USB3 composite device

2014-11-30 Thread gre...@linuxfoundation.org
On Sun, Nov 30, 2014 at 03:51:37AM +, Li, Aixiong wrote: > Hi all, > > The patch format still have some problem since I copied it from the html > mail. I fix it in this mail. :) And it's still not in any format that I can apply it in. Your company has training on how to properly do this, pl

Re: Is this 32-bit NCM?

2014-11-30 Thread Enrico Mioso
Thank you Bjorn for the help and suggestions. These are parameters that the driver ends up choosing: /sys/class/net/wwan0/cdc_ncm/bmNtbFormatsSupported:0x0003 /sys/class/net/wwan0/cdc_ncm/dwNtbInMaxSize:131072 /sys/class/net/wwan0/cdc_ncm/dwNtbOutMaxSize:16384 /sys/class/net/wwan0/cdc_ncm/min_tx_pk

[no subject]

2014-11-30 Thread Andrew Sullivan
[1.] One line summary of the problem: [Lenovo G505s] External USB3 drive not accessible via USB 3.0 port [2.] Full description of the problem/report: When external USB HD is plugged into the USB3 port on the laptop, it is not seen by the machine. It is seen when plugged into a USB2 port. [3.

Re: [GIT PULL] USB driver fixes for 3.18-rc7

2014-11-30 Thread Linus Torvalds
Hmm, Greg. I seem to get this problem possibly more commonly at boot these days: usb 1-6: new full-speed USB device number 2 using xhci_hcd usb 1-6: device descriptor read/64, error -71 xhci_hcd :00:14.0: Setup ERROR: setup context command for slot 1. usb 1-6: hub failed to enable dev

Re: [PATCH v1] usb: phy: generic: migrate to gpio_desc

2014-11-30 Thread Robert Jarzmik
Linus Walleij writes: > This definately make things better so: > Acked-by: Linus Walleij Thanks. > One comment though: > >>> if (dev->of_node) { > (...) >>> + nop->gpiod_reset = devm_gpiod_get(dev, "reset-gpios"); >>> + err = PTR_ERR(nop->gpiod_reset); >>> }

Re: [PATCH v2 2/3] usb: phy: add lubbock phy driver

2014-11-30 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Extract lubbock-specific code from pxa25x_udc driver. As a bonus, phy > driver determines connector/VBUS status by reading CPLD register. Also > it uses a work to call into udc stack, instead of pinging vbus session > right from irq handler. This comment is not a

Re: [GIT PULL] USB driver fixes for 3.18-rc7

2014-11-30 Thread Peter Stuge
Linus Torvalds wrote: > I seem to get this problem possibly more commonly at boot these days: > usb 1-6: device descriptor read/64, error -71 > xhci_hcd :00:14.0: Setup ERROR: setup context command for slot 1. > usb 1-6: hub failed to enable device, error -22 Since my upgrade to 98e8d2e0

Re: [Update 2x][PATCH] USB / PM: Drop CONFIG_PM_RUNTIME from the USB core

2014-11-30 Thread Rafael J. Wysocki
On Sunday, November 30, 2014 10:45:39 AM Alan Stern wrote: > On Sat, 29 Nov 2014, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is > > selected) PM_RUNTIME is always set if PM is set, so quite a few > > #ifdef bl

Re: Is this 32-bit NCM?

2014-11-30 Thread Kevin Zhu
Sorry for the late reply. I tried to calculate the offset as what windows did, but it did not help. Regards, Kevin On 12/01/2014 02:36 AM, Enrico Mioso wrote: > Thank you Bjorn for the help and suggestions. > These are parameters that the driver ends up choosing: > /sys/class/net/wwan0/cdc_ncm/b

Re: Is this 32-bit NCM?

2014-11-30 Thread Kevin Zhu
Hi, My dongle firmware version is 21.286.03.01.209, not working either. Regards, Kevin On 11/30/2014 06:18 PM, Enrico Mioso wrote: > Sorry - by error I did not send the message to all. > Hi everyone, and good Sunday! > The problem is that - between those two firmwares things might change, and so

Re: [Update 2x][PATCH] USB / PM: Drop CONFIG_PM_RUNTIME from the USB core

2014-11-30 Thread Greg Kroah-Hartman
On Mon, Dec 01, 2014 at 02:12:51AM +0100, Rafael J. Wysocki wrote: > On Sunday, November 30, 2014 10:45:39 AM Alan Stern wrote: > > On Sat, 29 Nov 2014, Rafael J. Wysocki wrote: > > > > > From: Rafael J. Wysocki > > > > > > After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is >

Re: [PATCH v1] usb: phy: generic: migrate to gpio_desc

2014-11-30 Thread Alexandre Courbot
On Mon, Dec 1, 2014 at 5:32 AM, Robert Jarzmik wrote: > Linus Walleij writes: > >> This definately make things better so: >> Acked-by: Linus Walleij > Thanks. > >> One comment though: >> if (dev->of_node) { >> (...) + nop->gpiod_reset = devm_gpiod_get(dev, "reset-gpio

Re: Is this 32-bit NCM?

2014-11-30 Thread Enrico Mioso
Sorry. I am a visually impaired person - and use a braille display to read your messages; can't have access to files that don't contain ascii-based content. Sorry Kevin. And thank you for everything. Don't worry about the lateness. It was sunday. On Mon, 1 Dec 2014, Kevin Zhu wrote: ==Date: Mo

Re: [PATCH v3 3/3] usb: phy: hold wakeupsource when USB is enumerated in peripheral mode

2014-11-30 Thread Kiran Raparthy
Hi Felipe, On 25 November 2014 at 20:15, Felipe Balbi wrote: > On Tue, Nov 25, 2014 at 07:06:18AM +, Peter Chen wrote: >> >> > >> > usb: phy: hold wakeupsource when USB is enumerated in peripheral mode >> > >> > Some systems require a mechanism to prevent system to enter into suspend >> > sta

Re: Is this 32-bit NCM?

2014-11-30 Thread Kevin Zhu
I'm sorry. According to the wireshark capture, those packets without NCM signature are probably some periodical status checking interrupts. And some other packets in the same capture do show the NCM signature. Those packets are ping packets. Regarding the offset and alignment definition, the spec

Re: USB OTG doesn't work in HOST mode on OMAP3 processor on 3.18-rc5

2014-11-30 Thread Yegor Yefremov
On Sat, Nov 29, 2014 at 4:35 PM, Felipe Balbi wrote: > Hi, > > On Fri, Nov 28, 2014 at 11:35:53AM +0100, Yegor Yefremov wrote: >> On Wed, Nov 19, 2014 at 6:53 PM, Tony Lindgren wrote: >> > * Enric Balletbo Serra [141119 03:14]: >> >> 2014-11-18 16:42 GMT+01:00 Tony Lindgren : >> >> >> >> Checked