Re: [PATCH] More ISAPNP IDs for serial.c

From: Theodore Y. Ts'o (tytso@MIT.EDU)
Date: Mon May 22 2000 - 10:36:39 EST


   Date: Thu, 20 Apr 2000 11:35:25 -0400
   From: James Mastros <james@rtweb.net>

   This has explained a little buglet: it's apparently possible for a modem
   (like mine, for example) to be detected more then once, under a "normal" and
   a "compat" id. In the case of the serial driver, this results in an
   apparently harmless "SERIAL: PNP device 'PNPc10f' prepare failed" message
   at loadtime. However, I'm betting that it could produce more... wierd
   results in other drivers, like producing two detected devices with two
   different configurations, the first of which wouldn't work, because the
   config of the physical device was changed for the second.

   This would seem to be a Bad Thing. Perhaps the device should be marked as
   "claimed" under it's device id/serial number/logical device id tripple,
   which should be universily unique, so that it won't be deteced by later
   calls to isapnp_find_dev.

Is there some way we can tell that a two PNP device structures
correspond to the same device? That is, if we detect a model-specific
entry, and we use that, can we determine that the generic entry
corresponds to the same physical device? Otherwise, we won't be able to
detect that the device has been "claimed".

                                                        - Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:21 EST