Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4117767ybg; Fri, 25 Oct 2019 13:36:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOh2ZPbJ/FCOUTwamdsWADTxvI4hbYyCyHbm0E2PFoh0XoIiLMDUJb+7R+o8cOQICIqHXi X-Received: by 2002:aa7:dcc2:: with SMTP id w2mr6041389edu.92.1572035784734; Fri, 25 Oct 2019 13:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572035784; cv=none; d=google.com; s=arc-20160816; b=AZ5hDrWqN1EXA6u+8PdEG4xb4kZ71GyQruWv9TYva67wGdDsGR5BXM6mXM4ffkbVZX HR5qZeYwhZH+GSO1gGCtr1EMgXCZsUbLzjkSm0y8pxDoRU/XwXv23+37ipeUdqVP8fkP gkU8bKRBFybrV9ihpOqOWwVZKGRCkinMb7NWBSH3wxy27mvNY3jvGk/wfP62A4uRi5rK MWq8SeKyQayo6TrAvZSe4+7j/y/R/vyniLcxjFbaKiw1lk4rTWyudPCVcsXWvRyiv0fL 8KxE9cCMZ9nYuQgdQ0IFkoZ0GwSa9rkKCzMNQt8jsLyZAf2XpXPHN06nVqovjI8+p0mY 3c/Q== 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=36kBw/MfPJFZkAryiSgo9UBbfL5xFYZyVQvh35Dh3fQ=; b=IUgPH4R+PmSfsM3Toa5iyVQGTgB4aoXAl1BOhZPzA/InSFcMwlc4OLdzrLf5FTNiXx OhIevXnYMA+R7Zmkd5/Tf4PCinYY8iJo+iJ/pNjk5iyRj9TSqGyB1lZwDfQqW05EJmjI zIpDTe4XLqrH4kku+/qRoY/v7Yzq/ZWWtEhnCd7CHSmUsKVOyv3J4Xb4JdB46sMeolF2 mZkgtWNWi7vXZ29WBpFyQPDjNtpAuLeqCGZvtFb1E8d0QV1ReE6zGaNFW7L6dnB/qUDz rpGB9/5CPuxSaaoJ9Dlx3ah6AuQwhpZVHO2z6p9yW1yJNkw0yPj8CE3NAlQhoQgoLfA9 Bp3g== 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 jr17si1886435ejb.325.2019.10.25.13.36.01; Fri, 25 Oct 2019 13:36:24 -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 S2408824AbfJYO0V (ORCPT + 99 others); Fri, 25 Oct 2019 10:26:21 -0400 Received: from smtp3-1.goneo.de ([85.220.129.38]:36414 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404022AbfJYO0P (ORCPT ); Fri, 25 Oct 2019 10:26:15 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id F074B240028; Fri, 25 Oct 2019 16:26:13 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.005 X-Spam-Level: X-Spam-Status: No, score=-3.005 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.105, 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 8slKb-VbIwi3; Fri, 25 Oct 2019 16:26:12 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 89EDF23FF75; Fri, 25 Oct 2019 16:26:12 +0200 (CEST) From: Lars Poeschel To: Lars Poeschel , netdev@vger.kernel.org (open list:NFC SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Cc: Johan Hovold Subject: [PATCH v10 7/7] nfc: pn532_uart: Make use of pn532 autopoll Date: Fri, 25 Oct 2019 16:25:21 +0200 Message-Id: <20191025142521.22695-8-poeschel@lemonage.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191025142521.22695-1-poeschel@lemonage.de> References: <20191025142521.22695-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 v10: - Rebased the patch series on net-next 'Commit 503a64635d5e ("Merge branch 'DPAA-Ethernet-changes'")' Changes in v9: - Rebased the patch series on v5.4-rc2 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 b408848e7779..5415ccc33ff0 100644 --- a/drivers/nfc/pn533/uart.c +++ b/drivers/nfc/pn533/uart.c @@ -261,7 +261,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