From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6DC53A254C for ; Tue, 14 Jul 2026 02:58:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783997928; cv=none; b=Pja0EPKfyOiwLqpZ+w5/8m5IVDch59kagj68v5gTAwCzhpgQeQeFslYCVjByorBxKhO7+K34cWxOyXSzxqDaJHbYnHHnyUFWLNlOotMpAfnLqIbgnVeKaJD0uEPBNLsQ1u2pI2x9hMRJbikGqUcOUu6KpS4/2aKGIwKFl/WTpLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783997928; c=relaxed/simple; bh=+iZAr/VU+RB4/+21F2wY5immBJybnEktzkYJnyrpttU=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=VdZUV7A3yGiiMm/S2z40YWdhamFyxsZTQ531CfE0wuXy4eZUJi/BGljumOFgDV/9W4PorYtonZny+wDH6tWVjv3TQ5loj18hR16WB7HgaVcZkwRtqMtwlPVeCIk2hPEfBWtlV/aFb4hVF0ySvpfYkuowxjMhl5Dmu08m2SqGsOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OU0wxKVn; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OU0wxKVn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBA6B1F000E9; Tue, 14 Jul 2026 02:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783997926; bh=cjiSzOWj+rTyrDL6AZsr23VjUV2TDkHo/YWuu7pLE9M=; h=Date:Subject:To:References:From:In-Reply-To; b=OU0wxKVnXmhk8y+z67WtddFunM2RpTl5mdbsMDeRhmWPBoa/i98c6I441Fd2URPbM urzt+ri/+DuHODfTWlp/cLb9SUcPPqB5FKMse0B+VB+GunPmQA+rZoIuEAJUUR5Qzi ShdjxXcr8m5ft3D0hii9zOejSQc3NDUBO+ko+owWWkMzDWUBvnOSyjlBdMNjqoa9zQ ybm1BjbpdDsMWH05tzgm/O/OUmaud+sjKeiVzSJDbNNLVq8WNcq8cFcrP+/ZRAOK0z vTGBvz9W12bq/+lMkMxCo+yuJnCHDby287mi8HqEQO7SMGc7+AOFJVeDgxBv048QH/ Q8Et9IqwTZ+Gw== Message-ID: Date: Mon, 13 Jul 2026 21:58:44 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/3] firmware: stratix10-rsu: remove async client before freeing channel in remove() Content-Language: en-US To: tze.yee.ng@altera.com, linux-kernel@vger.kernel.org References: From: Dinh Nguyen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/10/26 01:52, tze.yee.ng@altera.com wrote: > From: Tze Yee Ng > > After stratix10_svc_add_async_client() succeeds in probe, remove() must > call stratix10_svc_remove_async_client() before > stratix10_svc_free_channel(). Otherwise async state is left allocated while > the channel is released. > > Signed-off-by: Tze Yee Ng > --- > Changes in v4: > - Rebased onto dinguyen/socfpga_svc_fixes_for_v7.2. > - Narrowed scope to stratix10_rsu_remove() only (+1 line). Probe error > paths, return 0 on success, Fixes:, and Cc: stable@ dropped; probe > teardown is covered by bfd2eb9bba54 on the new base. > - Title updated: "... in remove()" (was "... on probe errors" in v3). > > Changes in v3: > - No code changes in all patches, only put Cc: stable@vger.kernel.org # 6.19+ > in the sign-off block for the Fixes: tag in Patch 3. > > Changes in v2: > - Fix patch title. > - Move the fix description to the end of the patch. > --- > drivers/firmware/stratix10-rsu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/firmware/stratix10-rsu.c b/drivers/firmware/stratix10-rsu.c > index a36c4e3d6975..cdda0c4410f8 100644 > --- a/drivers/firmware/stratix10-rsu.c > +++ b/drivers/firmware/stratix10-rsu.c > @@ -1054,6 +1054,7 @@ static void stratix10_rsu_remove(struct platform_device *pdev) > { > struct stratix10_rsu_priv *priv = platform_get_drvdata(pdev); > > + stratix10_svc_remove_async_client(priv->chan); > stratix10_svc_free_channel(priv->chan); This change is already in this patch[0]. Dinh [0] https://sashiko.dev/#/message/e991a29b0c7bd567da6b9e9a3a59486774a34ab2.1783666551.git.tze.yee.ng%40altera.com