From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796297717; b=tBI2PwD+yrBSpYEc34QacqhMbyfiMw03OtZ9YAsAhM1ZxYi5L/e8MbUyKG6ixY/6cS9/ UaUTmXvxo32AxFJraYS3rTvBEqXzs8au1kie5gLOHbP9Put8AJG8EeCYsWfkzNKOk8+NK 4YSfouD+Vyn4qtv2ByxxDEIzp1dU+WWbOEwvpzwgfqj5laZy0ffW51Haj5UgrqyIFR5X/ 2nS9/wyXEksILRhK3BgVv4+NSzLhaL1K/8Vc/vCg2IlYNDiLwdBh4Pkd3b5L2icwSIxkI 5pLYnETuvbM7uUR0sdIf/TXAOfbSDwUIgx1TPRPqQIHNgF0Yo2v1zHLyQVtc4cMe4Fw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297717; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=HUzrne0gGuUtWJ2dWIT9egSVrdiS9irM92POsUbe9K8=; b=UX/faSscoTOlf6QK1/LoNmGnCJJqR0GEeb4cLOvauNR7NLMP7Iin+2qqf/cKEbO8KUNt Mz0XFmhFi3mBgYLYQOFAl2WhT3dHKi/eqPIhcsDOyHCc6qO/foK9Vs8w59a+VvY9Ra8N2 x9k5xlanRc4mDQR4d9wC95JLYjZvxcW93fQ26wQD24/Xkx6AqTTqvxGEcXLHO/bANMmhj 9FF+I2BZGRe3QT6KpJIJIRNciKE8I8cA+YKyDF0kHLjGv3meNb5CBR/0cn8RxPpmYGs4m YNuOhtc8IyI4fZ/Fl894n2LsKbbMSsN335L9bGdY1y/+V4JqYYdU8ZuEO6Hp8T6HMPA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=eSpLDkEE; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBC51606A32C; Thu, 3 Dec 2026 11:35:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EBC51606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=eSpLDkEE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796297716; x=1827833716; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HUzrne0gGuUtWJ2dWIT9egSVrdiS9irM92POsUbe9K8=; b=eSpLDkEEPfwmVSNfxV4bOWQwciZwGa4Hz6ItxmHjB4YnoNd7FJS97Ugp F3JDnZSe8/q41a0mVJyKCUXh0NbUuCOIZWePtqMDFkfiLeZJw1qFH6CXw 0FuXR7+uvUEEQexpF1FS/zzJTS/jzuQewKSFvjikRQMtPd28AanRtKi6H tUJFNJvSPqMOq2gLNefpRkQarDMKWlsD5bUM65TG9NWu2X3cajFoOP4Eu eu3vPHTsNQWcU85jgPNrxUWv4pm5zXqOHz+OH7ABjTAacnP4FGxYwhelS 7uTseGNIcUtz/tPoL7Om67nyVGVGI3UHWlcTCgU1DH0cFNcUToeM9CiB/ g==; X-CSE-ConnectionGUID: 7PEkS60lQFeR0asDsZcE8A== X-CSE-MsgGUID: kLTd8qFYRwKgW7axz+okmA== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5191195" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5191195" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 03:35:16 -0800 X-CSE-ConnectionGUID: 0AcrtjmgS4mbLHnuYI9tCQ== X-CSE-MsgGUID: r5ndvbuPSj+LFqbMWTivvw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="14296679" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 03:35:13 -0800 Date: Thu, 3 Dec 2026 13:35:09 +0200 From: Andy Shevchenko To: Dmitry Torokhov Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Johan Hovold , Daniel Scally , Heikki Krogerus , Sakari Ailus , Bartosz Golaszewski , driver-core@lists.linux.dev, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 0/3] driver core: swnode: fix release with shared primary fwnode Message-ID: References: <20261202-swnode-shared-primary-fix-v1-0-7ff23caaa1ed@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202-swnode-shared-primary-fix-v1-0-7ff23caaa1ed@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Dec 02, 2026 at 05:34:48PM -0800, Dmitry Torokhov wrote: ... > This series is intentionally kept minimal for stable backporting. > Storing the secondary pointer directly on the shared struct > fwnode_handle still leaves broader limitations unaddressed: > set_primary_fwnode() only detects direct parent sharing (not grandparent > or sibling sharing), parent and child or sibling devices sharing a > primary node still contend for a single secondary slot, and cross-device > lookups of fwnode->secondary are not synchronized against concurrent > removal. A separate follow-up (such as an immutable composite > fwnode_handle) would be needed to address those cleanly. Yeah, shared fwnodes is PITA. The proper solution is to have a proper list of the fwnodes (and not just primary + secondary) and have another list of shared devices. With that the tracking is a matter of atomic add and delete a device from the respective list. Thanks for the series, I have looked into the series (not carefully into the test cases but I always welcome them), Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko