From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (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 6E8F2344D95 for ; Thu, 2 Apr 2026 20:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775162621; cv=none; b=Tap0APsdhrVrYLeSJ5lJ7VQHfAkU6k3jpAIpB46Ey2h9gj4PaudWEOBZf+OOAF5U7igYySl0ylE/6xKqb8chTjIK/gLN/AxmOlVEg0quq5KQ1Ip3Y94FgtoyIbmld9v5uRE28PDXuV3sPVeuqGR0yNGCFv7kWztU2ghScdoRgG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775162621; c=relaxed/simple; bh=PfOSvF+9Q9GvIApbJuER9HJI0ph9y/C4dHyB4wNs/UM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lwIimsbpm3Zbydm7jNkn9QKeMVsWNCd0eS7z4zvNC+PIPw8jqGBcm5GHU/qZwQ+TK4mdDSDL10DPT3iKZyO+ACEgkyf2UN1aG8l/3jWPmiDnX77V4vNY6oBUVF+blS1eqLR3Pt6nAp7UWtjKFw0K5OdFJOhd2H4oMIB3MmHMhoI= 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=gXiyjDE2; arc=none smtp.client-ip=74.125.82.173 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="gXiyjDE2" Received: by mail-dy1-f173.google.com with SMTP id 5a478bee46e88-2c54c68db4dso2433797eec.0 for ; Thu, 02 Apr 2026 13:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775162620; x=1775767420; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=21ClTGnhigH6pmJ1bdxGPTsm+cYy8Gt+rk4//h1qZck=; b=gXiyjDE23EjXZrk7uxkNcBB90uOw5CiHfWwnqND5xV+ZfXYwOvoki959Actdm7YRIG JkGCDOyqQ4vgCIsZBFfYtt8JrzFCwl+C+wz0hhnpA8CCzJqeiTmleEFdz2i3jtapa9EE L2fhOyB4vIj3CAC8YmbQsUvNwPsjDv9mvPjffXHOFlcaBRowboyMcjG2PfT1JIWglBUH aWEMWu5IkK/vHJ2VO+loA+2NQBrbvt6q5BmEztS5StTut1G7l7l4Osv3+/5SeEd4Ueb8 /pxhVKKvn/o4XmluN2Ii16rlCd7rTdcfToOBaTXYsXqFlmMntxbJL/xdCIhKmvzC+YSl AB5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775162620; x=1775767420; h=in-reply-to: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=21ClTGnhigH6pmJ1bdxGPTsm+cYy8Gt+rk4//h1qZck=; b=b8CaVuHXxsArT8hKYDmIzM0sw7r8vpiki812b5H/5SagNPzExMVBWkEiE67AzHzIyq HX+Q5feJjmwA5iWRZzvVA+FiJEhz07MWW5wt+Sx56nisNxXgWPQCsxCd48lZpxLwR7ct 8DBBwOWZ3N6F3mVms2WSmu/iQ94MS0Kek+OVQQrBpy3BiLoYGYMqsblyJu1mu2W0kO6M ghaqpygzNDp90OR6A1JNnULhUfaZJodIDwNHAnZBA9/YE90Tg/aqSCeh7vLrfgd5mOTr ST8U/LruLCg4X522uSamnNzUQYrCbWeERkVmni6V76pjwxLKcMsIuC2TlJaXGP5ltgFg 8yYw== X-Forwarded-Encrypted: i=1; AJvYcCVud916dddgj1gW6OFnp7bvJzAzAl5geSyjlW4xCK1yr2zjg0pGra5Bd2T15b72TW0oIzIwnSwYkttYYL0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz9buJsUtPafJH4eihzfir3IardbrScTfCyYRNn0pb2+kRl7zdm 9z/5MLtH2C7yMpFJ58rc4rGeRyJuXqKUadNCunrIKxyKVxQhV0VPOjpL X-Gm-Gg: AeBDietDp0xPX3p9NDyyNvYCiFivZba6cnke66PjW65VQTTi0GLuQD2NIe+jEs6ei1y HUQWk8mBr91MoAVwFxj9mr5KydaGln4HsELoO/4fhEmnY+Id8a/xticRYNlh+5DjDCxcOQ+dXaj oNw8PopJI5ODh72jhjohWelBu88XWXqO6A2aoLUeSdCoLusA1r73GnBSxcHcsdaH/lFBEHmV3MU x/NVq/IjSYnjfmJ1CNfbNQRC9JiEHBXb5xX4Dsi+OQpGyJ4v91E8E2nKYm26a/12xJPRj98AznD zaOkw3rRobM10KyAuLEuQa+XrtDOYrljpM07m9M5/ze4H37vPItmwTd/cZIvjXxHBZaQnlk3StB xLLkuO1YwyEPjYl9XpOFjqmhfhC98ZbaTNOq2na37GAFNEcCE2YKKLob/DvihFwGIQhj4lwGLUz 2hepyHymaxKqAbwjEiC2Yy6wszOQK2WbbkEUVrqP1DIGwyEJe6iW0oVJiqg3pB3OFZ X-Received: by 2002:a05:7301:1e87:b0:2c6:cdb3:bd8d with SMTP id 5a478bee46e88-2cbf9afd61emr347222eec.7.1775162619471; Thu, 02 Apr 2026 13:43:39 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:902a:cd8d:1c0d:8926]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2ca7c20b195sm3280897eec.16.2026.04.02.13.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2026 13:43:38 -0700 (PDT) Date: Thu, 2 Apr 2026 13:43:35 -0700 From: Dmitry Torokhov To: Andy Shevchenko Cc: Bartosz Golaszewski , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Mika Westerberg , Andy Shevchenko , Linus Walleij , Hans de Goede , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Len Brown , linux-acpi@vger.kernel.org, driver-core@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, platform-driver-x86@vger.kernel.org, brgl@kernel.org Subject: Re: [PATCH v2 1/4] software node: return -ENXIO when referenced swnode is not registered yet Message-ID: References: <20260402-baytrail-real-swnode-v2-0-6f5054a4cc07@oss.qualcomm.com> <20260402-baytrail-real-swnode-v2-1-6f5054a4cc07@oss.qualcomm.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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 02, 2026 at 04:35:34PM +0300, Andy Shevchenko wrote: > On Thu, Apr 02, 2026 at 02:54:26PM +0200, Bartosz Golaszewski wrote: > > It's possible that at the time of resolving a reference to a remote > > software node, the node we know exists is not yet registered as a full > > firmware node. We currently return -ENOENT in this case but the same > > error code is also returned in some other cases, like the reference > > property with given name not existing in the property list of the local > > software node. > > > > It makes sense to let users know that we're dealing with an unregistered > > software node so that they can defer probe - the situation is somewhat > > similar to there existing a firmware node to which no device is bound > > yet - which is valid grounds for probe deferral. To that end: use -ENXIO > > which stands for "No such device or address". > > This error code is also too generic to my taste. What about alternative(s)? > EADDRNOTAVAIL > ENOTCONN > > (The brief grep shows that the second one might suit slightly better than the > first one by existing use cases.) We are in the core of the driver core. Why not simply use -EPROBE_DEFER to which all users will resolve this error to and call it a day? Thanks. -- Dmitry