[sane-devel] [PATCH] plustek: Flag device as unbusy on completion of data transfer

Elias Oltmanns eo at nebensachen.de
Sun Mar 18 17:52:09 UTC 2012


Hi again,

since there has been no response as yet, I just wanted to find out
whether this message has actually been noticed.

Also, I'd like to know if I can do anything to ensure that patch
reviewal will take place eventually. It would be a shame if plustek
users had to do without scanimage --batch-prompt and the like for too
much longer.

If, on the other hand, you are aware of my request, I apologise for the
noise and ask you not to feel pushed impatiently.

Looking forward to your comments,

Elias


(2012-03-08) Elias Oltmanns <eo at nebensachen.de> wrote:
> Hi there,
> would you mind merging the attached patch (or something similar in
> spirit)? The idea is to make batch operation working with teh plustek
> driver.
> 
> Thanks in advance for your cooperation,
> 
> Elias
> 
> From: Elias Oltmanns <eo at nebensachen.de>
> Date: Thu, 8 Mar 2012 08:53:05 +0100
> Subject: plustek: Flag device as unbusy on completion of data transfer
> 
> Batch operation has been broken resulting in a "device busy" error
> message when trying to scan teh second page.
> ---
>  backend/plustek.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/backend/plustek.c b/backend/plustek.c
> index f3b37e1..02a6b4f 100644
> --- a/backend/plustek.c
> +++ b/backend/plustek.c
> @@ -2706,6 +2706,7 @@ sane_read( SANE_Handle handle, SANE_Byte *data,
>  				(unsigned long)(s->params.lines * s->params.bytes_per_line)) {
>  				sanei_thread_waitpid( s->reader_pid, 0 );
>  				reader_pid = -1;
> +				s->scanning = SANE_FALSE;
>  				drvclose( s->hw );
>  				return close_pipe(s);
>  			}
> @@ -2734,6 +2735,7 @@ sane_read( SANE_Handle handle, SANE_Byte *data,
>  			return s->exit_code;
>  		}
>  		reader_pid = -1;
> +		s->scanning = SANE_FALSE;
>  		return close_pipe(s);
>  	}
>  	return SANE_STATUS_GOOD;



More information about the sane-devel mailing list