USB-serial core assigns endpoints to ports based on the order of the endpoint descriptors. This mostly works fine, but some drivers have had to resort to hacks to override this default. This series enables subdrivers to modify the default port-endport mapping by passing the endpoints to the drivers as part of probe. This allows for clean ups in USB-serial core as well as in several subdrivers. Note that this also enables the omninet driver to use the generic write implementation. Johan Johan Hovold (29): USB: serial: allow subdrivers to modify port-endpoint mapping USB: serial: add probe callback to generic driver USB: serial: add calc_num_ports callback to generic driver USB: serial: relax generic driver bulk-endpoint requirement USB: serial: move pl2303 hack out of usb-serial core USB: serial: pl2303: clean up legacy endpoint hack USB: serial: aircable: use calc_num_endpoints to verify endpoints USB: serial: f81534: use calc_num_endpoints to verify endpoints USB: serial: f81534: abort probe on early errors USB: serial: ipaq: use calc_num_endpoints to verify endpoints USB: serial: ipaq: always register a single port USB: serial: io_ti: use calc_num_endpoints to verify endpoints USB: serial: io_ti: always require a bulk-out endpoint USB: serial: io_ti: verify interrupt endpoint at probe USB: serial: io_ti: drop redundant read-urb check USB: serial: mos7720: clean up mcs7715 port setup USB: serial: mos7720: always require an interrupt endpoint USB: serial: mos7840: clean up endpoint sanity check USB: serial: omninet: clean up port setup USB: serial: omninet: use generic write implementation USB: serial: ti_usb_3410_5052: always require a bulk-out endpoint USB: serial: visor: drop redundant calc_num_ports callback USB: serial: visor: clean up clie_5 endpoint hack USB: serial: visor: clean up treo endpoint hack USB: serial: mxuport: register two ports for unknown devices USB: serial: mxuport: add endpoint sanity check USB: serial: mxuport: clean up port bulk-out setup USB: serial: f81534: clean up calc_num_ports USB: serial: f81534: clean up port bulk-out setup drivers/usb/serial/aircable.c | 36 ++------- drivers/usb/serial/f81534.c | 137 ++++++++----------------------- drivers/usb/serial/generic.c | 32 +++++++- drivers/usb/serial/io_ti.c | 41 +++++----- drivers/usb/serial/ipaq.c | 51 +++++------- drivers/usb/serial/mos7720.c | 55 +++++-------- drivers/usb/serial/mos7840.c | 26 +++--- drivers/usb/serial/mxuport.c | 133 ++++++++----------------------- drivers/usb/serial/omninet.c | 124 +++++++---------------------- drivers/usb/serial/pl2303.c | 73 +++++++++++++++-- drivers/usb/serial/quatech2.c | 3 +- drivers/usb/serial/sierra.c | 3 +- drivers/usb/serial/ti_usb_3410_5052.c | 2 + drivers/usb/serial/usb-serial.c | 76 ++---------------- drivers/usb/serial/visor.c | 146 ++++++++++++---------------------- include/linux/usb/serial.h | 20 ++++- 16 files changed, 359 insertions(+), 599 deletions(-) -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html