ports/133441: epson2 sane-backend wants to read more than DFLTPHYS
Walter C. Pelissero
walter at pelissero.de
Mon Apr 6 22:30:04 UTC 2009
The following reply was made to PR ports/133441; it has been noted by GNATS.
From: "Walter C. Pelissero" <walter at pelissero.de>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-ports-bugs at FreeBSD.org
Cc: walter at 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
More information about the freebsd-ports-bugs
mailing list