Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3950428ybl; Tue, 20 Aug 2019 04:55:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyG3uhqCdghPSU5R19Mw0BB2AJ7AEXAmoyyoES5eZ22chNk0AQ4WAB9v4VdNuEQKo12P7Bq X-Received: by 2002:a62:e801:: with SMTP id c1mr30237909pfi.184.1566302133062; Tue, 20 Aug 2019 04:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566302133; cv=none; d=google.com; s=arc-20160816; b=s3Gszn7f/qOpE81BUFk/OnhS2Q/daXSSvBS9lo9kiiMTI3hMG7TBWISl+JENxEvxkG Emu387poe9lrdIN4Y7CcqDKPYXCzVdDL/woyU0OnHcwmOszZbsSrKPQ3OUPIrmPgYqYS ePxNw2VsNqG2lgFDR9FT7i3w1UvjGoxRv6DNlzxN0q2rG9Z7BrI+F5TwFrCVejEJweiA VHrtmIM5rXTWuSA9SV9yPP3i2RlraKssoYi6X2lq2AwhbDjZlKRUnnp7Vti1CApXjzd4 Y0FUOF6A3nzffm7+W3lii9xm4PbYXtVOC39SQ0Ufq0h/TZgxSlYg1ilHwWBckYjbWOnq uZcg== 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=ie5VnESgRG2YoarAdUdy/Zpz8WjdtUoL9EaB55kPeZk=; b=uTU+od5Ejky3ub2ts/4zh0BDNbSweetZ5R6D9focEF7gEhhdRtdsUDdzO15CXGnMYT S2+Y7VuoY0xkEltBd9s0ziAfrOSSRfOiPqAbXXeG5CUP9pwJ39ndsUfmMLpONfQAj0tK rtMkdv4AzhbMuH9MEmj5iCfJHkUxTn54K+anJSWbj8918cvJQ/C0e7QHHONl8dA8BpV9 Sa+0U5gZjjtvmSIWxHwpL8BXl05GAD8/TJipoy947go/SiCZgSOZuf1M3mPtErMRamTE mTBFYaM3NycnQvDZGNLwm3M5mbyx7vRYmmptAOjr0n92bT05nYDsBEUKiaKR40UKv9lp EJHQ== 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 28si12115986pgk.331.2019.08.20.04.55.17; Tue, 20 Aug 2019 04:55:33 -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 S1729956AbfHTLwa (ORCPT + 99 others); Tue, 20 Aug 2019 07:52:30 -0400 Received: from smtp2.goneo.de ([85.220.129.33]:52410 "EHLO smtp2.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729930AbfHTLw1 (ORCPT ); Tue, 20 Aug 2019 07:52:27 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id 6ED5A23F1FF; Tue, 20 Aug 2019 13:52:26 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.121 X-Spam-Level: X-Spam-Status: No, score=-3.121 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.221, 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 IU0sJtfeQ23X; Tue, 20 Aug 2019 13:52:25 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp2.goneo.de (Postfix) with ESMTPA id 78E3823F187; Tue, 20 Aug 2019 13:52:25 +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 v6 7/7] nfc: pn532_uart: Make use of pn532 autopoll Date: Tue, 20 Aug 2019 14:03:44 +0200 Message-Id: <20190820120345.22593-7-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190820120345.22593-1-poeschel@lemonage.de> References: <20190820120345.22593-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 f1cc2354a4fd..e3085e5b2d4c 100644 --- a/drivers/nfc/pn533/uart.c +++ b/drivers/nfc/pn533/uart.c @@ -254,7 +254,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.rc1