From owner-freebsd-bugs Sat Jun 3 15: 0: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1BB8B37BD17 for ; Sat, 3 Jun 2000 15:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA02855; Sat, 3 Jun 2000 15:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182]) by hub.freebsd.org (Postfix) with ESMTP id 1E40237BD53 for ; Sat, 3 Jun 2000 14:57:37 -0700 (PDT) (envelope-from peter@citylink.dinoex.sub.org) Received: from citylink.dinoex.sub.org (uucp@localhost) by net2.dinoex.sub.org (8.10.1/8.10.1) with UUCP id e53M5SJ08340 for freebsd.org!FreeBSD-gnats-submit; Sun, 4 Jun 2000 00:05:28 +0200 (CEST) (envelope-from peter@citylink.dinoex.sub.org) Received: (from root@localhost) by marmor. (8.9.3/8.9.3) id UAA00552; Sat, 3 Jun 2000 20:37:42 +0200 (CEST) (envelope-from root) Message-Id: <200006031837.UAA00552@marmor.> Date: Sat, 3 Jun 2000 20:37:42 +0200 (CEST) From: Peter Much Reply-To: peter@citylink.dinoex.sub.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/18994: PCMCIA sio will happily attach to a used irq line Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18994 >Category: kern >Synopsis: PCMCIA sio will happily attach to a used irq line >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 03 15:00:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Peter Much >Release: FreeBSD 4.0-RELEASE i386 >Organization: n/a >Environment: Any PCMCIA card containing a standard sio interface, e.g. modem cards. >Description: 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. >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...) >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. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message