Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Don't clear the adapt structure of the attach...



details:   https://anonhg.NetBSD.org/src/rev/3a6452175dce
branches:  trunk
changeset: 524834:3a6452175dce
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Mar 31 14:36:59 2002 +0000

description:
Don't clear the adapt structure of the attaching channel - this nukes
all function pointers passed in from the adapter driver.

This partly fixes PR 13480, i.e. the FREECOM CD driver works now in pcmcia
adapters.

The remaining issue (timing problems with slow cards and cardbus bridges)
is probably the cause of several other PRs too.

diffstat:

 sys/dev/scsipi/atapi_wdc.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 75feec1aafc4 -r 3a6452175dce sys/dev/scsipi/atapi_wdc.c
--- a/sys/dev/scsipi/atapi_wdc.c        Sun Mar 31 14:33:54 2002 +0000
+++ b/sys/dev/scsipi/atapi_wdc.c        Sun Mar 31 14:36:59 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atapi_wdc.c,v 1.48 2002/01/27 22:00:40 bouyer Exp $    */
+/*     $NetBSD: atapi_wdc.c,v 1.49 2002/03/31 14:36:59 martin Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.48 2002/01/27 22:00:40 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.49 2002/03/31 14:36:59 martin Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -120,7 +120,6 @@
        /*
         * Fill in the scsipi_adapter.
         */
-       memset(adapt, 0, sizeof(*adapt));
        adapt->adapt_dev = &wdc->sc_dev;
        adapt->adapt_nchannels = wdc->nchannels;
        adapt->adapt_request = wdc_atapi_scsipi_request;



Home | Main Index | Thread Index | Old Index