Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1213538ybh; Sat, 3 Aug 2019 20:46:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0qVorItpawbaD/Dhzl//3OXHr1PWbtydpeBBieqqclQPUj13qgh7Qja7LSpG4JzM02Yt4 X-Received: by 2002:a17:902:a413:: with SMTP id p19mr139557801plq.134.1564890404581; Sat, 03 Aug 2019 20:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564890404; cv=none; d=google.com; s=arc-20160816; b=KcTGdUO/HVSlqfjs8YL5EfhNgN+QAOvE4Cmz2XSiOVH/qvbS/7S6G6C8nDQG1G/OxV VER6LUDQeF+rDuBoDZdGAloMALNmjMgt5Z4tTJYqz9mHoFSlWg1vkFIRMOFmDbB0U6Rx GyGV47cr1rHBjwzPQPXCkiS0khz/p8v2ATnL/YTqdSInqzCFUDhC/DwTk2kI5rV5DPZ1 kE5aX/YvkJYAsUA5HYdNHA4ap7+LqsdxqSE3YIqMqf3Im1mr86vhmjf11gPuCtzGhTvW zfcjO88bkwcDwntQUv6j/hUW05FG/GrrjWapznC9fR/ykyGTE+a1QYctuxq7sAKkLK+v WHHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/iQNXp4TbG44uY069CDT0cTvGlVgDFyvb1ipyyRxtMs=; b=R7K3t/3UA3FdEOClygJpgyLoOPPRvdWnUFjY3mxADfRfDnmnI1Ap6PtkLkY2JC7Gds nys+X5rkGPvzkJ77VbM/cY9CBphtvKRUmBSOyQ12NzWF9wzAGlNzEtugXyxoxH9PLZIU lpPC878RiYi2/NFGAH8HOEkZuQjKxdYTH6ezcx9vsDmusU/Wn0Dk7hawG3NmHuULbqHT Inb4JAzswVvQtBNY24pCP6O53jZpa8wUhGCpgxRgqHCVLcDGEdCF5I/GOBVHLaduYnoB eV6xz22e6UWuJtOWhaEClBhByglIxTIBYzN30ePBdNnMyLTt/fxqbEeedOVkv7Df0LsS 2JVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DSjAwHm8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si36666559plh.137.2019.08.03.20.46.29; Sat, 03 Aug 2019 20:46:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DSjAwHm8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390963AbfHCNzl (ORCPT + 99 others); Sat, 3 Aug 2019 09:55:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:44976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbfHCNzk (ORCPT ); Sat, 3 Aug 2019 09:55:40 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3EBA2166E; Sat, 3 Aug 2019 13:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564840540; bh=4UmoDoYVdrWFjZ2tni2H5YosvR67LNdT3rchHwiQHEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DSjAwHm8J2w5ILHJh27mU4VqH+sajLtPJ20zxB9s76nP2Ha6J94z3zv0xJS/WtJ5J kukH2u6JKnBx0MhQQg+ExnlhH0JgM6jJ4GXbhbqPWgiZEMNQ0M/5LSBldpxxI3YqZa EhReTiKjhnDzuG+ZTDUzuJMRzBads4uKtCNU4YGc= Date: Sat, 3 Aug 2019 15:55:37 +0200 From: Greg Kroah-Hartman To: Adam Borowski Cc: Paul Menzel , linux-serial@vger.kernel.org, Linux Kernel Mailing List , Donald Buczek Subject: Re: Device to write to all (serial) consoles Message-ID: <20190803135537.GA1743@kroah.com> References: <32c2d26f-ec4a-b9a6-b42c-07b27f99ea28@molgen.mpg.de> <20190802160243.GA15484@kroah.com> <20190803132323.GB6703@angband.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190803132323.GB6703@angband.pl> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 03, 2019 at 03:23:23PM +0200, Adam Borowski wrote: > On Fri, Aug 02, 2019 at 09:59:06PM +0200, Paul Menzel wrote: > > On 02.08.19 18:02, Greg Kroah-Hartman wrote: > > > On Fri, Aug 02, 2019 at 03:23:08PM +0200, Paul Menzel wrote: > > > > On a lot of devices, like servers, you have more than one serial console, > > > > and you do not always know, how they are numbered. Therefore, we start a > > > > console on ttyS0 and ttyS1. > > > > Because the cable is always connected to the port on the back side, and > > sometimes the port in the front has ID 0, and the one in the back 1, and > > other times vice versa. We do not want to track that, and it would be > > convenient to just write to both ports. > > Sounds like an XY problem then: what you want is not writing to all ports, > but to have the port assignments stable (see also: disk device reordering). You can get that information from the symlinks in /dev/serial/ which udev creates.