Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2003 02:50:24 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        andrea@webcom.it, current@FreeBSD.ORG
Subject:   Re: firewire hangs on Thinkpad
Message-ID:  <ybsu1fds5r3.wl@ett.sat.t.u-tokyo.ac.jp>
In-Reply-To: <20030209.100654.133045082.imp@bsdimp.com>
References:  <20030129114951.GA3635@webcom.it> <ybs8yx3x6s0.wl@ett.sat.t.u-tokyo.ac.jp> <ybsy94psbp8.wl@ett.sat.t.u-tokyo.ac.jp> <20030209.100654.133045082.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ybsu1fds5r3.wl>