Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp450660imm; Fri, 14 Sep 2018 00:42:17 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb2t/rmQit9UPUE3YG748Q2xIQcohCE6toKe3w/asWYOM8fio+hX2yCNLQW+tXkaE3EbMzP X-Received: by 2002:a17:902:127:: with SMTP id 36-v6mr11036169plb.178.1536910937399; Fri, 14 Sep 2018 00:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536910937; cv=none; d=google.com; s=arc-20160816; b=ifW6UhsWamOFJMnknkgAXm70OsRMpQKcEgUGQ5zvpakTUZlqm285aJgUq4+sWiUOPm 8GMOYn29OKjpcPwdw3TV834PGLU9LhX73tVSEiFxbrob6qk24DCnQaePj/Kuj757U+St BvYGlsgcGANNPkiBecF1CzQT2vVZ0ZnX/ReoBwu2i2f9lTrUh+h3paISNFr431swIgQe Iw1kcwz+fIs6ajCXmjY53H6vxv3OYtpRcLDeOx3rNF5bXSFhluF9EZOY7XSu2ISWTE7i vvZquGnkLj/CbzCQIoXYLXvJB/o0ckXksfGZct6/mNyKb/YDCtT+JOuWl0Zl88CAKm17 iR1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3efAQs9RgsvufH+fx5koIKFbVTz2vAavkVGrNZFIPnU=; b=GhZZWqOc2mzqolwip5+fD61nvBkqexvztRIuGGe5FAqYvw9dpx0ITP+7sC48YQdIxo K1ef+ezWYxxKVX7+B4T3A9hszYv0nnFdm9vhwIeB1MUiTOsFC3x/Qclc5w095g/69QFX JfPuJKwxPD1KaPB2HX5Lzku9MBJqRBhcCz6gVr9yTDvLSwc5ssS4MB1ImIm/p7Jy5uLs wnCWE2T1vTr0sUxufQQDXUMipiR3dZ2OmQUjTA7JTGDR1/SzG6zwzI8QqGWUYFtDYV8Z vkoEKbFq38akrRdM3L8He9om739jEYwRNDUAwPidvKxKxG8Phg0u/WPytS7LT71lZYDk RNPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uBl4iv5S; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si6200756pgm.509.2018.09.14.00.42.02; Fri, 14 Sep 2018 00:42:17 -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=@gmail.com header.s=20161025 header.b=uBl4iv5S; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728008AbeINMyf (ORCPT + 99 others); Fri, 14 Sep 2018 08:54:35 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:46820 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbeINMye (ORCPT ); Fri, 14 Sep 2018 08:54:34 -0400 Received: by mail-qt0-f196.google.com with SMTP id l42-v6so7866703qtf.13; Fri, 14 Sep 2018 00:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3efAQs9RgsvufH+fx5koIKFbVTz2vAavkVGrNZFIPnU=; b=uBl4iv5SpTalF7QA9Fj99feQEzVAti+6AUcYn327vE/55o3Jyvu6pDWSF+aoSbQOR5 6ssEc3tybJ3a32+W0RE7DAV5sN9DuTDLhQPzh8iyVbjM8xi7iulCVQWtOPekYITVDs44 3Jh6iM7k6EytzSXtNG+LbKWDJuX1MW12DEzJ5BMORyMYtw0WgIj9NZz1fWPK+hF1ezdb 7RakWMPJ/F/LUAqjpauv/PgE7dlaLHFZLURl+75kB/mneLSM+vmqnRBbRo5rS1g+TSUL fX19tqE6dilsZ4tdpxJ+JmQw2w07R/MGOaaPutlEV9/Zx4+8WPaVExiw8jFea8oLFOSl quRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3efAQs9RgsvufH+fx5koIKFbVTz2vAavkVGrNZFIPnU=; b=SJuAZZZxk6f5Y2lF5/1iklyKjrg6/bpjkDItfyJCJeC0ybebUxZNxCdjIpQGlOjMme /e/hququlkNqjI8jcCW4QOR5fJSDgampK3lXGZhKKYz8DFWy/JeyuTq15//cmT6JJKba uXb9OtH7lCcJ75fYaiuG5dZKm/Y8VwKhcrbpMPJ5ybUUFRMiTO8SWtGJWN0q6XATxKvS WHjGaKlkrAgty71gcRyZ1TP3zmKvsab+ts6pRfvXoeY3sX5Y08Ri5Wbo5yCvr+2n1Mn4 V8bunfNyElKDl/hR5qZrwTOEyzjNJWlSQVjNjRnx8PIrw7N7YQXz7c7unNr0XormnAoC 1ybw== X-Gm-Message-State: APzg51AKxS4rpI4QV7Tg49ScvjHvdOSXehNdOYr82QDvA6uPty+GRNje +5o+4ndhJJRYZ/48tSEjppzZ8dj707rYAXxp28A= X-Received: by 2002:a0c:c13c:: with SMTP id f57-v6mr8161409qvh.7.1536910881253; Fri, 14 Sep 2018 00:41:21 -0700 (PDT) MIME-Version: 1.0 References: <20180913223143.12664-1-rajatja@google.com> In-Reply-To: <20180913223143.12664-1-rajatja@google.com> From: Andy Shevchenko Date: Fri, 14 Sep 2018 10:33:18 +0300 Message-ID: Subject: Re: [PATCH] pinctrl: icelake: Fix the resource number for community-4/5 To: Rajat Jain Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , rajatxjain@gmail.com, subrata.banik@intel.com, aamir.bohra@intel.com 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 On Fri, Sep 14, 2018 at 1:54 AM Rajat Jain wrote: > > 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. > Can you share link to the ACPI dump of the tables? (you may get one by running `acpidump -o tables.dat`) > 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 > -- With Best Regards, Andy Shevchenko