Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1814414imm; Thu, 7 Jun 2018 00:26:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKLYmaYu6xRNOII4ZJfPVzx0+js3KOUU2LOvRIyaMBFnZoNUPWMllJVLWRMP2qk+5eHrUjz X-Received: by 2002:a63:7206:: with SMTP id n6-v6mr643919pgc.174.1528356396381; Thu, 07 Jun 2018 00:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528356396; cv=none; d=google.com; s=arc-20160816; b=EJe0VaaNBG00asf88hytw9zaj/EuKrLacU0q7xESgAQFkouYibjGtS6oe95ZOkMb8f SEcgwIZErdfOc+s69xicN1ntjM3SmuDzHiyLOZRV5Cb9JbTWlQ2lQUZD5OIn1cqhI5xP qXowdfGsCKqxLnL8iYcR7VMuhCEwfQp3mHNydzZ2aIlvZl+hcq13182RtJFMOIBIqEuF vGuDFwx3b3er8bKbGsV0qnTPgn+LDCWo7l0YB8hbqBD+9++2ZutCquldvHn9CqC8ApGH s4T0ZUcXbX6IX6o1wMFxa8pj+NO3nLAVcJt3DBmmXcrt156HMMfdpNGmQCZMJE3fBAVJ 8STw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=N0zCOep2IMmMvU+TRrqvIWq9/q3BCyvmptabR2ICIyQ=; b=mRRHP8TRDQ59tTsUfR0Sj7QMgsTTZWA+jkNQOGxuyt0dKl2fJ042EnU7xSSBwXikk3 6Zfjz418KBqteC9I0yK62dN/aDz6xUA1uBGYF9tLm2jzEL92av4MFvU1ama2r9SUIPGW 7auNOucB51gstYqViB6gxyoNA0wuf48fM723FSuQmdNJTYYVcHR7PFbXlqyefRrOqbiO gevidJcmbIcRXIzGZGFGajAy+T24iLXcXJu1OPCqSpir2zXyQ+1TCPNU2DG8amiqyqcb JAxNXkyvGJILIiJBA7KIczZivORfJr94zu1h0v5hMt7rN8F5+k++LGhVxz9HM2vOYzH0 DDAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kP7TmKA8; 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 34-v6si51910860plc.346.2018.06.07.00.26.21; Thu, 07 Jun 2018 00:26:36 -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=kP7TmKA8; 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 S1753372AbeFGHZR (ORCPT + 99 others); Thu, 7 Jun 2018 03:25:17 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:44473 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753085AbeFGHZO (ORCPT ); Thu, 7 Jun 2018 03:25:14 -0400 Received: by mail-io0-f194.google.com with SMTP id g7-v6so10658824ioh.11 for ; Thu, 07 Jun 2018 00:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=N0zCOep2IMmMvU+TRrqvIWq9/q3BCyvmptabR2ICIyQ=; b=kP7TmKA8IUdBAyEiXJ/E5AA8PBMsaMHv2bWCFZSdbp+vIiHCT4QYNN1EGWlIawkEqF QwRqRIdsnMS6BwR0iqVzo5zogUwNnyXiQQkldQ9vlRpssTbKX8A8RkgMWlGuDXOaqyvH ieT/0w/ebUZdh1gIykKvQUi5kuV03LRP0dJEI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=N0zCOep2IMmMvU+TRrqvIWq9/q3BCyvmptabR2ICIyQ=; b=UmdQh4Fq1naj/vMHW4PnoekUreTigF7kgN62fzMP1x6YQp9RSoi+fedY9xyVTK32X+ rpH11ES9Ay7ct5Ah9WVrs9l5q2q4jV4x/o0aVxFQAOGpp7kpNhyLVKMH4zvmvZ0ppz4A 4TZt0g3+qDgrrlQ1ZCtCvQH64tnc+ZtKup8PfpGV+nitATH9i6b88OVq2/+LY6DxRf2f t6+T1b2OrghhfppYcWB6icCpBj6aJq1jvgBp09Aun2s2k8Wt/7cZT7hEUqLHkcNABOZV 21MLqpt2UIX07xLLzH37BArPNmElZ56LJtAT6aRkiY4bHfdOX8OVJm8Vulhoo5ApMXa8 cJOA== X-Gm-Message-State: APt69E0lLr5gOAGluF/ex4dO7EQwMXG6csiyO1/ldOtlAhGT3HycImQH bxD4DJDjbFch71mPJITw5z+lHCTeOGBbDoty93BQIi5aiWk= X-Received: by 2002:a6b:8b91:: with SMTP id n139-v6mr535705iod.109.1528356313624; Thu, 07 Jun 2018 00:25:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:78c9:0:0:0:0:0 with HTTP; Thu, 7 Jun 2018 00:25:12 -0700 (PDT) In-Reply-To: <7c34ccef-2fa8-8b53-2677-29f6fbe71a04@dd-wrt.com> References: <20180528100240.256525891@linuxfoundation.org> <20180528100302.722883806@linuxfoundation.org> <7c34ccef-2fa8-8b53-2677-29f6fbe71a04@dd-wrt.com> From: Linus Walleij Date: Thu, 7 Jun 2018 09:25:12 +0200 Message-ID: Subject: Re: [PATCH 4.16 269/272] pinctrl: msm: Use dynamic GPIO numbering To: Sebastian Gottschall Cc: Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , stable , Timur Tabi , Bjorn Andersson , Sasha Levin 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 Thu, May 31, 2018 at 1:21 PM, Sebastian Gottschall wrote: > this patch creates a regression for me. on ipq8064 the systems gpios now > start somewhere in the sky (...) > this broke my userspace gpio handling. i can override this, but still it > doesnt look correct since there is a hole at the beginng likelly reserved by > unused arm gpios Out of curiosity: what is this userspace? We do not break userspace, so I guess we should put in some hack to keep the base 0 on ipq8064 then, but as pointed out by Bjorn there will be problems when we get multiple gpiochips in later platforms so it is just a stopgap solution. Have you looked into using the new character device with your userspace, either as shown in the examples: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/gpio or using libgpiod: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/ Yours, Linus Walleij