Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2381453rda; Wed, 25 Oct 2023 00:34:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESN0BuR3Euso6aW+ecNxVyHGkFDbHrUU14Rwu1zzyUMeUb+5WBwKxrE0OVrubt45oqHzzi X-Received: by 2002:a05:6808:130c:b0:3a9:bb4f:9efd with SMTP id y12-20020a056808130c00b003a9bb4f9efdmr18522911oiv.29.1698219251758; Wed, 25 Oct 2023 00:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698219251; cv=none; d=google.com; s=arc-20160816; b=00NB2VMRB72B/ngcAHiuGEuQMy4XDCHQPUj8WRIV+PPO7jrRXFss1K2rwG9ITuQPHy 4yauz6DKdnghS9zN3pcz9+RgkJLQ/+uACK4gWPxryXE1mDYlKPW/RWMbjbbQB/lIeQqF Uyh65RvpN/n5t0kDBulFB+clcRFhAxBQgR1/7qguZ4Vb7ZiUjcAcCZMQgowPDKGwa4SR aMb+48PZWjJep2niXNFBoMu5mniWln4dC6qEsdPXjuapv+HuuZ6r4Dv41P54u7kdMQtA XTJaXFclGgX7HmRraTsapN2ul+4r9pnftnBvcSNTjGOG6xInn8LT/pMeEuDivrfJGVsr GG9Q== 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:dkim-signature; bh=wZy/D5Rk2yfCS9NqMQN31rzVLWjBhupenxjrop+Isf0=; fh=/gL4WBYQzx9MiwB0QMlYuAI29F8Fz/3O6jV9/SRHokQ=; b=SdoktO0VHRusx9zm39BS1zPra7thPn15YzW5yCPdtXTnWa/16E5y4Wt3Y5+qkBXmWV JRGaCZnmPdsyEpZm4EYHLdXsFAd+zCUDCZWgYuLRp6p/33qNYYXOeB5OvGypZ1fMh/3I msOQoyxLwpVLg4b1QL5gAzGW0Ax4xJV52cLLqrxxfgNsJ08BXaw/GfWKjkuRzB83JjXj RiCsNhY5rJpRyB/DLLf0lGosug5as6i2GbJP2iE1+3C4XlGenVAV9EO2XeyhDRSRiLVY fgbMmrnvDSGTG0VDPkW9h3HebozO7haksSP9Qx7UChurmMuwUj7RLU6mIKCDKRIcuLuK tDNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mFNOrcdK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m192-20020a2526c9000000b00da05bef4335si2405567ybm.114.2023.10.25.00.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mFNOrcdK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 10CA380212B7; Wed, 25 Oct 2023 00:34:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232829AbjJYHeB (ORCPT + 99 others); Wed, 25 Oct 2023 03:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233766AbjJYHdZ (ORCPT ); Wed, 25 Oct 2023 03:33:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37E5C1BF4; Wed, 25 Oct 2023 00:32:50 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F441C433CD; Wed, 25 Oct 2023 07:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698219170; bh=Xr+oCljdZCgIbGd4ca4bWp43lj7iJe6epN66S6FOUCw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mFNOrcdKzpANbprFhcnnu5nZ01fPCW+FtFDQ1hUrFtgKgkorcqnbdznRHtLHf/y2q QjUgLR+L+74TvTYw/GJKdcOkQyDZwD1uTS/a96GYgoFuOa7Vw79qMfG0zbAkAMR18p voeIo4SNs6x2JOTwCBPsGxUleUdB1NTvOCDcAXlRpZ8nFkl6nYkRJifA9KWgtpzwHX x8SO+wsoYRuPN2tEo0ZL+hNz3ysDIBxolofEPjJjkR4UAycvlk9nbY3vHhNXqD6Who 7mjj40zhXjYxdqKLNhoq1U79Y92XqFJBB/v1k24vT2pxzTrDufuKRDxhWa8DImV7dK TA1ArQT1WFCag== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qvYO5-000810-0j; Wed, 25 Oct 2023 09:33:09 +0200 Date: Wed, 25 Oct 2023 09:33:09 +0200 From: Johan Hovold To: Tony Lindgren Cc: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , 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: References: <20231024113624.54364-1-tony@atomide.com> <2023102401-playtime-moonrise-6f05@gregkh> <20231024122955.GL34982@atomide.com> <2023102442-statue-kept-febc@gregkh> <20231025065152.GO34982@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025065152.GO34982@atomide.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 00:34:10 -0700 (PDT) On Wed, Oct 25, 2023 at 09:51:52AM +0300, Tony Lindgren wrote: > * Greg Kroah-Hartman [231024 14:01]: > > > > What does this change the sysfs tree to look like? > 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 Your diff is missing the actual tty devices. 'tty' is just the class directory. And can you post the equivalent diff for serdev as well for completeness? > 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.. There should not be more class devices, you've just moved them and thus there are more class directories (with one device per directory). Johan