Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp634228pxb; Wed, 16 Feb 2022 00:29:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOlcPBHqG3CXsjaaq1UyGaNn2VDYqe7lC+uaroE1C0bVHTXVZRBYnmoLc9UYUpxJ/hopzg X-Received: by 2002:a17:90a:b304:b0:1b8:b322:aa4d with SMTP id d4-20020a17090ab30400b001b8b322aa4dmr502324pjr.12.1645000155241; Wed, 16 Feb 2022 00:29:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645000155; cv=none; d=google.com; s=arc-20160816; b=NnIEn0xWL5xqv6SQ6rKL2BGfMSscN6j7e/e6PjOeuRswTae5BgWbYIhUUxlu1EeeNJ yDTTK2xZNPN/wW6kHhxEO2zsNGnClemLOzdfZWuKm0BaaJqzsgqHJ4teqJEkQCRPKgi/ uYQFVP0I8DO601PXXLwQBWICfW44QwxgawHqlsLKFxsMe6Cvh+2Y6ojI6PozZHHDgbut LMdA+coxDCDGO+jBhsnj7bUZaTK7yoKFfPcaL2nv5KFFEJbh5As7mIcvYIlrcwhz7d6Y TpmU9YWGEC7EbnYSbYiyNmFKABKELoiIDQzjnIbP4O2bvoN+P8SdxtAJbCG48MBJ1+Pk AW4A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GYCb7jDMB1MdvVyw4SIwn4Hfy8z4CTkry5OojqG7RqY=; b=qc3ShuScjIl+ZeJsSxMHgBYe3mQV1t+mTdyuWckAH00VMda2jcmiLb9qlyKMetr4cm TPO3D+fLWnTX9EbNkbv79u4qNoHjo/vl+cChxttCIhfbOttNCxXpAkRhlaFchmV5rUxB rQfzksO3580P6ByqR14pqmuVW2qRDG3Usx7JnFGnCUPlSc9cHpyQr8q4saoybbdkaMdY /FBpCPTbN6wYSgMLCv1VhYxxOq3ELH2SMq/q1742fGftw4bFrSxDcNg6DYli45G7lEAV OBAFtTK7KKF5S5kv2wLDE3dD947ORnlFnNyPLrUeoSeTod0hrGAjMg/uN9uoU9WSeDSc BvLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=rNSaSNgS; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b4si37285342pfl.173.2022.02.16.00.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:29:15 -0800 (PST) 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=@walle.cc header.s=mail2016061301 header.b=rNSaSNgS; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6046D20AD84; Wed, 16 Feb 2022 00:20:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229485AbiBPIUz (ORCPT + 99 others); Wed, 16 Feb 2022 03:20:55 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:37708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiBPIUl (ORCPT ); Wed, 16 Feb 2022 03:20:41 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6B1320602A; Wed, 16 Feb 2022 00:20:28 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 99A9022175; Wed, 16 Feb 2022 09:20:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1644999626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=GYCb7jDMB1MdvVyw4SIwn4Hfy8z4CTkry5OojqG7RqY=; b=rNSaSNgSSIu/f9PSFbsuY1t/HWPsosdGVSQdOhtVDdCooLeHQu16YYcmz3S9lKWSfF19IO CrM4rvE+J7snVnJXONG+Gyvy5tn5BXvEJCPzBtps19YD3AXiEj/o3OSnGLVvKSJrIrWLlV 923hFGFlYcjli/1t9w/rNtFKQI5OJNg= From: Michael Walle To: Linus Walleij , Colin Foster Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH] pinctrl: ocelot: fix confops resource index Date: Wed, 16 Feb 2022 09:20:20 +0100 Message-Id: <20220216082020.981797-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Prior to commit ad96111e658a ("pinctrl: ocelot: combine get resource and ioremap into single call") the resource index was 1, now it is 0. But 0 is the base region for the pinctrl block. Fix it. I noticed this because there was an error that the memory region was ioremapped twice. Fixes: ad96111e658a ("pinctrl: ocelot: combine get resource and ioremap into single call") Signed-off-by: Michael Walle --- drivers/pinctrl/pinctrl-ocelot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index 685c79e08d40..a859fbcb09af 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -1892,7 +1892,7 @@ static struct regmap *ocelot_pinctrl_create_pincfg(struct platform_device *pdev) .max_register = 32, }; - base = devm_platform_ioremap_resource(pdev, 0); + base = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(base)) { dev_dbg(&pdev->dev, "Failed to ioremap config registers (no extended pinconf)\n"); return NULL; -- 2.30.2