Date: Sun, 12 Jul 1998 15:47:47 +0800 (GMT) From: Michael Robinson <robinson@public.bta.net.cn> To: freebsd-stable@FreeBSD.ORG Subject: ppbus drivers failing to probe vpo: problem solved (sort of) Message-ID: <199807120747.PAA24735@public.bta.net.cn>
next in thread | raw e-mail | index | archive | help
The vpo (ZIP drive) probe failure I reported earlier turns out to be some sort
of Heisenbug. When I add debugging code to the vpo_detect() function in
/sys/dev/ppbus/vpo.c (as shown below), my ZIP drive magically starts working.
Comments? Suggestions?
-Michael Robinson
-----from /sys/dev/ppbus/vpo.c-----
/*
* vpo_detect()
*
* Detect and initialise the VP0 adapter.
*/
static int
vpo_detect(struct vpo_data *vpo)
{
int error;
error = vpoio_disconnect(vpo);
printf("vpoio_disconnect(vpo): %x\n", error);
error = vpoio_connect(vpo, PPB_DONTWAIT);
printf("vpoio_connect(vpo, PPB_DONTWAIT): %x\n", error);
if ((error = vpoio_in_disk_mode(vpo)) != 0) {
printf("vpoio_in_disk_mode(vpo): %x\n", error);
vpoio_disconnect(vpo);
return (VP0_EINITFAILED);
}
/* send SCSI reset signal */
printf("vpoio_reset(vpo)\n");
vpoio_reset (vpo);
printf("vpoio_disconnect(vpo)\n");
vpoio_disconnect(vpo);
if (vpoio_in_disk_mode(vpo)) {
printf("error: vpoio_in_disk_mode(vpo)\n");
return (VP0_EINITFAILED);
}
printf("return(0)\n");
return (0);
}
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807120747.PAA24735>
