Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp29425lfe; Fri, 15 Apr 2022 17:56:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAp8nfXYAPJBSUYwTd1tZ7+11kdXAzDtARaVp9rc/skcfNZEL8huYWfaIUxTmgFx/bgDnI X-Received: by 2002:a05:6a00:162f:b0:50a:4909:2691 with SMTP id e15-20020a056a00162f00b0050a49092691mr1624193pfc.64.1650070578833; Fri, 15 Apr 2022 17:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650070578; cv=none; d=google.com; s=arc-20160816; b=UXbpufDiAlwi0XDkXBGMYwSyB8IktyKIXn0NNxu7d6sbK1R+afnKtMeIH13wYD2blS l9W50m1+CbLwUH3FxPncTvCkJY462/fGWW4Lm0ka714AHCfRsH4RSMx+NoUs8nr8xfzv 40jig6N1yzBm+BLgruvEex4gn7uKQTZGmYSHWDxorj42gV7W7jFwSQwTiUKyzavTe/Lp z66V2LHVZm2rKGw7iGI2ungvCwoFq5C4ljteMDT0IPkJACXebdIYbiXwfc0JQL/hiklL LSYYWGgPqDpg/+R90zWLomtRYQiw4zpVmCzf9fSEzYnL3Nb+5AH2881yRbHl6fthezjO XKOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=Lt5Azs8UE62t7hvUqRmpYoBuvvMq0qHOp5jSW71Q4WI=; b=f6yQDhFO24XtyqOHoQbdUkcK3xe+2mUtIxRvjieufWDPDgLItcgQJN8j6UzIIWjDSO lVn6DpSTd1n0tFCxOwT1Y55euD4H4mGl0gma8v6xF+ulCHroq4ihotD5RWSRR/ttk9l9 /Mghd16tPtT8Ylf0XtNmDrFKiT/WFKCpClwnF96yzPc58CV65nrbV1fQVnnUuKbStS6Y MuDzsDtF2Rp1qY3+rgovw/gHal2wE0uRbAv4aTQH2CFxVRAptzqTf16e1plVd5L7fFR9 L/f3jOyPlLPstswcu7MXKNoDEjaPjUCWyNlrnljgvuIfCbbnM0kuVl/OpIgmeTlfKvZX xWGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=it9+AZgU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y13-20020a17090322cd00b001586044750dsi2773728plg.8.2022.04.15.17.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=it9+AZgU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 796751168F2; Fri, 15 Apr 2022 17:42:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351795AbiDOJoa (ORCPT + 99 others); Fri, 15 Apr 2022 05:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245712AbiDOJo1 (ORCPT ); Fri, 15 Apr 2022 05:44:27 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3DB8AC040; Fri, 15 Apr 2022 02:41:59 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id o5-20020a17090ad20500b001ca8a1dc47aso11438554pju.1; Fri, 15 Apr 2022 02:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=Lt5Azs8UE62t7hvUqRmpYoBuvvMq0qHOp5jSW71Q4WI=; b=it9+AZgUreEGNbOCqj3mjB3EWh1Pv2by2M4d4we2/EWRVJsB18V3G3SWiaPRj/+IPZ 9Pswfro3J0nLvxN2vTrSLTQSDb6HJ4Iqna9DljB1Thpw4CN6nmH7ClgiL/SlK7hDljqs D0KZRdVEi/8ssbEVZyPx42ntrWNTBLwfg8skrLztkgyoDUS9OmtryIcnVDmkUklSr7qh 2y3CWXID/mY5ccp5nZa5uccv813RMJEiL5fUTTUBvvgtNB9MJn2KNsuke0GJxa9a3jb6 X9kYWf04GUHRfxfkZejDcn5fvpfNRZvRMBjD7S9ANYKHEwRP2B4lT7BRcB9a/MuoUq3X MlLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Lt5Azs8UE62t7hvUqRmpYoBuvvMq0qHOp5jSW71Q4WI=; b=7IGjnyq6s0t7VnBqSHtlp5pIS5HmhfVZpVJBjKM6eYlTbUoc+wwgoEhevXAY47UCxw nzWNClztV/gly5V1o8zOGGrOjGm8NXH5EC4qcRYyVcLL6EM1Y7zNsC/idElQWZo4se2G 6LhUuDmYVn1cVP5uGoE2B/BjYG6/ea2mRwXgOaJwtzA/QUlyX8JZAoJPKww7EfaRazII VvLd2av7gemWzkNXPJFkciyxIA/F2y9Bc397SS2Qg77WCsK8LDFypi1/HhInP/F7INrM Y2JW+afm02KXO5jmPVPsJ5V9PVZ3rXCh63ATXJs7kTjiEf57s1mS8v/AQre5PSjQlV7E nUug== X-Gm-Message-State: AOAM530GWBhI/feGm/LGtzNyavY2OdhsYJ6OsNUAWreIl+poExCZGpRi 14GE5/miGlHllUvIJqF0SfY= X-Received: by 2002:a17:902:b70c:b0:156:16f0:cbfe with SMTP id d12-20020a170902b70c00b0015616f0cbfemr50796482pls.152.1650015719087; Fri, 15 Apr 2022 02:41:59 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id m13-20020a62a20d000000b004fe0ce6d7a1sm2278502pff.193.2022.04.15.02.41.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Apr 2022 02:41:58 -0700 (PDT) From: Wells Lu To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: wells.lu@sunplus.com, Wells Lu Subject: [PATCH] pinctrl: Fix an error in pin-function table of SP7021 Date: Fri, 15 Apr 2022 17:41:28 +0800 Message-Id: <1650015688-19774-1-git-send-email-wellslutw@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first valid item of pin-function table should start from the third item. The first two items, due to historical and compatible reasons, should be dummy items. The two dummy items were removed accidentally in initial submission. This fix adds them back. Signed-off-by: Wells Lu --- drivers/pinctrl/sunplus/sppctl_sp7021.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/pinctrl/sunplus/sppctl_sp7021.c b/drivers/pinctrl/sunplus/sppctl_sp7021.c index 9748345..cd65776 100644 --- a/drivers/pinctrl/sunplus/sppctl_sp7021.c +++ b/drivers/pinctrl/sunplus/sppctl_sp7021.c @@ -419,7 +419,15 @@ static const struct sppctl_grp sp7021grps_prbp[] = { EGRP("PROBE_PORT2", 2, pins_prp2), }; +/* + * Due to compatible reason, the first valid item should start at the third + * position of the array. Please keep the first two items of the table + * no use (dummy). + */ const struct sppctl_func sppctl_list_funcs[] = { + FNCN("", pinmux_type_fpmx, 0x00, 0, 0), + FNCN("", pinmux_type_fpmx, 0x00, 0, 0), + FNCN("L2SW_CLK_OUT", pinmux_type_fpmx, 0x00, 0, 7), FNCN("L2SW_MAC_SMI_MDC", pinmux_type_fpmx, 0x00, 8, 7), FNCN("L2SW_LED_FLASH0", pinmux_type_fpmx, 0x01, 0, 7), -- 2.7.4