lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+cXsQEEApwh_5RZT4_qf6z2JyMEjHPL21FgJaitAeswT984Hg@mail.gmail.com>
Date:	Thu, 2 Jul 2015 17:13:47 +0200
From:	Bartosz Tomeczko <bartosz.tomeczko@...il.com>
To:	Johan Hovold <johan@...nel.org>
Cc:	linux-kernel@...r.kernel.org, trivial@...nel.org
Subject: [TRIVIAL PATCH] usb/serial.h: Increase max number of serial ports per
 USB-serial device

Hello,

I am using MOXA USB-to-serial converter with 16 serial ports. This
device is namely a MOXA UPort 1650-16. This device works as a simple
usb-serial adapter and therefore its driver uses
include/linux/usb/serial.h file. In this very file however maximal
number of serial ports served by the driver is eight (MAX_NUM_PORTS).
I would like to propose a trivial patch which would allow MOXA users
to use all ports of the device instead of just having eight of them
usable (as it is right now). Trivial change which might be applied on
the top of (4da3064d1775810f10f7ddc1c34c3f1ff502a654) is as follows:

diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h
index 704a1ab..b7af736 100644
--- a/include/linux/usb/serial.h
+++ b/include/linux/usb/serial.h
@@ -20,7 +20,7 @@
 #include <linux/kfifo.h>

 /* The maximum number of ports one device can grab at once */
-#define MAX_NUM_PORTS          8
+#define MAX_NUM_PORTS          16

 /* parity check flag */
 #define RELEVANT_IFLAG(iflag)  (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))

Best regards
Bartosz Tomeczko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ