It seems that there is new and old revision of CH340.
authorsasano <sasano@openbsd.org>
Fri, 16 May 2014 14:05:39 +0000 (14:05 +0000)
committersasano <sasano@openbsd.org>
Fri, 16 May 2014 14:05:39 +0000 (14:05 +0000)
commit5165e579a145cd62a9fbbbd8c33e30b50d88b5d1
tree3564fa99de80cf3283958794efe884fd25219d66
parent16c58cd65257ee7f92b3564a6e0834c548ff5fbb
It seems that there is new and old revision of CH340.
Previous uchcom(4) driver targeted old one, and new one could not work
because of uchcom_set_line_control() broke the value of
UCHCOM_REG_LCR1(0x18).

To support new CH340, uchcom_set_line_control() and uchcom_reset_chip()
have been overhauled. Current uchcom(4) does not change the value of
UCHCOM_REG_LCR1 register, it means even/odd parity mode is no longer
supported with old CH340.

ok by mpi@
sys/dev/usb/uchcom.c