From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.79 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795545200; b=ZDDujoLv+fb+wndLGfKgRq7YoNalYet2Ghe5/GbnM7RZ/FBff4CcfPvzonl0aAMsvTNi OsRGjvwDxMKmGVdq34UzxMUeF59CGOqnu6lcoa5aecz9hTSp+VBU+rZ7xpFpAc+BVEhjy wlckr4ubKWghpg/EG69DpIaM8nEC4m2tM6/P2nLABKsTK6CvL7BK+wlK1B+jkpySnShyM 0oNWuBYzvcy4X7eMhbQApgWLywRkZOBUJQOM2YAxJiRKePNZ8saLqVCGd6tawlxtORid5 kebTEswP5vy84fKJnFiUxmZZoVk/NRm06BGePrAamjZHuwP/PjN+nIRbPVwvpYj9QkQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795545200; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=oDK7RSKP6BjRV7jQ/i8CbLe2IKb/rxRhk8FWZ5IoGsA=; b=h7jpSW8EkxPf358m2+faW3CxubdJCm6QOQUtVeS4n+MSDY0TnSqKla7jcfm2UCZiMvT5 pnzOn6GNsSuYi+mfqNfzBAfsED9+oK+dwgQV0k7DkUpbUCAv6WbyQ8qlGiPDy0p0qZc2O WeyBJQD5A/CwDkv+xIBpBuNOVNyFBQ8jOqwxb+mG5Lj7occhBYjbZSw7jJPWDRPyNnb7y 3ntc8R9zISwKyYamqTxQ5qGc+D1nv+R2+9wcWOTIM6oM5wYXtRkOjFlrzLvfs7z0zbz4L Dv7ZFie3W/ffcxvizgbiLHhIftmEFY3/YVnWUYzJsOPY9Jz2p9CVRa80g8lhxvIviWA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=DaOtXQ3m; arc=none smtp.remote-ip=95.215.58.79 Received: from mta1.migadu.com (out-79.mta1.migadu.com [95.215.58.79]) (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 34D5F606A31E for ; Tue, 24 Nov 2026 18:33:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 34D5F606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=DaOtXQ3m X-Envelope-To: linux-sound@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=gGhsYu/y9SVE2GrB2R7HYjiv9jvGB8VN33a5tP7LE1M=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795545198; v=1; x=1796149998; b=DaOtXQ3md6QC0WFSsFxzimiMMcYoZd7UGaOvn4wrnNGUqugL2P6F8ahu+5XrxuVBFKj6MOTO SkSxW+NWsj4aqzhIbCBjayKhSxjEsz5MOOoq6vZVurvQk8EYERg4ikfNzbozpoee/EVCMuGzTVN tSikGiBmrbQVpRoNSvkFnfEY= X-Envelope-To: linux-sound@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 101efe05cc926e0b; Tue, 24 Nov 2026 18:33:18 +0000 X-Mizu-Trace-ID: 101efe05cc926e0b X-Migadu-Flow: FLOW_OUT Message-ID: <21897535-9c63-48c3-b7a9-5816d0ca3265@linux.dev> Date: Tue, 24 Nov 2026 19:27:05 +0100 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 4/4] soundwire: intel_auxdevice: Don't disable IRQs before removing children To: Charles Keepax , vkoul@kernel.org, broonie@kernel.org Cc: yung-chuan.liao@linux.intel.com, lgirdwood@gmail.com, peter.ujfalusi@linux.intel.com, kai.vehmanen@linux.intel.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com References: <20261124161001.702882-1-ckeepax@opensource.cirrus.com> <20261124161001.702882-5-ckeepax@opensource.cirrus.com> Content-Language: en-US From: Pierre-Louis Bossart In-Reply-To: <20261124161001.702882-5-ckeepax@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > @@ -511,8 +511,6 @@ static void intel_link_remove(struct auxiliary_device *auxdev) > struct sdw_intel *sdw = cdns_to_intel(cdns); > struct sdw_bus *bus = &cdns->bus; > > - free_irq(sdw->link_res->irq, cdns); > - > /* > * Since pm_runtime is already disabled, we don't decrease > * the refcount when the clock_stop_quirk is > @@ -521,8 +519,15 @@ static void intel_link_remove(struct auxiliary_device *auxdev) > if (!bus->prop.hw_disabled) { > sdw_intel_debugfs_exit(sdw); > cancel_delayed_work_sync(&cdns->attach_dwork); > - sdw_cdns_enable_interrupt(cdns, false); > } > + > + sdw_bus_slaves_delete(bus); > + > + free_irq(sdw->link_res->irq, cdns); > + > + if (!bus->prop.hw_disabled) > + sdw_cdns_enable_interrupt(cdns, false); > + also wondering if the two actions should be reversed. It'd seem more intuitive to make sure the controller can't deal with interrupts before taking the resources down. edit: I just noticed the AI has the same comment. > sdw_bus_master_delete(bus); > } >