Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2925500imm; Fri, 19 Oct 2018 01:58:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV621u+6ho8ZQzcimYe/8rD167iUWyC/x+P1eb82faUBDauNC4O2ydSOX5RkP/ma460DHB/MV X-Received: by 2002:a62:120b:: with SMTP id a11-v6mr33749848pfj.165.1539939526492; Fri, 19 Oct 2018 01:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539939526; cv=none; d=google.com; s=arc-20160816; b=b0s1ACVcUR6i3hNjzxdN0+izTB5Lu3jX2Ez8veuxwY7l8IyLTwTgKAydV0B6HtE5uh Ao2yfydprsNm3+ua9q3i6S0iSs9wh6rTLMJYeYvrpZtmreuTt6qzwDnmp4wXIzSEXFgR QVlXGBjC++O1V8QBkVGr2sn2ALYcU9tOrdu4paHGeR5S+fhUzWaRWN6Tx93D7qWDLg4A yFKnmd+HizeYNhJggYR6wjZwRksiwuqma41TvnbZBasogA9AN2Hl2NqgbMVbZ7FvQLJU k9jOHUPq5zK7TlhP5T0GBDXIxzWzBdbSkuGfw9nbdoOeMjxAhYUH0+BhnLnxlxzH83TP pgJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ISpbTm4UNWORbb647mX9yQXpbP0SSaPmOKnzpDfAvN4=; b=T1Um+PkUQw9TPxlZ/uf2LR/tqC0Dunu1eTuSPM9PEGVmcU7KzbpdFpjhtS56f8PxDH 695xdBrz1OsmQ8HXEVNogn3wg/bXetxzq0K0lU3BQy4gLDvlezjtizn3e4/9ua3PLaOb vXuDvvPGYcmmZuUOVstc9a6Qzgv86ecKfu6hEMtj/pk0AlZl4g8f3kfC750VJ+hgIfGY IVgE7zPeaHJcMtEWjNXGmA5ERm97JgomVre/dKLU4VchnPZkZ6ff/8nVM4hyU+1UksIQ Uha9eQFPIEvgnXsVJH7ltEEO9Y3p3gTr10PVJi1OYbeY9CxjvD5YDe7fD3OgKTsTsq+I Mpig== 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 g12-v6si22936749plt.4.2018.10.19.01.58.31; Fri, 19 Oct 2018 01:58:46 -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 S1727297AbeJSRCt (ORCPT + 99 others); Fri, 19 Oct 2018 13:02:49 -0400 Received: from smtp2.goneo.de ([85.220.129.33]:54022 "EHLO smtp2.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726903AbeJSRCt (ORCPT ); Fri, 19 Oct 2018 13:02:49 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id B88C923F5D5; Fri, 19 Oct 2018 10:57:36 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -3.218 X-Spam-Level: X-Spam-Status: No, score=-3.218 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.318, 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 a_RXTW9CRsgI; Fri, 19 Oct 2018 10:57:35 +0200 (CEST) Received: from lem-wkst-02.lemonage (hq.lemonage.de [87.138.178.34]) by smtp2.goneo.de (Postfix) with ESMTPSA id 7FD8323F6C8; Fri, 19 Oct 2018 10:57:35 +0200 (CEST) Date: Fri, 19 Oct 2018 10:57:28 +0200 From: Lars Poeschel To: Marcel Holtmann Cc: devicetree@vger.kernel.org, Samuel Ortiz , open list , "open list:NFC SUBSYSTEM" Subject: Re: [PATCH v2 1/4] nfc: pn533: add UART phy driver Message-ID: <20181019085728.GA26696@lem-wkst-02.lemonage> References: <20181018144251.30028-1-poeschel@lemonage.de> <6CB47B97-F58D-4162-98C1-8C8C88CE2914@holtmann.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6CB47B97-F58D-4162-98C1-8C8C88CE2914@holtmann.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 18, 2018 at 05:00:28PM +0200, Marcel Holtmann wrote: > Hi Lars, > > > This adds the UART phy interface for the pn533 driver. > > The pn533 driver can be used through UART interface this way. > > It is implemented as a serdev device. > > > > Signed-off-by: Lars Poeschel > > --- > > Changes in v2: > > - switched from tty line discipline to serdev, resulting in many > > simplifications > > - SPDX License Identifier > > > > drivers/nfc/pn533/Kconfig | 10 ++ > > drivers/nfc/pn533/Makefile | 2 + > > drivers/nfc/pn533/pn533.h | 8 ++ > > drivers/nfc/pn533/uart.c | 283 +++++++++++++++++++++++++++++++++++++ > > 4 files changed, 303 insertions(+) > > create mode 100644 drivers/nfc/pn533/uart.c > > > > diff --git a/drivers/nfc/pn533/Kconfig b/drivers/nfc/pn533/Kconfig > > index d94122dd30e4..da3ea2dbaa8a 100644 > > --- a/drivers/nfc/pn533/Kconfig > > +++ b/drivers/nfc/pn533/Kconfig > > @@ -25,3 +25,13 @@ config NFC_PN533_I2C > > > > If you choose to build a module, it'll be called pn533_i2c. > > Say N if unsure. > > + > > +config NFC_PN532_UART > > + tristate "NFC PN532 device support (UART)” > > you are missing the "depends on SERIAL_DEV_BUS” here. Yes, absolutely right. I missed that. I will post a follow-up. BTW a question: Only enabling SERIAL_DEV_BUS did not suffice for me. I also had to enable SERIAL_DEV_CTRL_TTYPORT, otherwise the probe of the driver was not called. This seems a bit odd to me. This option seems unrelated, but without it, it did not work. Should I better depend on SERIAL_DEV_CTRL_TTYPORT then ? Thanks, Lars