linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Ever-increasing serio device number
@ 2007-06-21 21:00 Jean Delvare
  2007-06-22 19:30 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2007-06-21 21:00 UTC (permalink / raw)
  To: linux-input, Dmitry Torokhov

Hi Dmitry, hi all,

While developing my i2c-taos-evm driver [1], I noticed that my device
was getting a new serio device number each time I cycled my driver. It
started as serio2, and after an afternoon of testing, it was serio19.
I'm curious, is this intended? I expected freed numbers to be reused,
as i2c does.

If this isn't supposed to happen, would this be a bug in the serio
driver, or in my driver (maybe not releasing some resource properly)?

Thanks.

[1] http://lists.lm-sensors.org/pipermail/i2c/2007-June/001508.html

-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ever-increasing serio device number
  2007-06-21 21:00 Ever-increasing serio device number Jean Delvare
@ 2007-06-22 19:30 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2007-06-22 19:30 UTC (permalink / raw)
  To: Jean Delvare; +Cc: linux-input

Hi Ejan,

On 6/21/07, Jean Delvare <khali@linux-fr.org> wrote:
> Hi Dmitry, hi all,
>
> While developing my i2c-taos-evm driver [1], I noticed that my device
> was getting a new serio device number each time I cycled my driver. It
> started as serio2, and after an afternoon of testing, it was serio19.
> I'm curious, is this intended? I expected freed numbers to be reused,
> as i2c does.
>
> If this isn't supposed to happen, would this be a bug in the serio
> driver, or in my driver (maybe not releasing some resource properly)?
>

Serio system (as well as gameport and input core) simply assign next
number for each newly registered serio device, it does not try to
reuse old ids. If you want to identify a specific device you need to
rely on phys and id/* attributes (when available).

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-22 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-21 21:00 Ever-increasing serio device number Jean Delvare
2007-06-22 19:30 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).