Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2009 00:26:10 +0200
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
Message-ID:  <18906.33154.469362.175163@zaphod.home.loc>
In-Reply-To: <200904062120.n36LK2JI091511@freefall.freebsd.org>
References:  <200904062104.n36L4Z6Y079582@zaphod.home.loc> <200904062120.n36LK2JI091511@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?18906.33154.469362.175163>