diff options
author | John Klug <john.klug@multitech.com> | 2022-05-24 10:40:48 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-05-24 14:23:27 -0500 |
commit | 3df2bfaac72985ef1673175f1861c61ec580983a (patch) | |
tree | aa56db6ad10f510690df19807bf4a3a27346964e /recipes-kernel/vizzini/vizzini-1.1 | |
parent | 58a6156b61364d8effe0876afc4ab9e0ce62c39b (diff) | |
download | meta-multitech-atmel-3df2bfaac72985ef1673175f1861c61ec580983a.tar.gz meta-multitech-atmel-3df2bfaac72985ef1673175f1861c61ec580983a.tar.bz2 meta-multitech-atmel-3df2bfaac72985ef1673175f1861c61ec580983a.zip |
Remove obsolete vizzini code and use tty_port_initialized
Diffstat (limited to 'recipes-kernel/vizzini/vizzini-1.1')
-rw-r--r-- | recipes-kernel/vizzini/vizzini-1.1/vizzini-1.1-ttyinit.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-kernel/vizzini/vizzini-1.1/vizzini-1.1-ttyinit.patch b/recipes-kernel/vizzini/vizzini-1.1/vizzini-1.1-ttyinit.patch new file mode 100644 index 0000000..139951f --- /dev/null +++ b/recipes-kernel/vizzini/vizzini-1.1/vizzini-1.1-ttyinit.patch @@ -0,0 +1,30 @@ +diff -Naru orig/vizzini.c new/vizzini.c +--- orig/vizzini.c 2022-05-24 09:28:33.792414903 -0500 ++++ new/vizzini.c 2022-05-24 09:28:59.064414312 -0500 +@@ -1855,7 +1855,7 @@ + if (cnt) + return 0; + +- if (test_bit(ASYNCB_INITIALIZED, &xr21v141x->port.flags)) ++ if (tty_port_initialized(&xr21v141x->port)) + stop_data_traffic(xr21v141x); + + return 0; +@@ -1876,7 +1876,7 @@ + if (cnt) + return 0; + +- if (test_bit(ASYNCB_INITIALIZED, &xr21v141x->port.flags)) { ++ if (tty_port_initialized(&xr21v141x->port)) { + rv = usb_submit_urb(xr21v141x->ctrlurb, GFP_NOIO); + + spin_lock_irq(&xr21v141x->write_lock); +@@ -1907,7 +1907,7 @@ + { + struct xr21v141x *xr21v141x = usb_get_intfdata(intf); + +- if (test_bit(ASYNCB_INITIALIZED, &xr21v141x->port.flags)) ++ if (tty_port_initialized(&xr21v141x->port)) + tty_port_tty_hangup(&xr21v141x->port, false); + + |