Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2147297imm; Thu, 20 Sep 2018 08:27:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZpn2bE4q9qtN8g18xCsoEI5mo3fmWt8ZuiApXcZMlVRSlrsL3aXYQ6iczVlK7LiU7kK3Zv X-Received: by 2002:a17:902:6806:: with SMTP id h6-v6mr40644072plk.304.1537457248930; Thu, 20 Sep 2018 08:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537457248; cv=none; d=google.com; s=arc-20160816; b=TRvj0+s/ao4bDKqaK19ZIfi67kAz4udQZSG08pR2etF7dLWsf7kS8ZGzmBdX4+X/DH 4Ep1kwg/jc0/Oo6TxZRiDxrDX84tVhm9eH7/ZGzb17g5cLZ/RKwS/vZftIKIe9gU9Mp1 tqbNIJuAC628MMdjN5CGzPjDpG2S1HhMA1LLYBW7ijTZAdVrWepJlqUmGFGaRP0bBTkW Ng6yPcT853G7tVjv/iwY06Bs7oP3MuQM28aJvysd82fHXPa+Lw/PyhjEoBuJ5pVCqHSN EnyvmFEdQ8wGtx7uAt0jVWJVLhv+Ad+1yu4ujqOUxAOA9W2tsHwPL7Bj7BaVoYSLYkuS 0cxw== 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=ueYwWp9hOt4ubExEkrr5fI9g24XfOKpvzRXjVeuX2wk=; b=ofZoiXzKz/WhGVNug8vvO1cSA4NW/yRumnyCmBjzfV5HQe6h8s9SG1Ynd3z42Ql77U 22bFnh5X64apwcDNpW+BTqSvn1LuaRXKSNmNA5uy3AKCFLlRMzmX+x2K4h3Rcj311FDQ 8AkuGCmI2ClmYIhsUhA28djgzdB/8sLRgZMPbYAyPSEL44Ad2Rjv7MvY9awYz0XaFQkV zEMcSSK4+2kHqv9J1GY4NAzn/sZxkilVVjNE6GhmprZmexTbb8uT+4EmMpBrSxWNdAW0 ofEu5FtmrIwPjPLJkmgm9CaMZ/opHB7GyBr+RFL6vMTgavu7zkKGR2A4sgZJzJZEr7qL kp+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L7Wj2Awl; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21-v6si25280564pfy.169.2018.09.20.08.27.09; Thu, 20 Sep 2018 08:27:28 -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=@linaro.org header.s=google header.b=L7Wj2Awl; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733262AbeITVKi (ORCPT + 99 others); Thu, 20 Sep 2018 17:10:38 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:33864 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727710AbeITVKi (ORCPT ); Thu, 20 Sep 2018 17:10:38 -0400 Received: by mail-io1-f65.google.com with SMTP id c22-v6so7736297iob.1 for ; Thu, 20 Sep 2018 08:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ueYwWp9hOt4ubExEkrr5fI9g24XfOKpvzRXjVeuX2wk=; b=L7Wj2AwlEo5PGQi0CWQgTcVvPFHT6d8zL/e4PsSt6dReSpXfBaJBAfdGK0skifCB72 I0OXtYhbxC5xcU5hVUprXg3hA41Zb9XEVkpAlNFxdmlX+Ole0H23FgFbSCMaDydHEh3T 5PoPq/NUjKFbKAVJAFtuA5mlB+mlD/45SZSrw= 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=ueYwWp9hOt4ubExEkrr5fI9g24XfOKpvzRXjVeuX2wk=; b=dUzDwN9KJAJMvRkEyCQ6Ps+SUJYYlHQ8GUEhB3nLoNf54kVAyo7oVEneMuJqeekaNM Q57OF0HpP8/FHLI4v4wUgt9fiJ8gghzRT3HRe/mUSsgSOu1mZTDx2aBofoB64s29zSVx VWsvUyCaHhm4NFkZFoFYVirbJxjqs5ROpRQp3hF7j6VBzm18ado7nBG/1UzhFf8mJQ8S 2uzZ65omlsi3L1Y1Xv73zBMnb5xvO3cpsbXBo0F+lbFbI8hSJT64sbTHRFlV3CGeG+e7 cuv7TlCy9pAU06OQkddRMvELgI1y3MbDV0hmTMDtLG7v6gTy4zJEh4G1i2oU9dYtoERc mjVg== X-Gm-Message-State: APzg51A5gEZkQQzdOiSDWX0uHQUnG3dPFXmqWbDuTshi2rdwY8da/gMf OAeWSVStuyiBONlkouPQ97uUDrkW6OeJeBZBd8W4Z7OA X-Received: by 2002:a6b:c3c4:: with SMTP id t187-v6mr33067327iof.304.1537457198194; Thu, 20 Sep 2018 08:26:38 -0700 (PDT) MIME-Version: 1.0 References: <20180918153621.71984-1-mika.westerberg@linux.intel.com> In-Reply-To: <20180918153621.71984-1-mika.westerberg@linux.intel.com> From: Linus Walleij Date: Thu, 20 Sep 2018 08:26:25 -0700 Message-ID: Subject: Re: [PATCH] pinctrl: intel: Do pin translation in other GPIO operations as well To: Mika Westerberg Cc: Andy Shevchenko , rajatja@google.com, casey.g.bowman@intel.com, matthew.s.atwood@intel.com, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" 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 Tue, Sep 18, 2018 at 8:36 AM Mika Westerberg wrote: > For some reason I thought GPIOLIB handles translation from GPIO ranges > to pinctrl pins but it turns out not to be the case. This means that > when GPIOs operations are performed for a pin controller having a custom > GPIO base such as Cannon Lake and Ice Lake incorrect pin number gets > used internally. > > Fix this in the same way we did for lock/unlock IRQ operations and > translate the GPIO number to pin before using it. > > Fixes: a60eac3239f0 ("pinctrl: intel: Allow custom GPIO base for pad groups") > Reported-by: Rajat Jain > Signed-off-by: Mika Westerberg I applied this for fixes. However when merging with devel I get some a merge conflict, probably due to some cleanups from Andy. I tried to fix it up (just use your code) but please check the result. Yours, Linus Walleij