Page MenuHomeFreeBSD

Fintek F81232 USB to serial driver
AcceptedPublic

Authored by db on Sun, Nov 23, 4:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 24, 3:42 PM
Unknown Object (File)
Mon, Nov 24, 3:42 PM
Unknown Object (File)
Mon, Nov 24, 2:59 PM
Unknown Object (File)
Mon, Nov 24, 2:59 PM
Unknown Object (File)
Mon, Nov 24, 2:59 PM
Unknown Object (File)
Mon, Nov 24, 2:58 PM
Unknown Object (File)
Mon, Nov 24, 12:29 PM
Unknown Object (File)
Mon, Nov 24, 6:21 AM
Subscribers

Details

Reviewers
adrian
thj
Group Reviewers
USB
Summary
  • Fintek f81232 usb to serial driver
Test Plan

I have only tested it on a Protecli box which came with a Fintek
USB to serial cable.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 68838
Build 65721: arc lint + arc unit

Event Timeline

db requested review of this revision.Sun, Nov 23, 4:00 PM

looks good to me but the lack of mutexes anywhere is suspicious. ;-)

looks good to me but the lack of mutexes anywhere is suspicious. ;-)

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

thj requested changes to this revision.Mon, Nov 24, 8:26 AM

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?

This revision now requires changes to proceed.Mon, Nov 24, 8:26 AM
db marked an inline comment as done.Mon, Nov 24, 1:28 PM
db added inline comments.
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.

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.

db marked an inline comment as done.

Updating D53893: Fintek F81232 USB to serial driver

Addressing reviewers changes

thj requested changes to this revision.Tue, Nov 25, 9:24 AM
thj added inline comments.
sys/dev/usb/serial/ufintek.c
742

These commented out lines are still here, can you add an explanation for why they are here, but commented out?

This revision now requires changes to proceed.Tue, Nov 25, 9:24 AM

Removing unecessary comment lines

These lines were an experiment but not necessary.

This revision is now accepted and ready to land.Wed, Nov 26, 10:02 AM