Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp257915rdb; Fri, 6 Oct 2023 02:34:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZagAgZO6dypTXZlHNkBMPCQWoCgM3wLZ3kGsgFSKFpuLH4DuXaS6Qtl6eAfeWB9rCdsWR X-Received: by 2002:a17:902:e749:b0:1b8:76ce:9d91 with SMTP id p9-20020a170902e74900b001b876ce9d91mr9544758plf.1.1696584896387; Fri, 06 Oct 2023 02:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696584896; cv=none; d=google.com; s=arc-20160816; b=nICyRI5GJ2Ut53JZXBf4G0c1rMc+1XLw/WPa2NFCohoVlTzcKg1NB4OefOMtS2pHrk 7fkqfndc2zm/YlEhZ00Is9tYanT685JhSDRbM9qlVONlR3lzr89G9F9+FRy9ZHfV9NlU z9r2ToRQZdEXeDknVMBuF28y1Lx1LQ6v0gTzGIim5hFy3qZzwwroZhKeOQFXSPUqeCUV /Jwq0qjxSLK9FPcnZIDJQ5XcF82fskcNI3PGbUjrEY1ZEVxt3o6U9Cv7GEOxlRNOUqyp fhGjM8mI4B+83pGDtwzMWfLH4K0jdaXJ5pXM6DT2950ZrUZCrYmD/SEnVkuB3xE7BAuG QB3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BhYklxzqe+dd3dgB7a7NZ324byy1sEBoOnunb/02xj4=; fh=CnQBB6Ftqk9bebJVVTwS0omEriTocO3IqLY7kUEn/jY=; b=Bs41xxYCNztYP5Nf1mTI9Ftgoo+S/z+jswtZFwInybE+p4d0UVCqWGDQfumSjn6NGF IYMMSVJn1V3U59m4TtX1bby2FO2YcfWPiNYTWZLWpAvajJ8G7L87VSveX2pqwtVPaPv4 66OmuuDldqhtlBazkgHpEyA1Fi0fLCrt1dx0+DUb4CRWoow8crgf6NE0e8kvzW15d3kl vCq3uiKEGM2ixfkWtAx6ZZnf+RZED4p50V1kxw0EhlEZU0pa4LEQlwk0ZK8nzTcB5Myv br1xgiPjLO9ssS7sccLVbgiuF48tti5JC0V4WZdb6d3YsmR8xCNtHvqqtrmDUxi8EJrJ DogQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=igTTThiD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id k3-20020a170902c40300b001c7245a7fe8si3710451plk.524.2023.10.06.02.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 02:34:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=igTTThiD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8711C80613B6; Fri, 6 Oct 2023 02:34:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231411AbjJFJen (ORCPT + 99 others); Fri, 6 Oct 2023 05:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231215AbjJFJel (ORCPT ); Fri, 6 Oct 2023 05:34:41 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7C90AB; Fri, 6 Oct 2023 02:34:40 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE02AC433C7; Fri, 6 Oct 2023 09:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696584880; bh=eaiC0m6KCNQ8eqoSmmSKhQnpzSwu4dXMIdrsEkhuAkA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=igTTThiDiH1azZasoPr+f2LT1JZ9Acj6Hk4H1OeXOrInDYVUm1wdUNrhMepDSVDC1 6TDWEdfBz9VF4Pfrd0YwPPoG8h4neb4dRPJ12dMwGVkBoJvPAub/FmTF2quQ5+ije1 0Ojsqff3B2EB65yX4MfYr3eVo45dODyQBkRutqAI= Date: Fri, 6 Oct 2023 11:34:37 +0200 From: Greg Kroah-Hartman To: Max Filippov Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ilpo =?iso-8859-1?Q?J=E4rvinen?= Subject: Re: [PATCH v4 5/5] drivers/tty/serial: add ESP32S3 ACM device driver Message-ID: <2023100625-water-molehill-4a8f@gregkh> References: <20230928151631.149333-1-jcmvbkbc@gmail.com> <20230928151631.149333-6-jcmvbkbc@gmail.com> <2023100326-crushing-septic-4856@gregkh> <2023100544-rendering-identify-e0ad@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 06 Oct 2023 02:34:53 -0700 (PDT) On Thu, Oct 05, 2023 at 02:21:55PM -0700, Max Filippov wrote: > On Thu, Oct 5, 2023 at 11:57 AM Greg Kroah-Hartman > > > > > --- /dev/null > > > > > +++ b/drivers/tty/serial/esp32_acm.c > > > > > @@ -0,0 +1,459 @@ > > > > > +// SPDX-License-Identifier: GPL-2.0-or-later > > > > > > > > Why "or later"? I have to ask, sorry. > > > > > > I don't really have a preference here. Is there a reason to choose > > > GPL-2.0 only for a new code? > > > > It's your call, you need to pick that, but I can provide recommendations > > if you want :) > > Please do? If you only want your code being used in Linux, then stick with "GPL-2.0". If you want your code to be able to be copied into other GPLv3 licensed code bodies (like Hurd and others), then license it as "GPL-2.0-or-later". Your call. > > > > And no copyright information? That's fine, but be sure your company's > > > > lawyers are ok with it... > > > > > > There's no company behind this, just myself. > > > > Great, it's your copyright, be proud, put it on there! > > If I don't have to I'd rather not. This is just a piece of meaningless noise. You already own the copyright by virtue of creating the code (you can't give it away), so might as well put your mark on it to make it more noticable. But it's not required, if you don't want to, no one can force you, again, your call. > > > > > --- a/include/uapi/linux/serial_core.h > > > > > +++ b/include/uapi/linux/serial_core.h > > > > > @@ -248,4 +248,7 @@ > > > > > /* Espressif ESP32 UART */ > > > > > #define PORT_ESP32UART 124 > > > > > > > > > > +/* Espressif ESP32 ACM */ > > > > > +#define PORT_ESP32ACM 125 > > > > > > > > Why are these defines needed? What in userspace is going to require > > > > them? If nothing, please do not add them. > > > > > > I don't understand what the alternatives are. The comment for the > > > uart_ops::config_port() callback says that port->type should be set > > > to the type of the port found, and I see that almost every serial driver > > > defines a unique PORT_* for that. > > > > Yes, but not all do. If you don't need to do anything special, it can > > just claim to be a normal device, we've had threads about this on the > > list before. If you don't need to determine in userspace from the tty > > connection what device it is, just use the default one instead. > > Ok, it looks like having > > #define PORT_ESP32ACM (-1) > > in the driver source should be ok? I've tested that it works. Hah, I like that hack. But why not just use PORT_UNKNOWN? thanks, greg k-h