From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Levitsky Date: Mon, 14 Jun 2010 23:55:49 +0000 Subject: Re: New rule for xD FTL driver Message-Id: <1276559749.14542.2.camel@maxim-laptop> List-Id: References: <1276347244.4481.15.camel@maxim-laptop> In-Reply-To: <1276347244.4481.15.camel@maxim-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 2010-06-14 at 09:46 -0700, Greg KH wrote: > On Sat, Jun 12, 2010 at 03:54:04PM +0300, Maxim Levitsky wrote: > > Hi, > > > > I have written a driver for xD card reader and xD/SmartMedia FTL that is > > usually mandatory to use with xD cards. > > > > I think this can be added to 80-drivers.rule > > SUBSYSTEM="mtd", RUN+="/sbin/modprobe sm_ftl" > > Why does this module not have the proper MODULE_DEVICE() or aliases in > it so that you don't have to manually load the module? This should not > need to be a udev rule. Well mtd system is not using bus model. However a card needs to be probed (theoteticly) by several high-level FTL drivers to make one of them to bind to it. (In fact several can bind at same now, which is both bad and good feature). I understand that module can have aliases so it can bind to a bus. Of course I can do a 'request_module', but I think it isn't nice thing to do. I can also attach alias to uevent which is sent to udev, but its also not easy to do with mtd. Best regards, Maxim Levitsky