Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5701576ybp; Tue, 8 Oct 2019 07:06:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqykrQaaNh7fmGTfTey+itP8mC/lIh81AUKUw4fLGU83lWpkgluH84bQbL3wu3SzyEiNsevP X-Received: by 2002:a17:907:11c8:: with SMTP id va8mr28822657ejb.111.1570543619389; Tue, 08 Oct 2019 07:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570543619; cv=none; d=google.com; s=arc-20160816; b=g877DYZXEQg/yXMB2SUN54zcq0ECi7aMS0GHGvR+OLXwaIxo+83HdNkapXJe3sxhTO B3pHqwgOb8JLfQusBAT/W/1i/9DcvNPQrXMZd99ikmDGLt28nt7r2Wyt3Zm6pcw2xo8T NjGyHxAkw3BbbATfO2hibsdUCCbC223mNj6JWoj+deTmIKKTmdwGGW/ItAD/kSHVCxdN XnrzC3kR7fzIAXIb3sFqSsGD3799aTQFRSnP5yM1ghI/gM6N6RQI1+mK0miacjRd3udG 5ff6hYoAEzJ7G3yNZKZ/oniM+xxCr8RuJuQyfGMVcjajC2igSnGMnjmV9gKiNQLx8NBB SX8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=g2QwocJFUIdEBssmxAAO4HEsnqwtPWdNhcoohBv+kiw=; b=zJYlksxyzRf7OndzI4VKqJwBbFMhmc3dxKOl6Zwc6pMcEcOlIbgTRE+sjqRuYUZy8l KsK2bcB2X3zNIbEa22S36i2QxgaDIam/O8U9/XlEF2NXUptHJlRTMSXBd/es++pytM0Z kIjzlPkPRLGL+CW/zkAMCTxyPyqBmlPwS5gXKxz2/LonELmHM3tINnbVwcp1M/1EWx4M G0MWrZ88YJRX498lRqy2p3Kakmme92V5UnqKLFubNb8mvkmgJvPf5md5zwQ7XSqqZ8XU 4CZv5nYJE2IiudHz7BGlQt4w+VnWswHOgi5uICiJw66pvvKfLKAzkJyaOkcdPtl/xEbN Xr2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i23si3845598edr.191.2019.10.08.07.06.18; Tue, 08 Oct 2019 07:06:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726275AbfJHOGC (ORCPT + 99 others); Tue, 8 Oct 2019 10:06:02 -0400 Received: from smtp2.goneo.de ([85.220.129.33]:38536 "EHLO smtp2.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbfJHOGB (ORCPT ); Tue, 8 Oct 2019 10:06:01 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id 248F023F4C2; Tue, 8 Oct 2019 16:05:58 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.099 X-Spam-Level: X-Spam-Status: No, score=-3.099 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.199, BAYES_00=-1.9] autolearn=ham Received: from smtp2.goneo.de ([127.0.0.1]) by localhost (smtp2.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PdJ_mfceu7tW; Tue, 8 Oct 2019 16:05:56 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp2.goneo.de (Postfix) with ESMTPA id 1807623F232; Tue, 8 Oct 2019 16:05:55 +0200 (CEST) From: Lars Poeschel Cc: Lars Poeschel , Kate Stewart , Thomas Gleixner , Jilayne Lovejoy , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Steve Winslow , "Gustavo A. R. Silva" , Kees Cook , Allison Randal , Johan Hovold , Simon Horman Subject: [PATCH v9 0/7] nfc: pn533: add uart phy driver Date: Tue, 8 Oct 2019 16:05:37 +0200 Message-Id: <20191008140544.17112-1-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this patch series is to add a uart phy driver to the pn533 nfc driver. It first changes the dt strings and docs. The dt compatible strings need to change, because I would add "pn532-uart" to the already existing "pn533-i2c" one. These two are now unified into just "pn532". Then the neccessary changes to the pn533 core driver are made. Then the uart phy is added. As the pn532 chip supports a autopoll, I wanted to use this instead of the software poll loop in the pn533 core driver. It is added and activated by the last to patches. The way to add the autopoll later in seperate patches is chosen, to show, that the uart phy driver can also work with the software poll loop, if someone needs that for some reason. This patchset is already rebased on Johans "NFC: pn533: fix use-after-free and memleaks" patch https://lore.kernel.org/netdev/20191007164059.5927-1-johan@kernel.org/ as they would conflict. If for some reason Johans patch will not get merged, I can of course provide the patchset without depending on this patch. Cc: Lars Poeschel Cc: Kate Stewart Cc: Thomas Gleixner Cc: Jilayne Lovejoy Cc: Greg Kroah-Hartman Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: "David S. Miller" Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Cc: Steve Winslow Cc: "Gustavo A. R. Silva" Cc: Kees Cook Cc: Allison Randal Cc: Johan Hovold Cc: Simon Horman Lars Poeschel (7): nfc: pn533: i2c: "pn532" as dt compatible string nfc: pn532: Add uart phy docs and rename it nfc: pn533: Add dev_up/dev_down hooks to phy_ops nfc: pn533: Split pn533 init & nfc_register nfc: pn533: add UART phy driver nfc: pn533: Add autopoll capability nfc: pn532_uart: Make use of pn532 autopoll .../net/nfc/{pn533-i2c.txt => pn532.txt} | 25 +- drivers/nfc/pn533/Kconfig | 11 + drivers/nfc/pn533/Makefile | 2 + drivers/nfc/pn533/i2c.c | 22 +- drivers/nfc/pn533/pn533.c | 271 +++++++++++++-- drivers/nfc/pn533/pn533.h | 38 +- drivers/nfc/pn533/uart.c | 324 ++++++++++++++++++ drivers/nfc/pn533/usb.c | 12 +- 8 files changed, 646 insertions(+), 59 deletions(-) rename Documentation/devicetree/bindings/net/nfc/{pn533-i2c.txt => pn532.txt} (42%) create mode 100644 drivers/nfc/pn533/uart.c -- 2.23.0