Subject: autoconf.c fix...
To: None <port-hp300@sun-lamp.cs.berkeley.edu>
From: Jason Thorpe <thorpej@cs.orst.edu>
List: port-hp300
Date: 06/17/1994 11:11:10
Folks...

Some brain-dead hpib drives (that might be starting to go...) don't autoconf
the first time, so you have to poll them twice if they don't respond the
first time...

I believe the original fix is from Brezak...

Here's a patch...

----------

*** autoconf.c.orig     Fri Jun 17 11:05:44 1994
--- autoconf.c  Fri Jun 17 11:08:13 1994
***************
*** 452,458 ****
                                       hd->hp_unit, hd->hp_slave);
  #endif
  
!                       if ((*hd->hp_driver->d_init)(hd)) {
  #ifdef DEBUG
                                if (acdebug)
                                        printf("found\n");
--- 452,459 ----
                                       hd->hp_unit, hd->hp_slave);
  #endif
  
!                       if ((*hd->hp_driver->d_init)(hd)
!                               || ((*hd->hp_driver->d_init)(hd))) {
  #ifdef DEBUG
                                if (acdebug)
                                        printf("found\n");


----------

Later...

-----------------------------------------------------------------------------
Jason R. Thorpe                thorpej@cs.orst.edu                   737-9533
OSU CS Support                    CSWest Room 12                     737-5567
      'These are my opinions and not necessarily those of anyone else.'
            NetBSD/Symmetry - Coming soon to a Sequent near you!

------------------------------------------------------------------------------