Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2364778rda; Tue, 24 Oct 2023 23:52:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHx5H0LSx/k5Dt5USoYNdOoOQOK4GXlM6kBoOIXHs2/uNKppKJYIWA+ckFAmbnRHwwgqSFd X-Received: by 2002:a05:620a:4550:b0:777:66bf:f78c with SMTP id u16-20020a05620a455000b0077766bff78cmr18343007qkp.48.1698216725654; Tue, 24 Oct 2023 23:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698216725; cv=none; d=google.com; s=arc-20160816; b=BQo+sz6fsN5CrSaGS5lDvd6Q7V/EnTm4gKRQ245ihVF1LM2IK3+p0HYqO21uMZt0LW btH0XTqWTJmzRlBC5bPngmL1lIxnW7DN4hnWMyP4HGOrfcGEToHNnVlwP83FbWtATNZo rYhOoXQmbN5DfK4vPK5ppaX9GhzybF80g2GhbICKn4oOdl27VHWJsbDMJDEDjdWrYUrO NK4JpgS2XPh0d6+SqtwEHwF3ZF72oKgPqH/XjBQaLa3B6ORLTAsDqf2cwKcGu/3TJdRC o6w3d9790KRYTAaWmYUQzHF+LygeC2aJf2EjvvirucwIPjt3DxjSELnlxcu0CI3sZVBA dWtw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Y7mKLh0JawvEs3di3IlrnGnKlWj0Xn8nJ1xcMPJL42g=; fh=wSSLOHERSYLs7ZLK5ySy5PL81DhKtBV0I7q/Sem1pi0=; b=iysTAJ6Vn4l5HrNueNpsu9XpX/4gBdQuX7w6EXZctL6SE9ZfMMAGI9aZDFyC4McA4m IDv20nBTGV3s74w/8e0V4x1JxkatpAfwcGYkCXZIBYiGFvlu3bbGaL2p0vJN+jNySuO4 9S6wZyOkKGTG3u3U3L+svjIj7OHsmxTnYK3MgJYTUOU4GwVAyRjZmEpRHZYp27l4vFzd a+9y8ZigVOHrqwyUiNC7omsCH/Gs30UVO9sWDtxCngUO9pDfD+5fwOZJ974QzuUm/Wqm 4FaoW12bvjOcUkQOYFpYpJu6AmMdfDPJV5Da8+Uj3vUjqQ2mqoBoYfGXwXXF/DfuwEIN kVVw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d6-20020a81d346000000b0059ef05231e7si9854782ywl.263.2023.10.24.23.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 23:52:05 -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; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 278008026E19; Tue, 24 Oct 2023 23:52:03 -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 S232082AbjJYGv7 (ORCPT + 99 others); Wed, 25 Oct 2023 02:51:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJYGv5 (ORCPT ); Wed, 25 Oct 2023 02:51:57 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCC8310A; Tue, 24 Oct 2023 23:51:54 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 200DE80B0; Wed, 25 Oct 2023 06:51:54 +0000 (UTC) Date: Wed, 25 Oct 2023 09:51:52 +0300 From: Tony Lindgren To: Greg Kroah-Hartman Cc: Jiri Slaby , Rob Herring , Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Maximilian Luz Subject: Re: [RFC PATCH 1/2] serial: core: Move tty and serdev to be children of serial core port device Message-ID: <20231025065152.GO34982@atomide.com> References: <20231024113624.54364-1-tony@atomide.com> <2023102401-playtime-moonrise-6f05@gregkh> <20231024122955.GL34982@atomide.com> <2023102442-statue-kept-febc@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023102442-statue-kept-febc@gregkh> X-Spam-Status: No, score=-0.8 required=5.0 tests=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 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]); Tue, 24 Oct 2023 23:52:03 -0700 (PDT) * Greg Kroah-Hartman [231024 14:01]: > On Tue, Oct 24, 2023 at 03:29:55PM +0300, Tony Lindgren wrote: > > * Greg Kroah-Hartman [231024 11:52]: > > > What does this change the sysfs tree to look like? > > > > On x86 qemu for the ttys: > > > > # find /sys -name tty > > /sys/class/tty > > /sys/class/tty/tty > > /sys/devices/pnp0/00:04/00:04:0/00:04:0.0/tty > > /sys/devices/platform/serial8250/serial8250:0/serial8250:0.3/tty > > /sys/devices/platform/serial8250/serial8250:0/serial8250:0.1/tty > > /sys/devices/platform/serial8250/serial8250:0/serial8250:0.2/tty > > /sys/devices/virtual/tty > > /sys/devices/virtual/tty/tty > > A diff of before vs. after would make more sense for those of us who > don't have your same system configuration :) Here's the diff of the same command before and after: --- /tmp/before 2023-10-25 09:45:12.197283690 +0300 +++ /tmp/after 2023-10-25 09:43:30.681797899 +0300 @@ -1,7 +1,9 @@ # find /sys -name tty /sys/class/tty /sys/class/tty/tty -/sys/devices/pnp0/00:04/tty -/sys/devices/platform/serial8250/tty +/sys/devices/pnp0/00:04/00:04:0/00:04:0.0/tty +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.3/tty +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.1/tty +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.2/tty /sys/devices/virtual/tty /sys/devices/virtual/tty/tty There are multiple ports claimed by serial8250. So I think the new sysfs output is correct showing more ttys. If there's some reason why serial8250 should only have one tty and this output is not correct let me know too.. Regards, Tony