Engage the clutch before changing gears.
If the machine uses a Z85230 ESCC device with deep buffers, we observe output glitches when printing the zstty{0,1} probe lines when the device is reset & reprogrammed during startup. There is no easy 'hook' in the MI Z8530 driver, so we wait for output buffer to drain before changing the baud rate generator prescaler value.
This commit is contained in:
parent
821c7e766b
commit
149a5fc5f2
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: zs.c,v 1.3 2000/08/19 12:13:47 wdk Exp $ */
|
||||
/* $NetBSD: zs.c,v 1.4 2000/08/29 11:25:08 wdk Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
|
||||
@ -416,6 +416,10 @@ zs_set_speed(cs, bps)
|
||||
int bps; /* bits per second */
|
||||
{
|
||||
int tconst, real_bps;
|
||||
|
||||
/* Wait for transmit buffer to empty */
|
||||
while (!(zs_read_csr(cs) & ZSRR0_TX_READY))
|
||||
{/*nop*/}
|
||||
|
||||
if (bps == 0)
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user