Skip to content

NFC updates for 3.6

Samuel Ortiz linux-wireless 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29NFC: Take a reference on the LLCP local pointer when creating a socketnet/nfc/llcp/llcp.c net/nfc/llcp/llcp.h net/nfc/llcp/sock.c+40 -240 replies
2/29NFC: Socket linked listnet/nfc/llcp/llcp.c net/nfc/llcp/llcp.h net/nfc/llcp/sock.c+158 -1350 replies
3/29NFC: Move LLCP receiver window value to socket structurenet/nfc/llcp/commands.c net/nfc/llcp/llcp.c net/nfc/llcp/llcp.h +1 more+55 -210 replies
4/29NFC: Move LLCP MIU extension value to socket structurenet/nfc/llcp/commands.c net/nfc/llcp/llcp.c net/nfc/llcp/llcp.h +1 more+9 -20 replies
5/29NFC: LLCP's MIUX is 10 bytes long, not 7net/nfc/llcp/commands.c+2 -20 replies
6/29NFC: Export LLCP general bytes getterinclude/net/nfc/nfc.h net/nfc/core.c+9 -00 replies
7/29NFC: Add target mode protocols to the polling loop startup routinedrivers/nfc/pn533.c drivers/nfc/pn544_hci.c include/linux/nfc.h +9 more+77 -340 replies
8/29NFC: Implement pn533 target mode polling loopdrivers/nfc/pn533.c+104 -50 replies
9/29NFC: Add target mode activation netlink eventdrivers/nfc/pn533.c include/linux/nfc.h include/net/nfc/nfc.h +3 more+136 -20 replies
10/29NFC: Set the NFC device RF mode appropriatelyinclude/linux/nfc.h include/net/nfc/nfc.h net/nfc/core.c+12 -50 replies
11/29NFC: Introduce target mode tx opsdrivers/nfc/pn533.c include/net/nfc/nfc.h net/nfc/core.c +2 more+34 -300 replies
12/29NFC: Introduce target mode rx data callbackinclude/net/nfc/nfc.h net/nfc/core.c net/nfc/llcp/llcp.c +1 more+35 -00 replies
13/29NFC: Implement the pn533 target mode data fetching routinedrivers/nfc/pn533.c+80 -50 replies
14/29NFC: Implement the pn533 target mode Tx opdrivers/nfc/pn533.c+73 -90 replies
15/29NFC: Don't hold a NULL connecting LLCP socket locknet/nfc/llcp/llcp.c+3 -30 replies
16/29NFC: Call the DEP link down ops even when in target modenet/nfc/core.c+0 -50 replies
17/29NFC: Reset poll mod list when stopping pn533 polldrivers/nfc/pn533.c+2 -00 replies
18/29NFC: Unregister device if pn533 initial configuration failsdrivers/nfc/pn533.c+5 -10 replies
19/29NFC: Configure pn533 RF timingsdrivers/nfc/pn533.c+25 -00 replies
20/29NFC: Add passive initiator data for pn533drivers/nfc/pn533.c+18 -50 replies
21/29NFC: Add type A and type F parameters for pn533 target modedrivers/nfc/pn533.c+24 -10 replies
22/29NFC: Implement pn533 polling loopdrivers/nfc/pn533.c+161 -1260 replies
23/29NFC: Requeue lost LLCP framesnet/nfc/llcp/llcp.c+55 -310 replies
24/29NFC: Send a receiver ready frame only to reply to an I framenet/nfc/llcp/llcp.c+1 -10 replies
25/29NFC: Switch to Initiator mode when getting NFC_ATTR_PROTOCOLSnet/nfc/netlink.c+2 -20 replies
26/29NFC: Destroy LLCP timout workqueue when releasing the linknet/nfc/llcp/llcp.c+1 -00 replies
27/29NFC: Set the proper baud rate when trying to activate pn533 targetsdrivers/nfc/pn533.c+23 -20 replies
28/29NFC: Convert pn533 from semaphore to mutexdrivers/nfc/pn533.c+7 -70 replies
29/29NFC: Monitor pn533 target modedrivers/nfc/pn533.c+22 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/29] NFC updates for 3.6

Hi John,

This is the first NFC patchset for 3.6. With this one we have:

- Peer to peer target mode support. Peer devices can now detect and activate us as targets, not only as initiators.
- An LLCP socket handling code simplification. It's simpler and race free now.
- LLCP fixes. Attending the NFC plugfest helped fixed a few LLCP bugs.
- At the NFC plugfest I also found some issues with the pn533 radio and digital settings. This should be improved now.
- The pn533 also gets a few improvements, like a semaphore to mutex conversion and a proper polling loop implementation (alternating between target and initiator modes).

You can either apply those patches manually, or pull it from here:

git://git.kernel.org/pub/scm/linux/kernel/git/sameo/nfc-3.0.git tags/nfc-next-3.6-1

Thanks in advance for merging this code.

Samuel Ortiz (29):
NFC: Take a reference on the LLCP local pointer when creating a
socket
NFC: Socket linked list
NFC: Move LLCP receiver window value to socket structure
NFC: Move LLCP MIU extension value to socket structure
NFC: LLCP's MIUX is 10 bytes long, not 7
NFC: Export LLCP general bytes getter
NFC: Add target mode protocols to the polling loop startup routine
NFC: Implement pn533 target mode polling loop
NFC: Add target mode activation netlink event
NFC: Set the NFC device RF mode appropriately
NFC: Introduce target mode tx ops
NFC: Introduce target mode rx data callback
NFC: Implement the pn533 target mode data fetching routine
NFC: Implement the pn533 target mode Tx op
NFC: Don't hold a NULL connecting LLCP socket lock
NFC: Call the DEP link down ops even when in target mode
NFC: Reset poll mod list when stopping pn533 poll
NFC: Unregister device if pn533 initial configuration fails
NFC: Configure pn533 RF timings
NFC: Add passive initiator data for pn533
NFC: Add type A and type F parameters for pn533 target mode
NFC: Implement pn533 polling loop
NFC: Requeue lost LLCP frames
NFC: Send a receiver ready frame only to reply to an I frame
NFC: Switch to Initiator mode when getting NFC_ATTR_PROTOCOLS
NFC: Destroy LLCP timout workqueue when releasing the link
NFC: Set the proper baud rate when trying to activate pn533 targets
NFC: Convert pn533 from semaphore to mutex
NFC: Monitor pn533 target mode

 drivers/nfc/pn533.c     |  662 ++++++++++++++++++++++++++++++++++++++---------
 drivers/nfc/pn544_hci.c |   10 +-
 include/linux/nfc.h     |   12 +
 include/net/nfc/hci.h   |    3 +-
 include/net/nfc/nfc.h   |   14 +-
 include/net/nfc/shdlc.h |    3 +-
 net/nfc/core.c          |  119 +++++++---
 net/nfc/hci/core.c      |   13 +-
 net/nfc/hci/shdlc.c     |    6 +-
 net/nfc/llcp/commands.c |   54 +++-
 net/nfc/llcp/llcp.c     |  421 ++++++++++++++++++------------
 net/nfc/llcp/llcp.h     |   26 ++-
 net/nfc/llcp/sock.c     |   47 ++--
 net/nfc/nci/core.c      |   15 +-
 net/nfc/netlink.c       |   81 ++++++-
 net/nfc/nfc.h           |   12 +-
 16 files changed, 1106 insertions(+), 392 deletions(-)
Signature · 1 line
1.7.9.1