Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1212824ybh; Sat, 3 Aug 2019 20:45:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyypKY/ZaRwLFcXUtnr+EQ5WAYQIOtycI3pmiROwlJA0TwUD+v/G+MTBVMgQ8t8ICNvGjiH X-Received: by 2002:a17:902:b909:: with SMTP id bf9mr44498425plb.309.1564890339266; Sat, 03 Aug 2019 20:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564890339; cv=none; d=google.com; s=arc-20160816; b=Gu2WWsLCzA7YiA2YXnudYhBykRUygWF51yYOROBgWYjILqePaJIaGq/3K8VBvaivgQ 3KJdlYPuJsrhxAX9fPgwCNP6HUfce59UDTTrrHaAt1CgrrMdTdQ99hqIkf6PkH/LP/Np R3Y9Dg2K+QYEuZ4zv5eE30mmPBScodJwAU4FQZJHyjpw+QtpnSsW1AGEch64AG2EGMzn P+9uCEOL7BuqttHFjm6ILKhVGeuZ0BSEYktgLuw4QRDpX19RfYE158BIa/E339udxP5x FefIL63u5Vcby4a4Xh6zIVmrZseXqhs1SJemEVu4ujfhN4/AxNzQIWG1nuFSAbJWtPqg RkFQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=RacdbEsUyxAvAKkE4DEwxO+EMTUIdBylI4imSbPbeQE=; b=yllZBYuSHYTJT8VoY+UlisUeHBPFXDMWM/gl+y7OCQg0ejvGgig+4m9CuqEkw/99SG Bu4aISGAkczUYp2A8PMNxL+vVj5RGwjIUk7n/O6WxvNw2X0S0c48uRGbxk14fJnChoty C0pcXKF6e5m/epxWVLBR8lWfmG8Oo9/Ykgwj2BVLQFGu26ZY9DaXjEMBB4Kb7uOY3js/ YJQInyvToewNT1EPV0jAHHNPtB/i4zF/JkmSeO+Uwf24X9xeu56dgVOYJ+4fkDZPMlPD rnjkW3sukePWmnk1fgLMKzAt1XDUAxAXO+yWyglFX0TzKqHPSQxs2ic4iVTRQkAiq7lK Lmcw== ARC-Authentication-Results: i=1; mx.google.com; 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 a59si39546141plc.319.2019.08.03.20.45.24; Sat, 03 Aug 2019 20:45:39 -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; 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 S2390871AbfHCNX2 (ORCPT + 99 others); Sat, 3 Aug 2019 09:23:28 -0400 Received: from tartarus.angband.pl ([54.37.238.230]:33372 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388206AbfHCNX1 (ORCPT ); Sat, 3 Aug 2019 09:23:27 -0400 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.92) (envelope-from ) id 1htu0J-000265-9U; Sat, 03 Aug 2019 15:23:23 +0200 Date: Sat, 3 Aug 2019 15:23:23 +0200 From: Adam Borowski To: Paul Menzel Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, Linux Kernel Mailing List , Donald Buczek Subject: Re: Device to write to all (serial) consoles Message-ID: <20190803132323.GB6703@angband.pl> References: <32c2d26f-ec4a-b9a6-b42c-07b27f99ea28@molgen.mpg.de> <20190802160243.GA15484@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Meow! -- ⢀⣴⠾⠻⢶⣦⠀ Latin: meow 4 characters, 4 columns, 4 bytes ⣾⠁⢠⠒⠀⣿⡁ Greek: μεου 4 characters, 4 columns, 8 bytes ⢿⡄⠘⠷⠚⠋ Runes: ᛗᛖᛟᚹ 4 characters, 4 columns, 12 bytes ⠈⠳⣄⠀⠀⠀⠀ Chinese: 喵 1 character, 2 columns, 3 bytes <-- best!