Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp399372pxb; Wed, 8 Sep 2021 03:55:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnJCegg3PHWITe89C5/0+si/aIsXHVjZXJipJVYbmP68ldoQZYFsvnOiuX84vT/s2Kbw/X X-Received: by 2002:a17:906:dc43:: with SMTP id yz3mr3411493ejb.467.1631098515016; Wed, 08 Sep 2021 03:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631098515; cv=none; d=google.com; s=arc-20160816; b=LrxsFNPaNbwjYvyr8nUaPeeqfeXv7ji0nL2JvmRfedEaaosF6YuakDLrply7+S1qYB 1jGZQWrfM5sddhzJA8ukPig0HXWD/8KTdErbt2qPPKnaopZGXLyoXl07vXs0Ky+7F/Yu oXGvmolAawTf9wKIuWEvpvADEnfOfWEOEEbKT50eVmGX4bufzB6ZIyz0VEz1nodDNeJC HjdV3sJUPCT78G34sfShlpMgsdDr2X4UPVw9V16U1qqLWQwS5/BKfB5bNvmbkvp/2muM VscAj/FrNTD33iD1saHk8CGyc6SAyJnUM6xbcAz2yJlDAyAf2u9S/tnWpWdeBiWsVdLC T4fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SCa5sUcg3hd31K9Jh0v/b9ezKnAfrViWPcQLkGDjQ+4=; b=Jq2K+yAtXxwJRrrooFkoTTm8Y/uDGclWMzgSBS5OmVu32Zwgp0xDIZAM4CAb0HKKk9 ZYjbjiRdPrmRaOez8XMsSt85iU3Jkx1gToOrHN4Z36skE7w8Lod0mmUAo9Ede9PLkpnq nC1iua6erWZIkD2Vfb/69Upwa/fcOP6d9kc/BPCBswkWoAlrjEEOC8oU857RpgBR/7da skX8WV+K+2ieZGdKxFby021gwKXgTpUvqZmx4IOrm3J2ZiB5ddwPZtLaYJJW0uoHlyIK rMLPGdxBCw1ibsQ7LYolByQJdju8YmkIn9C60z0aRXWtYQvBDGzEOzv2NGzg7TC7jVtV nx7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oCkzDEUS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si2250332ejy.328.2021.09.08.03.54.51; Wed, 08 Sep 2021 03:55:15 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oCkzDEUS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347234AbhIHKyC (ORCPT + 99 others); Wed, 8 Sep 2021 06:54:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235209AbhIHKyB (ORCPT ); Wed, 8 Sep 2021 06:54:01 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45B35C061575; Wed, 8 Sep 2021 03:52:53 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id p15so2765533ljn.3; Wed, 08 Sep 2021 03:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SCa5sUcg3hd31K9Jh0v/b9ezKnAfrViWPcQLkGDjQ+4=; b=oCkzDEUShK5lI6n91PzLUskjiJzDmMHgbLjz+KXzkc3Rfw26w3sRoW8v962TNFfa4M LsrrvsBQeSkrcbTeOeRR4l8qvU6E/8I2wBFPYE6JUUQcYNr+aebrSAXpirXTJmM1x1nX ZEl9Pi2vuebkV5Tt0mat0PwmMWj2KFR1AMJT8WCEXuE1wxBUfgcSbkDXEJ2cLXlKkwjJ AVMKcRonmm3JkuZjdZybhr3eYQSlH5CC3n66VmGnipizSPmq33qJFWDib6RxUYg3IVg1 0yVgTa1YzQxeU4xMujoXFRDUsET4S612uh/mofJ43hKBtxo7TM9wOGzq6SK+it8jLiz1 CFDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SCa5sUcg3hd31K9Jh0v/b9ezKnAfrViWPcQLkGDjQ+4=; b=XQ6hUVrkcejWwwy9Gz1I38jplEREvJPxq9zD5u0cDgie/Ui39PMITPnxetpESE17Q/ +Lqb1Wg4JtdQspsdEA+UTYVCTvLSqZFmLlH4kMuddbLjbvl74RXhVty+O89dT6JTzng+ sIx0rfJkLb9DwxFkAEKLYy/uCXo6pw8shjHWuZeTk58mWDIYZX8xU/xXTzfaE1Rnsuuf 6jjV4J1LOWhWCgkE57zcBK0BLtytXBojTZAHXTttnb3e7gwsUTIWZesmmAXXnqasMOHC kZDNpSaG52I+nmvHvBBHc/qDC161OY+UzMJMcJvR8npJLjkHzjAQcvZl2ccxyw8SpOmB hOsA== X-Gm-Message-State: AOAM532cfjo0ZgWP0TyYzI+4qMup+ea0zlDNiBwomik5kIQELPf4IDmz dCuVWiOrR+rSXf5Opa7ObHQ= X-Received: by 2002:a2e:99d9:: with SMTP id l25mr2262345ljj.217.1631098371710; Wed, 08 Sep 2021 03:52:51 -0700 (PDT) Received: from home.paul.comp (paulfertser.info. [2001:470:26:54b:226:9eff:fe70:80c2]) by smtp.gmail.com with ESMTPSA id o7sm201332lji.17.2021.09.08.03.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 03:52:51 -0700 (PDT) Received: from home.paul.comp (home.paul.comp [IPv6:0:0:0:0:0:0:0:1]) by home.paul.comp (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 188Aqmlt015750; Wed, 8 Sep 2021 13:52:49 +0300 Received: (from paul@localhost) by home.paul.comp (8.15.2/8.15.2/Submit) id 188Aqkv8015749; Wed, 8 Sep 2021 13:52:46 +0300 Date: Wed, 8 Sep 2021 13:52:45 +0300 From: Paul Fertser To: ChiaWei Wang Cc: "robh+dt@kernel.org" , "joel@jms.id.au" , "andrew@aj.id.au" , "lee.jones@linaro.org" , "osk@google.com" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "openbmc@lists.ozlabs.org" , Konstantin Klubnichkin Subject: Re: [PATCH v2 0/3] arm: aspeed: Add UART routing support Message-ID: <20210908105245.GB23326@home.paul.comp> References: <20210902021817.17506-1-chiawei_wang@aspeedtech.com> <20210908094248.GZ23326@home.paul.comp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 08, 2021 at 10:18:35AM +0000, ChiaWei Wang wrote: > > Does UART1 need some explicit disabling for VUART IRQs to work? It looks like > > setting LPC address and IRQ number in VUART is enough to override the > > register part but probably not for the interrupt? > > You may need to confirm that the Host does not enable the SIO SUART1 > device. This will conflict with VUART as both SUART and VAURT are > competing for the port address 0x3f8 and SIRQ 4. Do you really mean the Host here, that is, software that controls LPC master when ASpeed is used as an LPC slave? Linux driver is not doing anything special with the UART1, it's just trying to use it as if it was a hardware 16550A physical IC on I/O bus. Or do you mean the BMC software shouldn't be enabling SUART1 by making sure its clock is disabled in SCU0C? Is there anything else needed? I've tried reading the ast2500 datasheet many times but this detail seem to be missing. Is there some appnote on the topic probably? In this case do we have some way to make it an obvious error to enable both SUART1 and VUART in DTS? If they're conflicting surely there should be a way to express that? Thank you for looking into this! -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercerpav@gmail.com