mirror of https://github.com/commaai/panda.git
Kernel Driver alt interface configuration for operation with new firmware.
This commit is contained in:
parent
8bf74c67be
commit
62ea1354b0
|
@ -284,6 +284,12 @@ static int panda_usb_start(struct panda_priv *priv)
|
|||
struct urb *urb = NULL;
|
||||
u8 *buf;
|
||||
|
||||
err = usb_set_interface(priv->udev, 0, 1);
|
||||
if (err) {
|
||||
netdev_err(netdev, "Can not set alternate setting to 1, error: %i", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
/* create a URB, and a buffer for it */
|
||||
urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (!urb) {
|
||||
|
|
Loading…
Reference in New Issue