From: "Kay Sievers" Date: Mon, 18 Jun 2007 12:00:40 +0000 Subject: Re: usb card reader not detect hotplug of sd/cf cards Message-Id: <3ae72650706180500p7fb491d3k954f3be25545e924@mail.gmail.com> List-Id: References: <200706180942.44381.m.gruber@tirol.com> In-Reply-To: <200706180942.44381.m.gruber@tirol.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On 6/18/07, Manfred Gruber wrote: > I have problem with a SMSC USB2227/2228 card reader on a embedded device that > it does not detect hotplugging of the cards. > > if no sd/cf card is in the slot at booting i get (2.6.22-rc4): > > if I then insert a card i have to do: > > echo 1 > /sys/block/sdd/device/rescan > SCSI device sdd: 62720 512-byte hdwr sectors (32 MB) > sdd: Write Protect is off > sdd: assuming drive cache: write through > > and then the device is there. > > are there on normal linux workstations some daemons running which detect > hotpluging of such devices periodically or how is this handled. > > my problem is that on my workstation hotplugging of cards gets detected, but > on the embedded device not. > > so dose someone have an idea what to do, or make a small daemon which dose a > echo 1 > /sys/block/sdX/device/rescan periodicall ? > > or are there already some daemons which do this job ? Usually it is HAL (hald) which polls for media changes. You have to open() the the device node (/dev/sdX) every few seconds and media changes will be recognized. Kay ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel