[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200711131318.32091.Frank.Aune@broadpark.no>
Date: Tue, 13 Nov 2007 13:18:31 +0100
From: Frank Aune <Frank.Aune@...adpark.no>
To: linux-kernel@...r.kernel.org
Subject: No UEVENT generated when removing PCMCIA hardware
Hello,
When removing a PCMCIA pc card from the kernel, no kernel UEVENT is generated
for UDEV to process:
<code>
$ sudo udevmonitor
udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent
UEVENT[1194953228.779786]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953228.959397]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953230.598672]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UEVENT[1194953233.415975]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953233.508582]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953234.972943]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UEVENT[1194953237.759973]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953237.867551]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953239.028915]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UEVENT[1194953241.624024]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953241.753107]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UEVENT[1194953243.323935]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953243.326690]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UEVENT[1194953246.291972]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953246.443285]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953247.602263]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UEVENT[1194953249.891969]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953250.035555]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953251.129067]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UEVENT[1194953253.427974]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953253.579552]
add /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
UDEV [1194953254.633208]
remove /devices/pci0000:00/0000:00:1e.0/0000:02:00.0/0.0 (pcmcia)
</code>
Interestingly as you can see from the excerpt above, one time an UEVENT was in
fact generated when the PCMCIA card was removed. But usually no UEVENT is
reported when removing the PCMCIA pc card.
I've verified this behavior on both:
- Kubuntu 7.03 Feisty Fawn
- Kubuntu 7.10 Gutsy Gibon
using different PCMCIA pc cards, and they all behave the same way. On Kubuntu
6.10 OTOH, I get the desired behavior:
<code>
udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]
UEVENT[1194955803.201066]
add@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UDEV [1194955803.235275]
add@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UEVENT[1194955804.801254]
remove@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UDEV [1194955804.802018]
remove@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UEVENT[1194955807.657327]
add@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UDEV [1194955807.691431]
add@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UEVENT[1194955808.583364]
remove@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UDEV [1194955808.584129]
remove@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UEVENT[1194955811.209548]
add@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UDEV [1194955811.244305]
add@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UEVENT[1194955811.764918]
remove@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
UDEV [1194955811.765911]
remove@...vices/pci0000:00/0000:00:1e.0/0000:05:04.1/1.0
</code>
Is this a bug, or is it a design decision to not report UEVENTS when removing
PCMCIA pccards? If the latter, why did it happen once in the first excerpt?
Best regards,
Frank Aune
Please CC me if replying.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists