ports/133441: epson2 sane-backend wants to read more than DFLTPHYS

Walter C. Pelissero walter at pelissero.de
Mon Apr 6 22:38:26 UTC 2009


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