From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 29 Apr 2009 20:18:21 +0000 Subject: Re: Best practice for loading platform modules Message-Id: <20090429201821.GA20814@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Apr 29, 2009 at 03:53:53PM -0400, Chris Hallinan wrote: > On Wed, Apr 29, 2009 at 3:46 PM, Kay Sievers wrote: > > On Wed, Apr 29, 2009 at 21:35, Chris Hallinan wrote: > > > >> Erm, I am the distro maintainer! Heh, my condolences... You should possibly post from your company email address if you expect us to know this, gmail.com doesn't exactly specify much :) > >> I tried just today w/ 2.6.29. The > >> problem seems like a mismatch. Kernel passes "platform:musb_hdrc". > >> Udev receives and passes same to modprobe. The answer I'm seeking is > >> "what is the correct/proper approach?" Should I seek to modify the > >> kernel and remove the "platform:" prefix, or should I seek a > >> modification to modprobe to be able to understand and strip off the > >> "platform:" prefix? Or should udev have a construct/rules syntax to > >> strip the "platform:" prefix? > > > > The module itself, if that's still needed. > > > > OK, the light bulb just came on! > > Thanks, Kay, and Greg for hanging in there with me. I added > MODULE_ALIAS("platform:musb_hdrc) to musb_core.c, and all works as advertised. But that alias is already there, it was added in the 2.6.27-rc kernel, in commit 550a7375. So I'm confused as to why 2.6.29 would not work properly for you. thanks, greg k-h