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
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
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
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
+
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
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
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)
> > {
> >
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
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
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
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.
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
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
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/
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
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
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
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
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(+)
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
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 +++
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 |
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
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
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
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
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
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
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
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
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 --
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
< 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
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
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
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 ++
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
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/
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 ++
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
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
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
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
-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
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
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
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
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
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
49 matches
Mail list logo