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.
This commit is contained in:
Warner Losh 2008-08-31 03:22:19 +00:00
parent 8a5492b881
commit 88c29cec87
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);
}