- Fintek f81232 usb to serial driver
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 68823 Build 65706: arc lint + arc unit
Event Timeline
There is an sc_mtx created and used in attach. ucom handles locking for serial devices with their mutex.
| sys/dev/usb/serial/ufintek.c | ||
|---|---|---|
| 2 | I think we need an spdx identifier for new files. We don't need the full copyright text, but that call is up to you. | |
| 29 | Do we need this comment? | |
| 289 | ||
| 368 | Can you combine these lines, it makes grepping for the error message possible | |
| 653 | Should this be a device_printf? I'm not sure what the ZZZ is for | |
| sys/modules/ufintek/Makefile | ||
| 2 | Same spdx comment as above | |
This looks great to me, some small nits for which I have made comments.
Can you either remove the commented out code lines in the driver, or add additional context so we know why they are gone/what they are for when we eventually have to look in n years?
| sys/dev/usb/serial/ufintek.c | ||
|---|---|---|
| 2 |
Good idea. Done. | |
| 29 | Agreed and removed. | |
| 289 | moved not mored or moored. | |
| 368 | Done | |
| 653 | Eeek inadvertently left in a debug message. I often use ZZZ for these. | |
| sys/modules/ufintek/Makefile | ||
| 2 | Fixed. Also fixed a C'ism that crept into the Makefile. | |
| sys/dev/usb/serial/ufintek.c | ||
|---|---|---|
| 741 | These commented out lines are still here, can you add an explanation for why they are here, but commented out? | |
| sys/dev/usb/serial/ufintek.c | ||
|---|---|---|
| 741 | Sure. This chip interleaves LSR and data and my early thinking was if the driver saw a lot of bytes at once it might be better to de-interleave the bytes and use one call to ucom_put_data() instead of singly putting bytes so I tried it as an experiment. It worked fine but is unnecessary here. I'll remove the commented out lines. | |
http://www.freebsd.org/~db/ufintek.4
And ziaee has a copy
<fbsdslack:#bsddocs> <ziaee> db: if you let me know when you put it in the tree I'll put the line in HW Relnotes. Or you can do it if you want, it's at doc/website/archetypes/release/hardware.adoc