From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796468431; b=qtIco5vg5yg/8NpMs0sHK7XaJ+zodPFj1+Ws/BUHREgCLBBM/9J+chryk5B37KUEIzTS JofnA3edQOifez3vHKhIpcF5b7UaUutG9aXvDSSRtghQkjahr/i2D898t3ojKFYhvf6oc Z5jc5kq6wC39VXGyTOewK8WdbjhVwx+q5Eg/jtkUBvR0IfQREBOjEw9kx57xh9L+zcV7w fW8vjeD4eXpQKSOJjo4Y+pr/lw32igl16a9r+s2UmOjxRWvQip0NdCOkCX9ST/c+HmHnn QaP5bdiqUgHb1VQdEMkfFCSBBWo9FdaVZzOFj07LkXsAh1XNzVEgSfBcFHtxVrP2+nA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796468431; 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=UOPXTdXYa9iJFM6pLm0w8ns7T0XKLOdBijaQhcxk+Xo=; b=wNd3o8vffUEJFyEdI/KpJw/i3Zd9lGseTVXJrjQ+VxUlP2r2X2hrzKG7NSOuUN3aokTO vMm2Rp1NdwWpXjg99lEoFAL/4NzDIS9VJ52zZr8qFi3tZZoxqtt4igVgFUmDKrjzSmdG5 ZBdBtVA5GK8VBO5jl4pNo/PjNaEFu43iKkhzBANGQeFJthOC0YXePm+3VOS7sEmPqcCVH UYrydtTmnMd96DSFT7iBnzqlngKxCa5RbEhlRw1y1g+2v4z7Ub9cPqruXtkJ8Xyo0dCqm Uzo18j7PFRGNvhQcqbHzQP3+VdsOIWKNhcP4ROwet7xE/mGkO6I4rRkaAWtx9Kz3irA== 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=OmIoU2Cg; arc=none smtp.remote-ip=192.198.163.10 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 34B5E606A322; Sat, 5 Dec 2026 11:00:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 34B5E606A322 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, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OmIoU2Cg DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796468430; x=1828004430; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UOPXTdXYa9iJFM6pLm0w8ns7T0XKLOdBijaQhcxk+Xo=; b=OmIoU2CgE+HEwV16kKiNxfLxqvtfhZ/iNn864TzX18MG3Nqt/gcpNCOv vtuPHYn10+gip0c7QM/73IXmcmEnjhDx+Jm1VtjYtYCfWZh0YMDCgvWMO /WNkHkv/UoSDxhxtIPnUGOgYBLS971Hk5CoEvT/9zEcNHGQ8xbJodl9tG EXsfXZrwXWB8uaRS/PRr8iUhS40Y+lP9W7wI/92yOX5wQZOJn9jyfbQ5E rHPmG/A8NDYFKOOnmTF8n0JA2nVPRNLXbyHWzkoshWn9MOkb3T4TkCt3s LP0iHcZ6dhcYnRNyJHTJ0KQ9DRfRHKHMwNB3PfIh16aIPuhnkwn7HlamE A==; X-CSE-ConnectionGUID: /Uh6KvvHQlmeeNsPsb/TZg== X-CSE-MsgGUID: qVjIWZepS/qSZAkT8dta8Q== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5327569" X-IronPort-AV: E=Sophos;i="6.29,80,1794902400"; d="scan'208";a="5327569" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2026 03:00:30 -0800 X-CSE-ConnectionGUID: txw+icMdT7qVUXdZU2LqZA== X-CSE-MsgGUID: p37D9arTQOuMPipfyLg3yw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,80,1794902400"; d="scan'208";a="14271166" Received: from conormcd-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.245.126]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2026 03:00:26 -0800 Date: Sat, 5 Dec 2026 13:00:24 +0200 From: Andy Shevchenko To: Julio Cesar Martinez Cibrian Cc: Dmitry Torokhov , 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-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: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Fri, Dec 04, 2026 at 02:29:14PM -0800, Julio Cesar Martinez Cibrian wrote: > > 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. Good news, thanks for doing that! > > Dmitry, feel free to add to your series: > > Tested-by: Cesar Cibrian Taking into account the process, can you reply to that thread, so the existing tools will pick up the tag automatically? > 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? As Dmitry already answered, we are all depend on the respective maintainers. -- With Best Regards, Andy Shevchenko