Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp56384imm; Thu, 13 Sep 2018 15:37:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbzlAZWAn+nNoSajU7jRtZnTghHP7Yk7tQXRVWES5ycJwZZ5FauVXis2ou09F4CcnpEMybS X-Received: by 2002:a63:5ec1:: with SMTP id s184-v6mr9092559pgb.26.1536878222268; Thu, 13 Sep 2018 15:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536878222; cv=none; d=google.com; s=arc-20160816; b=U7/FmWPAMAgC2kC9jRkVywg3otceF785oakVoVKOvXd0NU9iqqPB3SXVNre6JzvWEY 6cJOa9Li+oANljikDQ9Fnh+hm7SIy3xtJ/rkzH3/Xpj/mimPuKkuTU+Sy9hAPjd1KNhh dL5PNNuz5/6/9hdVvyVK+WxKteSqN9HKJePnHDzBft/PPruOkc38rT+rZa7l4h60VXwI ojM1c/aLRKDT8o7OuToiKzmc4UJvwqRL9QbfpcKtWrAY5Ke4UDvq96ksCjekMT7lAWGb 1uH3k1P5QvcPcMxApqgnGUFy4mz1VvCnMITNZs9vxbPx/h/qCIP3/hrDPpNhGhDh2zMr Gw/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=S+oLy1i9WomBzWLyCwBGFOwZ+XnhzaGC5nebu3J/cqI=; b=R/bf9z6VPcSPw2EkDazWEBXdP770ewQvLzN2E3Y/h5PP0Ox6aT/7JWry1MZhY5tHzA tnn+DNyJDQjw2EQpUXx36Ucp99TUJ9LkHgFwSiAK0sItIKrfIKULZoQhuhmx7M4GFVZ6 LI1ju+pOfNqCukro1ssH0beOxkGgPcAxkVutNIqdjorhKGsMZN3rDIQI9CxxIcNwVyQA +KuAdeVj1VzbidjkzhREb3qY3GZhQnmYKHFPbFQMEUHkLq5TACk1CiZS/IUvPyMkdrwa rUBFV6qQ6Bq0UoFLvfDM8qyCk94n+5hvQDKgkJRfMWDqcySEpcyvId0sYXBEiTqke9uQ Ad8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZHF82xJP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d19-v6si5544947pgk.92.2018.09.13.15.36.34; Thu, 13 Sep 2018 15:37:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZHF82xJP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbeINDnR (ORCPT + 99 others); Thu, 13 Sep 2018 23:43:17 -0400 Received: from mail-pl1-f201.google.com ([209.85.214.201]:49013 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727988AbeINDnR (ORCPT ); Thu, 13 Sep 2018 23:43:17 -0400 Received: by mail-pl1-f201.google.com with SMTP id bh1-v6so3296914plb.15 for ; Thu, 13 Sep 2018 15:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=S+oLy1i9WomBzWLyCwBGFOwZ+XnhzaGC5nebu3J/cqI=; b=ZHF82xJPrjNVQ5qaoqwMUDqr6EdB+cndsZEWHlrAB6aETmK44XmP7OFf08GYNsUlbe Dji42D6nlptLFf1lohqP5KarkrI8ALKA2xgcdLwPlXwIOjfDJsIHwgcomwT727X6d2rf LuD1NCo1F7/NLZpHmLkn34zKyKvRqkwWr+y3F3gZ3SJOYpOVoU+iCumsx2cZGyw6qJ++ MAuYaFmvXyy69vmcROAKnwsQcoQAl+vC74bPSxMH7kyAWJNdE/maIUeUux7i4MXK9O50 m5svrHSjKugBUoxfraWwHTSRmaw/CCnBDfCIANza21IbZyX2eYyoR+AXGOtW8A49Cnwg YpLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=S+oLy1i9WomBzWLyCwBGFOwZ+XnhzaGC5nebu3J/cqI=; b=HEMN3zKy/DWstMw1LDqjenZQ6TbIikfhN7kpFDSuO0i2XavPohNr8+Jad1p9IKOLyB KGdo12kIk4VXZEhkociROksEo4d2uiDIqZJHGfG2ibZU234yPT+l4oH6nVbKCs+QU+fe +QrgC8SLUjv5LYyBBGYyQU3Gt1G60hlAdTeJRrpnQNuIiFMpAJyNfItp20e/Nypwr63B 5tM/D6UW33HTNNmajQwRQh87pVMSyBB8m45DqFvlylvNvLHJhGIAfI15GKDhH618EewO 66dWv5AjKSsTVg0hTOS2N/iO/zC6ZNAXnWZloc+F0zkV0+TBhuU+Oy+xTgRse7gedEsN VPvg== X-Gm-Message-State: APzg51DLwIFp7DBklUFeLAuEcTesmksDeO7GgVSnoYjexsZ+y5gglAD/ ckBQKL5JoF+QgXmh+Wbpuu1e8eKa7L+K X-Received: by 2002:a63:2057:: with SMTP id r23-v6mr585534pgm.18.1536877908229; Thu, 13 Sep 2018 15:31:48 -0700 (PDT) Date: Thu, 13 Sep 2018 15:31:43 -0700 Message-Id: <20180913223143.12664-1-rajatja@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.19.0.397.gdd90340f6a-goog Subject: [PATCH] pinctrl: icelake: Fix the resource number for community-4/5 From: Rajat Jain To: Mika Westerberg , Andy Shevchenko , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: rajatxjain@gmail.com, subrata.banik@intel.com, aamir.bohra@intel.com, Rajat Jain Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Icelake does not have a community-3, and the memory resources are laid out in the following order in the ACPI: resource-0: community-0 registers resource-1: community-1 registers resource-2: community-2 registers resource-3: community-4 registers resource-4: community-5 registers (EDS also describes the communities in the above order). Since the pinctrl driver exposes communities 0, 1, 4, 5, it needs to get the corresponding community registers by getting the resourse number right. Currently the resourse number is not correct for community 4 and 5, thus fix that. Signed-off-by: Rajat Jain --- drivers/pinctrl/intel/pinctrl-icelake.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/intel/pinctrl-icelake.c b/drivers/pinctrl/intel/pinctrl-icelake.c index 630b966ce081..5b4eaf7c90df 100644 --- a/drivers/pinctrl/intel/pinctrl-icelake.c +++ b/drivers/pinctrl/intel/pinctrl-icelake.c @@ -331,8 +331,8 @@ static const struct intel_padgroup icllp_community5_gpps[] = { static const struct intel_community icllp_communities[] = { ICL_COMMUNITY(0, 0, 58, icllp_community0_gpps), ICL_COMMUNITY(1, 59, 152, icllp_community1_gpps), - ICL_COMMUNITY(2, 153, 215, icllp_community4_gpps), - ICL_COMMUNITY(3, 216, 240, icllp_community5_gpps), + ICL_COMMUNITY(3, 153, 215, icllp_community4_gpps), + ICL_COMMUNITY(4, 216, 240, icllp_community5_gpps), }; static const unsigned int icllp_spi0_pins[] = { 22, 23, 24, 25, 26 }; -- 2.19.0.397.gdd90340f6a-goog