Plan 9 from Bell Labs’s /usr/web/sources/contrib/mospak/usb-serial-prolific-maxpkt/usb-serial-prolific-maxpkt.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--- sys/src/cmd/usb/serial/prolific.c
+++ sys/src/cmd/usb/serial/prolific.c
@@ -411,19 +411,6 @@
 		;
 	fprint(2, "serial: statusreader exiting\n");
 	closedev(ser->dev);
-}
-
-/*
- * Maximum number of bytes transferred per frame
- * The output buffer size cannot be increased due to the size encoding
- */
-
-static int
-plseteps(Serialport *p)
-{
-	devctl(p->epin,  "maxpkt 256");
-	devctl(p->epout, "maxpkt 256");
-	return 0;
 }
 
 Serialops plops = {
@@ -434,5 +421,4 @@
 	.sendlines	= plsendlines,
 	.modemctl	= plmodemctl,
 	.setbreak	= plsetbreak,
-	.seteps		= plseteps,
 };

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.