From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E841F28DB3; Wed, 23 Jul 2025 16:11:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753287113; cv=none; b=W0TyaubvVtvRQZ0wazoCFknVxe0D+M3Z1++gIZ967QTiV8tUU8Zjprn5a+thICRgEYd6yj7H8gOhkgc5yzyWCbPyJG474O1mWukxuTpk+4cj+x8DYSdzk2Ti2I6jPf5XzNfvIzR1Nh0L0wkghpO59lHZ6C4pC9iFUqusSMhqGrY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753287113; c=relaxed/simple; bh=LFpj4X2dKTpXjHbRdCpLUblx099sg56vVdV/ouh0JkY=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Subject:Cc: References:In-Reply-To; b=H+dUPYi48+j3clJLiM/7Njh+pgBgKQswy+plPoeKXwLpSU/doxoQLwNQoiJQbchwfRVfHc9GUB8eeQcEDxq5N59ftIui+vw+kRtFHFl2pDNrUPjFBPSrgk9QHrkll0YmeaJFvy3gg5rqpFohs+5aOahhFgeMM0MBiWxkw7vbTz0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FWN9n8dz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FWN9n8dz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CD02C4CEE7; Wed, 23 Jul 2025 16:11:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753287112; bh=LFpj4X2dKTpXjHbRdCpLUblx099sg56vVdV/ouh0JkY=; h=Date:To:From:Subject:Cc:References:In-Reply-To:From; b=FWN9n8dzHxX1MoFTg8JFrSOsvN/BF4fY52YQPFwdR0AYaX0K/9pTBySIuFlprJAJv 7RpG2XTKz4uE7AmZ9k+A2hw1krN4Pcv37vfNoAZ3nDUg188jEeXOk8KvRLQVs4RR+e qzuM+OhSDK99T/3Px9zZ9bp3Ok55cTWm9TbEq+qrQOvvkeyPR69bGJm6yTV2OT8QPK hOR1CPwMlKSFFZ45i1cz4F5swaroTnbGSg4JeLIkZbdr5dDHNHQdcx95QB8fYCf2N5 1AB8HRuAQV4LqPM01h8RROI+Ry+WyRBmHsT82J94FTaMQ8JerRBRs2+wp339Y9bzAE FzkjJlr+leqMg== Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 23 Jul 2025 18:11:47 +0200 Message-Id: To: "Daniel Almeida" From: "Danilo Krummrich" Subject: Re: [PATCH v7 3/6] rust: irq: add support for non-threaded IRQs and handlers Cc: "Boqun Feng" , "Miguel Ojeda" , "Alex Gaynor" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "Thomas Gleixner" , "Bjorn Helgaas" , =?utf-8?q?Krzysztof_Wilczy=C2=B4nski?= , "Benno Lossin" , , , References: <20250715-topics-tyr-request_irq2-v7-0-d469c0f37c07@collabora.com> <20250715-topics-tyr-request_irq2-v7-3-d469c0f37c07@collabora.com> <95A7ACD9-8D0D-41FB-A0C0-691B699CBA17@collabora.com> In-Reply-To: On Wed Jul 23, 2025 at 6:07 PM CEST, Daniel Almeida wrote: > On top of that, we can use the > words "interior mutability" somewhere in the example as well to make it e= ven > clearer. You *can* have this example and I encourage it, I think it is valuable. You= can have spinlock or mutex for this purpose in threaded handler, no?