Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ucom(4) hang up



Hi! Martin and Tobias,


From: KIYOHARA Takashi <kiyohara%kk.iij4u.or.jp@localhost>
Date: Wed, 17 Feb 2010 16:17:38 +0900 (JST)

> My ucom(4) devices (ucom@uftdi x2) hangs up when tip(1) is executed.
> After this change, it is happened.
> 
>   
> http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/ucom.c.diff?r1=1.81&r2=1.82&only_with_tag=MAIN&f=h

I understood this problem.
uftdi(4) might receive state information only, not the data part.
uftdi_read() will return cp+2 and set 0 to cc.
And, neither uc_index nor uc_len never become the same though ucomreadcb()
calls ucom_read_complete().

Should variable cc return the data size of the remainder?
Or, the total receive data size?

Thanks,
--
kiyohara


Home | Main Index | Thread Index | Old Index