From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f178.google.com (mail-dy1-f178.google.com [74.125.82.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56FA9386434 for ; Wed, 25 Mar 2026 18:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774462295; cv=none; b=aU/SXN/qvE1L+6+6aGPWL8+ciSNVGbzJbexbrDqcEiMKOrqHsfC7zqsa3MX5XCjQJm8ZRSeOX58sGwvtYeqlybiAdPdOCA4RYJbVceHk0SXK14WxMvGRfw0Sdhd0aKalTMTJ7w2u7kbgW4jDi0BEdHnSr25usqHDs73QreyFGeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774462295; c=relaxed/simple; bh=UBwKxEoADOSTMP3lZyptRDYOtBtcnX3g1owjnqVBmIk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WpITwxlWfaawrEpZS4Lklhlc4SfE/1J0rS72AQVSih8y5ryocVW9kk85B3sZDE1jAvF4WuV52IpXfXsD8JF+uJ2adWnK8wUKxz5ONMVT6AccgGx3UpgaztWqCy1SVZkJb7qfA7H8EiEPGLPyouTpfxDL9UY6a8AiKfKDI6Hw6jU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WFh55fWn; arc=none smtp.client-ip=74.125.82.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WFh55fWn" Received: by mail-dy1-f178.google.com with SMTP id 5a478bee46e88-2b6b0500e06so203407eec.1 for ; Wed, 25 Mar 2026 11:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774462293; x=1775067093; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=584IxrfAi6B/ScV55kQLVZQPPg7Co7vyP0pW596N1Sc=; b=WFh55fWnt/khWnrwzpz+uoGzMWr+Bm+I/70qmH4FJ0vFs8gz/iganxu33ohdN2V7pM G1pU7z4BSz/mRPSz8/Weh5QYaqk9S5eSR+UuwE0wFjWrguclbqeCj+ukmnUGDHnBojrh Ny9xEWLzvhg91wWP2/LN0naHx6UO3fE8Wq2FfLoGI7jMXwFpD+IHMSl9cMbVMsHwG6bu 1VW8Ha7+UumaNGTtaetI52JyN5T4+cMOJBESBDquZKd7waCgW8wkeXFGqnej9LhRr0s8 MsJMKOnwWFfFoB6HVkqOMdURnbsZqrVS4RZ8FBz1QQ5hv0eeOMzZnIkZa1XlzNaEyL+Y xqcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774462293; x=1775067093; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=584IxrfAi6B/ScV55kQLVZQPPg7Co7vyP0pW596N1Sc=; b=aZLNonUC537s+ps5xt1WIfDF5/p9ZvFk2LG0fHUIf99S9ILe7HKddVsiyQ0YViKDwr DUSW3dNukgZMMAaIVQ6GFXWzeN7RcMRjIO1I37jfr7z1Uld9VS2ENGyqdN6sU7vsb2TA KKwhabn/3rE9nFoD0mYuE1tIo0kAPPZVais9wfwFUjl3zOpRHlnQCI/QngsSkoQ8liSo ERWRuzukkchKSndVHJuXlpPI5gL4ffwppzzff5Nt90U9hcgGtdlOUUixjUcCSSS1ViA8 93HkR6YhBkaBhKUTnj6pFFvUpDYNogPTavw2y0K+pm8a5NzR497TE+XwA835kzMNK84l L6iA== X-Forwarded-Encrypted: i=1; AJvYcCVZXSVoork+1g9EX8jGr6Mh59GUqsimQaHoR/ruWN1yIMsccP95xCoOfgDXyUl3qSo6htwgQd320qqZwLs=@vger.kernel.org X-Gm-Message-State: AOJu0YyUViUMmsWwyyp729Pp/Myrm02Wp5vbbdzBVJLzIu9fLF1YnxEj EoDoYqMD/Ks3J35xORxURAKKr6lVAJ52NrceWjUfj/WgO8q5idjLBuZ5 X-Gm-Gg: ATEYQzyipXCiNYqeiRah3U2qRDwzqLlUwsowPVtptsdYisvgKLGCk7PzfRE5aKsjzbl QS1LowPfR+onkRbj7J+xn5ZM30lb5oU5wRKsGYb5IUtre/gJLiGv+Jcr+r40I7vMkZjM/L4D4eY 6EAsamWkrwlNJzsDe0x4HiKHbm03zLdJGmBQDbISTraFNeeYSyFlYCw7/TovlO1hBWCvMfMjRnq spoSzsgbgMUq5Z8rHTFeFGQpQIS0TYB/kWd0swaycwLpW52tyxMFHKjIAa9n/WdulD9vCQolONQ YvS8V5C7Vs1TcWumEPMjrd4q1+AxEGVNcfgwLJswIx30DxN5YK3Uc3vKd0t1+6zWosGl5jqGV5U ZMOQhW9ytlrKvSPBwZ1mJv20CSwYJOf2diDTOGxT00CwxqKC0WK3wkPlky4CDZDDmekqYQjCc35 zoDnj83T3o/KlaEvzy4ugLtxzKrc/mHd6BOabxm+m16qe0B8D8XEo3+AXt9wRT03Ri X-Received: by 2002:a05:7300:2153:b0:2b7:b7e7:9025 with SMTP id 5a478bee46e88-2c15d42a129mr2169805eec.31.1774462293350; Wed, 25 Mar 2026 11:11:33 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:b7b4:352d:eb23:66e5]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2c16ec7f9c9sm543011eec.12.2026.03.25.11.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2026 11:11:32 -0700 (PDT) Date: Wed, 25 Mar 2026 11:11:30 -0700 From: Dmitry Torokhov To: Bartosz Golaszewski Cc: Greg Kroah-Hartman , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Danilo Krummrich , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, driver-core@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] software node: allow referencing software nodes by name Message-ID: References: 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: On Wed, Mar 25, 2026 at 05:32:06PM +0100, Bartosz Golaszewski wrote: > On Tue, Mar 24, 2026 at 8:30 PM Dmitry Torokhov > wrote: > > > > Please post the reworked version so we can review all the details. My > > concern was that it relies on notifier chains to notify when devices > > get registered and unregistered, and instead of matching node names you > > now need to somehow match device instances and software node instances, > > which again likely is done based on some name. This just piles on > > complexity where a simpler solution would be sufficient. > > > > I will post it. Hopefully before the end of the week. I want to cover > both OF nodes with paz00 as well as ACPI with android tablets. The For paz00 I hope Tierry will pick up my patch converting rfkill-gpio from board file to dts. > latter case will have to wait for devices because there's no way to > look up an ACPI node by name that I could idenfity (correct me if I'm > wrong). > > > I think this approach also will give trouble when there are multiple > > users of GPIOs provided by the same gpiochip, in cases where users are > > split across multiple modules. > > > > Do we have any such use-case? I haven't found any. If we do end up > running into this corner-case, it can still be done by centralizing > the software nodes in question. But maybe let's cross that bridge when > (and if) we get to it. Android-tablet could probably use it. The gpiochip software nodes are already consolidated there but the code could be simplified if we could simply use names/labels. Thanks. -- Dmitry