Received: by 10.223.185.116 with SMTP id b49csp841992wrg; Tue, 20 Feb 2018 08:43:42 -0800 (PST) X-Google-Smtp-Source: AH8x2267JKDzfbWs5rDN/u7YHoeK8dVoFCIQBnG/CnPOeCIuJOwPBQdZZVx9s9aqxnDa7556qX6N X-Received: by 10.98.166.200 with SMTP id r69mr195936pfl.205.1519145022156; Tue, 20 Feb 2018 08:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519145022; cv=none; d=google.com; s=arc-20160816; b=OBoXR2LPfi+U1SZGvqz6Y1nPW09tJVcbsyTL531HK0ntDozD4BWj0EMALLLOXojrfD Hoam8SKaJh6Cc4QJV8fgYWfK4GhyrdUtVR7rsSZAcTi5vgD24EHBAACzBnGHMuRUffuP deDHs4eNjcz7I8i7ir6DElOlvaGFgpB3IuZgQgf0tNjW/ffd17EHT9CZYSaZTW220lla qzU2I1E5aeCvV9veMNc9mR9iYzE4x+t+Rtpz7ozcCNt20LxIhAXGrUv14QX2HeZ1mo/Q /HiePmIWwBm4hdNl+VA9X9IcNTErU6qT0hqbOOdKV/5q0Y7qFYzwPu9N0FtiMeBoucU6 YSnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=3HcWykC2T3J24s3KlgoBPtjYTkpQRb5RA5tunH0RIe0=; b=Be3sBS4kgcDqDIS2+sfsrEY4AW0etwJuKgsRy/UXP/EFU7LsL4+zjKJxajim7/McjS 2xCH6AcbBHLBPRsmuu/Qmfq6+5rRugSklxLI/7E6wDQMs2OFUHVsPJeK5tkXHsG1I6UZ PaE4S9ar96Mw2fHLQS9JowYmT7EG70b6o/Nt3hBIJFNl2pOSyHE4T9wX/nbdd6tia2Ol MHhVGoJy4wOFa8FzeJqw7KKYs6uxqNllqPGRIHk0QG68HYh49jCWbraGUCGDF+9BxDwQ gNlliikfF5xtu5zK0zcO/x9/Og45swm2PJLlNqx/YCly+ngw45Cr4vXdk9xkl0+5eY// 8V9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y7aHbcVB; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y7aHbcVB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si81664pgf.720.2018.02.20.08.43.26; Tue, 20 Feb 2018 08:43:42 -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=@codeaurora.org header.s=default header.b=Y7aHbcVB; dkim=pass header.i=@codeaurora.org header.s=default header.b=Y7aHbcVB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752967AbeBTQmu (ORCPT + 99 others); Tue, 20 Feb 2018 11:42:50 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:34584 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbeBTQms (ORCPT ); Tue, 20 Feb 2018 11:42:48 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 86A4C607CF; Tue, 20 Feb 2018 16:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519144967; bh=Zk/Qx/lWoWoSRmb0DDtbAUKjk+ZUKS7I8TQ/2rk0Kjg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Y7aHbcVBW5TOgCkTHN6vHubu96ZQ1QFPOWIv0T/vD8wM3+1B1JNq1WLhl1YKXdeNc Bpt9vpJGllk+Hcyz6bIp6gv3hqJs4/HzyatTzht+njsKLdoSOcdkdW2gs8965rN5XV hmNqCGorh0srgs+u/O9oDdIWzM6rAJnw5pK9RgMg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.222.143.167] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: timur@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A87A160712; Tue, 20 Feb 2018 16:42:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519144967; bh=Zk/Qx/lWoWoSRmb0DDtbAUKjk+ZUKS7I8TQ/2rk0Kjg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Y7aHbcVBW5TOgCkTHN6vHubu96ZQ1QFPOWIv0T/vD8wM3+1B1JNq1WLhl1YKXdeNc Bpt9vpJGllk+Hcyz6bIp6gv3hqJs4/HzyatTzht+njsKLdoSOcdkdW2gs8965rN5XV hmNqCGorh0srgs+u/O9oDdIWzM6rAJnw5pK9RgMg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A87A160712 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=timur@codeaurora.org Subject: Re: [PATCH] pinctrl: msm: Use dynamic GPIO numbering To: Linus Walleij , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" References: <20180129005948.7714-1-bjorn.andersson@linaro.org> From: Timur Tabi Message-ID: Date: Tue, 20 Feb 2018 10:42:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/07/2018 07:52 AM, Linus Walleij wrote: > OK I put this in devel for v4.17, let's see if something explodes > in linux-next else we can go with this. > > Otherwise we need something that conserves base 0 for singular > TLMM drivers and make it -1 for newer platforms with several > instances. I don't see this patch in linusw/linux-gpio.git anywhere. Do you want me to submit another patch that implements this: static int base = 0; chip->base = base; base = -1; This preserves existing behavior for current drivers. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.