From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796423657; b=3WgYrGVxFxEG6tWbWoezdrDuJIonQr08VG533XMeJwqBy5EY3J9UebRSK0aBA0MdaT6Q y2jt+gBdUw3LRiqS5vpGehAYsbX0y/90UjlA+/qsRtqNEAH8Xd8AGxG745wC2jMp+fmaT Uluf7MimzGmbMa37BsTadIEeHr/1wem2257CgGj7pi4ZE3AoTY3Qq4S33RI1o3COh/1nv +2kwpkG62ijM5rDceoKmsg0n+BkkSuu2f2IGjr8fsMmDf1yq6lcTkEjgaf8/XfjlcG39n QOcXfaerjAPrdPTm+qoHfKnx0wtXghkqvRdSnIF57+OVYfyeJoEVdvQjphljwDCBxmg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796423657; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=6fdh9tbBAaOhFnGX8t+eLYuJ61+2kg8wmscRXUGtsP8=; b=mKGcKuDOC+JnCEmAg4HyZKRbsgwKs61q8pS3+g3sHOOheJJoUpLrj3cxh2ExG72BVDhU KEqNC6kSpr3H2fbVJkzJT+dqq2IP6r1pnXW22KcNbvvooHApaifT3NchTt73qWHU1AaQn hKcm45n1Q+MMBqX/ZkaSUbPuExUIHGew6JYrzu3ZNVFeeUD8anwp/F/B1pHTeDpRDWLBs zZrxCHc+DWpwv9ZmXOynrHWHHEAcHVIPuTxRp43w42zaYsFeF/D/elq4knY00rA1nWiX8 iuhU10vP6Q75bSDlDTK3xFIGb1sTnXBWqN5Jemn9WKPVbHvGeEMAeIdmj7+r1i94PbA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=z0dOHzW1; arc=none smtp.remote-ip=74.125.82.47 Received: from mail-dl1-f47.google.com (mail-dl1-f47.google.com [74.125.82.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 302F9606A32D for ; Fri, 4 Dec 2026 22:34:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 302F9606A32D 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.a=rsa-sha256 header.s=20260707 header.b=z0dOHzW1 Received: by mail-dl1-f47.google.com with SMTP id a92af1059eb24-1b589050416so1801963c88.0 for ; Fri, 04 Dec 2026 14:34:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796423656; x=1797028456; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=6fdh9tbBAaOhFnGX8t+eLYuJ61+2kg8wmscRXUGtsP8=; b=z0dOHzW1O3tWTFdLTj28WYlocrZ9Nj0jMdGK9tIbcwsYoko4UlxXi5vKtYv021B+xk n4TLbsTcxgWO1vx1aXTGpOmn2N/rk+ZVpb4ZnZ2YPC1/jijEmwid5mGThTZSeF6d9o+e FO0TWb77jbJm/v4VkaB1ZYn03olErS/5CfUt7WkNlWrU2LZYQTVUP5GBPzHFKgmwiVwT BYTtv2cP94U0EaKRLKLvS4+ZfEGf5KKHU0u5/WfUcGSjaxktHoVrSRzu9f2RNFZd4yRK LWhyOunpLXqttayCvIqxhonakz6aqGKIUUjwQx4lGe5sOL3oSeEJNDiYrr16KcQbAFP5 3q3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796423656; x=1797028456; h=in-reply-to:content-disposition:content-type: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 :content-type; bh=6fdh9tbBAaOhFnGX8t+eLYuJ61+2kg8wmscRXUGtsP8=; b=uq+S1mtyxlgFF5ZNRP9CeO/qtvvqkGuvMfqu3Enr//ACp9GEnBnS2pzgGqf9Z+99rD SrRgBWBHiSUCHO5wt6p2QE/TzaYE8ODYUSTI8WKa5iewzqkLwz0qqNKz2XAUOYhxPma9 iFhxC644QICK1+xnzpKPVTq/sa1tV+2qAX+YFPyd5eC5F6Pik21/saERmPKCB+35dOd1 HXBMaqWCZxeiG+Gk5Z7sV80bLlJOgkzKBfSlP9+OZ64RJ5pogCWQOJ5JxUI1Flp8X5Oe 1eYawfIapS9BAD6VtY/LoYAiyJiex18pTUXaVvlrDd/TbGazjrjvwzy8o5wJFAIt0tSK PeAA== X-Forwarded-Encrypted: i=1; AL+hErGe7snAmzqozeWxRlN3vIalUGof3yvllG0EdWvcSjsDT3BOToYTWSJgRiZ8mu6ncJqMO4l3Zgx82Dk=@vger.kernel.org X-Gm-Message-State: APuU4Z//0zlGOCjCZ5pLb5q+MwkrtB8R7hOqfiQp8rne+fzFhVFA6DXP szVXaGMXur4K5YHUigQazfNTfmFAldpfxjqY+0WGBn4F/B/xdUhjnKsy X-Gm-Gg: AZFdTZfz5Bon2cpoi/sa0iROwSwzhpCDCTu+8fLuilADSGUib3sc41Opwjpd3SoBErc D9sC7TAuHGJZE8j8br5Z35StdKmMzzXhL8fn+UbDdURK8kvZ6iHXt6mSk7j3FIqV6zG7wvdNWSC LXZCSzaoN/VmhKWD+g9ILN0xCZfU9hv25Ue/fzFhgDGe88Tc1bxDAk3TTlU7YT3gYjSpTMKfDWa l2NpwQfwlt7fb9F/VvOV3o+Yxeo/T7dTFAcMc7O6QR3i0D10cFY0vrFmi17tOKztCpxnJX7kSY2 uAfguuTII1fkknw7R2qZZdETALIKOg8gxleznRtddTI09hQS/yi72v/xRoCL4QbUVwT3KfvSgLm BmI5WF/xBoPsFr21ZcjkIS3Ha4x9pfkDEVU74a4J/UD2ynDeEJGZgc11ESBIO7gUtLbWXmOgG85 J/Ot3oEICPTEeXkhRfiXsVFkem7/ap9o5sJBfWTQ8MzxVVLrR4KDNtd2Cyk+n2OJyKHEbM//nn2 czgCEhuDHzrbmPeBce7JeG6NnyUUDHZXCloys3FJilVuOs2/VydGa2qixcE/ivcxtpII2MhStTd A6LsnVa/RjM7cd32kzCmM+DsM9q539MzwBGuiYyCB4mmhuhf/G2Zgu2h6Q0yEEDCeBDesA== X-Received: by 2002:a05:7023:e51:10b0:1b5:10cf:c402 with SMTP id a92af1059eb24-1b5d70cef24mr2797332c88.10.1796423656186; Fri, 04 Dec 2026 14:34:16 -0800 (PST) Received: from google.com ([2a00:79e0:2ebe:8:17a1:4895:5021:5d36]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5d644171bsm10154556c88.7.2026.12.04.14.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 14:34:15 -0800 (PST) Date: Fri, 4 Dec 2026 14:34:11 -0800 From: Dmitry Torokhov To: Julio Cesar Martinez Cibrian Cc: Andy Shevchenko , Lee Jones , mfd@lists.linux.dev, Heikki Krogerus , linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Danilo Krummrich , Bartosz Golaszewski , Johan Hovold Subject: Re: [PATCH] mfd: core: Remove software node after unregistering platform device Message-ID: References: <20261204181605.22364-1-cesarcibrian.ai@gmail.com> <8d70cb6010e7451c7ddbbfc448abd424@gmail.com> X-Mailing-List: linux-i2c@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: Hi Cesar, On Fri, Dec 04, 2026 at 02:29:14PM -0800, Julio Cesar Martinez Cibrian wrote: > Hi Andy, Dmitry, > > Thanks for the guidance. I applied Dmitry's series and tested the > plain removal reorder in mfd_remove_devices_fn() (without the v1 > shared_fwnode workaround) on top of it on my Intel LPSS / > i2c-designware system: 10 intel-lpss + 3 i2c_designware unbind/bind > cycles, plus the platform-device-swnode, property-entry and > software-node-links KUnit tests. Everything passes cleanly, with no > sysfs duplicate-filename warnings and no -EBUSY on rebind. > > Dmitry, feel free to add to your series: > > Tested-by: Cesar Cibrian > > Moving device_remove_software_node() after platform_device_unregister() > strictly depends on Dmitry's patch 1/3: without it, a shared ACPI > primary node is left with a dangling fn->secondary, leading to a > use-after-free on rebind. So the two must not be applied out of order. > > How would you prefer to handle it? Dmitry, would you like to carry it > as 4/4 in your v2? Otherwise I can send it separately with the hard > dependency stated in the commit message. Lee, do you have a preference > from the MFD side? I think it really depends if driver core folks are OK with the series and how Lee wants to handle this as it would become a cross-subsystem series then. Thanks. -- Dmitry