Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp746486pxj; Thu, 10 Jun 2021 11:39:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx80j6hE1dboo4KYtej95vWByjphtBsBoIbS/Nfh65LpQF8grynl2x37tUe9j2yOeg7OD/D X-Received: by 2002:aa7:cb90:: with SMTP id r16mr859137edt.121.1623350363226; Thu, 10 Jun 2021 11:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623350363; cv=none; d=google.com; s=arc-20160816; b=dO1N87jenLGl1U9ZZCx+6f6j3BQcNWII/ppusjLLa8zJfq13+cVMt4opkU5SIdGTjv Dmm0RlJgft3sJGBOtb6h7desTTil0/KuZCd9llgdGSr7PDvI+87gpzqtmXsUReU/XcL3 nqEhUMn2vtqx5VwfeGGmKdLZdVgxEXQH4WxW0c10fWyae+FtztYv131mW1T7V2rLh/Al qRrmN1mzjIykaUNQE+vR9LjhnNO6aXpki+mOcAtcyhgvb5wEgXi/+HZTVQ+wDL5/QKi7 rPZ2ZrJF+P/yHbpfaQStE1yxkszoCxXz2Hjfgl/GKiV75Mg7jUtJeWiHxyQW9yDIKVXt D23g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date; bh=DQ8xYIqzIcIlFQrjbvIKq8v5O8IBRuU1xzvOiCOVNC8=; b=E+9Vo5N4rEGorwPImleHZtEHRDa6AHuO1V6BEzncO9ZRTXB4MxnB45MR6qhspUHcyJ Do5ptbUOruE2A+catjHO4mz7UfwdxKMfLvnO755yIxczNTvjjTXYmbqA9TlotLxQ+o3N GrwRSrQm56T8LNp8F985dBMImqkzF1ByI+QmcDY6uVLc2c2oT022xsjIVZ4wtLEDEeS7 S966035hbZLwuBq09xWYLsGn9HefJ5xwG0U4XX8NarMRRlV6LxEEgcUOHAxLGdQpHlLp 1/G3hJd57hUaZ+25FdWY6KME2xEP40nqcOVyVb5nTiQGvWbu6rIvndgLodJkgFf+HOFq xvkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si2700704ejt.569.2021.06.10.11.38.58; Thu, 10 Jun 2021 11:39:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbhFJSjw (ORCPT + 99 others); Thu, 10 Jun 2021 14:39:52 -0400 Received: from angie.orcam.me.uk ([78.133.224.34]:41586 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbhFJSjw (ORCPT ); Thu, 10 Jun 2021 14:39:52 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id ECBCA92009E; Thu, 10 Jun 2021 20:37:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id E709D92009D; Thu, 10 Jun 2021 20:37:53 +0200 (CEST) Date: Thu, 10 Jun 2021 20:37:53 +0200 (CEST) From: "Maciej W. Rozycki" To: Greg Kroah-Hartman , Jiri Slaby , Thomas Bogendoerfer cc: linux-serial@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] serial, Malta: Fixes to make the CBUS UART work big-endian Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Earlier this year I noticed the CBUS UART, a discrete TI16C550C part wired directly to the system controller's device bus and supposed to come up as ttyS2 in addition to ttyS0 and ttyS1 ports from a Super I/O device behind the PCI southbridge, is not recognised with my MIPS Malta board booting big-endian. I used to use it just fine, many many years ago, although in the board's little-endian configuration only, and then with a local patch to get it supported with Linux 2.4.x, which I didn't get to submitting however due to the turn of events back then. Support was then added by someone else with 2.6.23. I got to the bottom of the problem now and as it turns out we have two long-standing bugs causing it, one in generic 8250 code and another in Malta platform code, and this has never worked in the big-endian mode. Evidently, this has never been verified, and I guess this is because back in the MIPS UK days we usually ran the boards in the little-endian mode. This pair of patches addresses these bugs individually. See the respective change descriptions for details. Please apply. Maciej