Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2421663imm; Mon, 10 Sep 2018 00:26:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZDvmH8FvU6PE5OsNC3x6OPqrhYlVSCZ+dVpIbnDiJPA7nqDGK7uVqn1NCSIvbJpf0a66TD X-Received: by 2002:a63:7107:: with SMTP id m7-v6mr20886813pgc.73.1536564407514; Mon, 10 Sep 2018 00:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536564407; cv=none; d=google.com; s=arc-20160816; b=jK7mJrTyI9tbm4LvIoLsxYa53x5XQa+2eA+Ejj6zAwJ0lBXUdyZ3V4UoRRn6/sfpvn gyhk1lRxhskwtPTljF2XusfWTd17tdCeDeG5q5oVAooAtYYz3Tvj35LzCJUaoiS3+VXi csJH5bflKsdCHoLIIs954+lN/SBSOCiVsbwZveAeP0I9Naim/Gyuc7IyvpA4R135qwie C8w/WezEmJ8FM+MkdGcE3I13a+JY93w5dOQ+tv/Lf3SDGponaOfN/qUGi5f/lX3/zKj1 hhwV19SRmeS1OZ7ijHZbOYk0tCt1HLf6A65dKMblnhFMvm85Xbpxw5weycus0PPoDSvh zyhQ== 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=Bsxd32JTgHx/KvEoaZZ+VC3rS/J+CxzKB1YuanK1sjE=; b=qewLMaYBCPupwudnhqcKzeaq8TuTSGkB7g5y/tGcM6dz9TJL7FD4pDkdsA7Yrxl/Fd RYBQTHJgv4xkzWp3aEPRT4+IvOBhk8uhH/RRDisDuhIuZwqzx/9dAtzY7zMKMqOgCiKI Nn22TKX78zE3CMGNO/uKd8dUzJixMIZFbVvX+Svlzlcoukv4sdxmIR/x8bdoBUbbOsJx YELKYPBA1UetDtdngFhRg+Mv9EN8FDk7g4PFaIqn167QSwvoBt/Z6yJOuW/VCQ3EGIfm HZ6jVWfyr4ResYwn5kLH/OkLapE8WP9n5qaXdy0Gha6vqcY7otysenbh9WHOLGel8Es/ IyFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JajU7+6E; 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 cd4-v6si17015186plb.516.2018.09.10.00.26.31; Mon, 10 Sep 2018 00:26:47 -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=JajU7+6E; 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 S1727775AbeIJMSB (ORCPT + 99 others); Mon, 10 Sep 2018 08:18:01 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:39515 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbeIJMSB (ORCPT ); Mon, 10 Sep 2018 08:18:01 -0400 Received: by mail-it0-f65.google.com with SMTP id h1-v6so27397667itj.4 for ; Mon, 10 Sep 2018 00:25:23 -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=Bsxd32JTgHx/KvEoaZZ+VC3rS/J+CxzKB1YuanK1sjE=; b=JajU7+6EIFAac4zo+/eS+l0vJnkbvu8W2nMGPIGZuZjBZcrYgmv3tj/oAJbBt4sJ4w SXoKKoiGyRlSKa6wIuUbcbEvaHwM7ZwU456ZTsqMeEhQbZrvPyPYaJebDuyS+DUhw4DY XZzfNEoeMN1faiCUhpdP3JuTF9quuHO7FEIMU= 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=Bsxd32JTgHx/KvEoaZZ+VC3rS/J+CxzKB1YuanK1sjE=; b=YvODN1/jHf/qkpfjVv0tR/M071DVbEbO23ceNSR6NTmZ6cskQRiDfKu0qgli2cVaNm pIy4oFBxjv1iuY9mjIW9DWH3qH2iKMXLmnSvipZfrw5Lcs1GTO0LOJwebg09CWuUdA+j LQ7Wd+kcyd2cUzdunjdNDAl+ox7TTdync52YhWKM8ObxJB5TFeKpq6YgApadCQlrqSv8 APhjjdK5bJW5UWVuLcHpYJlyvoPJsZp4H1hmhnOXDZJb0gKw/9oDrzxhyL46sbReCiCb NG+EtvbChu+bMUtpANcARdajQzPcab++5o5Zxp+ZnoBwqE8L0/jjBvBP9Z/3YxNCbb1a Gnqg== X-Gm-Message-State: APzg51Ct6b2ZiV/I7rkNJNoMSpDnwLwJuHEe8628nX3nmxyTuVsUFWwq /qCz44WGe4NByviGzaQmeflFfr7Sc+pt58bQLwuuNA== X-Received: by 2002:a24:144:: with SMTP id 65-v6mr15393573itk.62.1536564322637; Mon, 10 Sep 2018 00:25:22 -0700 (PDT) MIME-Version: 1.0 References: <20180831191326.25106-1-afd@ti.com> <20180831191326.25106-2-afd@ti.com> <2a02c241-ac91-1bac-380d-122858bb03c3@ti.com> <040ce524-f6e2-81a2-68db-57a645de22ea@ti.com> <0e199aa3-2d9d-4e7d-af23-8523722f017a@ti.com> In-Reply-To: <0e199aa3-2d9d-4e7d-af23-8523722f017a@ti.com> From: Linus Walleij Date: Mon, 10 Sep 2018 09:25:10 +0200 Message-ID: Subject: Re: [PATCH 2/5] gpio: davinci: Use dev name for label and automatic base selection To: Grygorii Strashko Cc: Keerthy , "Andrew F. Davis" , "Nori, Sekhar" , Kevin Hilman , "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 Sat, Sep 8, 2018 at 9:41 PM Grygorii Strashko wrote: > On 09/06/2018 09:16 AM, Keerthy wrote: > > Okay now its numbered differently: > > > > cat /sys/class/gpio/gpiochip340/ngpio > > 144 > > > > cat /sys/class/gpio/gpiochip272/ngpio > > 68 (...) So: > >> Are there applications that rely on the sysfs ABI on DaVinci? > >> > >> In that case base needs to be prerseved. > > Not only base, but label also - /sys/class/gpio/gpiochip0/label, as this is > the way to find proper GPIO chip in sysfs using legacy GPIO ABI. > > Linus, this platform is old and most of the users do not use new ABI (chardev), > so we could try change this, but need to be prepared for regressions reports. So what I'm trying to ask you guys is if there are applications that you are aware of that use the old ABI, and who will upgrade their kernels and be upset. We must not break userspace, but as you know if a tree falls in the forest and nobody is there to hear it, it doesn't make a sound. If you're not aware of any such applications I guess we should try changing this. Yours, Linus Walleij