Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp281803rdb; Fri, 6 Oct 2023 03:28:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcHJW83nVOEn5ydSNnlfI65VIty5tmxs0I7CDZa8v2clSwjrYfGKARy+YdFF4/vUhvsIJq X-Received: by 2002:a17:902:7207:b0:1bd:ca80:6fe6 with SMTP id ba7-20020a170902720700b001bdca806fe6mr6745069plb.41.1696588097017; Fri, 06 Oct 2023 03:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696588097; cv=none; d=google.com; s=arc-20160816; b=diIvOmSs2YsSmhqrWsezUYKNxryw/JwgF74DTddh7w7iVCiMWoHlRebZYTC+j8UJ/s xhdwUpab5WlqK4skmITqUiiVVx8XWMVQX5p/l80UePt9QW0p3PwanCVsCSKEmaWDDhdC h3/IhBp48ByPOXsngW7NDwQpAoa54WKsIdBxUA0iQQC1JooIOI9CJCt1YkQKzkycLcut 2LnUyHP2dJS8jcyKMTEpGztLXjXLanI6vFXzEcBhoVKu5mmy9a/aM725nbMExIbYFC46 ZJRO3dq7rq9qe04+8qn051XVuX8yl+9p95UipUXSi5QsO6SlYupoCIJJg2qNhbfbjKFZ jvhQ== 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=lySe1hMe8uGNZO8PPWsTJao8eRENoz2n4qp0tx6fqRg=; fh=sPJQbaPYlO+uL9slxltTPNtF9BNCygTBFDnPHvO0Drg=; b=FyYVna/KastSXShZan99f+vE98tc4p3PnQKIi2xzB7mZysPsIrqzb8Xo8GKTdQtWSB xrmsm7RpO6LuZCLjcHw7koHIbV2URw29QUG4IAnkbjhSqx/4KakUYhAcCmmD12WgsafB EgX5e7t4iiiDjMNAdRHh83QTMgQ8kEAQd6OhWYWg711cjYw8AQFd1ms4N7/AW9Kb2BG1 rKDLfWS7045Vj2ojxA6CWBPnKGiK21QFJuvCSBY41gxAgXul4YpkgwRSzmxcNHV88PB4 55b0LMafvbZDWDtI7DTU9eeMHPF5rRhjLQ8RvxPMnOAy6BZ0lgBU7XHycInwajvOa+vf gSHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZW7CKuJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id r9-20020a170903410900b001bba90f8b73si3264280pld.78.2023.10.06.03.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 03:28:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZW7CKuJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A65198022835; Fri, 6 Oct 2023 03:28:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231717AbjJFK1w (ORCPT + 99 others); Fri, 6 Oct 2023 06:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbjJFK1u (ORCPT ); Fri, 6 Oct 2023 06:27:50 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C7309F; Fri, 6 Oct 2023 03:27:49 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2773f2e599cso1416990a91.1; Fri, 06 Oct 2023 03:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696588069; x=1697192869; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lySe1hMe8uGNZO8PPWsTJao8eRENoz2n4qp0tx6fqRg=; b=ZW7CKuJtK2Xs1PoiEO8xCgRm6BC39EqXTciRmOqtsBtaHVvKPOsATJoara4P+SaGcK M+cT9tlYhb0p0Q+DtckuZORDBIEdUHmZPJWa9rlAjQaHwUNy9UseZbHZba/fGuE75qV2 VevkSm3jvfYE8rRCN/H1Zpmq3aX3q/cHLJ5CNRVF8aM9AFetqN/qMYXYWWXneWzMN0X0 SUnG5fGMzjub941qfkU7KpfE/+Dx/voi+t32yC5hsbN6lc7y6iFOhRCRwvkAq+xDahqI 1+PLyn0ouMNVGsGKFx2A4gEYm59jFBxlHZ09T6QVLde8CcwdjkXof+7fZeczZiysJaM7 xS7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696588069; x=1697192869; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lySe1hMe8uGNZO8PPWsTJao8eRENoz2n4qp0tx6fqRg=; b=k9sYd8lVDVfPYkZTHQsJDDSDbzP/NjHaPRjur2Fm+PFtBJoUR4TgzZ5iZrnpszRBtY tLVGyV48RNrQtUim/mvEs2SMY7Qt9tbe9UNoehGoYWPtEcF5y6eP6m4rhTLItHArTqzw 2CtVihqIKcCJD2zv0RML82jXNIOa0nvqK7Tm79cCPgGc0nX1rcVBtAVWWPEQYvR9iGss e6tQadyXe67ECQnlg0sQwNMc6dZylRc8egmI+bnGG2t2NS11JcRliemuXwHL97RWyIiH QWurEVJAwPFg63wE/nzIjWRbqMqPaD0AVfCppBLx0DnUq+cm0JLJdGbM3x+m5za5a1YR /YTA== X-Gm-Message-State: AOJu0YydMRu8T9UE5NOZBNqHx1u3YlIzEA6+dhiiZfbpdgpzfqNWxHRf H2SP6oiC2XJ3sAYXL9vp/EfrTwRrk1ZqgTSGqhQ= X-Received: by 2002:a17:90b:1801:b0:268:314f:8f35 with SMTP id lw1-20020a17090b180100b00268314f8f35mr7307299pjb.6.1696588068971; Fri, 06 Oct 2023 03:27:48 -0700 (PDT) MIME-Version: 1.0 References: <20230928151631.149333-1-jcmvbkbc@gmail.com> <20230928151631.149333-6-jcmvbkbc@gmail.com> <2023100326-crushing-septic-4856@gregkh> <2023100544-rendering-identify-e0ad@gregkh> <2023100625-water-molehill-4a8f@gregkh> In-Reply-To: <2023100625-water-molehill-4a8f@gregkh> From: Max Filippov Date: Fri, 6 Oct 2023 03:27:37 -0700 Message-ID: Subject: Re: [PATCH v4 5/5] drivers/tty/serial: add ESP32S3 ACM device driver To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Jiri Slaby , Rob Herring , 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=4.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 06 Oct 2023 03:28:14 -0700 (PDT) X-Spam-Level: **** On Fri, Oct 6, 2023 at 2:34=E2=80=AFAM Greg Kroah-Hartman wrote: > 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. Thanks. From that point of view I prefer GPL-2.0-or-later. > > > Yes, but not all do. If you don't need to do anything special, it ca= n > > > 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 tt= y > > > 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? A lot of functionality doesn't work with PORT_UNKNOWN, e.g. console or modem control. I've got the idea of using -1 from this email: https://lore.kernel.org/linux-serial/502240f7-2cac-4fe6-9e27-f9861db3666d@a= pp.fastmail.com/ --=20 Thanks. -- Max