Annotate the usb-serial drivers which always return 0 for line status,
so that it'll be easier to find and fix them in the future.
This commit is contained in:
parent
5a347e3bc3
commit
fe67c84656
@ -1100,6 +1100,7 @@ u3g_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
|
||||
{
|
||||
struct u3g_softc *sc = ucom->sc_parent;
|
||||
|
||||
/* XXX Note: sc_lsr is always zero */
|
||||
*lsr = sc->sc_lsr[ucom->sc_subunit];
|
||||
*msr = sc->sc_msr[ucom->sc_subunit];
|
||||
}
|
||||
|
@ -427,6 +427,7 @@ uark_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
|
||||
{
|
||||
struct uark_softc *sc = ucom->sc_parent;
|
||||
|
||||
/* XXX Note: sc_lsr is always zero */
|
||||
*lsr = sc->sc_lsr;
|
||||
*msr = sc->sc_msr;
|
||||
}
|
||||
|
@ -625,6 +625,7 @@ uchcom_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
|
||||
|
||||
DPRINTF("\n");
|
||||
|
||||
/* XXX Note: sc_lsr is always zero */
|
||||
*lsr = sc->sc_lsr;
|
||||
*msr = sc->sc_msr;
|
||||
}
|
||||
|
@ -900,6 +900,7 @@ ufoma_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
|
||||
{
|
||||
struct ufoma_softc *sc = ucom->sc_parent;
|
||||
|
||||
/* XXX Note: sc_lsr is always zero */
|
||||
*lsr = sc->sc_lsr;
|
||||
*msr = sc->sc_msr;
|
||||
}
|
||||
|
@ -558,6 +558,7 @@ umodem_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
|
||||
|
||||
DPRINTF("\n");
|
||||
|
||||
/* XXX Note: sc_lsr is always zero */
|
||||
*lsr = sc->sc_lsr;
|
||||
*msr = sc->sc_msr;
|
||||
}
|
||||
|
@ -807,6 +807,7 @@ uplcom_cfg_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
|
||||
|
||||
DPRINTF("\n");
|
||||
|
||||
/* XXX Note: sc_lsr is always zero */
|
||||
*lsr = sc->sc_lsr;
|
||||
*msr = sc->sc_msr;
|
||||
}
|
||||
|
@ -704,6 +704,7 @@ uslcom_get_status(struct ucom_softc *ucom, uint8_t *lsr, uint8_t *msr)
|
||||
|
||||
DPRINTF("\n");
|
||||
|
||||
/* XXX Note: sc_lsr is always zero */
|
||||
*lsr = sc->sc_lsr;
|
||||
*msr = sc->sc_msr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user