All of lore.kernel.org
 help / color / mirror / Atom feed
* acm/ttyACM0/cdc_acm does not deliver data
@ 2011-10-06 19:19 AW
  2011-10-06 19:41 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: AW @ 2011-10-06 19:19 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

Hi!

I made some USB devices using the CDC-ACM proposal...
They work fine with 2.6.38.8-35.fc15/amd64 and earlier.

But since 2.6.40-4.fc15/amd64 it doesnt work as before...


My device receives a byte and then echoes it...
Sometimes when the 65th byte is sent, a read(2) returns with 0...
When I close the device and open it again and send 1 byte, I receive the echo for the 65th byte...
(btw: after 65 bytes, the roles change: my self-tinkered device sends 65bytes and listens to the echoes...)
Funnily some 65-byte-sequences are always echoed as before, while some are not (I tried it at least 10 times; I think the "bad" sequences had a lot of zeroes...)...

On my headless Atom N270 I have 1 self-tinkered USB-ACM-device and 2 DVB-T USB sticks...
When I boot the 2.6.40 kernel it crashes after some minutes...

Can we change that somehow? *wag tail*
Is it safe to use 2.6.38.8-35 behind a NAT? (I mean: r there big security holes?)

PS: I reported it here https://bugzilla.redhat.com/show_bug.cgi?id=727610 , but fedora/redhat cant help me so much, because i m the only one who has that problem...

Thx.

Bye
Arne

^ permalink raw reply	[flat|nested] 6+ messages in thread
* (no subject)
@ 2011-10-07  8:40 AW
  2011-10-07  8:44 ` acm/ttyACM0/cdc_acm does not deliver data AW
  0 siblings, 1 reply; 6+ messages in thread
From: AW @ 2011-10-07  8:40 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org; +Cc: Greg KH

> Can you try a kernel.org release instead of a Fedora kernel?
>
never tried that... can i just download a rpm and install it?

> If not, please post the output of running the usbmon [...]

>
I did that:
On the 2.6.38 kernel: each try works fine...
http://www.wgboome.org/cmd:Z-L-0,2.6.38.8-35.fc15.x86_64.usbmon

On the 2.6.40 kernel (=3.0.6?): both tries failed (but the 2nd try with slightly different beginning):
http://www.wgboome.org/cmd:Z-L-0,1st-try,2.6.40.6-0.fc15.x86_64.usbmon

http://www.wgboome.org/cmd:Z-L-0,2nd-try,2.6.40.6-0.fc15.x86_64.usbmon


-arne

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: acm/ttyACM0/cdc_acm does not deliver data
@ 2011-10-08 23:00 AW
  0 siblings, 0 replies; 6+ messages in thread
From: AW @ 2011-10-08 23:00 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

I tried a vanilla kernel now (built from the fedora SRPM after some help by Piotr H....)...

The command that works on the vanilla kernel (_and_ on the official fc15 kernel) looks to usbmon on the vanilla kernel like this:
http://www.wgboome.org/cmd:P-C,2.6.40.6-0.local.fc15.x86_64.usbmon


(the command "P C" switches receive/send-roles much faster (i guess: less than 1msec) than the command "Z L 0" (I guess 50msec); during that time interrupts r disabled and the ATtiny doesnt care for USB things... *blush* but why did the "old" USB subsystem didnt complain about it? and what about my professional DVB-T USB sticks?)

On the vanilla kernel the command "Z L 0" doesnt work as before:
http://www.wgboome.org/cmd:Z-L-0,2nd-try,2.6.40.6-0.local.fc15.x86_64.usbmon


-arne

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: acm/ttyACM0/cdc_acm does not deliver data
@ 2011-11-22  6:50 AW
  0 siblings, 0 replies; 6+ messages in thread
From: AW @ 2011-11-22  6:50 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

yesterday i changed some features of my self-tinkered USB device (especially no deep sleep anymore and other measures for faster reaction on interrupts)...

now everything works fine again (with fc15's 2.6.41)... the USB TV sticks work good again, 2... :-)

thx for pointing me to usbmon (it helped me to c that my device is not USBish enough)...

-arne

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-22  6:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 19:19 acm/ttyACM0/cdc_acm does not deliver data AW
2011-10-06 19:41 ` Greg KH
2011-10-06 19:51   ` Josh Boyer
  -- strict thread matches above, loose matches on Subject: below --
2011-10-07  8:40 AW
2011-10-07  8:44 ` acm/ttyACM0/cdc_acm does not deliver data AW
2011-10-08 23:00 AW
2011-11-22  6:50 AW

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.