| Summary: | PCMCIA sio will happily attach to a used irq line | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Peter Much <peter> |
| Component: | kern | Assignee: | Warner Losh <imp> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.0-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Peter Much
2000-06-03 19:37:42 UTC
If the irq line that is defined in /etc/pccard.conf
for that card is already in use by some other device,
the sio driver will nevertheless attach the card to
that irq line - or so it seems at last.
Fix:
In sys/isa/sio.c, right at the end of sioattach(),
the irq line is given to bus_alloc_resource(). If
this succeeds, BUS_SETUP_INTR() is called. If it does
not succeed, nothing is done and sioattach returns
successfully. This should be changed.
How-To-Repeat:
define irq 8 (that's rtc) in /etc/pccard.conf for
some modem card, restart pccardd and plug the card
in.
This will be accepted, and the card will work (somehow
at least...)
Responsible Changed From-To: freebsd-bugs->imp This is Warner's league. And he's the resident pccard meister/maintainer. State Changed From-To: open->closed mihira-san has fixed this, at least for attached devices. NEWCARD doesn't have this problem. |