summaryrefslogtreecommitdiff
path: root/sys/dev/usb2/serial/usb2_serial.c
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2009-01-08 05:10:03 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2009-01-08 05:10:03 +0000
commitf9965aa640b9ff7b7bf89c915271dd71bc960f9c (patch)
tree286ed9fde22022a81d76fe4c512c357e4044efba /sys/dev/usb2/serial/usb2_serial.c
parente2157cf706690e84cb65f5150142db378f4776f1 (diff)
Notes
Diffstat (limited to 'sys/dev/usb2/serial/usb2_serial.c')
-rw-r--r--sys/dev/usb2/serial/usb2_serial.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb2/serial/usb2_serial.c b/sys/dev/usb2/serial/usb2_serial.c
index 8872c79470ee..7a2f2e1af1a9 100644
--- a/sys/dev/usb2/serial/usb2_serial.c
+++ b/sys/dev/usb2/serial/usb2_serial.c
@@ -588,7 +588,8 @@ static void
usb2_com_close(struct tty *tp)
{
struct usb2_com_softc *sc = tty_softc(tp);
-
+ struct usb2_com_super_softc *ssc = sc->sc_super;
+
mtx_assert(sc->sc_parent_mtx, MA_OWNED);
DPRINTF("tp=%p\n", tp);
@@ -600,6 +601,7 @@ usb2_com_close(struct tty *tp)
usb2_com_shutdown(sc);
usb2_com_queue_command(sc, &usb2_com_cfg_close, 0);
+ usb2_config_td_sync(&ssc->sc_config_td);
sc->sc_flag &= ~(UCOM_FLAG_HL_READY |
UCOM_FLAG_WR_START |