From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B342DECE58E for ; Tue, 8 Oct 2019 14:06:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 91F192064A for ; Tue, 8 Oct 2019 14:06:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726264AbfJHOGC (ORCPT ); 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 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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