From owner-freebsd-current Sun Feb 9 9:50:50 2003 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 5E9FC37B405 for ; Sun, 9 Feb 2003 09:50:48 -0800 (PST) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE1243F75 for ; Sun, 9 Feb 2003 09:50:45 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id A6461378068 for ; Mon, 10 Feb 2003 02:50:43 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is2.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h19HohR27229; Mon, 10 Feb 2003 02:50:43 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHV10134; Mon, 10 Feb 2003 02:50:43 +0900 (JST) Date: Mon, 10 Feb 2003 02:50:43 +0900 Message-ID: From: Hidetoshi Shimokawa To: "M. Warner Losh" Cc: andrea@webcom.it, current@FreeBSD.ORG Subject: Re: firewire hangs on Thinkpad In-Reply-To: <20030209.100654.133045082.imp@bsdimp.com> References: <20030129114951.GA3635@webcom.it> <20030209.100654.133045082.imp@bsdimp.com> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Sun, 09 Feb 2003 10:06:54 -0700 (MST), M. Warner Losh wrote: > Feb 9 09:52:40 hammer kernel: cbb_pcic_socket_enable: > Feb 9 09:52:40 hammer kernel: cbb1: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] > Feb 9 09:52:40 hammer kernel: cbb1: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15 > ] > Feb 9 09:52:40 hammer kernel: an0: RID access failed > > Most cards do *NOT* like being turned off. Aha, that explains why my card's LED turns off when I load modules. > Maybe something more like the following would be closer to correct: > > static void > cardbus_driver_added(device_t cbdev, driver_t *driver) > { > int numdevs; > device_t *devlist; > int tmp; > struct cardbus_devinfo *dinfo; > > DEVICE_IDENTIFY(driver, cbdev); > device_get_children(cbdev, &devlist, &numdevs); > for (tmp = 0; tmp < numdevs; tmp++) { > if (device_get_state(devlist[tmp]) != DS_NOTPRESENT) > continue; > dinfo = device_get_ivars(devlist[tmp]); > cardbus_print_verbose(dinfo); > resource_list_init(&dinfo->pci.resources); > cardbus_do_cis(cbdev, dinfo->pci.cfg.dev); > if (device_probe_and_attach(dinfo->pci.cfg.dev) != 0) > cardbus_release_all_resources(cbdev, dinfo); > } > free(devlist, M_TEMP); > } > > Warner Thanks, this fixed my problem. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message