tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Tidy up / simplify "com" register initialization



On 2018/12/04 13:53, Jason Thorpe wrote:
I'm working on an application where I need some additional run-time flexibility

PLEASE!
sys/dev/ic/com.c has some compile time #ifdef 's and it cause bad
effect to usb serial and/or puc com devices.


in how the "com" driver register map is setup.  COM_REGMAP cam do the job, but there is some untidiness around how com_regs is initialized.  This patch is a small step in cleaning that up, with some other minor changes to follow later.

This has been compiled-tested everywhere, and I will spot-check on a few different devices that I have handy.  Most of the changes are purely mechanical.

I'll commit in a couple of days unless there are serious objections.

Thx.

	https://www.dropbox.com/s/xl4y3jv2u68bnr2/com_regs-patch.txt

-- thorpej



--
-----------------------------------------------
                SAITOH Masanobu (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index