Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp409996rdb; Fri, 6 Oct 2023 07:11:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwJadFyydrVQ4itxbXgB5LGnNuljAGYvlpzbwtgoupSSAPGVA/bioTnsIZeVFukkt8V23l X-Received: by 2002:a05:6358:291b:b0:14d:b8d3:97e5 with SMTP id y27-20020a056358291b00b0014db8d397e5mr8021346rwb.20.1696601509068; Fri, 06 Oct 2023 07:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696601509; cv=none; d=google.com; s=arc-20160816; b=KjRsOlqt0ZKqBp7kNIXH1xb1q+Yh9uxGTMmJv5u0alJAT1Ai5k0yLMRRYddWLMcl8s O3xQxy8MW3Tpz+rRtgGApXOhTEFFdG+V5JOEBiuIrtNhcRkhGXtT8+lw1c5nwbfNIsPC QqSrTJQDwoI0NMqXpY5P4ZoVT0MJSF9vtdGTZqaFq2wwBtgc3QBhL1OiIrdNnsuohKW9 iXgrIlFBvh9lSKd9qHRmQAEnvOoUGW/cANB9V3zPNmvOr2p6xDs8i2ShUeBxIIP7iYrG YTpj4sj8wPh/A7Ssivh/oux4D+dw3AOTdRDD8F8EoivDLg7I9neJpxoJRrsUjOYqQXB8 MoDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jJFedVf1/mVveXHaFQlw8jx/odezza3UG8yOzxqvicc=; fh=jKA6mXaAARIIe8G9HF1H/Pa/fBJ9R7rIkeKQc/94+Po=; b=eC88EGQ95qE8pl8REYhZj8jEdiygCmSusMIjMyOEbIDY+XqDBvGPWCfI5qWgHTT0d7 ycNkpLC787B1ife2bsztRhT6+DhxAkyIIdH0FyLj20LwOGCfaqLX7nVEa2iRAZ20sXB9 mAVojoHaX+Ex7Vc6BPUuELilMHpgdOHT3Y3btImWfhJcCIKdDMHweaYwerC6CG15ixWF aWRFKLuRLGesGEFJyRvfjy56RaIY0P0EG8mHsG4quYUZuoVbTfQK1g1I7tJEmOe79DwK rbwNnLGnrHe6DWHYvs6HbiyE5oAvbo37s35DCg61OFWyL9oSpJY5pnwrYNlbQceuXZWx S2AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sclvbRf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l63-20020a639142000000b0055b731aa9adsi1208100pge.562.2023.10.06.07.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 07:11:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sclvbRf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7DD9385A01D4; Fri, 6 Oct 2023 07:11:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232464AbjJFOLc (ORCPT + 99 others); Fri, 6 Oct 2023 10:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbjJFOLb (ORCPT ); Fri, 6 Oct 2023 10:11:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B095AD; Fri, 6 Oct 2023 07:11:30 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B30ABC433C9; Fri, 6 Oct 2023 14:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696601489; bh=5tWpzn+db/xeesoge1NIJxaqKZEBJNCGXxgh72xvPnI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sclvbRf3j5/VQUNwhfrnngjkICudKIMNiN3Uxkp73tEzBBWUdOME4Zh6s6EIYphwZ METNwvLIiegNONyMNktrsxV6RhogXZUtyeYWtfXWLS51VrZP+SWFkLRZnweqBwl8Eh bbNRvfqF/rayqXEmSrS1oRiTTjc2uZixT8WPIQVG+ftWG5mCxS5AeHwRpUd54BYk5m jNaRhe3Fw40VnNviTTUmQStmgsbL1QMbw5ydPGnUB8zZBAxFWc2kHfPGHX8ERoayS8 MpQFUBLd/cBge+yypJwXEIzuAEA1X875e2O/atxCKdA4UxyU/o4TDzyf5lcWniMioR LKkcuMOIFPo+A== Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2bff936e10fso39334101fa.1; Fri, 06 Oct 2023 07:11:29 -0700 (PDT) X-Gm-Message-State: AOJu0Yx5ywyNVv5tdaXeHY1vGCybieFEAwjXLCIFKYnG671hHlujnaPi M2g1KElWp4z3z81J4E33/bnQ/2KS1WXveB/8ow== X-Received: by 2002:a05:6512:1245:b0:504:20a5:7375 with SMTP id fb5-20020a056512124500b0050420a57375mr4003520lfb.29.1696601487910; Fri, 06 Oct 2023 07:11:27 -0700 (PDT) MIME-Version: 1.0 References: <20230928151631.149333-1-jcmvbkbc@gmail.com> <20230928151631.149333-6-jcmvbkbc@gmail.com> <2023100326-crushing-septic-4856@gregkh> In-Reply-To: From: Rob Herring Date: Fri, 6 Oct 2023 09:11:15 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 5/5] drivers/tty/serial: add ESP32S3 ACM device driver To: Max Filippov Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Jiri Slaby , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Fri, 06 Oct 2023 07:11:44 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 3, 2023 at 2:47=E2=80=AFPM Max Filippov wr= ote: > > On Tue, Oct 3, 2023 at 5:55=E2=80=AFAM Greg Kroah-Hartman > wrote: > > > > On Thu, Sep 28, 2023 at 08:16:31AM -0700, Max Filippov wrote: > > > Add driver for the ACM controller of the Espressif ESP32S3 Soc. > > > > Odd extra space :( > > Ok. > > > > Hardware specification is available at the following URL: > > > > > > https://www.espressif.com/sites/default/files/documentation/esp32-s= 3_technical_reference_manual_en.pdf > > > (Chapter 33 USB Serial/JTAG Controller) > > > > I don't understand this driver, "ACM" is a USB host <-> gadget protocol= , > > why do you need a platform serial driver for this? > > The USB part of this piece of hardware is fixed and not controllable, so > all we have is a very limited UART interface. But to the outside world > it's a USB device with the CDC-ACM interface. > > > > diff --git a/drivers/tty/serial/esp32_acm.c b/drivers/tty/serial/esp3= 2_acm.c > > > new file mode 100644 > > > index 000000000000..f02abd2ac65e > > > --- /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? Yes, that's the default license for the kernel. So you should have a reason for picking something else. Like maybe you copied all this from somewhere else and that was the license. Rob