Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1058014pxx; Tue, 27 Oct 2020 07:19:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMdp5gBZx1k8e9/KJ3PLJjC5IYurVs3YpFeHN2xGpCeLGDs64/X3zHiDLjsKRzRwrqZj+P X-Received: by 2002:a17:906:7696:: with SMTP id o22mr2552081ejm.269.1603808398048; Tue, 27 Oct 2020 07:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603808398; cv=none; d=google.com; s=arc-20160816; b=rOAwJ/K+8GM8tvBQrOiO2vAcJwiVYkPWVQUaccoZvQcOCrwad/FdQ68DG8i9f04WDv CbkOBoRJUQVmnIOL0SceR/iDuFNdMe2OISVPTc1CogMH2YnhaoawYP3ZlPOqN4NztXRP RX7utcKCfwKYrdSRfG+UeLr+lCYtPN8Ww/FA0CjjZ/SAGwmUmI3d2/uD3hGsAP8IMt02 Wd/jaFPcy6iivdseGaS7nxfq+yqNCzZgMLp2LCE3hxGLa8lrB0PEfGKmS5fOy8nt5ot/ dEuN0RgR1ytik76Wgg5AuNW/47EjKTKht7c+o8XIvG3k81bT/jCVLAzsD/8LR2W3icbD 0vKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=snT84nw+BpduHTQ0dx8jhaAq1klBIeeHC8c2h/wmyp0=; b=MVPwCoQ2RxGfR5m7vkJqqi5X4aulDUHEvvgP2isxX1Hdobg2YQIA8AGoErLErPNVGx YB98v6a4o3xnccHbO3sJ03lhD67JulcX8zXoIxAiwhYK/jOXqysWLFD20jBvXR+y5p7G zkT62h5OMCvNGdIm/Kr8YA4S9hvHrCWDhE8qZWeeEA+7W4Gd1FuyFmVeScaUTtnlsXyc ZcXbiICkTg/CGNmKOPtT8Le7d03iM9UJNGFtlc0LJrjbbOgbPk0qJeBRoBLejgZglZNH L+i8W3TqLqiElF2ZLiEVfrk464xODVqBlkK9dcnVGyeEx3f3vfBSDFERF/GA3Tf8lWg6 JttQ== 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 p3si1072727eja.565.2020.10.27.07.19.35; Tue, 27 Oct 2020 07:19:58 -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 S2509238AbgJ0Iph (ORCPT + 99 others); Tue, 27 Oct 2020 04:45:37 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:37083 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2443689AbgJ0Ipf (ORCPT ); Tue, 27 Oct 2020 04:45:35 -0400 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: , , , , , , , CC: 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 Content-Type: text/plain 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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) -- 2.17.1