[PATCH v1 1/3] [media] mceusb: Disable "nonsensical irdata" messages

2019-06-01 Thread A Sun
... [60153.264064] mceusb 1-1.1.2:1.0: nonsensical irdata 00 with duration 0 ... due to reception of ambient IR noise. Change these warning messages to debug messages. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v1 2/3] [media] mceusb: Reword messages referring to "urb"

2019-06-01 Thread A Sun
rror message. Clean extraneous "\n" in dev_dbg messages. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index 0cd8f6f57..efffb1795 10064

[PATCH v1 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-01 Thread A Sun
also be necessary to prevent halt/clear-halt loops. Unresolved for now, deadlock complications occur if mceusb's worker thread, mceusb_deferred_kevent(), calls usb_reset_device(), which calls mceusb_dev_disconnect(), which calls cancel_work_sync(), which waits on the still active worker thre

[PATCH v1 0/3] [media] mceusb: Error message text and reporting revisions

2019-06-01 Thread A Sun
Several error message and error reporting revisions for mceusb.c proposed patches applicable to mceusb.c version https://github.com/torvalds/linux/blob/master/drivers/media/rc/mceusb.c Mar 1, 2019 commit 04ad30112aec61004f994d8f51461ec06e208e54 Test platform: Raspberry Pi 3B+ Linux raspberrypi

Re: [PATCH v1 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-06 Thread A Sun
Reset ..." message. I say "possible" because I'm running into multiple issues invoking usb_reset_device() from within mceusb. I'll also mention the difficulty obtaining even a single fault replication (~ 1/month) and test cycle. Additional comments below... ..A Sun On 6/6/

Re: [PATCH v1 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-08 Thread A Sun
ually) will be my patch resolution for the mceusb stuck halt bug for some time. In the meantime, I'll try and test (harder part) use of usb_queue_reset_device for a future patch to automate the USB reset procedure. Thanks again, ..A Sun

[PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-06-19 Thread A Sun
rror message. Clean extraneous "\n" in dev_dbg messages. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index 0cd8f6f57..efffb1795 10064

[PATCH v2 1/3] [media] mceusb: Disable "nonsensical irdata" messages

2019-06-19 Thread A Sun
... [60153.264064] mceusb 1-1.1.2:1.0: nonsensical irdata 00 with duration 0 ... due to reception of ambient IR noise. Change these warning messages to debug messages. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v2 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-19 Thread A Sun
n(), were all unsuccessful. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index efffb1795..fffd826c6 100644 --- a/drivers/media/rc/mceus

[PATCH v2 0/3] [media] mceusb: Error message text revisions

2019-06-19 Thread A Sun
patch v2 revisions: . limit patch to message changes only in part 3/3 Several error message revisions for mceusb.c proposed patches applicable to mceusb.c version https://github.com/torvalds/linux/blob/master/drivers/media/rc/mceusb.c Mar 1, 2019 commit 04ad30112aec61004f994d8f51461ec06e208e5

Re: [PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-06-25 Thread A Sun
Hi, On 6/25/2019 6:51 AM, Sean Young wrote: > On Wed, Jun 19, 2019 at 03:54:21AM -0400, A Sun wrote: >> >> -dev_err(ir->dev, "Error: request urb status = %d (TX HALT)", >> +dev_err(ir->dev, "Error: tx urb status = %d (TX HA

Re: [PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-06-25 Thread A Sun
Hi again, On 6/25/2019 12:12 PM, Sean Young wrote: > Hello, > > On Tue, Jun 25, 2019 at 11:01:32AM -0400, A Sun wrote: >> On 6/25/2019 6:51 AM, Sean Young wrote: >>> On Wed, Jun 19, 2019 at 03:54:21AM -0400, A Sun wrote: >>>> >> >>>> -

[PATCH v1] [media] mceusb: USB reset device following USB clear halt error

2019-07-14 Thread A Sun
or case by itself. This is the same sequence of messages when manually invoking the ./usbreset command line utility with an unpatched mceusb driver. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 67 ++- 1 file changed, 55 insertions(+), 12 deletion

Re: [PATCH v2 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-07-14 Thread A Sun
This patch is superseded by [PATCH v1] [media] mceusb: USB reset device following USB clear halt error

Re: [PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-07-21 Thread A Sun
Hi again, On 7/15/2019 8:28 AM, Sean Young wrote: > Hi, > > On Tue, Jun 25, 2019 at 05:29:02PM -0400, A Sun wrote: >> In a quick look though other USB drivers, here are some other possibilities: >> >> Endpoint-in / Endpoint-out (not concise) >> ep-in / ep-

[PATCH v1] [media] mceusb: fix (eliminate) TX IR signal length limit

2019-08-15 Thread A Sun
.3:1.0: tx done status = 11 (wait = 98, expire = 100 (1000ms), urb->actual_length = 11, urb->status = 0) Hex dumps limited to 64 bytes. 0x81 is MCE minimum time pulse, 0x01 is MCE minimum time space. TX IR part 3 sz=11 shows 20msec I/O blocking delay (100expire - 98wait = 2jiffies) Sign

[PATCH v1] [media] mceusb: fix out of bounds read in MCE receiver buffer

2019-09-06 Thread A Sun
. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 141 -- 1 file changed, 98 insertions(+), 43 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index f9ed855e2..9c1cf53b0 100644 --- a/drivers/media/rc/mceusb.c +++ b/

[PATCH] [media] mceusb: add IR learning support features (IR carrier frequency measurement and wide-band/short range receiver)

2018-03-11 Thread A Sun
600 pulse 550 space 600 pulse 600 space 600 pulse 650 carrier 38803 space 16777215 ^C pi@raspberrypi:~ $ exit Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 90 ++- 1 file changed, 82 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc

[PATCH v2 0/1] media: mceusb: add IR learning support features (IR carrier frequency measurement and wide-band/short-range receiver)

2018-03-14 Thread A Sun
Hi Sean, Thanks again for your review and notes. I'm forwarding PATCH v2 after this note. Please also see my notes below. ..A Sun On 3/13/2018 6:38 AM, Sean Young wrote: > Hi, > > On Sun, Mar 11, 2018 at 05:40:28AM -0400, A Sun wrote: >> >> >> Add mceusb dr

[PATCH v2 1/1] media: mceusb: add IR learning support features (IR carrier frequency measurement and wide-band/short-range receiver)

2018-03-14 Thread A Sun
errypi:~ $ ir-ctl -m -r ... pulse 650 space 550 pulse 650 space 600 pulse 600 space 600 pulse 1200 space 600 pulse 650 space 550 pulse 650 space 600 pulse 600 space 600 pulse 550 carrier 40004 space 16777215 ^C pi@raspberrypi:~ $ exit Signed-off-by: A Sun --- drivers/med

[PATCH v3 1/1] media: mceusb: add IR learning support features (IR carrier frequency measurement and wide-band/short-range receiver)

2018-03-16 Thread A Sun
tl -V IR raw version 1.12.3 pi@raspberrypi:~ $ ir-ctl -m -r ... pulse 650 space 550 pulse 650 space 600 pulse 600 space 600 pulse 1200 space 600 pulse 650 space 550 pulse 650 space 600 pulse 600 space 600 pulse 550 carrier 40004 space 16777215 ^C pi@raspberrypi:~ $ exit Signed-off-by: A Sun --- drive

[PATCH v3 0/1] media: mceusb: add IR learning support features (IR carrier frequency measurement and wide-band/short-range receiver)

2018-03-16 Thread A Sun
Hi Sean, Thanks again for your review and notes. I'm forwarding PATCH v3 after this note. Please also see my notes below. ..A Sun On 3/15/2018 8:46 AM, Sean Young wrote: > On Wed, Mar 14, 2018 at 03:32:02PM -0400, A Sun wrote: >> patch v2 revisions: >> . Carrier frequency

[PATCH] mceusb: RX -EPIPE lockup fault and more

2017-03-25 Thread A Sun
commit https://github.com/asunxx/linux/commit/e557c1d737462961f2aadfbfb0836ffa3c778518 Author: A Sun Date: Sat Mar 25 02:42:03 2017 -0400 [PATCH] mceusb RX -EPIPE fault and more Patch for mceusb driver tested with [8.627769] mceusb 1-1.2:1.0: Registered Pinnacle Systems PCTV Remote USB

Re: [PATCH 0/3] [media] mceusb: RX -EPIPE lockup fault and more

2017-03-26 Thread A Sun
edia] mceusb: RX -EPIPE (urb status = -32) lockup failure fix [PATCH 2/3] [media] mceusb: sporadic RX truncation corruption fix [PATCH 3/3] [media] mceusb: fix inaccurate debug buffer dumps and misleading debug messages Thanks again. ..A Sun

[PATCH 1/3] [media] mceusb: RX -EPIPE (urb status = -32) lockup failure fix

2017-03-26 Thread A Sun
commit https://github.com/asunxx/linux/commit/17fe3b51f4ad5202a876ea4c92b5d99d4e166823 Author: A Sun Date: Sun, 26 Mar 2017 13:24:18 -0400 Bug: RX -EPIPE failure with infinite loop and flooding of Mar 20 22:24:56 raspberrypi kernel: [ 2851.966506] mceusb 1-1.2:1.0: Error: urb status = -32

[PATCH 2/3] [media] mceusb: sporadic RX truncation corruption fix

2017-03-26 Thread A Sun
commit https://github.com/asunxx/linux/commit/d71c609e99cabc0a92a4d0b225486cbc09bbd8bd Author: A Sun Date: Sun, 26 Mar 2017 14:11:49 -0400 Bug: Intermittent RX truncation and loss of IR received data. This resulted in receive stream synchronization errors where driver attempted to

[PATCH 3/3] [media] mceusb: fix inaccurate debug buffer dumps,and misleading debug messages

2017-03-26 Thread A Sun
commit https://github.com/asunxx/linux/commit/14cae79824739ae03caa3b1c4f66cbdf73654bde Author: A Sun Date: Sun, 26 Mar 2017 14:55:31 -0400 Bug: Some dev_dbg messages are misleading. Some dev_dbg messages have inconsistent formatting. mceusb_dev_printdata() prints incorrect range of bytes (0

Re: [PATCH 1/3] [media] mceusb: RX -EPIPE (urb status = -32) lockup failure fix

2017-03-27 Thread A Sun
On 3/26/2017 4:31 PM, Sean Young wrote: > On Sun, Mar 26, 2017 at 02:28:08PM -0400, A Sun wrote: >> commit >> https://github.com/asunxx/linux/commit/17fe3b51f4ad5202a876ea4c92b5d99d4e166823 >> Author: A Sun >> Date: Sun, 26 Mar 2017 13:24:18 -0400 >

Re: [PATCH 1/3] [media] mceusb: RX -EPIPE (urb status = -32) lockup failure fix

2017-03-28 Thread A Sun
Mar 22 12:16:36 raspberrypi kernel: [ 4864.648331] mceusb 1-1.2:1.0: rx data: 90 0b 8d 0b 8d 7f 7f 7f 72 b0 0c 98 0c 8c 0c 98 0c (length=17) ... Thanks, ..A Sun

Re: [PATCH 1/3] [media] mceusb: RX -EPIPE (urb status = -32) lockup failure fix

2017-03-29 Thread A Sun
t a new patch proposal separate, and likely dependent, on this one. My main obstacle at the moment, is I'm looking for a way to get mceusb device to respond with a USB TX error halt/stall (rather than the typical ACK and NAK) on a TX endpoint, in order to test halt/stall error detection and recovery for TX. ..A Sun

Re: [PATCH 1/3] [media] mceusb: RX -EPIPE (urb status = -32) lockup failure fix

2017-03-30 Thread A Sun
On 3/30/2017 3:12 AM, Sean Young wrote: > On Wed, Mar 29, 2017 at 06:04:58PM -0400, A Sun wrote: >> On 3/29/2017 5:06 PM, Sean Young wrote: >> >>> >>> Anyway, you're right and this patch looks ok. It would be nice to have the >>> tx c

[PATCH] [media] mceusb: TX -EPIPE (urb status = -32) lockup fix

2017-04-12 Thread A Sun
necessary to restore this device to working state. Certain mceusb devices may require device specific recovery procedure for TX halt conditions, which this patch does not address. Signed-off-by: A Sun --- drivers/media/rc/mceusb.c | 89 +-- 1 fi

[PATCH v2] [media] mceusb: TX -EPIPE (urb status = -32) lockup fix

2017-04-13 Thread A Sun
vocations cease, and there are no other error indications from usb_submit_urb() or anywhere else. An escalating USB reset was necessary to restore this device to working state. Certain mceusb devices may require device specific recovery procedure for TX halt conditions, which this patch does not address.

[PATCH 0/1] [media] mceusb: coding style & comments update, for -EPIPE error patches

2017-04-29 Thread A Sun
eview comments. On 4/27/2017 4:54 PM, Sean Young wrote: > On Thu, Apr 13, 2017 at 04:06:47AM -0400, A Sun wrote: >> @@ -1220,16 +1221,28 @@ static void mceusb_deferred_kevent(struct >> work_struct *work) >> if (status < 0) { >> dev_e

[PATCH 1/1] [media] mceusb: coding style & comments update for -EPIPE error patches

2017-04-29 Thread A Sun
Cosmetic updates to recent code revisions for better compliance with https://www.kernel.org/doc/html/latest/process/coding-style.html This patch depends on an earlier (marked accepted) patch: [PATCH v2] [media] mceusb: TX -EPIPE (urb status = -32) lockup fix Signed-off-by: A Sun --- drivers