* Should we make dmi_check_system case insensitive?
@ 2006-05-29 5:31 Dmitry Torokhov
2006-05-29 6:14 ` Jeff Garzik
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2006-05-29 5:31 UTC (permalink / raw)
To: LKML, ; +Cc: Vojtech Pavlik, Bjorn Helgaas, Andi Kleen, Andrey Panin
Hi,
I have a request to add entry for "LifeBook B Series" to lifebook driver to
accomodate lifebook B2545, however we already have entry for "LIFEBOOK B
Series" (used by some other model) which is not working. Would anyone
be opposed making dmi_check_system() ignore string case? We would have to
malloc/copy both strings and lowercase them before doing stsstr...
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Should we make dmi_check_system case insensitive?
2006-05-29 5:31 Should we make dmi_check_system case insensitive? Dmitry Torokhov
@ 2006-05-29 6:14 ` Jeff Garzik
2006-05-29 6:19 ` Arjan van de Ven
2006-05-29 7:19 ` Vojtech Pavlik
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2006-05-29 6:14 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: LKML, , Vojtech Pavlik, Bjorn Helgaas, Andi Kleen, Andrey Panin
Dmitry Torokhov wrote:
> I have a request to add entry for "LifeBook B Series" to lifebook driver to
> accomodate lifebook B2545, however we already have entry for "LIFEBOOK B
> Series" (used by some other model) which is not working. Would anyone
> be opposed making dmi_check_system() ignore string case? We would have to
> malloc/copy both strings and lowercase them before doing stsstr...
I was thinking that something like this would eventually be necessary.
My mind even wandered into the land of wildcards and regexes...
But be wary... DMI stuff is often used early enough that memory
allocation may be a bad idea (it seems to use a special dmi_alloc
function, at the very least).
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Should we make dmi_check_system case insensitive?
2006-05-29 5:31 Should we make dmi_check_system case insensitive? Dmitry Torokhov
2006-05-29 6:14 ` Jeff Garzik
@ 2006-05-29 6:19 ` Arjan van de Ven
2006-05-29 7:19 ` Vojtech Pavlik
2 siblings, 0 replies; 4+ messages in thread
From: Arjan van de Ven @ 2006-05-29 6:19 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: LKML,, Vojtech Pavlik, Bjorn Helgaas, Andi Kleen, Andrey Panin
On Mon, 2006-05-29 at 01:31 -0400, Dmitry Torokhov wrote:
> Hi,
>
> I have a request to add entry for "LifeBook B Series" to lifebook driver to
> accomodate lifebook B2545, however we already have entry for "LIFEBOOK B
> Series" (used by some other model) which is not working. Would anyone
> be opposed making dmi_check_system() ignore string case?
yes I would.
There are very legit reasons to be able to separate both machines, for
other things they may well be not the same after all. Once you go case
insensitive you can't separate at all anymore; I rather have an
occasional "dupe" in the table than a really huge mess of things you
can't keep separate anymore....
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Should we make dmi_check_system case insensitive?
2006-05-29 5:31 Should we make dmi_check_system case insensitive? Dmitry Torokhov
2006-05-29 6:14 ` Jeff Garzik
2006-05-29 6:19 ` Arjan van de Ven
@ 2006-05-29 7:19 ` Vojtech Pavlik
2 siblings, 0 replies; 4+ messages in thread
From: Vojtech Pavlik @ 2006-05-29 7:19 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: LKML, , Bjorn Helgaas, Andi Kleen, Andrey Panin
On Mon, May 29, 2006 at 01:31:41AM -0400, Dmitry Torokhov wrote:
> Hi,
>
> I have a request to add entry for "LifeBook B Series" to lifebook driver to
> accomodate lifebook B2545, however we already have entry for "LIFEBOOK B
> Series" (used by some other model) which is not working. Would anyone
> be opposed making dmi_check_system() ignore string case? We would have to
> malloc/copy both strings and lowercase them before doing stsstr...
I think it's easier to just add the second entry. We're trying to
distinguish individual machines here, the fact that we have a single DMI
entry accomodating a whole series is an exception.
--
Vojtech Pavlik
Director SuSE Labs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-29 7:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-29 5:31 Should we make dmi_check_system case insensitive? Dmitry Torokhov
2006-05-29 6:14 ` Jeff Garzik
2006-05-29 6:19 ` Arjan van de Ven
2006-05-29 7:19 ` Vojtech Pavlik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.