Re: [PATCH v5 10/14] gpu: nova-core: gsp: cmdq: extract await_msg_with from await_msg
From: Eliot Courtney
Date: Tue Oct 20 2026 - 22:02:08 EST
On Tue Oct 20, 2026 at 7:08 PM JST, Alexandre Courbot wrote:
> The logic of `await_msg` is also usable for other kinds of messages that
> are not RPC; it will be used to wait for GMC messages as well. Extract
> that logic into a new `await_msg_with` method that uses a closure to
> decide whether a given message is the one we wait for, and use it in
> `await_msg`.
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> ---
Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>