Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2012 14:31:33 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        Ed Schouten <ed@80386.nl>, freebsd-current@freebsd.org
Subject:   Re: ttydev_cdevsw has no d_purge
Message-ID:  <20120808113133.GO2676@deviant.kiev.zoral.com.ua>
In-Reply-To: <201208071703.13773.hselasky@c2i.net>
References:  <20120801160323.GN2676@deviant.kiev.zoral.com.ua> <CAJOYFBD6Xa08LXuzzYha7Ev9WDJFN5%2BHEqDJ6a2C0puFGZ4-Qg@mail.gmail.com> <201208051033.13486.hselasky@c2i.net> <201208071703.13773.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--55kmsllhnyURxeAZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 07, 2012 at 05:03:13PM +0200, Hans Petter Selasky wrote:
> On Sunday 05 August 2012 10:33:13 Hans Petter Selasky wrote:
> > On Friday 03 August 2012 10:32:47 Ed Schouten wrote:
> > > 2012/8/1 Hans Petter Selasky <hselasky@c2i.net>:
> > > > I think the problem is like this, that in order to re-use the unit
> > > > numbers for USB serial tty devices, the USB stack needs to wait unt=
il a
> > > > TTY is actually freed, right? Else you will have a panic on creating
> > > > devfs entries having the same name.
> > >=20
> > > Indeed. So the USB code could simply pick a different unit number.
> >=20
> > Hi Ed,
> >=20
> > USB could use a different Unit number. Some questions:
> >=20
> > When can the previous unit number be re-used? Is there a callback for t=
his?
> >=20
> > When can the USB serial code assume that it will not be called again and
> > that all callbacks are drained?
> >=20
>=20
> Hi,
>=20
> Can you try the attached patch and report back?

I applied the patch and reloaded ucom and uplcom. So far there were no
power glitches so UPS did not dropped off the bus yet.

I have a question regarding the changed fragment of code. Why don't you use
unr(9) KPI to manage unit numbers ?

--55kmsllhnyURxeAZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAlAiThUACgkQC3+MBN1Mb4jmVQCfYHZOywd1x0Iaq0d7LckIXVKk
yvAAnilWFigHaDUOzbkm4+bpr9Zj4QTl
=wEwM
-----END PGP SIGNATURE-----

--55kmsllhnyURxeAZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120808113133.GO2676>