RE: Validera din brevlåda konto

2014-12-21 Thread Bomar_Samuel
From: Bomar_Samuel Sent: Sunday, December 21, 2014 9:28 PM To: Bomar_Samuel Subject: Validera din brevlåda konto Din brevlåda har överskridit lagringskvoten som bestäms av din e-postadministratör, och du kommer inte att kunna ta emot stora mail tills du åter bek

[PATCH net-next v2 1/2] r8152: call rtl_start_rx after netif_carrier_on

2014-12-21 Thread Hayes Wang
Remove rtl_start_rx() from rtl_enable() and put it after calling netif_carrier_on(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 2d1c77e..cbe450c 100644 --- a/d

[PATCH net-next v2 0/2] r8152: adjust r8152_submit_rx

2014-12-21 Thread Hayes Wang
v2: Replace the patch #1 with "call rtl_start_rx after netif_carrier_on". For patch #2, replace checking tp->speed with netif_carrier_ok. v1: Avoid r8152_submit_rx() from submitting rx during unexpected moment. This could reduce the time of stopping rx. For patch #1, the tp->speed should be upda

[PATCH net-next v2 2/2] r8152: check the status before submitting rx

2014-12-21 Thread Hayes Wang
Don't submit the rx if the device is unplugged, stopped, or linking down. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index cbe450c..8ecc2df 100644 --- a/drivers/net/usb/r8152.c +

[PATCH] USB: serial: cp210x: Correcting IDs for production CEL MeshConnect USB Stick

2014-12-21 Thread Preston Fick
Signed-off-by: Preston Fick --- drivers/usb/serial/cp210x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 6c4eb3c..fb8d3fa 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c @@ -120,7 +12

Re: [PATCH net-next 2/2] r8152: check the status before submittingrx

2014-12-21 Thread David Miller
From: Hayes Wang Date: Mon, 22 Dec 2014 02:53:42 + > David Miller [mailto:da...@davemloft.net] >> Sent: Saturday, December 20, 2014 4:44 AM > [...] >> > Don't submit the rx if the device is unplugged, linking down, >> > or stopped. >> ... >> > @@ -1789,6 +1789,11 @@ int r8152_submit_rx(str

RE: [PATCH net-next 2/2] r8152: check the status before submittingrx

2014-12-21 Thread Hayes Wang
David Miller [mailto:da...@davemloft.net] > Sent: Saturday, December 20, 2014 4:44 AM [...] > > Don't submit the rx if the device is unplugged, linking down, > > or stopped. > ... > > @@ -1789,6 +1789,11 @@ int r8152_submit_rx(struct r8152 > *tp, struct rx_agg *agg, gfp_t mem_flags) > > { > >

Re: [PATCH 0/3] usb: chipidea: add one errata for revision 2.40a

2014-12-21 Thread Peter Chen
On Fri, Dec 19, 2014 at 03:25:26PM +0530, Sanchayan Maity wrote: > The first two patches add identification register API's. These can > be used to get controller's revision. > > The third patch implements an errata for revision 2.40a. Not sure > which other SOCs implement this version of the Chip

RE: [PATCH net] r8152: drop the tx packet with invalid length

2014-12-21 Thread Hayes Wang
Eric Dumazet [mailto:eric.duma...@gmail.com] > Sent: Saturday, December 20, 2014 2:14 AM [...] > Could you try following patch ? Thank you. I would test it. Best Regards, Hayes -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.ke

Re: Strange behaviour...

2014-12-21 Thread Peter Chen
On Fri, Dec 19, 2014 at 12:35:49PM +0100, gianluca wrote: CC linux-usb ML > Hello Fabio and Peter, > > I am suffering some strange behaviour in initializing the smtp reset > block of the USB1 (host) in iMX28 running kernel 3.12.1 (vanilla) on > my custom board based on iMX28EVK. > > With bootle

qcserial: AT unsolicited response codes missing with Sierra Wireless MC7304

2014-12-21 Thread Reinhard Speyerer
Hi Johan, I originally sent this to Bjørn Mork as he added MC73xx support to the qcserial driver in commit 70a3615fc07c2330ed7c1e922f3c44f4a67c0762 ("usb: qcserial: add Sierra Wireless MC73xx") but he asked me to forward this this to you. When using a MC7304 with firmware revision SWI9X15C_05.05.

[PATCH 00/28] remove .owner for most platform_drivers: the missing bits

2014-12-21 Thread Wolfram Sang
Generated with coccinelle. The big cleanup was pulled in this merge window. This series catches the bits fallen through. The patches shall go in via the subsystem trees. If possible for 3.19 to increase consistency I'd say, but you decide, of course. cocci-file used: @match1@ declarer name module

[PATCH 21/28] usb: gadget: udc: bdc: drop owner assignment from platform_drivers

2014-12-21 Thread Wolfram Sang
This platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang --- Generated with coccinelle. SmPL file is in the introductory msg. The big cleanup was pulled in this merge window. This series catches the bits fallen through. The patches s

[PATCH] usb: host: drop owner assignment from platform_drivers

2014-12-21 Thread Wolfram Sang
These platform_drivers do not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang --- Those were missed by the original coccinelle script because of the strange include-mechanism. I now detected all included files with something like: awk '/#include.*\.c/

[PATCH v1 16/29] usb: dwc2: gadget: kill requests after disabling ep

2014-12-21 Thread Mian Yousaf Kaukab
kill_all_requests() can flush the fifo. Call it after disabling the endpoint. Moreover, remove even the current IN request so that next IN request after s3c_hsotg_ep_enable can be properly handled. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 5 +++-- 1 file changed, 3 inser

[PATCH v1 26/29] usb: dwc2: gadget: fix pullup handling

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Gadget must be informed about disconnection when pullup is removed. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 50b69f5..1a9da8d 100644 --- a/d

[PATCH v1 19/29] usb: dwc2: gadget: dont warn if endpoint is not enabled

2014-12-21 Thread Mian Yousaf Kaukab
The warning is probably good but it has false positives in both dma and non-dma cases. So its not very helpful in either. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dw

[PATCH v1 27/29] usb: dwc2: gadget: add vbus_draw support

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero This callback informs the driver about the total amount of current it is allowed to draw. Share this information with the phy so that current limits can be set for charging for example. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 17 + 1

[PATCH v1 24/29] usb: dwc2: gadget: fix fifo allocation leak

2014-12-21 Thread Mian Yousaf Kaukab
When selecting different alt setting, s3c_hsotg_ep_enable can be called with fifo already allocated. Allocate fifo again only if required and after deallocating the previous fifo. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 13 - 1 file changed, 12 insertions(+)

[PATCH v1 29/29] usb: dwc2: gadget: report disconnection after reset

2014-12-21 Thread Mian Yousaf Kaukab
If usb bus is reset without a physical disconnection, all endpoints will remain open. Call s3c_hsotg_disconnect() from reset handler to report a disconnect to gadget framework. hsotg->connected is checked in s3c_hsotg_disconnect() before processing disconnect. In some cases, USBRst is seen before

[PATCH v1 28/29] usb: dwc2: gadget: force gadget initialization in dev mode

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero When booting with id pin grounded, dwc2 default to host mode. Thus, force device mode prior initializing gadget part. Else fifo init will fail since fifo values are not correct in host mode. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 16 +++

[PATCH v1 25/29] usb: dwc2: gadget: reset fifo_map when initializing fifos

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero After all endpoints are disabled, fifo_map should have reached 0. It's a bug if it didn't, so warn about it and reset it to 0 so that driver can continue using all the fifos. Signed-off-by: Gregory Herrero Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c |

[PATCH v1 23/29] usb: dwc2: gadget: pick smallest acceptable fifo

2014-12-21 Thread Mian Yousaf Kaukab
Current algorithm picks the first fifo which is equal to or greater than the required size. This can result in bigger fifos assigned to endpoints with smaller maxps. Change the algorithm to pick the smallest fifo which is greater than or equal to the required size. Moreover, only use signed variab

[PATCH v1 10/29] usb: dwc2: gadget: check interrupts for all endpoints

2014-12-21 Thread Mian Yousaf Kaukab
Current code does not check endpoint 15 interrupt. Use number of endpoint configured in hardware instead of the hardcoded value. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/d

[PATCH v1 22/29] usb: dwc2: gadget: rename sent_zlp to send_zlp

2014-12-21 Thread Mian Yousaf Kaukab
This flag is set before sending the zlp. So use present tense instead of the past tense. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/core.h | 4 ++-- drivers/usb/dwc2/gadget.c | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/dwc2/core.h b/driv

[PATCH v1 12/29] Documentation: dt-bindings: add dt binding info for dwc2 fifo resizing

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Signed-off-by: Gregory Herrero --- Documentation/devicetree/bindings/usb/dwc2.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt index a7a9cb6..fd132cb 100644 --- a/Doc

[PATCH v1 13/29] usb: dwc2: gadget: remove unused members from hsotg_req

2014-12-21 Thread Mian Yousaf Kaukab
Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/core.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h index 7c0b995..b5e50e7 100644 --- a/drivers/usb/dwc2/core.h +++ b/drivers/usb/dwc2/core.h @@ -158,14 +158,10 @@ struct s3c_hsotg_e

[PATCH v1 17/29] usb: dwc2: gadget: manage ep0 state in software

2014-12-21 Thread Mian Yousaf Kaukab
Manage ep0 state in software to add handling of status OUT stage. Just toggling hsotg->setup in s3c_hsotg_handle_outdone leaves it in wrong state in 2-stage control transfers. Moreover, there is no need to handle SetupDone as requests can be complete on XferCmpl of status stage. Signed-off-by: Mia

[PATCH v1 18/29] usb: dwc2: gadget: fix zero length packet transfers

2014-12-21 Thread Mian Yousaf Kaukab
According to programming guide, zero length packet should be programmed on its own and should not be counted in DIEPTSIZ.PktCnt with other packets. For ep0, this is the zlp for DATA IN stage (if required) and not for the STATUS stage. Signed-off-by: Gregory Herrero Signed-off-by: Mian Yousaf Kau

[PATCH v1 21/29] usb: dwc2: gadget: add vbus_session support

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Enable phy driver to report vbus session. This allows us to remove D+ pullup when vbus is not present. Signed-off-by: Gregory Herrero Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 24 1 file changed, 24 insertions(+) diff --g

[PATCH v1 03/29] usb: dwc2: gadget: process setup packet on transfer complete

2014-12-21 Thread Mian Yousaf Kaukab
DOEPINTn.SetUp also indicates an OUT token for the data stage, so instead use DOEPINTn.StupPktRcvd. Moreover, check DOEPINTn.StupPktRcvd on DOEPINTn.XferComp as described in programming guide. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 83 --

[PATCH v1 07/29] usb: dwc2: gadget: add device tree property to enable dma

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Add an of specific function to parse device node properties. Enable dma usage only if device tree property 'g-use-dma' is present. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/core.h | 2 ++ drivers/usb/dwc2/gadget.c | 18 -- 2 files changed, 18

[PATCH v1 14/29] usb: dwc2: gadget: fix debug loop limits

2014-12-21 Thread Mian Yousaf Kaukab
< 15 check doesn't show debug information for endpoint 15. It is possible to have less than 15 endpoints so use limit provided by hardware configuration. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dr

[PATCH v1 11/29] usb: dwc2: gadget: configure fifos from device tree

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero As fifo size can vary between SOCs, add possibility to configure them from device tree. Fifo sizes used by the legacy driver will be used If they are not provided by the device tree. Signed-off-by: Gregory Herrero Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/co

[PATCH v1 15/29] usb: dwc2: gadget: consider all tx fifos

2014-12-21 Thread Mian Yousaf Kaukab
When matching tx fifo to endpoint, consider all fifos instead of hard limiting to 8 Moreover, print error in case no fifo could be found. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/gad

[PATCH v1 04/29] usb: dwc2: gadget: don't embed ep0 buffers

2014-12-21 Thread Mian Yousaf Kaukab
When using DMA, data of the previous setup packet can be read back from cache because ep0 and ctrl buffers are embedded in struct s3c_hsotg. Allocate buffers instead of embedding them. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/core.h | 7 +-- drivers/usb/dwc2/gadget.c | 20 ++

[PATCH v1 20/29] usb: dwc2: gadget: don't block after fifo flush timeout

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Can't stay in the loop forever. Break it after timeout. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 0e99218..0440e1e 100644 --- a/drivers/usb/d

[PATCH v1 02/29] usb: dwc2: gadget: mask fifo empty irq with dma

2014-12-21 Thread Mian Yousaf Kaukab
When using DMA keep fifo empty interrupt disabled. Otherwise core is flooded by interrupts. Signed-off-by: Gregory Herrero Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/

[PATCH v1 09/29] usb: dwc2: gadget: add bi-directional endpoint support

2014-12-21 Thread Mian Yousaf Kaukab
GHWCFG1 provides hardware configuration of each endpoint. Use it to configure the endpoints instead of assuming all even endpoint are OUT and all odd endpoints are IN. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/core.h | 3 +- drivers/usb/dwc2/gadget.c | 324 ++

[PATCH v1 05/29] usb: dwc2: gadget: write correct value in ahbcfg register

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 5de3a3a..0b08d4a 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadge

[PATCH v1 06/29] usb: dwc2: gadget: don't erase gahbcfg register when enabling dma

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 0b08d4a..58699c3 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/g

[PATCH v1 01/29] usb: dwc2: gadget: register gadget handle to the phy

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Signed-off-by: Gregory Herrero Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 200168e..0b3c571 100644 --- a/drivers/u

[PATCH v1 08/29] Documentation: dt-bindings: add dt binding info for dwc2 g-use-dma

2014-12-21 Thread Mian Yousaf Kaukab
From: Gregory Herrero Indicate if gadget driver must use dma for usb transfers. Signed-off-by: Gregory Herrero --- Documentation/devicetree/bindings/usb/dwc2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindi

[PATCH v1 00/29] usb: updates for dwc2 gadget driver

2014-12-21 Thread Mian Yousaf Kaukab
-20141221. Thank you, Best regards, Yousaf History: v1: - Addressed comments from Sergei Shtylyov Gregory Herrero (13): usb: dwc2: gadget: register gadget handle to the phy usb: dwc2: gadget: write correct value in ahbcfg register usb: dwc2: gadget: don't erase gahbcfg register when ena

Re: USB Creative Soundcard non-functioning on 3.13 kernel and above

2014-12-21 Thread robtongue
On Friday 19 December 2014 17:22:42 you wrote: > > You'll have to collect a bunch of additional information. I'd like to > > see the entry in /sys/kernel/debug/usb/devices that describes the sound > > card, and the contents of the files under > > /sys/kernel/debug/usb/ehci/:00:1a.0/. > > /sy

Re: Proper delay function in host driver

2014-12-21 Thread Alan Stern
On Sun, 21 Dec 2014, vichy wrote: > >> Then I try to use msleep(100) but I found hub_port_status will first > >> mutex_lock(&hub->status_mutex); then calling get_port_status. > >> That mean the deadlock may happen. > > > > No it doesn't. > Why it doesn't? from the source, the get_port_status did c

Re: Proper delay function in host driver

2014-12-21 Thread vichy
hi alan: 2014-12-19 23:20 GMT+08:00 Alan Stern : > On Fri, 19 Dec 2014, vichy wrote: > >> hi all: >> For HW bug, we have to mdelay(100) in getting root hub port status. > > That's quite a bug! 100 ms is a very long delay. With a bug that big, > it's questionable whether the hardware will work co

[PATCH 2/2] doc: usbmon: fix spelling s/unpriviledged/unprivileged/

2014-12-21 Thread Jeremiah Mahler
Signed-off-by: Jeremiah Mahler --- Documentation/usb/usbmon.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/usb/usbmon.txt b/Documentation/usb/usbmon.txt index be2ccb9..28425f7 100644 --- a/Documentation/usb/usbmon.txt +++ b/Documentation/usb/usbmon.txt @@ -2

[PATCH 1/2] doc: usbmon: fix wording "be reading until"

2014-12-21 Thread Jeremiah Mahler
The usbmon documentation uses "be reading until" which is an unusual wording. Change it to "read until it" which is more clear. Signed-off-by: Jeremiah Mahler --- Documentation/usb/usbmon.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/usb/usbmon.txt b/Docu