From patchwork Mon Jan 29 00:59:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 126134 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp2021034ljd; Sun, 28 Jan 2018 16:59:58 -0800 (PST) X-Google-Smtp-Source: AH8x227ax0VDv6hr89jXX62SG43tcsqdKihgLlUAfmXSJ55opsj6eFP+A5ya54onMjDq0UHoNzWx X-Received: by 10.99.169.26 with SMTP id u26mr20046248pge.270.1517187598071; Sun, 28 Jan 2018 16:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517187598; cv=none; d=google.com; s=arc-20160816; b=OMPiV+STJKuFaDFJDj3VWwNU/M4UsHBpgglSvaxXErO3raHpAaiSR8VzqVQm5A8+YH lTph0TLj+ui6QQuDFc4cpnqc/9ESWJItiRf1FAJf6+TQVOvMwwHTSFF/ZTlKRWKuXkFh kGEx1jqbQ1HC93mRXm0JQJOJdrdWDnqoMApgHMuDUrT56HTRPRDSnNGfPAgRQqgqPGUM ou8aQyb7/amSbcGdJcVMXnM3916NmGAQNM9F3UiWwrLQRtphbuqbNfhEmWXt08XBRKnS OeuJWldi5aXtXV+SOlaAGPNmU1cFFPIDBizyfCZHyGmQANEFAyhI187gSpVcQmunmStf qQuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KuBMQJGB3cVcwodXJe1YAhBu6K20BiY8iUw3QFhsOR4=; b=iZAayEH1Q0H2hU7BxUt2LQSE5FSbqUU/g3llu+83zAXOPDTrkfXllB6fMAKkgAt9AB M7v+ZCt0TD3hxqPy4+noa16uHT5QpaenOn+DhWwubXmEWVi4tdEcgb/TR49r3jtlB4Ev cfCWm/cEQcpb4va0fGPT1VwRaO+DjJdqjfV1yVGJXIphA6iLdrf4g+tTnAt7KO31PWJs D+3KUHpUdsxCv1j0DiJVhoNWT5AIEij6euCqxFDSM0eYWnPO5H+RIY9MH35eg6EaQooX z6ntAXg2qWK3c+AOI9QVm59v2Cv8vcPJbdKftPxeceYKG/BjaA+5WWtUrlvA3IiaGrM5 2a5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KbOy5Frs; 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 o25si6400176pgv.641.2018.01.28.16.59.57; Sun, 28 Jan 2018 16:59:58 -0800 (PST) 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=KbOy5Frs; 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 S1754539AbeA2A7z (ORCPT + 23 others); Sun, 28 Jan 2018 19:59:55 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34216 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752615AbeA2A7w (ORCPT ); Sun, 28 Jan 2018 19:59:52 -0500 Received: by mail-pf0-f193.google.com with SMTP id e76so3423119pfk.1 for ; Sun, 28 Jan 2018 16:59:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=KuBMQJGB3cVcwodXJe1YAhBu6K20BiY8iUw3QFhsOR4=; b=KbOy5FrsQbhWv4MMXweAQRmPDDFpf/mtOvrGoOk2+CPYmYc5Dw+BERSwMTG1KE6woz gDOdQMG5yTLvTQir0qXOqpLTpj1Eifgn6g9rFqMu4ICFILdBApYCVa5WkggrqPZNyf2v xn0GUgrjnUYmAfBNB38lU32P3lJaK9xaRtbUE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KuBMQJGB3cVcwodXJe1YAhBu6K20BiY8iUw3QFhsOR4=; b=fUY+xJEeqr2W32OhbNjloGYlPgl7jpaJtLRRTuHU/Y6RtwGzj1vT7muAOk5EOzk7qO 04+IC19/Kca2LkVVrlLL47tv+ZC431f+5WQxo+Kbuf72KlOA68S6Xak1aj7wvrruVpUQ TDVB5I1FYgydKSYXCa0+7GJHXJh4PPJplYLzsC33yLJ9hKSchyh9lAUgur3zVC3WHfd8 YHOD4T5FktcHuuTDVbByuuGdzrmDXsgtUYnvaP5yPxv/UZNr2vY1bkGRqfghsXHldI4z vU5f+IzRvnS1mvuIaDQm+T0Kpd8l6oATR6WLFuLOXl1Wl3BC0feYfHb/nU8kd8NiL4pw GBkw== X-Gm-Message-State: AKwxytdLgkD2g5MEBpJCEonNWFlKSaWxwaWQ6BYJVtXbFc+iuXFuIELn OCv/tR7OZv7XpTtfpIajs/hXMg== X-Received: by 2002:a17:902:5902:: with SMTP id o2-v6mr20095385pli.79.1517187591908; Sun, 28 Jan 2018 16:59:51 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id z128sm29864024pfb.36.2018.01.28.16.59.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jan 2018 16:59:51 -0800 (PST) From: Bjorn Andersson To: Bjorn Andersson , Linus Walleij Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Timur Tabi Subject: [PATCH] pinctrl: msm: Use dynamic GPIO numbering Date: Sun, 28 Jan 2018 16:59:48 -0800 Message-Id: <20180129005948.7714-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The base of the TLMM gpiochip should not be statically defined as 0, fix this to not artificially restrict the existence of multiple pinctrl-msm devices. Fixes: f365be092572 ("pinctrl: Add Qualcomm TLMM driver") Reported-by: Timur Tabi Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-msm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.15.0 diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 495432f3341b..95e5c5ea40af 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -818,7 +818,7 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl) return -EINVAL; chip = &pctrl->chip; - chip->base = 0; + chip->base = -1; chip->ngpio = ngpio; chip->label = dev_name(pctrl->dev); chip->parent = pctrl->dev;