Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5993864ybe; Tue, 10 Sep 2019 11:53:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ3SF2tfncATuDB4T7fpMfL4HR8pRIjr4dt9gL0iiyvHSt2UZo43Cv4QXDQx5ZX1K7yVdz X-Received: by 2002:a50:d552:: with SMTP id f18mr32909155edj.36.1568141588866; Tue, 10 Sep 2019 11:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141588; cv=none; d=google.com; s=arc-20160816; b=x3zqaO02e/JosqpaMyYaXlK2tU2jHloShhQR/7X6xz0g2zjWt3nTQ/+f2ID2o+egiF 7Rytq6bZ5ealckFqyeiq9c2+RWwrY7Z677/cziL4uiTjqywpWsl4M9IhZafezrRrd3zr g3pjCb0Lngi2KOGfBvlfLjuGp+j1X5CvsNP7lKRrDbbD9pcxZIh7KmgmMCkLHJOCNabV B09imsGlhzCzZvRQoHFVleNel4/tF1XE0S6nS/Marcn+GSFYK+3WhWgTvGWu2BkttDmL +9bmzxevtaDIhbVcy2jE2Le10Y1Cq2ulF0C9XZWLQA+CIB6sjJmTq+out/ACjal6GGgM t2Xw== 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 :message-id:date:subject:cc:to:from; bh=a7jk9l9zDXaWnKKucAsgkJ9sqjuBH5+yDpTeljW6Oh8=; b=x28Yhjt9cvheg1dAteLQZUREXc3GPJtHMJMXoqSjC+GVnStnC4kZWrgxfzUpbpf/nd acSkGZD0DTn0TMc+LTWCu3ewGPSN3r5crvSKFHa21pt0BzJMfubeKUReIRhkuCcoIsjE LkKxbRpkRYMVLSjIy/OZBY4aTF/wrP/puNmlBiOygBw5a9yhkHjaQrLi2hRyFKXRlt+v yhQJpMtmNOwuEJinOJV11VLZEQFstKCpWh9EUE/arFQVNpj8Bd0NVaXe7Kc2GGfaBlBd GumoHiUh9GkUTj3jemfrTXvk6bT19+IpIyktNZmqIi9LIw2WA1bi8zEMMhoGRtJeR/Hv gmhw== 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 sa6si6445614ejb.359.2019.09.10.11.52.44; Tue, 10 Sep 2019 11:53:08 -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 S2389861AbfIJJVK (ORCPT + 99 others); Tue, 10 Sep 2019 05:21:10 -0400 Received: from smtp1.goneo.de ([85.220.129.30]:55654 "EHLO smtp1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbfIJJVJ (ORCPT ); Tue, 10 Sep 2019 05:21:09 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp1.goneo.de (Postfix) with ESMTP id D640523FBA0; Tue, 10 Sep 2019 11:21:06 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.083 X-Spam-Level: X-Spam-Status: No, score=-3.083 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.183, BAYES_00=-1.9] autolearn=ham Received: from smtp1.goneo.de ([127.0.0.1]) by localhost (smtp1.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9xf1MQ0D5aTr; Tue, 10 Sep 2019 11:21:05 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp1.goneo.de (Postfix) with ESMTPA id C639E23F2C2; Tue, 10 Sep 2019 11:21:04 +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 v7 7/7] nfc: pn532_uart: Make use of pn532 autopoll Date: Tue, 10 Sep 2019 11:34:27 +0200 Message-Id: <20190910093431.2268-1-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0 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 cce8f29eda8b..deb553017d82 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