[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201008042343.27043.dmitry.torokhov@gmail.com>
Date: Wed, 4 Aug 2010 23:43:26 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Linus WALLEIJ <linus.walleij@...ricsson.com>
Cc: Greg KH <gregkh@...e.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
David Brownell <dbrownell@...rs.sourceforge.net>,
Russell King <linux@....linux.org.uk>,
"linux-embedded@...r.kernel.org" <linux-embedded@...r.kernel.org>,
Viresh KUMAR <viresh.kumar@...com>
Subject: Re: [PATCH] RFC: AMBA bus discardable probe() function
On Wednesday, August 04, 2010 11:26:00 pm Linus WALLEIJ wrote:
> [Greg]
>
> > [Me]
> >
> > > + spin_lock(&amba_bustype.p->klist_drivers.k_lock);
> >
> > Ick, nope, you can't do this, sorry. That's a "private" structure for
> > a reason.
>
> Yeah I get it, but in the platform bus case what's that traversal of
> the klists actually for? I didn't get it, and was guessing that it
> was considering the case where devices spawn new devices.
It is to check if the driver actually bound to any devices and fail driver
registration if it did not - then, in case of modular build, entire driver
module might get unloaded from memory as well.
--
Dmitry
--
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