mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
nfc: Fix RC-S380* needs zero-length packet
If sent packet size is wMaxPacketSize boundary, this device doesn't answer. To fix this, we have to send zero-length packet in usb spec. Signed-off-by: OGAWA Hirofumi <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
85a2566d70
commit
0ada076819
1 changed files with 1 additions and 0 deletions
|
|
@ -1540,6 +1540,7 @@ static int port100_probe(struct usb_interface *interface,
|
|||
usb_fill_bulk_urb(dev->out_urb, dev->udev,
|
||||
usb_sndbulkpipe(dev->udev, out_endpoint),
|
||||
NULL, 0, port100_send_complete, dev);
|
||||
dev->out_urb->transfer_flags = URB_ZERO_PACKET;
|
||||
|
||||
dev->skb_headroom = PORT100_FRAME_HEADER_LEN +
|
||||
PORT100_COMM_RF_HEAD_MAX_LEN;
|
||||
|
|
|
|||
Loading…
Reference in a new issue