Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp99458pxf; Wed, 31 Mar 2021 18:02:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcnDGvLlYU7K3X06fhyaeojU7C1LHXqcUpUddb4hdu06qHiDh2EaUz5hIuX6ythoATnTqC X-Received: by 2002:a17:907:7014:: with SMTP id wr20mr6558199ejb.179.1617238928057; Wed, 31 Mar 2021 18:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617238928; cv=none; d=google.com; s=arc-20160816; b=H1tnDS6Cl90GLNPOrAsNY943ayWLSF5MJD5v5XDt6GOuJqIDLagIMJmWaZfeCwiA7D o7cQfGcmCCZ614qxJjJJptZ/1Dm0zXRtcdhDm7UBCmMQLyZqCqODHylXP5mZSe2VOlGL Kc9qj/hgGHNFahG3s9xO/I4sF7TxLMZ0ybVy3wDVagkO+eWF1psWP32gdseTrnke0T38 FuiZzRq0oEGgmeO0kOSnfzxQNP3Ah2Srlo9VJwMRxeuNznFrksWBbcUiGHnBbSxsSgH4 1mzGcH07OBcAVBYPdR8TiE6uRTPwgTVQn4CwSEtni6mx48M5Ct2SNBGqCkpMhu9tHga2 oh+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PTKpsiq59YVCzDvb+a0Y+GyuK4KgA1bmlXXrXsWSgms=; b=wEfoIBez6+IviJpnxXnlpjxbVK1oClPXv5kfQOCBb1t8wtA1696rLiKSx0s0onbABD etv92u+Aq5MGkVzMEfmjboFzRNmaTUmEc2WEqU6LLAK9YW4jNe72YBPSs/b1/kGc4tIp Ry7ePS98/a/rBsZqhToy9NOU/kG2uhO/CplKkC2iPqtwNriG6T39if8eyLM2Yct73YhY Leo2gYgpoEZdvIxfqe/sRU9qyKu4/eN8L7lyVNWjJI5XUHrdmRU5uQUWJ4wvuL+mtTUJ WGj+ZXirnbegooy2SGMAYeXaudAs38oD6Ysh5x9cTQGDCdHiDlQWwSGQqYOizjb+2pkW G6ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=GVnld6BI; 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=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si3150537ejr.490.2021.03.31.18.01.39; Wed, 31 Mar 2021 18:02:08 -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=@bewilderbeest.net header.s=thorn header.b=GVnld6BI; 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=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232966AbhDAA5u (ORCPT + 99 others); Wed, 31 Mar 2021 20:57:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232757AbhDAA5p (ORCPT ); Wed, 31 Mar 2021 20:57:45 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36C11C061574; Wed, 31 Mar 2021 17:57:45 -0700 (PDT) Received: from hatter.bewilderbeest.net (unknown [IPv6:2600:6c44:7f:ba20::7c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 2F984705; Wed, 31 Mar 2021 17:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1617238665; bh=PTKpsiq59YVCzDvb+a0Y+GyuK4KgA1bmlXXrXsWSgms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GVnld6BIBB3+yPy40DXDBGCzsu8mpRyugYH1GBA59wK8KRirWKUYc8HNcFuSGatch pR2sREfK2VUa3x4nmTdnzdYgT8pz4IH56qvpOxcBlUmdY2jjpMzpzZesXJnwgdPQ8J tWRj1NRlh5MOmZilmBzTFNJ0pWi5xQwcGHEDkQSY= From: Zev Weiss To: Joel Stanley Cc: openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Andrew Jeffery , Zev Weiss , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Subject: [PATCH v2 2/3] drivers/tty/serial/8250: add DT property for aspeed vuart sirq polarity Date: Wed, 31 Mar 2021 19:57:01 -0500 Message-Id: <20210401005702.28271-3-zev@bewilderbeest.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210401005702.28271-1-zev@bewilderbeest.net> References: <20210401005702.28271-1-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This provides a simple boolean to use instead of the deprecated aspeed,sirq-polarity-sense property. Signed-off-by: Zev Weiss --- drivers/tty/serial/8250/8250_aspeed_vuart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/8250/8250_aspeed_vuart.c b/drivers/tty/serial/8250/8250_aspeed_vuart.c index c33e02cbde93..e5ef9f957f9a 100644 --- a/drivers/tty/serial/8250/8250_aspeed_vuart.c +++ b/drivers/tty/serial/8250/8250_aspeed_vuart.c @@ -482,6 +482,9 @@ static int aspeed_vuart_probe(struct platform_device *pdev) of_node_put(sirq_polarity_sense_args.np); } + if (of_property_read_bool(np, "aspeed,sirq-active-high")) + aspeed_vuart_set_sirq_polarity(vuart, 1); + aspeed_vuart_set_enabled(vuart, true); aspeed_vuart_set_host_tx_discard(vuart, true); platform_set_drvdata(pdev, vuart); -- 2.31.1