Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp501244lqb; Sat, 16 Mar 2024 13:21:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXp/PQiRU6ibaaI3m9iAnWr1Y6SeS3buv78/3I72a8lTlGFY8xtqE1WzXEhswdrw131i1+qswIAssRJMn+5rOgxq1jbXllgOmfzkid20A== X-Google-Smtp-Source: AGHT+IFsqFacUV0nKRO3p9CpYp5u1PQIPnVkm4QZ9dSck0Dza0yU3n9Tzd6zQW8NDQO7uuGAXsIt X-Received: by 2002:a05:6808:f0a:b0:3c1:b4b8:d40c with SMTP id m10-20020a0568080f0a00b003c1b4b8d40cmr8615227oiw.24.1710620481962; Sat, 16 Mar 2024 13:21:21 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o35-20020a635a23000000b005dbd4cf445csi4959706pgb.35.2024.03.16.13.21.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 13:21:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-105286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105286-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 98CC8281F08 for ; Sat, 16 Mar 2024 20:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A68C61DFF0; Sat, 16 Mar 2024 20:17:40 +0000 (UTC) Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 725813EA93 for ; Sat, 16 Mar 2024 20:17:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710620252; cv=none; b=VOgF8qt3PhhwCH6++pvhPdCIYxtCHFewfW/9cqKRlF6nv6oc/AvI62dTNMUJgFckiyeHtULrh+VNLRq0a1uF3A279LN9MiNwOEb0v0dUtK5TIocvmcsuHpcW+9c784trDzMz/j4MVneRyBU5REyVajF8ZRFyYHUzpcAQFO31NaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710620252; c=relaxed/simple; bh=L4Kr3W03WnDRFmtdwt7+DIdItUZViAX7DVeASVj0Nj0=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XW/q/UKx0LxbzMwqzoOlp6o13GSuzz2Uboo68JSxxjht/v5WeMNySEt1E18U6zyvmq/m2h6CWUHXregf9BsysCEPVLYPr3HyEa6XoKviUA34RRSQ851Rr77138dUa1ZMmondYFB1adY4St/5JTuTPsCkwyOVn+m4fF88JSpOChs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-217.elisa-laajakaista.fi [88.113.26.217]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 2edfabe6-e3d2-11ee-b972-005056bdfda7; Sat, 16 Mar 2024 22:17:17 +0200 (EET) From: Andy Shevchenko Date: Sat, 16 Mar 2024 22:17:16 +0200 To: David Lechner Cc: Dominique Martinet , Jonathan Cameron , Krzysztof Kozlowski , Jonathan Cameron , Syunya Ohshio , Guido =?iso-8859-1?Q?G=FCnther?= , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: industrialio-core: look for aliases to request device index Message-ID: References: <20240228051254.3988329-1-dominique.martinet@atmark-techno.com> <7f03bb12-0976-4cb7-9ca9-4e4e28170bdd@linaro.org> <20240228142441.00002a79@Huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Fri, Mar 15, 2024 at 10:53:36AM -0500, David Lechner kirjoitti: > On Fri, Mar 15, 2024 at 12:58 AM Dominique Martinet > wrote: .. > How about using udev rules to create symlinks for each device based on > the label attribute? No changes to the kernel are needed. +1 for the suggestion. We have a lot of information in sysfs to distinguish devices by a physical connection, even if we have the same names/labels they may not have the same physical connections (if there is a possibility of the collision, then it means it has to be fixed elsewhere). -- With Best Regards, Andy Shevchenko