Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10697187rwp; Fri, 21 Jul 2023 03:36:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgogAd9FtuSn0vMmxzpqL/aHevc9ibl1a0Arm2AI/hbRmhE27gBDyJnhkWg//fAS3AOcYU X-Received: by 2002:a05:6808:1a99:b0:39e:c660:a5fa with SMTP id bm25-20020a0568081a9900b0039ec660a5famr1754593oib.10.1689935815306; Fri, 21 Jul 2023 03:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689935815; cv=none; d=google.com; s=arc-20160816; b=HVHkW4plHoFnf3bgoC6tBVyVhjsz8HrtLWicHbOT0X/Y4oHhohpTdH4y7stCrDBFcn HdzuZ8YRdMxQCZPrbjtpxL2oYuGNZHHTft6VBmiNpomOGQihfstzqMqXLlL8L4kNFUnR /O0XpfVmYZqdmYu729Ymv3uCBtTbJ4HWx7fOg+dmwiYbc55u04jfC8y/lvWAG8IgJIxJ tapLX8xDD92khKIznnldg7f0M28wdYqAB3cgM0voldX7cLcI007xrcS6QE7UWKY9G8I5 Zy1G/4hPUfms1HufNj0GmSgpVhxO+CHq9LiSip0sdGVdMp7YrVwET/QihKCA07GdwdDS x/JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=U5xRXIic9hHObn3/Sf/3jd/zh5BtLiucw+fv3JpGX68=; fh=V1DRt7gTZQzMAtrSrAYZJaxa45HEr7f0mRAzCSnlle0=; b=ukWv0IITr2PSsJNTQEaVA7Y7oqfIMbEdZNAcGPKvEHFx+AoktVW6gfUb+5GJdEUQcq EUoUhjKICJPRtonMFoL0AKRHHqDJfZOpnD4V6oagmrrVlghwjRQwa74w7cjzPAOqcgjo z/yIYaBRrhR2WLsIg84rB0E38wxOij+KoAt+z7JOO+BInC7+sUo1WmaBHPhVp3wlrHwA meCs3dXupjAx+dMeWOgTXGex/C8DyV2CT+LTfdFw6dibR+ghHho7pNqnIV6vVLHWzW9K xMFD5NbZChDbfety3JoruRiu/0Eq/GfFKjRQJRyFKfqyGSpn/RIHrZXx/vKHy7Zqdhtf EgUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WdNWkxpr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63dc01000000b0055384255b9bsi2725737pgg.24.2023.07.21.03.36.42; Fri, 21 Jul 2023 03:36:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WdNWkxpr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231440AbjGUKGG (ORCPT + 99 others); Fri, 21 Jul 2023 06:06:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231223AbjGUKGE (ORCPT ); Fri, 21 Jul 2023 06:06:04 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 149DAB7; Fri, 21 Jul 2023 03:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689933963; x=1721469963; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xwcGg3ySjrKkjK/u5gq0+w18B/u62vuaII+nleYZ4b0=; b=WdNWkxprAR9xjQof60ZCiP+YMEegrL7XQe8jmSLNvRgSitDO7a8N4wqC BLUngPJ4NOkPeaWc+uaIStX+wXoWR+qpgvDw3tcoSjdVF46jtPywlq6lI Ea9u5ERdj/ysjUk/aQwnWUm9n7wI+uUaGFS65DO+NwfeGJpWmCefQhJRN oBiXnxWkpFkXmvMMSRONSSMOeZnYlcyIr6n++4cAcbWHV8plgyFSoB5yH PqZ5upaw7gc5iLWQ+BiQjJ3usgMI9Im+ZNrwZW7TLZN/uLgMRTFxd+cvs W8VMPue5bk730uxlYOtdjm0F9Au0KEzTTZAaOvfaMl4uF61GYGZ1Dj0ni g==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="367025011" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="367025011" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2023 03:06:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="718767951" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="718767951" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP; 21 Jul 2023 03:05:55 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qMn1B-00GqHL-1x; Fri, 21 Jul 2023 13:05:49 +0300 Date: Fri, 21 Jul 2023 13:05:49 +0300 From: Andy Shevchenko To: Tony Lindgren Cc: Greg Kroah-Hartman , Jiri Slaby , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] serial: core: Add sysfs links for serial core port instances for ttys Message-ID: References: <20230719051613.46569-1-tony@atomide.com> <20230719054321.GJ5194@atomide.com> <20230720041319.GM5194@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230720041319.GM5194@atomide.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On Thu, Jul 20, 2023 at 07:13:19AM +0300, Tony Lindgren wrote: > * Andy Shevchenko [230719 13:59]: > > On Wed, Jul 19, 2023 at 08:43:21AM +0300, Tony Lindgren wrote: > > > * Andy Shevchenko [230719 05:34]: > > > > On Wed, Jul 19, 2023 at 08:16:11AM +0300, Tony Lindgren wrote: ... > > > > > And with this, we can add /dev/serial/by-id symlinks to the serial port > > > > > device instances so we can start using serial core port addressing in > > > > > addition to the legacy ttyS naming. > > > > > > > > > > The naming we can use is dev_name:0.0 where 0.0 are the serial core > > > > > controller id and port id, so for the ttyS0 example above the naming > > > > > would be 00:04.0:0.0. > > > > > > > > This is interesting idea. But any hint why it can be useful? > > > > > > If you have lots of serial ports and we are stuck with adding aliases > > > for the ports in the dts files where the ttyS naming and ordering does > > > not really help or may not necessarily make sense if the ports are on > > > different buses or domains. With CONFIG_SERIAL_8250_RUNTIME_UARTS=4, > > > the ttyS naming is only needed for the legacy ports really. > > > > I see. Does it fix the long standing issue with ttyS enumeration (on x86 > > at least) when depending on the presence of the legacy ports the HSUART > > (high speed) can preempt the legacy placeholders (ttyS0..ttyS3)? > > > > To me sounds like it may very well do fix it and I would be glad to see that > > in the commit message (as selling point) and in documentation. > > It won't affect how ttyS0..ttyS3 get assigned, but it helps finding your > HSUART instance with DEVNAME:0.0 style addressing. So you don't need to > care what ttyS number the port has. If you have such a test case maybe give > it a try. Exactly, the problem (currently) is, that depending on the BIOS settings the kernel can't use the same command line and this is quite a PITA for our customers! As far as we can specify hardware (path) to the console, it will be so cool and hopefully solves this very long standing issue. -- With Best Regards, Andy Shevchenko