diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-16 19:13:55 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-03-28 12:14:12 +0300 |
commit | 6b0464c9d76bb6a3b192f6d518f7e5f510af72e8 (patch) | |
tree | fc2524469d07cc5a8255514cd3623fe98748d6b8 /drivers/usb/serial/keyspan_usa26msg.h | |
parent | bc4c2c15cbfc3747d0c14f547beb5d46cbe43641 (diff) | |
download | linux-6b0464c9d76bb6a3b192f6d518f7e5f510af72e8.tar.xz |
USB: serial: mxuport: add endpoint sanity check
Add an explicit sanity check to make sure we have the expected
endpoints. This will provide a descriptive error message in case an
expected endpoint is missing when probing.
Note that the driver already gracefully fails to probe (albeit with a
less descriptive error message) if a bulk-in endpoint is missing, and an
attempt to write to a port whose device lack a bulk-out endpoint would
fail with -ENODEV.
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/keyspan_usa26msg.h')
0 files changed, 0 insertions, 0 deletions