Re: [PATCH 11/31] swim: Handle FIFO timeout error

Laurent Vivier <[email protected]>
Newsgroups org.kernel.vger.linux-block,org.kernel.vger.linux-kernel,org.kernel.vger.linux-m68k
Message-ID <[email protected]>
Le 16/07/2026 à 12:02, Finn Thain a écrit :
> When polling the FIFO for a mark byte in the sector header, don't
> return zero if the timeout counter has expired, return an error code.
> 
> Fixes: 8852ecd97488 ("m68k: mac - Add SWIM floppy support")
> Signed-off-by: Finn Thain <[email protected]>
> ---
>   drivers/block/swim_asm.S | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Laurent Vivier <[email protected]>

> 
> diff --git a/drivers/block/swim_asm.S b/drivers/block/swim_asm.S
> index 3d7a2d87595a..208622ac4aeb 100644
> --- a/drivers/block/swim_asm.S
> +++ b/drivers/block/swim_asm.S
> @@ -79,7 +79,7 @@ wait_addr_mark_byte:
>   
>   	tstb	%a2@
>   	dbmi	%d2, wait_addr_mark_byte
> -	bpl	header_exit
> +	bpl	signal_nonyb
>   
>   	moveb	%a3@, %d3
>   	cmpb	%a0@+, %d3
> @@ -136,7 +136,6 @@ crc1:	tstb	%a2@
>   
>   	tstb	%a3@(read_error - read_mark)
>   
> -header_exit:
>   	moveq	#0, %d0
>   	moveb	#0x18, %a3@(write_mode0 - read_mark)
>   	rts
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.