Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2431586imm; Mon, 10 Sep 2018 00:39:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdawMMmYZVQ8+k6U/mSwQg1+iMI+48+g4/93AbqdyVlzagca853k+oDTOa3bXYPUAi3DxY3k X-Received: by 2002:a63:da56:: with SMTP id l22-v6mr21294649pgj.179.1536565195317; Mon, 10 Sep 2018 00:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536565195; cv=none; d=google.com; s=arc-20160816; b=L0i3PAbkMAT98lZhTp2xr2WZBr5Wd3BJxNAbxp7JZ5F7lBDGSQvZfcZOlobVZaw1Tz CP6r9NWfiqnwUiqGD2aeKIMgrBlO07nIJpEKki9FiiTNUE2nYVsuEbeEVQdW52bLobOa /1voXbvC41PkqupTziGYCWeGQoQX4oPpwwiGd6SrKkSgho5am0HHdHVZyEiAJFDHjcrF 6ZBrGjY3xbTCYg4cZ0yAMS49fYC4yor8o/+JPC0ij/HzywDcyupJxdyM4FMLJAMBJOWp mJk0X0CuFeIMgIseOLKZ/QZ4oX/2WT8FKuX4CEAS/AzJZMQFL7AFVGqmzBaw3qn2zWD9 ar7g== 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:dkim-signature; bh=eQCzSjHEVK3Y9GmvRdYK/tYWtrLeefOa77lFW/VBmJg=; b=U35BXgferjM2YWAFsV1gHhtu5LSyEdyhTnUAXSp2eB30+563Z2Ln+BvyX+viHT8Qzs 40LSKCh6DJ67x86HtMnKWwQPJe3xVco9vh8yS38YZsu45FpyUqXjNkm/jICuJRZpQFFF TnG1LnVrKmBcjSGVvjzv2l6zxryiqIr1B7FA3M5ol4ZkIAuVU3NxqbJ8qjZtssXA50XE zqcrYHu4P+AWZanncI9Ax7DnlFKihl2dJOoLoVM1rvfpHFKGUpF6NgsK/10qnMtaggGU tuI8i7YX/u6ko0tq3ldgKT5zHtG6XnbGMBK0uj1/wQbgt4ELEjl8OBurvHQE5RgnTGEB sVgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KXPNbbWB; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14-v6si16677803pgj.413.2018.09.10.00.39.39; Mon, 10 Sep 2018 00:39:55 -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=@ti.com header.s=ti-com-17Q1 header.b=KXPNbbWB; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbeIJMax (ORCPT + 99 others); Mon, 10 Sep 2018 08:30:53 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52432 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727584AbeIJMax (ORCPT ); Mon, 10 Sep 2018 08:30:53 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8A7bN3J064083; Mon, 10 Sep 2018 02:37:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1536565043; bh=eQCzSjHEVK3Y9GmvRdYK/tYWtrLeefOa77lFW/VBmJg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=KXPNbbWBEU958TlmDTODsI3CkXfVmNghDsVzZ1p7qBZmO2eAH1/xAcPoiaEoTz0L3 yWvhT1RpVscPMUOIvca8YqGfN9IKnTrN7e01FZfuKTG+LNknq8hzbh6umzMUiWRDn/ sLI947XI43D35Deg1uu+5wMINe3A1PVtMBVmfqSM= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8A7bNqO028198; Mon, 10 Sep 2018 02:37:23 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 10 Sep 2018 02:37:23 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 10 Sep 2018 02:37:23 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8A7bJEh018294; Mon, 10 Sep 2018 02:37:20 -0500 Subject: Re: [PATCH 2/5] gpio: davinci: Use dev name for label and automatic base selection To: Linus Walleij , Grygorii Strashko CC: Keerthy , "Andrew F. Davis" , Kevin Hilman , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , David Lechner , Adam Ford , Bartosz Golaszewski 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> From: Sekhar Nori Message-ID: Date: Mon, 10 Sep 2018 13:07:19 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 10 September 2018 12:55 PM, Linus Walleij wrote: > 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. Personally I am not really aware of any application which relies on the ABI. I may have some scripts, but I can adjust them. I am also copying some frequent users of DaVinci in mainline for any comments from them. Thanks, Sekhar