[PATCH] cdc-wdm: fix race between interrupt handler and tasklet

2013-08-06 Thread oliver
From: Oliver Neukum oneu...@suse.de Both could want to submit the same URB. Some checks of the flag intended to prevent that were missing. Signed-off-by: Oliver Neukum oneu...@suse.de CC: sta...@vger.kernel.org --- drivers/usb/class/cdc-wdm.c | 13 + 1 file changed, 9 insertions

[PATCH] usb: add two quirky touchscreen

2013-08-14 Thread oliver
From: Oliver Neukum oneu...@suse.de These devices tend to become unresponsive after S3 Signed-off-by: Oliver Neukum oneu...@suse.de CC: sta...@vger.kernel.org --- drivers/usb/core/quirks.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core

[PATCH] hid-elo: some systems cannot stomach work around

2013-09-09 Thread oliver
From: Oliver Neukum oneu...@suse.de Some systems although they have firmware class 'M', which usually needs a work around to not crash, must not be subjected to the work around because the work around crashes them. They cannot be told apart by their own device descriptor, but as they are part

[PATCH] hid-elo: some systems cannot stomach work around

2013-09-25 Thread oliver
From: Oliver Neukum oneu...@suse.de Some systems although they have firmware class 'M', which usually needs a work around to not crash, must not be subjected to the work around because the work around crashes them. They cannot be told apart by their own device descriptor, but as they are part

[PATCH] xhci: extra long delay for S4

2013-09-30 Thread oliver
From: Oliver Neukum oneu...@suse.de Some controllers really do need much longer than the standard allows. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/xhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host

[PATCH] xhci: quirk for extra long delay for S4[V2]

2013-09-30 Thread oliver
From: Oliver Neukum oneu...@suse.de It has been reported that this chipset really cannot sleep without this extraordinary delay. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/xhci-pci.c | 8 drivers/usb/host/xhci.c | 9 +++-- drivers/usb/host/xhci.h | 1

[PATCH] usb-storage: add quirk for mandatory READ_CAPACITY_16

2013-10-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Some USB drive enclosures do not correctly report an overflow condition if they hold a drive with a capacity over 2TB and are confronted with a READ_CAPACITY_10. They answer with their capacity modulo 2TB. The generic layer cannot cope with that. It must

[PATCH] quirks.c: add one device that cannot deal with suspension

2013-10-14 Thread oliver
From: Oliver Neukum oneu...@suse.de The device is not responsive when resumed, unless it is reset. Signed-off-by: Oliver Neukum oneu...@suse.de CC: sta...@vger.kernel.org --- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb

[PATCH] quirks: add touchscreen that is dazzeled by remote wakeup

2013-10-16 Thread oliver
From: Oliver Neukum oneu...@suse.de The device descriptors are messed up after remote wakeup Signed-off-by: Oliver Neukum oneu...@suse.de CC: sta...@vger.kernel.org --- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core

[RFC 1/3] ohci: convert printk to dev_dbg

2013-11-12 Thread oliver
From: Oliver Neukum oneu...@suse.de This converts the DEBUG level printk to dynamic debugging Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-dbg.c | 104 ++-- drivers/usb/host/ohci-hcd.c | 4 -- drivers/usb/host/ohci-q.c | 2

[RFC 2/3] ohci: compile all debug stuff always

2013-11-12 Thread oliver
From: Oliver Neukum oneu...@suse.de There's no reason to leave out the debugfs files under normal conditions. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-dbg.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/host/ohci-dbg.c b

[RFC 3/3] ohci: rewrite ohci_dump() for dynamic debug

2013-11-12 Thread oliver
From: Oliver Neukum oneu...@suse.de As this function is called from interrupt care must be taken that as little as possible overhead is used if dynamic debbuging is not enabled. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-dbg.c | 91

[RFC 10/14] fotg210: change dbg_port() to evaluate parameters only if needed

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de For dynamic debug the overhead for evaluating parameters must be sacrificed only if the message is actually printed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[RFC 06/14] ehci: convert dbg_status() to dynamic debugging

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de Rewrite it so that the status is evaluated only if the printk is actually executed. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-dbg.c | 51 + 1 file changed, 24 insertions(+), 27 deletions

[RFC 01/14] ohci: remove conditional compilation

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de Conditional compilation for debugging is removed in favor of dynamic debugging. To do so 1. the support for debugfs is always compiled 2. the support for the ancient print_urb debugging aid is removed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers

[RFC 11/14] fotg210: remove conditional compilation

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision what is interesting is made in user space. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb

[RFC 05/14] ehci: no conditional compilation for interestingness

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision about what is interesting is done in user space when dynamic debugging is used. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hub.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host

[RFC 04/14] ohci: no conditional debugging in root hub hadling

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de With dynamic debugging the selection is done in user space Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hub.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci

[RFC 07/14] ehci: use new dbg_status() unconditionally

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de With the new dbg_status() the interrupt handler doesn't need conditional compilation Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci

[RFC 08/14] fotg210: remove conditional compilation

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de Always compile in the debugfs support --- drivers/usb/host/fotg210-hcd.c | 8 drivers/usb/host/fotg210.h | 8 2 files changed, 16 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 55486bd

[RFC 03/14] ohci:always register debug files

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de Just remove the conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hcd.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 501ecea..de0e3e4

[RFC 02/14] ohci: kill ohci_vdbg

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de With the introduction of dynamic debugging it has become redundant. Collapse it with ohci_dbg() Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hcd.c | 4 ++-- drivers/usb/host/ohci-q.c | 8 drivers/usb/host/ohci.h | 2

[RFC 12/14] fotg210: dbg_status() rewrite for dynamic debug

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de The expensive evaluation should be done only if a message is actually to be printed. Signed-off-by: Oliver Neukum oneukum2suse.de --- drivers/usb/host/fotg210-hcd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb

[RFC 13/14] fotg210: kill fotg210_vdbg()

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision what is interesting is shifted to user space by dynamic debugging. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/usb

[RFC 14/14] fusbh200: always build debugfs support

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de This gets rid of conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 31 --- drivers/usb/host/fusbh200.h | 8 2 files changed, 39 deletions(-) diff --git

[RFC 1/2] uhci: change dependency for debug parameter

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de To allow a full switch to dynamic debugging make the debug parameter conditional on defined(DEBUF) || defined(DYNAMIC_DEBUG) Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 44 +++- 1 file

[RFC 2/2] uhci: compile debugfs conditional on DYNAMIC_DEBUG || DEBUG

2013-11-13 Thread oliver
From: Oliver Neukum oneu...@suse.de This makes sure the header files are all there Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c

[RFCv2 2/3] uhci: compile debugfs conditional on DYNAMIC_DEBUG || DEBUG

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de This makes sure the header files are all there Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c

[RFCv2 3/3] uhci: announce number of new ports by dev_dbg

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de No need for conditional compilation here. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index

[RFCv2 1/3] uhci: change dependency for debug parameter

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de To allow a full switch to dynamic debugging make the debug parameter conditional on defined(DEBUF) || defined(DYNAMIC_DEBUG) Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 48 +++-- 1

[RFCv2] fusbh200: always compile debugfs support

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de This is a step in the conversion to only use dynamic debugging. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host

[RFCv2] uhci: remove conditional compilation

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de It has become unnecessary by #define trickery Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index 8631862..d6e2814

[RFCv4 04/24] ohci: no conditional debugging in root hub hadling

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de With dynamic debugging the selection is done in user space Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hub.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci

[RFCv4 02/24] ohci: kill ohci_vdbg

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de With the introduction of dynamic debugging it has become redundant. Collapse it with ohci_dbg() Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hcd.c | 4 ++-- drivers/usb/host/ohci-q.c | 8 drivers/usb/host/ohci.h | 2

[RFCv4 03/24] ohci:always register debug files

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Just remove the conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hcd.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 501ecea..de0e3e4

[RFCv4 01/24] ohci: remove conditional compilation

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Conditional compilation for debugging is removed in favor of dynamic debugging. To do so 1. the support for debugfs is always compiled 2. the support for the ancient print_urb debugging aid is removed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers

[RFCv4 07/24] ehci: use new dbg_status() unconditionally

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de With the new dbg_status() the interrupt handler doesn't need conditional compilation Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci

[RFCv4 05/24] ehci: no conditional compilation for interestingness

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision about what is interesting is done in user space when dynamic debugging is used. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hub.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host

[RFCv4 06/24] ehci: convert dbg_status() to dynamic debugging

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Rewrite it so that the status is evaluated only if the printk is actually executed. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-dbg.c | 51 + 1 file changed, 24 insertions(+), 27 deletions

[RFCv4 08/24] fotg210: remove conditional compilation

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Always compile in the debugfs support --- drivers/usb/host/fotg210-hcd.c | 8 drivers/usb/host/fotg210.h | 8 2 files changed, 16 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 55486bd

[RFCv4 09/24] fotg210: always compile the support for debugfs

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Simply remove the conditional compilation and remove the empty stubs. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 47 -- 1 file changed, 47 deletions(-) diff --git a/drivers/usb

[RFCv4 12/24] fotg210: dbg_status() rewrite for dynamic debug

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de The expensive evaluation should be done only if a message is actually to be printed. Signed-off-by: Oliver Neukum oneukum2suse.de --- drivers/usb/host/fotg210-hcd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb

[RFCv4 18/24] fusbh200: unconditionally compile debugging helpers

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de These helpers are used only during setup of a HCD. A small overhead is no problem. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/usb/host/fusbh200

[RFCv4 19/24] fusb200: dbg_status rewritten for irq

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Rewrite for little overhead so that it can be used in interrupt handlers for dynamic debugging Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git

[RFCv4 14/24] fusbh200: always build debugfs support

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de This gets rid of conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 31 --- drivers/usb/host/fusbh200.h | 8 2 files changed, 39 deletions(-) diff --git

[RFCv4 20/24] fusbh200: always compile debugfs support

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de This is a step in the conversion to only use dynamic debugging. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host

[RFCv4 11/24] fotg210: remove conditional compilation

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision what is interesting is made in user space. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb

[RFCv4 22/24] fusb200h: always compile in debugfs support

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de This allows removal of much conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 17 ++--- drivers/usb/host/fusbh200.h | 4 2 files changed, 2 insertions(+), 19 deletions(-) diff

[RFCv4 13/24] fotg210: kill fotg210_vdbg()

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision what is interesting is shifted to user space by dynamic debugging. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/usb

[RFCv4 21/24] uhci: remove conditional compilation

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de It has become unnecessary by #define trickery Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index 8631862..d6e2814

[RFCv4 24/24] usb: kill DEBUG compile option

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de In the drivers that no longer need it, it is removed. It is removed from the Makefile. Drivers not fully converted to dynamic debug have it shifted down into the individual drivers. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/Makefile

[RFCv4 10/24] fotg210: change dbg_port() to evaluate parameters only if needed

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de For dynamic debug the overhead for evaluating parameters must be sacrificed only if the message is actually printed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[RFCv4 23/24] fusbh200: kill fusbh200_vdbg

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de With dynamic debugging this log level is no longer supported. The decision which messages are interesting is done in user space. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 16 +--- 1 file changed, 5

[RFCv4 16/24] uhci: compile debugfs conditional on DYNAMIC_DEBUG || DEBUG

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de This makes sure the header files are all there Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c

[RFCv4 15/24] uhci: change dependency for debug parameter

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de To allow a full switch to dynamic debugging make the debug parameter conditional on defined(DEBUF) || defined(DYNAMIC_DEBUG) Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 48 +++-- 1

[RFCv4 17/24] uhci: announce number of new ports by dev_dbg

2013-11-14 Thread oliver
From: Oliver Neukum oneu...@suse.de No need for conditional compilation here. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index

[RFCv5 17/21] fusbh200: always compile debugfs support

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de This is a step in the conversion to only use dynamic debugging. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host

[RFCv5 02/21] ohci: kill ohci_vdbg

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de With the introduction of dynamic debugging it has become redundant. Collapse it with ohci_dbg() Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hcd.c | 4 ++-- drivers/usb/host/ohci-q.c | 8 drivers/usb/host/ohci.h | 6

[RFCv5 03/21] ohci:always register debug files

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de Just remove the conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hcd.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 501ecea..de0e3e4

[RFCv5 14/21] uhci: compile debugfs conditional on CONFIG_DYNAMIC_DEBUG || DEBUG

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de This makes sure the header files are all there Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c

[RFCv5 15/21] fusbh200: unconditionally compile debugging helpers

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de These helpers are used only during setup of a HCD. A small overhead is no problem. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/usb/host/fusbh200

[RFCv5 12/21] fusbh200: always build debugfs support

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de This gets rid of conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 31 --- drivers/usb/host/fusbh200.h | 8 2 files changed, 39 deletions(-) diff --git

[RFCv5 09/21] fotg210: change dbg_port() to evaluate parameters only if needed

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de For dynamic debug the overhead for evaluating parameters must be sacrificed only if the message is actually printed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[RFCv5 08/21] fotg210: always compile the support for debugfs

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de Simply remove the conditional compilation and remove the empty stubs. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 47 -- 1 file changed, 47 deletions(-) diff --git a/drivers/usb

[RFCv5 20/21] usb: kill DEBUG compile option

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de In the drivers that no longer need it, it is removed. It is removed from the Makefile. Drivers not fully converted to dynamic debug have it shifted down into the individual drivers. Signed-off-by: Oliver Neukum oneu...@suse.deusb: kill DEBUG compile option

[RFCv5 06/21] ehci: Remove debugging at every interrupt

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de This is overkill. Just removeit. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hcd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index e8ba4c4..b57e997 100644

[RFCv5 18/21] fusb200h: always compile in debugfs support

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de This allows removal of much conditional compilation. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 20 drivers/usb/host/fusbh200.h | 4 2 files changed, 4 insertions(+), 20 deletions(-) diff

[RFCv5 05/21] ehci: no conditional compilation for interestingness

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de Simple elemination of the conditional compilation Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hub.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c

[RFCv5 21/21] kill #undef OHCI_VERBOSE_DEBUG

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de It is useless now. Straight removal. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hcd.c | 1 - drivers/usb/host/fotg210-hcd.c | 1 - drivers/usb/host/fusbh200-hcd.c | 1 - drivers/usb/host/ohci-hcd.c | 2 -- 4 files changed

[RFCv5 10/21] fotg210: remove conditional compilation

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision what is interesting is made in user space. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers

[RFCv5 07/21] fotg210: remove conditional compilation

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de Always compile in the debugfs support --- drivers/usb/host/fotg210-hcd.c | 8 drivers/usb/host/fotg210.h | 8 2 files changed, 16 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 55486bd

[RFCv5 16/21] fusb200h: don't log on every interrupt

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de That logging is overkill. Simply remove it. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host/fusbh200-hcd.c index

[RFCv5 19/21] fusbh200: kill fusbh200_vdbg

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de With dynamic debugging this log level is no longer supported. The decision which messages are interesting is done in user space. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 16 +--- 1 file changed, 5

[RFCv5 01/21] ohci: remove conditional compilation

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de Conditional compilation for debugging is removed in favor of dynamic debugging. To do so 1. the support for debugfs is always compiled 2. the support for the ancient print_urb debugging aid is removed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers

[RFCv5 04/21] ohci: no conditional debugging in root hub hadling

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de With dynamic debugging the selection is done in user space Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ohci-hub.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host

[RFCv5 11/21] fotg210: kill fotg210_vdbg()

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de The decision what is interesting is shifted to user space by dynamic debugging. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/usb

[RFCv5 13/21] uhci: change dependency for debug parameter

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de To allow a full switch to dynamic debugging make the debug parameter conditional on defined(DEBUF) || defined(CONFIG_DYNAMIC_DEBUG) Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/uhci-hcd.c | 44

[RFCv5] kill #undef OHCI_VERBOSE_DEBUG

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de It is useless now. Straight removal. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hcd.c | 1 - drivers/usb/host/fotg210-hcd.c | 1 - drivers/usb/host/fusbh200-hcd.c | 1 - drivers/usb/host/ohci-hcd.c | 2 -- 4 files changed

[RFCv5-corrected subject] USB: kill #undef VERBOSE_DEBUG

2013-11-15 Thread oliver
From: Oliver Neukum oneu...@suse.de It is useless now. Straight removal. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hcd.c | 1 - drivers/usb/host/fotg210-hcd.c | 1 - drivers/usb/host/fusbh200-hcd.c | 1 - drivers/usb/host/ohci-hcd.c | 2 -- 4 files changed

[PATCH] cdc-wdm: fix buffer overflow

2013-02-27 Thread oliver
From: Oliver Neukum oneu...@suse.de The buffer for responses must not overflow. If this would happen, set a flag, drop the data and return an error after user space has read all remaining data. Signed-off-by: Oliver Neukum oli...@neukum.org CC: sta...@kernel.org --- drivers/usb/class/cdc-wdm.c

[PATCH] cdc-wdm: fix buffer overflow

2013-03-12 Thread oliver
From: Oliver Neukum oneu...@suse.de The buffer for responses must not overflow. If this would happen, set a flag, drop the data and return an error after user space has read all remaining data. Signed-off-by: Oliver Neukum oli...@neukum.org CC: sta...@kernel.org --- drivers/usb/class/cdc-wdm.c

[PATCH] UAS: fallback to storage if no streams are available

2014-02-05 Thread oliver
From: Oliver Neukum oneu...@suse.de uas_probe() calls usb_alloc_streams(). That can fail on XHCI with -ENOSYS if the controller doesn't support streams. In that case devices should be handed over to storage. Thus the driver needs to return -ENODEV so that the driver core will give other drivers

[PATCH 2/2] storage: accept some UAS devices if streams are unavailable

2014-02-10 Thread oliver
From: Oliver Neukum oneu...@suse.de On some older XHCIs streams are not supported and the UAS driver will fail at probe time. For those devices storage should try to bind to UAS devices. This patch adds a flag for stream support to HCDs and evaluates it. Signed-off-by: Oliver Neukum oneu

[PATCH] hub: make compile without CONFIG_PM

2014-02-11 Thread oliver
From: Oliver Neukum oneu...@suse.de Define usb_lock_port and usb_unlock_port in all cases Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/core/hub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 28d1218..68d077e 100644

[PATCH v2] storage: accept some UAS devices if streams are unavailable

2014-02-11 Thread oliver
From: Oliver Neukum oneu...@suse.de On some older XHCIs streams are not supported and the UAS driver will fail at probe time. For those devices storage should try to bind to UAS devices. This patch adds a flag for stream support to HCDs and evaluates it. Signed-off-by: Oliver Neukum oli

[PATCH 1/3] hub: debug message for failing to enable device

2014-02-27 Thread oliver
From: Oliver Neukum oneu...@suse.de This error case isn't reported during enumeration. Signed-off-by: Oliver Neukum oli...@neukum.org --- drivers/usb/core/hub.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 726f4a1

[PATCH 2/3] USB: hub: handle -ETIMEDOUT during enumeration

2014-02-27 Thread oliver
From: Oliver Neukum oneu...@suse.de I have a device that times out if enumerated after being switched on while connected. Increasing timeouts or retries doesn't help. The device needs an additional reset. Signed-off-by: Oliver Neukum oli...@neukum.org --- drivers/usb/core/hub.c | 15

[PATCH] uas: fix GFP_NOIO under spinlock

2014-03-28 Thread oliver
From: Oliver Neukum oneu...@suse.de Quote Dan: The patch e36e64930cff: uas: Use GFP_NOIO rather then GFP_ATOMIC where possible from Nov 7, 2013, leads to the following static checker warning: drivers/usb/storage/uas.c:806 uas_eh_task_mgmt() error: scheduling with locks held

[PATCH] uas: fix deadlocky memory allocations

2014-03-28 Thread oliver
From: Oliver Neukum oneu...@suse.de There is an allocation with GFP_NOIO with a spinlock held that the checker didn't catch. There are also two allocations with GFP_KERNEL in the pre-/post_reset code paths. That is no good because that is a part of the SCSI error handler. Signed-off-by: Oliver

[PATCH] uas: fix GFP_NOIO under spinlock

2014-03-28 Thread oliver
From: Oliver Neukum oneu...@suse.de Quote Dan: The patch e36e64930cff: uas: Use GFP_NOIO rather then GFP_ATOMIC where possible from Nov 7, 2013, leads to the following static checker warning: drivers/usb/storage/uas.c:806 uas_eh_task_mgmt() error: scheduling with locks held

[PATCH] uas: fix deadlocky memory allocations

2014-03-28 Thread oliver
From: Oliver Neukum oneu...@suse.de There is an allocation with GFP_NOIO with a spinlock held that the checker didn't catch. There are also two allocations with GFP_KERNEL in the pre-/post_reset code paths. That is no good because that is a part of the SCSI error handler. Signed-off-by: Oliver

[PATCH] uas: fix deadlocky memory allocations

2014-03-28 Thread oliver
From: Oliver Neukum oneu...@suse.de There are also two allocations with GFP_KERNEL in the pre-/post_reset code paths. That is no good because that is a part of the SCSI error handler. Signed-off-by: Oliver Neukum oli...@neukum.org --- drivers/usb/storage/uas.c | 4 ++-- 1 file changed, 2

[PATCH] uas: fix error handling during scsi_scan()

2014-03-28 Thread oliver
From: Oliver Neukum oneu...@suse.de intfdata is set only after scsi_scan(). uas_pre_reset() however needs intfdata to be valid and will follow the NULL pointer killing khubd. intfdata must be preemptively set before the host is registered and undone in the error case. Signed-off-by: Oliver

[PATCH] USB: reset resume quirk needed by a hub

2013-04-30 Thread oliver
From: Oliver Neukum oli...@neukum.org Werner Fink has reported problems with this hub. Signed-off-by: Oliver Neukum oli...@neukum.org --- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index 3113c1d..e14346a

[PATCH] usb: dwc3: memory ordering fix in close

2012-08-26 Thread oliver
From: Oliver Neukum oli...@neukum.org As a bitmap is used for free/used. As a device freed all memory operations must be scheduled before the bitmap is manipulated. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/dwc3/core.c |1 + 1 files changed, 1 insertions(+), 0 deletions

[PATCH] xhci: unified loggig of RESET_ON_RESUME

2014-05-14 Thread oliver
From: Oliver Neukum oneu...@suse.de Either we log for all chips we set the quirk for or for none. This patch reports it for all chips. Signed-off-by: Oliver Neukum oli...@neukum.org --- drivers/usb/host/xhci-pci.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers

[finished PATCH 05/21] ehci: no conditional compilation for interestingness

2013-11-18 Thread oliver
From: Oliver Neukum oneu...@suse.de Simple elemination of the conditional compilation Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/ehci-hub.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c

[finished PATCH 17/21] fusbh200: always compile debugfs support

2013-11-18 Thread oliver
From: Oliver Neukum oneu...@suse.de This is a step in the conversion to only use dynamic debugging. Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fusbh200-hcd.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host

[finished PATCH 09/21] fotg210: change dbg_port() to evaluate parameters only if needed

2013-11-18 Thread oliver
From: Oliver Neukum oneu...@suse.de For dynamic debug the overhead for evaluating parameters must be sacrificed only if the message is actually printed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers/usb/host/fotg210-hcd.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[finished PATCH 01/21] ohci: remove conditional compilation

2013-11-18 Thread oliver
From: Oliver Neukum oneu...@suse.de Conditional compilation for debugging is removed in favor of dynamic debugging. To do so 1. the support for debugfs is always compiled 2. the support for the ancient print_urb debugging aid is removed Signed-off-by: Oliver Neukum oneu...@suse.de --- drivers

  1   2   3   4   5   6   7   8   9   10   >