From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) (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 711AE34752B for ; Thu, 2 Apr 2026 20:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775162621; cv=none; b=DzrzQLMZXLaMwYQ/2B65vH+FEZ1oR5E4SzUIqLVo0H1d1BvnYdQHKLNUQ+yb6/VBI5gPmpk9z3uEMAlUgtaP98d4eeFybrrsrkFTt2UZRE6jfa9/IxG2MfuL38pUa/pDWCNMnQbJtOgYfO3mPRVaf8jCvxA5z4IIpiwK34lnTuU= 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.174 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-f174.google.com with SMTP id 5a478bee46e88-2bd9a485bd6so2911702eec.1 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=JO2xza4XPudhCZiodnYPVN3r7ZNEM3us5yFCweCtqqiiRQv0S5XKXVduJZxMS8XRzU HcVMDDFFNxp1lfwfohBXIjFnU1OUM7QlNNanNIlrWw0YXVHZGKrnw+Lj5KoAsvj2vnp0 47HQa9BIr5j3MHc2IXVhsZ5quOkU8e8QNMYjaEOh4CjSsWzBEAu9z0JLz6D1zG47wFE3 D216F8AKUtRIWAq4eeevIKGLXmd+HfqeANMBZwH+eOSS9lpwueN0vVbXWglCed6DOPpm TroQjehjf0c/RgTuKpUSj7zio0LOL3qF5GKSo9UnDWhPvKU70BP1K+M9GNaDO7K5AGDP kc9A== X-Forwarded-Encrypted: i=1; AJvYcCVOD+qyYIccSCV0UEaMhrxsm4KcW+K/79oPSJyuwjIshQejIl5m+g9UfTOxxgk0NLrDmqEiZ7zo8Tkb@vger.kernel.org X-Gm-Message-State: AOJu0YwrkJwOFg7SzkRL7tfvFnRElt1W7+G+AkFpXlgqb1N/oeQCPDBN EWFgEPci7c0ZPUkvX8P8SUjVFKsjDNCTRcMuuJWQ12YF20uZqhvc/L1y X-Gm-Gg: AeBDievPtnUUVQz64HWlkzRJOPHMugcMLtXAjGFXJ8O+w4HVHOUYeST5yDYZzRP3XuP xP7WviGKJSBTFMXavB0JWx46/zCQjAFTYLR4ccCWUJChzYY1/oTevG8IMYmQyhHpoiJ44MbwTUb bXwszUegGPwnFZnLUE8S7aaDnfEqxuwzcIzt6f8RkWNy8N8R+yGfXYMyUJUpFmuGt50Xxs3HTQ3 l0rOZNEl5SdF29b4IgC6p5ajrNDD0bUun/vJWbZFgnlpIKaHxnTHBqdq8VA2VyJCfTqMnHFG9Yo 9E5DM9EWZC6Xqkw6yjZXbVBTCpGIuudz1cmFHEsCvGcXXW4cvU8RRHslto7Jm1/BiagIGk22R1L yM0taN7ioAuYU9RRJTLqbA+GPqB8tnE7fCS0tdFIIJue5cqLxOfN1j87JfjYxxsgIhp+Go6MXjF UvA8arsnpOVvsv3i1P+oLMHHIthG8sybWPM4qtiKRRHSNCV7rv0RGhTDPej9/JD4Xk 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-acpi@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