From owner-freebsd-current Sat Dec 21 17:52:28 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AD4237B401 for ; Sat, 21 Dec 2002 17:52:27 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E27D43ED8 for ; Sat, 21 Dec 2002 17:52:26 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id gBM1qOuB067132; Sat, 21 Dec 2002 18:52:25 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 21 Dec 2002 18:52:07 -0700 (MST) Message-Id: <20021221.185207.02300811.imp@bsdimp.com> To: m_evmenkin@yahoo.com Cc: current@freebsd.org Subject: Re: NEWCARD, devd, sio and PCCARD_FUNCTION_SERIAL cards From: "M. Warner Losh" In-Reply-To: <20021222014249.29623.qmail@web40310.mail.yahoo.com> References: <20021221.155343.71086588.imp@bsdimp.com> <20021222014249.29623.qmail@web40310.mail.yahoo.com> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20021222014249.29623.qmail@web40310.mail.yahoo.com> Maksim Yevmenkin writes: : Dear Warner and Hackers, : : --- "M. Warner Losh" wrote: : > In message: <20021221222756.11203.qmail@web40310.mail.yahoo.com> : > Maksim Yevmenkin writes: : > : Dear Warner and Hackers, : > : : > : Is there any way (on -current with NEWCARD) "devd" can : > : prevent "sio" driver from attaching to *ANY* pc-card : > : that has PCCARD_FUNCTION_SERIAL? : > : > Sure. Just have sio_pccard_match return -100. I've just committed : > the change to do this. No need to do anything else, I think. : : Nope :( It does not work. I applied patch to /sys/dev/sio/sio_pccard.c : and recompile my kernel with NEWCARD. It seems devd pays no attention : when i plug or unplug the 3COM card. I have attached dmesg output and : my devd.conf file. I was trying to get devd to kldload ng_bt3c module, : but it did not work. Am i missing something obvious here? Yes. You need to have ng_bt3c loaded before you insert the card. That's because of three reasons: 1) We don't detach a device when it 'won' the bidding on the device with a bid < 0 when a new driver is loaded. 2) There device is known, so devctl doesn't report anything to devd because it is known (it will report the sio attach). 3) devd ignores all unknown devices at the current time. I'm working on most of these issues, but not the 'rescan' issue. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message