From 88c29cec87ab1718a90d67b7cb335fa42822841b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 31 Aug 2008 03:22:19 +0000 Subject: [PATCH] All the other routines returned EIO from the param routine. Return it from umodem and ufoma. With these changes, umodem kinda works for me now. It certainly gets past the "tip" bug that I found earlier where 115200 wasn't a valid baud rate. This was "broken" in the mpsafetty commit, but in reality, umodem was always broken. --- sys/dev/usb/ufoma.c | 2 +- sys/dev/usb/umodem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/ufoma.c b/sys/dev/usb/ufoma.c index 0b1ed10001d..ef6840bff87 100644 --- a/sys/dev/usb/ufoma.c +++ b/sys/dev/usb/ufoma.c @@ -950,7 +950,7 @@ ufoma_param(void *addr, int portno, struct termios *t) err = ufoma_set_line_coding(sc, &ls); if (err) { DPRINTF(("ufoma_param: err=%s\n", usbd_errstr(err))); - return (ENOTTY); + return (EIO); } return (0); diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c index 019304b86d8..f0cb17c98cf 100644 --- a/sys/dev/usb/umodem.c +++ b/sys/dev/usb/umodem.c @@ -603,7 +603,7 @@ umodem_param(void *addr, int portno, struct termios *t) err = umodem_set_line_coding(sc, &ls); if (err) { DPRINTF(("umodem_param: err=%s\n", usbd_errstr(err))); - return (ENOTTY); + return (EIO); } return (0); }