From owner-freebsd-stable@FreeBSD.ORG Tue Sep 26 21:35:02 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10BF716A40F for ; Tue, 26 Sep 2006 21:35:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EEF243D4C for ; Tue, 26 Sep 2006 21:35:01 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k8QLYp1c051484; Tue, 26 Sep 2006 17:34:55 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Dmitry Pryanishnikov Date: Tue, 26 Sep 2006 16:40:20 -0400 User-Agent: KMail/1.9.1 References: <20060924171559.C7094@atlantis.atlantis.dp.ua> <200609261309.19663.jhb@freebsd.org> <20060926215928.H38624@atlantis.atlantis.dp.ua> In-Reply-To: <20060926215928.H38624@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609261640.20577.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 26 Sep 2006 17:34:55 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1946/Tue Sep 26 09:18:37 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-stable@freebsd.org Subject: Re: Loadable SMBus modules regression in 6-STABLE -> 6-BETA X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2006 21:35:02 -0000 On Tuesday 26 September 2006 15:10, Dmitry Pryanishnikov wrote: > > Hello! > > On Tue, 26 Sep 2006, John Baldwin wrote: > > It still works here. Since you are using modules, make sure all your modules > > are in sync. Short of that, you can edit sys/dev/smbus/smb.c and add a > > Yes, they are (I've followed the standard OS upgrade procedure, including > full recompile of the kernel and all modules). > > > printf to smb_identify() and make sure it is called. > > I've instrumented it in the following fashion: > > smb_identify(driver_t *driver, device_t parent) > { > printf("smb_identify() called!!!\n"); > if (device_find_child(parent, "smb", -1) == NULL) { > printf("BUS_ADD_CHILD() = %p\n", > BUS_ADD_CHILD(parent, 0, "smb", -1)); > } > } > > and here is the output: > > smb_identify() called!!! > BUS_ADD_CHILD() = 0x6 > > 6? ENXIO? Why?! I've just found it and fixed it if you upgrade to the newest smbus.c. -- John Baldwin