Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp345103imm; Fri, 21 Sep 2018 00:57:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYvsapSUy1iOxmLafolflzg0+gS6mFpdB9IRTxpAzmTbPs2UWyUdfqse4g6oxoPW+uMROsU X-Received: by 2002:a62:234d:: with SMTP id j74-v6mr44554420pfj.106.1537516624655; Fri, 21 Sep 2018 00:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537516624; cv=none; d=google.com; s=arc-20160816; b=LEJX43C7uLFiyoa9RAZqdtETKKjUPv2BAqreqWN5CXSC+AjqNy/QcUpoiEpSsqKz/t Dy0FZdpDX72i8kiSHcqk9Q6EixngbQl0d3V3MsaquDZ8qwjKBJExY37w8wKwVfAqpQOC WPdTwlKPg9r3g3G0tqK7ZHXERHgvte3fFllAACeD3MSw6arEuAl5giBlheJlJCfO916Z MNk4OqTj1Hw3ZLAy384zkRd/UayiM54xIktI7NtN+mjjRrCWjz6bNqqJyEfaWSxiMRtt +vYP4SIDvq+PzxStUKnqKWI165iYkfq3sddQCAMld1W0XU2a4qa860V9SphCvumV6nDY q0nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wqmGr7j8P0tD8LX/zRhuNCuKkTWUSXA6Qfvtsb5X12s=; b=DSiaHfES8tx82gVYjoKhWcHRckrHQDUeF9mWVAQZ/dZvIrpAr9w2eczVY+0kMUaeNH a/6VfQR7yg2hRhyXdXFQVpiWAITZXs/NmNaw2f1sFgol8TOTLJuORmb+VnFf4IzqbX8M JkXIrGG1sI8EuAGUiHfsJFMTXlLdBg6pM4++huNdCVWMYIF6KfwU8f8rQoT727mXm2nO bff00Jgx+HUdZeM7mLlsYpNgFppILc05UHwpP68Aanx8RYCducuLGQwoyf1mTzz7wYnr eP6y0JZENMDpXrhHg5ltyPBRJQSDWmmUJI5Vle9kInJPekAPrb0rNq7fUmJ5rHNz2Zxy WLgQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o20-v6si28055623pgn.66.2018.09.21.00.56.47; Fri, 21 Sep 2018 00:57:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389361AbeIUNoW (ORCPT + 99 others); Fri, 21 Sep 2018 09:44:22 -0400 Received: from mga12.intel.com ([192.55.52.136]:16967 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389156AbeIUNoW (ORCPT ); Fri, 21 Sep 2018 09:44:22 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Sep 2018 00:56:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,284,1534834800"; d="scan'208";a="259103794" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by orsmga005.jf.intel.com with SMTP; 21 Sep 2018 00:56:37 -0700 Received: by lahna (sSMTP sendmail emulation); Fri, 21 Sep 2018 10:56:36 +0300 Date: Fri, 21 Sep 2018 10:56:36 +0300 From: Mika Westerberg To: Linus Walleij 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" Subject: Re: [PATCH] pinctrl: intel: Do pin translation in other GPIO operations as well Message-ID: <20180921075636.GD2664@lahna.fi.intel.com> References: <20180918153621.71984-1-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 20, 2018 at 08:26:25AM -0700, Linus Walleij wrote: > 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. Looks good to me. Thanks!