Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp700732ybe; Thu, 19 Sep 2019 02:20:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3mwSC5RFkl7uhFxKIR1TFHDgHVQLIh6c2g4ctt8fK8RaxK5XTmwqfMHbHV4Ekk3FSTyk0 X-Received: by 2002:a17:906:74d4:: with SMTP id z20mr13319582ejl.191.1568884845032; Thu, 19 Sep 2019 02:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568884845; cv=none; d=google.com; s=arc-20160816; b=OIw9xrCMzqN+b8fsZ9mbyMOZQVDtyvMG+9VCe8Gph8JczplnVUvf6AI9L0XNKS318R s9D1bJBwmNph1gBwsCawA0OeLDfo7ZI8cEekUk6fSzf2XzH2G6F4eMDDuoiRiqWSk+XA z9+gvLP/AuFP2eeGd0TbTAoK8rYeipsXeIC4Y51KIpOnYJQb49FriRaH+YjNsEa0kKZL KWMelG14vugdEM/8iIhSRBN6xDOpvSc9u9BVxcPBPVHcqRRffiVkG9cpxDHeCU0b/V8v hp3scRwsgsFoAE2NtPvR9E/Y5SlOCxjyLs9n0ot+bQRKDx7m/VbgQMX/t079t7eLvQnC bMIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Vzyos08efQesp2n5bUUdZ4XC6oDoe4sR5vtYl5ChhRc=; b=Lz4Y+1oEyycNYyg/2qOpYiluJjx9xgogcyYk5PMknbxGK+I9URu/Y8jgcr7uIH+FTc d8/elf3crsiVd6smAnSV/w/7z4GfFIGxlouVzPxSLBqLBSCsM3RGNi8GWIctzDFPnJC3 B37I4uTbZ+qBHqihaGfbLg0IqpN0TLvV5DFBqPbJWCzmiAHsUiAwHYJIHQRp9afrtPi3 CcEXLxsxauu8liMBZpxit4sPWVehR5P/J0fTOIlHlTvpd72mknSPyIC1HL0MutCqz/E1 fANUyY8wxv4O5DWu8RV+ZRXhSqRT1/H1VOOv47Id1wnzak4ANpJ7EnIK2oyEoBYOgp8T ZXTw== 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 z4si4032427eji.316.2019.09.19.02.20.21; Thu, 19 Sep 2019 02:20:45 -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 S2388815AbfISJRf (ORCPT + 99 others); Thu, 19 Sep 2019 05:17:35 -0400 Received: from smtp3.goneo.de ([85.220.129.37]:59412 "EHLO smtp3.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388793AbfISJRd (ORCPT ); Thu, 19 Sep 2019 05:17:33 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 6600723FC3B; Thu, 19 Sep 2019 11:17:32 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.019 X-Spam-Level: X-Spam-Status: No, score=-3.019 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.119, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F1M1ipAAWv2K; Thu, 19 Sep 2019 11:17:30 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id AFC9323EFEC; Thu, 19 Sep 2019 11:17:30 +0200 (CEST) From: Lars Poeschel To: "GitAuthor: Lars Poeschel" , netdev@vger.kernel.org (open list:NFC SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Cc: Johan Hovold Subject: [PATCH v8 7/7] nfc: pn532_uart: Make use of pn532 autopoll Date: Thu, 19 Sep 2019 11:16:44 +0200 Message-Id: <20190919091645.16439-7-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190919091645.16439-1-poeschel@lemonage.de> References: <20190919091645.16439-1-poeschel@lemonage.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This switches the pn532 UART phy driver from manually polling to the new autopoll mechanism. Cc: Johan Hovold Signed-off-by: Lars Poeschel --- Changes in v6: - Rebased the patch series on v5.3-rc5 drivers/nfc/pn533/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/pn533/uart.c b/drivers/nfc/pn533/uart.c index 7f639051cdd0..edf8db890eaa 100644 --- a/drivers/nfc/pn533/uart.c +++ b/drivers/nfc/pn533/uart.c @@ -262,7 +262,7 @@ static int pn532_uart_probe(struct serdev_device *serdev) serdev_device_set_flow_control(serdev, false); pn532->send_wakeup = PN532_SEND_WAKEUP; timer_setup(&pn532->cmd_timeout, pn532_cmd_timeout, 0); - priv = pn53x_common_init(PN533_DEVICE_PN532, + priv = pn53x_common_init(PN533_DEVICE_PN532_AUTOPOLL, PN533_PROTO_REQ_ACK_RESP, pn532, &uart_phy_ops, NULL, &pn532->serdev->dev); -- 2.23.0