Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1573562

[PATCH resend 3/4] nfc: Fix RC-S380* needs zero-length packet

From OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Newsgroups linux.kernel
Subject [PATCH resend 3/4] nfc: Fix RC-S380* needs zero-length packet
Date 2017-02-04 02:20 +0100
Message-ID <t6Xbb-1uM-1@gated-at.bofh.it> (permalink)
References <t6Xbb-1uM-3@gated-at.bofh.it> <t6Xbb-1uM-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---

 drivers/nfc/port100.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/nfc/port100.c~nfc-need-zero-packet drivers/nfc/port100.c
--- linux-ibmpc/drivers/nfc/port100.c~nfc-need-zero-packet	2016-12-31 18:27:14.814753508 +0900
+++ linux-ibmpc-hirofumi/drivers/nfc/port100.c	2016-12-31 18:32:12.928334607 +0900
@@ -1540,6 +1540,7 @@ static int port100_probe(struct usb_inte
 	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;
_

-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH resend 3/4] nfc: Fix RC-S380* needs zero-length packet OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> - 2017-02-04 02:20 +0100
  [PATCH resend 4/4] nfc: Fix hangup of RC-S380* in port100_send_ack() OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> - 2017-02-04 02:20 +0100

csiph-web