The switching between firmware loading and running state is done via
different configurations. To get this right the USB toggle and halted
bits must be reset to zero after it.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
return -EBUSY;
}
+ bfusb->udev->toggle[0] = bfusb->udev->toggle[1] = 0;
+ bfusb->udev->halted[0] = bfusb->udev->halted[1] = 0;
+
buf = kmalloc(BFUSB_MAX_BLOCK_SIZE + 3, GFP_ATOMIC);
if (!buf) {
BT_ERR("Can't allocate memory chunk for firmware");
goto error;
}
+ bfusb->udev->toggle[0] = bfusb->udev->toggle[1] = 0;
+ bfusb->udev->halted[0] = bfusb->udev->halted[1] = 0;
+
BT_INFO("BlueFRITZ! USB device ready");
kfree(buf);