From: James Courtier-Dutton <James@superbug.co.uk>
To: linux-kernel@vger.kernel.org
Subject: Cross platform method for detecting hot unplug in irq handler
Date: Sun, 23 Jul 2006 14:11:01 +0100 [thread overview]
Message-ID: <44C37565.6090009@superbug.co.uk> (raw)
Hi,
I am writing a driver for a PCMCIA device.
When the card is removed, the driver's IRQ handler is called.
The first thing the IRQ handler does is read a status register from the
card's IOPORT. On the ia32 (i386) platform, the resulting status read
will return 0xffffffff. If the driver reads this value, it assumes the
card has been removed and acts accordingly.
Is this a reliable way of detecting PCMCIA or Hotplug card removal
inside an IRQ handler?
Is it consistent cross platforms. E.g. ia64, amd64, PPC, MIPS etc.?
Does a more reliable detection method exist in the kernel?
James
next reply other threads:[~2006-07-23 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-23 13:11 James Courtier-Dutton [this message]
2006-07-23 18:30 ` Cross platform method for detecting hot unplug in irq handler Andrew Morton
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=44C37565.6090009@superbug.co.uk \
--to=james@superbug.co.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox