NetBSD-Bugs archive

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

Re: port-amiga/2726 (HP Scanjet driver patch for NetBSD/Amiga)



The following reply was made to PR port-amiga/2726; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-amiga/2726 (HP Scanjet driver patch for NetBSD/Amiga)
Date: Fri, 21 May 2021 21:05:30 +0000

 Current equivalent of the ancient patch in this PR follows.
 
 Whether it will still serve as a workaround for the real issues, I
 have no idea.
 
 
 Index: dev/scsipi/ss_scanjet.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/scsipi/ss_scanjet.c,v
 retrieving revision 1.54
 diff -u -p -r1.54 ss_scanjet.c
 --- dev/scsipi/ss_scanjet.c	20 Nov 2016 15:37:19 -0000	1.54
 +++ dev/scsipi/ss_scanjet.c	21 May 2021 21:03:37 -0000
 @@ -314,7 +314,7 @@ scanjet_ctl_write(struct ss_softc *ss, c
  
  	return scsipi_command(ss->sc_periph,
  	    (void *)&cmd, sizeof(cmd), (void *)tbuf, size, 0, 100000, NULL,
 -	    flags | XS_CTL_DATA_OUT);
 +	    flags | XS_CTL_DATA_OUT | XS_CTL_POLL);
  }
  
  
 @@ -335,7 +335,7 @@ scanjet_ctl_read(struct ss_softc *ss, ch
  
  	return scsipi_command(ss->sc_periph,
  	    (void *)&cmd, sizeof(cmd), (void *)tbuf, size, 0, 100000, NULL,
 -	    flags | XS_CTL_DATA_IN);
 +	    flags | XS_CTL_DATA_IN | XS_CTL_POLL);
  }
  
  
 
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index