This bundle of patches allows to upgrade the old code of the device driver for the PCAN-USB made by PEAK-System GmbH. In particular: - it adds support for loopback and one-shot modes when the version of the embedded firmware allows it - it corrects the reading of error counters - it updates the management of bus state changes using the functions exported by the can-dev module and the error counters values Stephane Grosjean (5): can: peak_usb: pcan_usb_get_device_id(): read value only in case of success can: peak_usb: PCAN-USB: add support of loopback and one-short mode can: peak_usb: pcan_usb_handle_bus_evt(): fix reading rxerr/txerr values can: peak_usb: pcan_usb_encode_msg(): adds information can: peak_usb: upgrades the handling of bus state changes drivers/net/can/usb/peak_usb/pcan_usb.c | 238 ++++++++++-------------- 1 file changed, 99 insertions(+), 139 deletions(-) -- 2.25.1