Re: [PATCH 11/31] swim: Handle FIFO timeout error
Laurent Vivier <[email protected]> Mon, 20 Jul 2026 21:17:50 +0200
| Newsgroups | org.kernel.vger.linux-m68k,org.kernel.vger.linux-block,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Le 16/07/2026 =C3=A0 12:02, Finn Thain a =C3=A9crit=C2=A0:
> 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.
>=20
> 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]>
>=20
> 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:
> =20
> tstb %a2@
> dbmi %d2, wait_addr_mark_byte
> - bpl header_exit
> + bpl signal_nonyb
> =20
> moveb %a3@, %d3
> cmpb %a0@+, %d3
> @@ -136,7 +136,6 @@ crc1: tstb %a2@
> =20
> tstb %a3@(read_error - read_mark)
> =20
> -header_exit:
> moveq #0, %d0
> moveb #0x18, %a3@(write_mode0 - read_mark)
> rts