All of lore.kernel.org
 help / color / mirror / Atom feed
From: DervishD <lkml@dervishd.net>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: USB card reader and HAL
Date: Fri, 29 Jun 2007 09:20:16 +0200	[thread overview]
Message-ID: <20070629072016.GA22715@DervishD> (raw)
In-Reply-To: <3ae72650706282222u6e5094ffp8e77c0735f39e43d@mail.gmail.com>

    Hi Kay :)

 * Kay Sievers <kay.sievers@vrfy.org> dixit:
> On 6/28/07, DervishD <lkml@dervishd.net> wrote:
> >    When I insert a card in the reader, it is not detected, no udev
> >event is generated and I have to do things like "hdparm -z /dev/sda" to
> >"probe" the card. Moreover, I have to do the same when removing the card
> >or the /dev/sdaX nodes are not deleted.
> >
> >    Is HAL the only way of making it work? Is there any CONFIG_ thing
> >I've forgotten in my kernel?
> 
> You have to open() the device node to trigger events from the kernel,
> the kernel itself will not do that for you. HAL polls the device every
> few seconds.

    So, opening the node and checking for ENOMEDIUM is the only
solution... Polling looks like a waste of time, and given that I use the
reader once a month or so, HAL will be a waste of resources. I'll resort
to manually do "hdparm -z" (or something similar) when I need to insert
or remove a card.

    Thanks for confirming, Kay :))

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

      reply	other threads:[~2007-06-29  7:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-28 21:43 USB card reader and HAL DervishD
2007-06-29  5:22 ` Kay Sievers
2007-06-29  7:20   ` DervishD [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070629072016.GA22715@DervishD \
    --to=lkml@dervishd.net \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.