Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2009 22:30:02 GMT
From:      "Walter C. Pelissero" <walter@pelissero.de>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/133441: epson2 sane-backend wants to read more than DFLTPHYS
Message-ID:  <200904062230.n36MU2f8085653@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/133441; it has been noted by GNATS.

From: "Walter C. Pelissero" <walter@pelissero.de>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc: walter@pelissero.de
Subject: Re: ports/133441: epson2 sane-backend wants to read more than DFLTPHYS
Date: Tue, 7 Apr 2009 00:26:10 +0200

 On a second look I seem to have found the culprit in an obscure block
 of e2_setup_block_mode().  This patch should mend the problem without
 noticeable side effects.
 
 *** backend/epson2.c~	2008-02-03 13:09:09.000000000 +0100
 --- backend/epson2.c	2009-04-06 23:50:25.000000000 +0200
 ***************
 *** 3428,3439 ****
 --- 3428,3441 ----
   	 */
   	DBG(1, "max req size: %d\n", sanei_scsi_max_request_size);
   
 + #if 0
   	if (s->lcount < 3 && e2_model(s, "GT-X800")) {
   		s->lcount = 21;
   		DBG(17,
   		    "%s: set lcount = %i bigger than sanei_scsi_max_request_size\n",
   		    __func__, s->lcount);
   	}
 + #endif
   
   	if (s->lcount >= 255) {
   		s->lcount = 255;
 
 
 It's a mystery why the driver should ignore
 sanei_scsi_max_request_size at all.  This looks more like a bug rather
 than a porting issue.
 
 -- 
 walter pelissero
 http://www.pelissero.de



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