USB: serial: mxuport: register two ports for unknown devices
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:54 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:14:12 +0000 (11:14 +0200)
commitbc4c2c15cbfc3747d0c14f547beb5d46cbe43641
tree499def73704bbeb4953477c426d98d30a4805e72
parentea3c6ebdcb4e6f9e1b16d9ced983a8f9131abd01
USB: serial: mxuport: register two ports for unknown devices

Print a message and register two ports for interfaces for which we do
not know how many ports there are instead of binding, allocating
resources, but not register any ports.

This provides a hint that anyone adding a dynamic device id must also
provide a reference id (driver info) from which the port count can be
retrieved, for example:

echo <vid> <pid> 0 0x110A 0x1410 > new_id

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mxuport.c