Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp298221rdb; Fri, 6 Oct 2023 04:04:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgderNwbs+7qilDh76Ol7/FDEsRUgpnorDvWPs3doU20I05wWPIbbqnMUpChqJL6G7G4MV X-Received: by 2002:a05:6808:1823:b0:3ad:9540:5475 with SMTP id bh35-20020a056808182300b003ad95405475mr10000880oib.45.1696590288210; Fri, 06 Oct 2023 04:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696590288; cv=none; d=google.com; s=arc-20160816; b=icReE0wWIdB+ZvmCKN3lyPks1adBwbqZW9NhwtuqHfI5tnHGB+gioKlHXJGiErkpjJ V43lNRY1UsHeWvM5nZFMPA+97aPtk4Nqj+1gLGh2EawMmyWzvu4jt4bsQGsCy/YgqVfC bKYYc5EPvbp1GE3ip6nqw1CwhHSlsfAnwCkWi11HesqkR68LInMTjIUlDDv1WqCCadu4 XQatWifw0p5gYXVfhciWKURgo5VhjUDw840SIv9NWhe5+e/hBeONqZ6FP5NXEiE0e26Z 8/pt7pelVEiwNw+hrQ5WLuuU4+dtyL7aJ0WyRYGHitfaMTq0anVw7oTy/wUpUEhZmS+7 rLCg== 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=IwxjtSceZtp3HjXb770puIlx4cdaAu60+WaaZ66NEKM=; fh=CnQBB6Ftqk9bebJVVTwS0omEriTocO3IqLY7kUEn/jY=; b=y6/3+sG7dNyrQuRu7uRCmwhMHWWqxA78fkO9hIJDMAssMai0XpmjxszPVR+gX/gN3F bvOAP7nFiE7gSE7a6RLRe1xaLeYlvBya0ptvLr3/XhBA7dzZhvZ02ULNp5V+auHsa1Wo ff9/cPe8BVDWMmy5N3UpnAlTtYQnHLNO/w4lpZ8iwtcDja03X8swLsgZ16J9n6/FrlOa rI91zbb4cWCDpPy1tOPVOrIf8HBJOT0MY/EvZGf0l5EukdIFHZhfUxgz28vvrU+s5G6k HY4kSKFOzx3qhExMjMKA+WOPz0XDsm5SdCLBVDLuvpn2cYhpvg4jZqPUb4pJTCRnerrR oGVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t9sDin+6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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. [23.128.96.31]) by mx.google.com with ESMTPS id c75-20020a63354e000000b005852a35aff4si3313824pga.227.2023.10.06.04.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 04:04:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t9sDin+6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 7F2EA809C400; Fri, 6 Oct 2023 04:04:45 -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 S231945AbjJFLEi (ORCPT + 99 others); Fri, 6 Oct 2023 07:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbjJFLEh (ORCPT ); Fri, 6 Oct 2023 07:04:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCC91CA; Fri, 6 Oct 2023 04:04:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E05BEC433C7; Fri, 6 Oct 2023 11:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696590275; bh=XLlwpGj1hGJ6zbiAJm0mczBltVK0XU1/GnjKB3xO8Kw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t9sDin+6Bx9KckpASK79eyQQDDBomfGeuU8KogasxXKv1d57Mtv6mAj2kIKRC3dLy VBKwFd5ahyGAq9dVV30loulisE9s6e5uBc/iPD9mZ01kDzVB8/J1vvH6HbPHu+M7sx 6PD2ArRTwAJZmzeD6382ROVEM6iZjKSSbIo4/4ao= Date: Fri, 6 Oct 2023 13:04:32 +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: <2023100640-isolating-privatize-7bf7@gregkh> 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> 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=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 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 04:04:45 -0700 (PDT) X-Spam-Level: ** On Fri, Oct 06, 2023 at 03:27:37AM -0700, Max Filippov wrote: > On Fri, Oct 6, 2023 at 2:34 AM Greg Kroah-Hartman > > > > 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? > > 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@app.fastmail.com/ Ok, we should encode this as a "real" number, "PORT_ANY" and set it to -1 and let all new devices use it. thanks, greg k-h