[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080429151436.GB10587@suse.de>
Date: Tue, 29 Apr 2008 08:14:36 -0700
From: Greg KH <gregkh@...e.de>
To: Takashi Iwai <tiwai@...e.de>
Cc: Stas Sergeev <stsp@...et.ru>,
Linux kernel <linux-kernel@...r.kernel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>
Subject: Re: patch
driver-core-warn-about-duplicate-driver-names-on-the-same-bus.patch
added to gregkh-2.6 tree
On Tue, Apr 29, 2008 at 12:41:56PM +0200, Takashi Iwai wrote:
> At Mon, 28 Apr 2008 21:58:49 -0700,
> Greg KH wrote:
> >
> > On Tue, Apr 29, 2008 at 08:48:08AM +0400, Stas Sergeev wrote:
> > > Hello.
> > >
> > > gregkh@...e.de wrote:
> > > > This is a note to let you know that I've just added the patch titled
> > > > Subject: driver core: warn about duplicate driver names on the same bus
> > > > to my gregkh-2.6 tree. Its filename is
> > > Thanks.
> > >
> > > Takashi, do you think this fixes the
> > > pcspkr/snd-pcsp conflict sufficienly
> > > well? I think the Kconfig protection
> > > is no longer needed. For the better
> > > convinience the modprobe rule can be
> > > created that will remove one driver
> > > before inserting another. But this is
> > > optional.
> >
> > No, don't rely on the driver core warning and catching code errors like
> > this, that's not a good idea at all. I like the warning and your patch,
> > but don't assume it's always going to be there.
>
> But multiple drivers for the same device are allowed on other buses
> like PCI. I think this is no reason to prohibit the multiple platform
> drivers for the same platform device.
No, the driver core doesn't allow that at all right now (I'm working on
fixing that though...)
What this patch did is just not allow you to have the same "name" for
the driver on the same bus, which is reasonable as without the check,
sysfs complains about trying to create a duplicate name in the same
directory.
Different names is fine, and I'll continue to work on the ability to
allow multiple drivers for the same device at the same time...
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists