Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp560794imm; Wed, 17 Oct 2018 04:54:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV60+SyADeC3Ajws8SkzvjMK/OfuNw9Jh0UownkLUuu0DgZBuXhDGXEc06TR6+Iigs4IYcweZ X-Received: by 2002:a17:902:50e3:: with SMTP id c32-v6mr12856521plj.215.1539777285101; Wed, 17 Oct 2018 04:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539777285; cv=none; d=google.com; s=arc-20160816; b=LPaCocWjflz5mQ7M5Bs6hv3dUQ3ZlR4x69l53I6IfgvRJr8t+7mH/MlHwRG4Eke+na awwhkm7x+WcpCWMeFrfudMceNXR3FUA+t88b3JGiwGcOoAj4lmwg1AzFTUydntimlVbM +/PhsOdxLNe1CSe5RhwjM4pAOrsSIpGK1zFcUt4O3QsMS9iHCfH1mY6JP6rqF05s+Pu8 RD/tLY/qH0NR93yUsaY28SDKNeETwp1ESN2cvxM7QZUwOFvc0pZeu18XL1NLoyy4QcKO e1oEEQgyZNLVGt7aXQ8xPFqOqyE9LxUNy8hmtclVsfYOlI1HMWTeNvGdlO4rGn9TnEwq PAPQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nP+MkAxa9s02W1QPUd7H3+lnNGITHaE6RsgQDseAYIQ=; b=KjmyjZfLuW0tiuCroMl+mSphGWPA8V2k769Oxdy63EHmgloz5EsBH1nQqSCOw1TTrl ILTTNi8OpxUrv/Cb5TBc53Ah/3DekuvhzOsplDLa4CKyH4MRssT46vYq5ICSdQrS+8D4 ORJIfDmuzht25N9kXPM59LhDH+M4hEGaIdxva8FQV5hs39GxJ+C0XIijEOWwsqLkAzGh kmw6T+GC5Als8fF68pahz1RTv/LtwKFt1jprCmlPYXzn6mrw7TCkNuyN0kb5fs15V1a4 EollJwKNPZcHOD0EUOWzYuaosO3hOc5tnoYV2CeFuYxeRAw2N3CDemPqNy8Xes8InXaF PPig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0rKAiiIk; 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 b68-v6si17938379plb.398.2018.10.17.04.54.29; Wed, 17 Oct 2018 04:54: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; dkim=pass header.i=@kernel.org header.s=default header.b=0rKAiiIk; 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 S1727332AbeJQTtW (ORCPT + 99 others); Wed, 17 Oct 2018 15:49:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:37044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQTtW (ORCPT ); Wed, 17 Oct 2018 15:49:22 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EFCC22150D; Wed, 17 Oct 2018 11:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539777240; bh=srnI9OkrYFEfk6mRqTE3Wjyf68qQZWzXSPjOarQe2Oo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0rKAiiIkYyPZQY5bNs5LkJ8XNtKbzGpMWsk/gl+RHzkJ0aQ/FfULIPJR8ARY/glhr AGRtkEAbw5ivrlnN9sy++WMXbYkPj5rqfgUNiWFhsv2M1ukUhFAUzBea02wx2KYMxX 66isl5yr9J61xDoiIqgC/OE7jabA47/IX3Fjgs8Y= Date: Wed, 17 Oct 2018 13:53:57 +0200 From: Greg Kroah-Hartman To: Lars Poeschel Cc: Samuel Ortiz , Jiri Slaby , Kees Cook , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH 1/3] nfc: pn533: add UART phy driver Message-ID: <20181017115357.GC32302@kroah.com> References: <20181017102037.28537-1-poeschel@lemonage.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181017102037.28537-1-poeschel@lemonage.de> 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 Wed, Oct 17, 2018 at 12:20:35PM +0200, Lars Poeschel wrote: > 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 tty line discipline. Why not use the serdev interface instead? > --- /dev/null > +++ b/drivers/nfc/pn533/uart.c > @@ -0,0 +1,399 @@ > +/* > + * Driver for NXP PN532 NFC Chip - UART transport layer > + * > + * Copyright (C) 2018 Lemonage Software GmbH > + * Author: Lars Poeschel > + * All rights reserved. Please use checkpatch.pl on patches so you do not get grumpy maintainers telling you to use checkpatch.pl on your patches :) > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, see . These three paragraphs can all be dropped because you are going to add the correct SPDX line at the top of this file, right? :) > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include "pn533.h" > + > +#define VERSION "0.1" > + > +#define PN532_I2C_DRIVER_NAME "pn532_uart" > + > +#define PN532_MAGIC 0x162f The whole old model of "magic" tty numbers can just be removed. It never really did anything except to try to protect you from other broken kernel code. You can drop it all if you really do end up making a tty device here. thanks, greg k-h