Re: Accessing usb serial adapter HL-340 panics system

看板DFBSD_bugs作者時間16年前 (2010/01/10 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
This patch fixes the panic according to my tests: diff --git a/sys/dev/usbmisc/uchcom/uchcom.c b/sys/dev/usbmisc/uchcom/uchcom.c index 353552e..d925d9c 100644 --- a/sys/dev/usbmisc/uchcom/uchcom.c +++ b/sys/dev/usbmisc/uchcom/uchcom.c @@ -276,6 +276,7 @@ uchcom_attach(device_t self) sc->sc_intr_size = endpoints.ep_intr_size; /* setup ucom layer */ + ucom->sc_parent = sc; ucom->sc_portno = UCOM_UNK_PORTNO; ucom->sc_bulkin_no = endpoints.ep_bulkin; ucom->sc_bulkout_no = endpoints.ep_bulkout; Now I can use tip and cu and minicom on /dev/ucom0 without panicing the system. But still it won't really work. I get such messages in dmesg: ucom0: ucomreadcb: IOERROR ucom0: ucomreadcb: IOERROR ucom0: ucomreadcb: IOERROR ucom0: ucomreadcb: CANCELLED ucom0: cannot reset: IOERROR and putc to a clist with no reserved cblocks I found an error description for FBSD and another driver that seems match otherwise: http://groups.google.com/group/mailing.freebsd.stable/browse_thread/thread/27b3ebcdd9cf1e00 But I am not really getting much out of that. Maybe someone could read through that and evaluate if this helps in my case? Thanks a lot in advance Jan
文章代碼(AID): #1BID9tjc (DFBSD_bugs)
文章代碼(AID): #1BID9tjc (DFBSD_bugs)