Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2403245rda; Wed, 25 Oct 2023 01:24:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHX1YRzUUVDIzvmp0yLyqQR9aWlFjNMtkKIfrEPpTN7Bm0MsIjyTV+PA+Z0Is09hf7GqgxP X-Received: by 2002:a25:d15:0:b0:d9a:cd2a:a18 with SMTP id 21-20020a250d15000000b00d9acd2a0a18mr12826744ybn.24.1698222290337; Wed, 25 Oct 2023 01:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698222290; cv=none; d=google.com; s=arc-20160816; b=icL9yg/pekInBExbV4EJarrrAmkBtZmbUCh8KErGxqLfnoE+1JhGga3a4vnjU9gf3m zVIFWMbJQlfeGl0rnuKpjh75O3yya7rL7NTuRI9iBAb2ZgvW0+QyOXmQa5ONuGOIS9yo ou/+B08oa2mM2jpO8DokMFoFZEgJNCLNG2yImEgoA5AHAYdWDMUzkceNSXWgj2ngXAhA hqWSq4460x0phy/e5o3J4VUbdDy9Hu5DliQ5rwy1LzRql6hk9xik+pGggvrbnAl5+ABi EHkh5DAzTmJYAn60geOxobkeFUYAges4Ze44nT8hhMKN284S6Ev24I1K4GTDBuMjK8GR cVNQ== 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=Ks+jevkGikPPLuB4OE4G9p+DCFaBHY5grEzhVpBDSc0=; fh=FryNr98imyoiXcT9qrqBF0XSFesspcfkZROd3xhYfhs=; b=EI5g7QO4ZsBzHciAz57jXKT327d4JG6iks9lOiIxn2PyMl2qu8wgGznYqf6I6fiIUP u7wmLENE9VeVbOyR4swhCN7ZZmxzVQhLUGqRR+Azij4T1CSUwsUXNwEvwJd72zWZeE6q xYsyacnbYs3T2cosfEadohw4cnViUpwgxJR3vDFs9+3anqvwQAU73LFARbRwT3MuYC80 xvZxNn/jdWfd3ylvJG8X95zkWQL0aF8/DTAp+hKl7pl9TGx026sh/0SmcT0dcW8/G1OQ 5ab32u4eBqQ4TPSAREYm2qXpYYLxarLS3UZAv20mP3/LHW6RZb1c/VXcBwTaRCdrVJj3 krLw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id g190-20020a25dbc7000000b00d9ac79de1b1si10056256ybf.181.2023.10.25.01.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 01:24:50 -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; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EE563803DBAB; Wed, 25 Oct 2023 01:24:46 -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 S233873AbjJYIYi (ORCPT + 99 others); Wed, 25 Oct 2023 04:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232657AbjJYIYh (ORCPT ); Wed, 25 Oct 2023 04:24:37 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 523FF9C; Wed, 25 Oct 2023 01:24:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 686C480B0; Wed, 25 Oct 2023 08:24:34 +0000 (UTC) Date: Wed, 25 Oct 2023 11:24:33 +0300 From: Tony Lindgren To: Johan Hovold 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: <20231025082433.GQ34982@atomide.com> 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: 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 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]); Wed, 25 Oct 2023 01:24:47 -0700 (PDT) * Johan Hovold [231025 07:32]: > Your diff is missing the actual tty devices. 'tty' is just the class > directory. Ah right, that explains :) The find must be for ttyS* in this case, here's the diff for qemu x86 for command: # find /sys -name ttyS* --- /tmp/before 2023-10-25 10:50:29.870083012 +0300 +++ /tmp/after 2023-10-25 10:52:52.770393075 +0300 @@ -3,7 +3,7 @@ /sys/class/tty/ttyS0 /sys/class/tty/ttyS3 /sys/class/tty/ttyS1 -/sys/devices/pnp0/00:04/tty/ttyS0 -/sys/devices/platform/serial8250/tty/ttyS2 -/sys/devices/platform/serial8250/tty/ttyS3 -/sys/devices/platform/serial8250/tty/ttyS1 +/sys/devices/pnp0/00:04/00:04:0/00:04:0.0/tty/ttyS0 +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.3/tty/ttyS3 +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.1/tty/ttyS1 +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.2/tty/ttyS2 > And can you post the equivalent diff for serdev as well for completeness? I don't have an x86 or arm64 testcase for serdev, but here's a armv7 wlcore hci-uart serdev diff for command: # find /sys -name ttyS* -o -name serial0 --- /tmp/before 2023-10-25 08:23:15.468382112 +0000 +++ /tmp/after 2023-10-25 08:23:15.468382112 +0000 @@ -1,10 +1,9 @@ -# find /sys -name ttyS* -o -name serial0 -/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4806e050.target-module/4806e000.serial/serial0 -/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/48020050.target-module/48020000.serial/tty/ttyS2 -/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4806a050.target-module/4806a000.serial/tty/ttyS0 -/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4806c050.target-module/4806c000.serial/tty/ttyS1 -/sys/devices/platform/serial8250/tty/ttyS4 -/sys/devices/platform/serial8250/tty/ttyS5 +/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4806e050.target-module/4806e000.serial/4806e000.serial:0/4806e000.serial:0.0/serial0 +/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/48020050.target-module/48020000.serial/48020000.serial:0/48020000.serial:0.0/tty/ttyS2 +/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4806a050.target-module/4806a000.serial/4806a000.serial:0/4806a000.serial:0.0/tty/ttyS0 +/sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4806c050.target-module/4806c000.serial/4806c000.serial:0/4806c000.serial:0.0/tty/ttyS1 +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.5/tty/ttyS5 +/sys/devices/platform/serial8250/serial8250:0/serial8250:0.4/tty/ttyS4 /sys/class/tty/ttyS4 /sys/class/tty/ttyS2 /sys/class/tty/ttyS0 > > 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). OK makes sense. Thanks, Tony