From patchwork Tue Oct 27 08:44:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Billy Tsai X-Patchwork-Id: 11859683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57AD7C4363A for ; Tue, 27 Oct 2020 08:46:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF94F207DE for ; Tue, 27 Oct 2020 08:46:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0duxFJhS"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="lk4mzRyr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF94F207DE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1IF4giOJJ/UpVf9wQ7kebnjIwQz/fa/T22ECfyhXVzA=; b=0duxFJhSFcde6g49xCXGYBXHnX xzpJtW16AHWZiGZo5OuVTDPQM/GtcYFKW/YlcRzKvBhevcQh/nmFbDfwaRyEs6Vw7Sh40YmUZahSG 5vX/Ya/SW3TebMmWwg+Ny9pzqFQIUQfnI0yO4hKDUcqjULrtaParkfvP4KCB15dvRrbFIrcYQrgmS gIAt2OBEa7SbTE/MWO+Mn72qesO9OvCsoIELV1SBx6Z5Dx15OaO/6ZG7dNX8X8+/silGWC3xIjFH6 SL9yc86dXOPPA+Csfp6HRnPAca8CxyuMvhbWZclkdUjk4THSGXSE/TtHy84Fh+Dko6RnUhHr7aVdn trgy6zrg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXKbf-0003Uc-J6; Tue, 27 Oct 2020 08:45:27 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXKbe-0003UI-Ap for linux-arm-kernel@merlin.infradead.org; Tue, 27 Oct 2020 08:45:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=snT84nw+BpduHTQ0dx8jhaAq1klBIeeHC8c2h/wmyp0=; b=lk4mzRyrP57+PkltRt9uknega/ gRn6W7jlJbK/FKdnaaICEwPAd0BpiWc5Ky/A+09SnCHg+R37tXvwqN1Tsa60NeFdut1urIun6jMaA KCVX+4l2onK6tk83f0GPuVFG9+H73akD6GK+UbOBBSOSplt0JvqRgrxrnHDTCQqWq+MyCTRcjkXgv mG8I2ILopXOJc3AEhq9rBmN0l//7Z+pQPFD+hWfnGA/pyyVt//1ahHBTGOXLdRIHAH8MIl10YQp/e G4nTjtMSETNUiSe2zEOADEHNelU71KY4x7U9RT+IwP1caV4csLC4WevmNmzWoX6PPoFsffpRmXa6O UIai++0w==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXKb8-00030d-55 for linux-arm-kernel@lists.infradead.org; Tue, 27 Oct 2020 08:45:25 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 09R8fHjq035672; Tue, 27 Oct 2020 16:41:17 +0800 (GMT-8) (envelope-from billy_tsai@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Oct 2020 16:44:23 +0800 From: Billy Tsai To: , , , , , , , Subject: [PATCH] pinctrl: aspeed: Fix GPI only function problem. Date: Tue, 27 Oct 2020 16:44:17 +0800 Message-ID: <20201027084417.10137-1-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 09R8fHjq035672 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201027_084509_949230_20763828 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: BMC-SW@aspeedtech.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some gpio pin at aspeed soc is input only and the prefix name of these pin is "GPI" only. This patch fine-tune the condition of GPIO check from "GPIO" to "GPI". Signed-off-by: Billy Tsai Reviewed-by: Andrew Jeffery --- drivers/pinctrl/aspeed/pinctrl-aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.c b/drivers/pinctrl/aspeed/pinctrl-aspeed.c index 53f3f8aec695..a2f5ede3f897 100644 --- a/drivers/pinctrl/aspeed/pinctrl-aspeed.c +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed.c @@ -292,7 +292,7 @@ static bool aspeed_expr_is_gpio(const struct aspeed_sig_expr *expr) * * expr->signal might look like "GPIOT3" in the GPIO case. */ - return strncmp(expr->signal, "GPIO", 4) == 0; + return strncmp(expr->signal, "GPI", 3) == 0; } static bool aspeed_gpio_in_exprs(const struct aspeed_sig_expr **exprs)