Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2269699pxm; Fri, 4 Mar 2022 12:46:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOF+khpZVaxKxucVOL+uniq71ahBZNTBaeSbZGYN9uXd6rC70yC46ElbaCA7TfdeztwZ8C X-Received: by 2002:a05:6a00:1a09:b0:4e1:67a7:2c87 with SMTP id g9-20020a056a001a0900b004e167a72c87mr400759pfv.37.1646426765723; Fri, 04 Mar 2022 12:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646426765; cv=none; d=google.com; s=arc-20160816; b=uQPI1HCq8rbTAVSDFi2j4b2r5ErrhT9JBZ3d9w6NZmZ7wmiI5YUzsDVfS++sS52IQa mISxWsx3dc2TjTYkAwP4jkBAz9A19S4rHshUYxyQdnHXLOBWr7BZXNdtjdPpOWL+HL/H 3TY8wsKU5iBTrc+8PCuFaAcylrEprZT3KV4t+cUdCNvlmhkzQR75EmuLyuTPGUCFSxr9 j90GRR2jQeuX9TOS5ShymQp5LtiLuX9P1F48xysMTE9c0rJXRioJYjum+Ckl57ENWeVt 9HiQeoDbOSZbkwy+zsCJ2LdBU4/XfagMq9ZSnbjIMcVUkdbFGnxWW84OmErymmQWdBaq qlSw== 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=LS0dne31JH/GFK1RKs7FA/0bWIqm9TNd27YFsDjL3Ac=; b=c7+xxpsqjtg1pImZe251C0YyTmYYGTjH14RHEmkibq7gjXE7D4tIKk+r+QsgOb2Fxn aK+7FNiHAAUI/IokiNNs/Hm4m8WYddbEbmmKtL3sld2n0a0dD6mJMHUEC/sj3d/cEfyW vY2xL9264Bzw9YKJIaUDhoI+m+sWgJA2Jmtbmf9V0cPU9ly3koiqxJ9TgskAWpqp515g KwVEORUJriknra1b5msk08fvS3XSsBFyTpyCYTCwqQ05aRpcyMFOQ2uKwz2yxqMAKAmI FWBisJvTybDyiEt9jbo4+Cd3r8vXBwTMn94L+qffKkIKH6hs+Q1HvmNUzubrFo6x8jiO k2ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=Xv5oN8ey; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id f33-20020a635121000000b0037264ef5f8bsi5226330pgb.859.2022.03.04.12.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 12:46:05 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=Xv5oN8ey; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B44F02A8AA9; Fri, 4 Mar 2022 11:43:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239905AbiCDOnO (ORCPT + 99 others); Fri, 4 Mar 2022 09:43:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239889AbiCDOnL (ORCPT ); Fri, 4 Mar 2022 09:43:11 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E02921BD04B; Fri, 4 Mar 2022 06:42:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646404943; x=1677940943; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zlHFHwW7mYn6Pe7YF0bXGzbThYPa0Mv9pWYRze3Df2w=; b=Xv5oN8eyDYn5f8wgrvzTV/97iWEgRQroKG6iQHdV3Ih6vJ8Wz+5qTj/7 v578yop/1VJbjmXTrSKyL/eSpbfILX0jOqWyUWPOGtN0HE4vMTH5clD09 VMZnBFy7+1EgMHRx94cvZNW4DeK2/QoH47FJtGcC80beWhn54BXdvZWVw STwoimyW1XE6DWq3Sqn2kjRqvgwyMsEjz+pGMOE6rwl6r9/Raef3PI361 4IIiYPbaYzMJ3yN3yS7huNIxaz+h/KAzWOBI9919WMZp0y0TAKYUkOFVU Hw3jECSpBvAU5ioqGg+W4AEfh2sjblXErH7xUhNCvGwasH8/YYhgvnpvi g==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="150870204" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 07:42:23 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Mar 2022 07:42:23 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Mar 2022 07:42:20 -0700 From: Horatiu Vultur To: , CC: , , , Horatiu Vultur Subject: [PATCH v2 1/2] pinctrl: ocelot: Fix the pincfg resource. Date: Fri, 4 Mar 2022 15:44:31 +0100 Message-ID: <20220304144432.3397621-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220304144432.3397621-1-horatiu.vultur@microchip.com> References: <20220304144432.3397621-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 pincfg resources are in the second memory resource. But the driver still tries to access the first memory resource to get the pincfg. This is wrong therefore fix to access the second memory resource. Reviewed-by: Colin Foster Fixes: ad96111e658a95 ("pinctrl: ocelot: combine get resource and ioremap into single call") Signed-off-by: Horatiu Vultur --- 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.33.0