diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2017-02-04 02:16:28 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-04-01 23:04:30 +0200 |
commit | 0ada076819529203e11fcd5d3d52a2c9ada21879 (patch) | |
tree | b1ede6a6e13310270d9961b845ebaa78128fd688 /drivers/nfc/port100.c | |
parent | nfc: Send same info for both of NFC_CMD_GET_DEVICE and NFC_EVENT_DEVICE_ADDED (diff) | |
download | linux-0ada076819529203e11fcd5d3d52a2c9ada21879.tar.xz linux-0ada076819529203e11fcd5d3d52a2c9ada21879.zip |
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 <hirofumi@mail.parknet.co.jp>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/port100.c')
-rw-r--r-- | drivers/nfc/port100.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nfc/port100.c b/drivers/nfc/port100.c index 32258525513e..382985d3fee0 100644 --- a/drivers/nfc/port100.c +++ b/drivers/nfc/port100.c @@ -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; |