usb/162307: [uslcom][patch] cp2103 usb-to-serial driver does not
support modem control lines
JD Louw
jdl.ntq at gmail.com
Wed Nov 9 09:00:33 UTC 2011
The following reply was made to PR usb/162307; it has been noted by GNATS.
From: JD Louw <jdl.ntq at gmail.com>
To: bug-followup at FreeBSD.org, jl at nanoteq.com
Cc:
Subject: Re: usb/162307: [uslcom][patch] cp2103 usb-to-serial driver does not
support modem control lines
Date: Wed, 9 Nov 2011 10:33:47 +0200
--bcaec544f0ae90b72e04b14925bc
Content-Type: multipart/alternative; boundary=bcaec544f0ae90b72b04b14925ba
--bcaec544f0ae90b72b04b14925ba
Content-Type: text/plain; charset=ISO-8859-1
Tested OK.
Recently I came across new app note (AN571) on SiLabs's website, describing
the cp210x registers in detail. Attached is another minor patch with some
further cleanups:
1) Use interface no 0 (wIndex field) for all control transfers
2) Remove reserved mask on flow control.
I plan on adding GPIO support later on. Should I add this as a custom IOCTL?
Thanks
--bcaec544f0ae90b72b04b14925ba
Content-Type: text/html; charset=ISO-8859-1
Tested OK.<div><br></div><div>Recently I came across new app note (AN571) on SiLabs's website, describing the cp210x registers in detail. Attached is another minor patch with some further cleanups:</div><div><br></div>
<div>1) Use interface no 0 (wIndex field) for all control transfers</div><div>2) Remove reserved mask on flow control.</div><div><br></div><div>I plan on adding GPIO support later on. Should I add this as a custom IOCTL?</div>
<div><br></div><div>Thanks</div><div><br></div>
--bcaec544f0ae90b72b04b14925ba--
--bcaec544f0ae90b72e04b14925bc
Content-Type: text/plain; charset=US-ASCII; name="cleanup.patch.txt"
Content-Disposition: attachment; filename="cleanup.patch.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gus2238t0
LS0tIHVzbGNvbV8xXzIyLmMJMjAxMS0xMS0wNyAxOTo0NTozMS4wMDAwMDAwMDAgKzAyMDAKKysr
IHVzbGNvbV8xXzIyX2ZpeF9mbG93LmMJMjAxMS0xMS0wNyAyMToyMTo0NS4wMDAwMDAwMDAgKzAy
MDAKQEAgLTEwMCwxOCArMT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pZiAodC0+Y19jZmxhZyAmIENSVFNDVFMpIHsKLQkJZmxv
d2N0cmxbMF0gPSBodG9sZTMyKFVTTENPTV9GTE9XX1JFU0VSVkVEIHwKLQkJICAgIFVTTENPTV9G
TE9XX0RUUl9PTiB8IFVTTENPTV9GTE9XX0NUU19IUyk7CisJCWZsb3djdHJsWzBdID0gaHRvbGUz
MihVU0xDT01fRkxPV19EVFJfT04gfCBVU0xDT01fRkxPV19DVFNfSFMpOwogCQlmbG93Y3RybFsx
XSA9IGh0b2xlMzIoVVNMQ09NX0ZMT1dfUlRTX0hTKTsKIAkJZmxvd2N0cmxbMl0gPSAwOwogCQlm
bG93Y3RybFszXSA9IDA7CiAJfSBlbHNlIHsKLQkJZmxvd2N0cmxbMF0gPSBodG9sZTMyKFVTTENP
TV9GTE9XX1JFU0VSVkVEIHwKLQkJICAgIFVTTENPTV9GTE9XX0RUUl9PTik7CisJCWZsb3djdHJs
WzBdID0gaHRvbGUzMihVU0xDT01fRkxPV19EVFJfT04pOwogCQlmbG93Y3RybFsxXSA9IGh0b2xl
MzIoVVNMQ09NX0ZMT1dfUlRTX09OKTsKIAkJZmxvd2N0cmxbMl0gPSAwOwogCQlmbG93Y3RybFsz
XSA9IDA7CkBAIC02OTIsNyArNjg5LDcgQEAKIAkJcmVxLmJtUmVxdWVzdFR5cGUgPSBVU0xDT01f
UkVBRDsKIAkJcmVxLmJSZXF1ZXN0ID0gVVNMQ09NX1JDVFJMOwogCQlVU0VUVyhyZXEud1ZhbHVl
LCAwKTsKLQkJVVNFVFcocmVxLndJbmRleCwgMCk7CisJCVVTRVRXKHJlcS53SW5kZXgsIFVTTENP
TV9QT1JUX05PKTsKIAkJVVNFVFcocmVxLndMZW5ndGgsIHNpemVvZihidWYpKTsKICAgICAgICAg
ICAgICAgIAogCQl1c2JkX3hmZXJfc2V0X2ZyYW1lcyh4ZmVyLCAyKTsK
--bcaec544f0ae90b72e04b14925bc--
More information about the freebsd-usb
mailing list