[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5c616645-cbfe-4c7d-b4bd-72497a90f497@kernel.og>
Date: Mon, 1 Sep 2025 10:21:37 -0500
From: Dinh Nguyen <dinguyen@...nel.og>
To: mahesh.rao@...era.com, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Dinh Nguyen <dinguyen@...nel.org>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Matthew Gerlach <matthew.gerlach@...era.com>
Subject: Re: [PATCH RESEND v2 4/4] firmware: stratix10-svc: Add for SDM
mailbox doorbell interrupt
On 9/1/25 10:16, Dinh Nguyen wrote:
>
>
> On 8/12/25 07:59, Mahesh Rao via B4 Relay wrote:
>> From: Mahesh Rao <mahesh.rao@...era.com>
>>
>> Add support for SDM (Secure Device Manager) mailbox
>> doorbell interrupt for async transactions. On interrupt,
>> a workqueue is triggered which polls the ATF for
>> pending responses and retrieves the bitmap of all
>> retrieved and unprocessed transaction ids of mailbox
>> responses from SDM. It then triggers the corresponding
>> registered callbacks.
>
> You should configure your editor to use a full 80-char width. Why stop
> at ~50? When you're unsure, look at that other commit logs from other
> developers. If yours doesn't look similar, its probably a problem. For
> example:
>
> "Add support for SDM (Secure Device Manager) mailbox doorbell interrupt
> for async transactions. On interrupt, a workqueue is triggered which
> polls the ATF for pending responses and retrieves the bitmap of all
> retrieved and unprocessed transaction ids of mailbox responses from SDM.
> It then triggers the corresponding registered callbacks."
>
>>
>> Signed-off-by: Mahesh Rao <mahesh.rao@...era.com>
>> Reviewed-by: Matthew Gerlach <matthew.gerlach@...era.com>
>> ---
<snip>
>> @@ -1784,13 +1874,14 @@ static int stratix10_svc_async_init(struct
>> stratix10_svc_controller *controller)
>> * service controller
>> * @ctrl: Pointer to the stratix10_svc_controller structure
>> *
>> - * This function performs the necessary cleanup for the asynchronous
>> - * service controller. It checks if the controller is valid and if it
>> - * has been initialized. It then locks the transaction list and safely
>> - * removes and deallocates each handler in the list. The function also
>> - * removes any asynchronous clients associated with the controller's
>> - * channels and destroys the asynchronous ID pool. Finally, it resets
>> - * the asynchronous ID pool and invoke function pointers to NULL.
>> + * This function performs the necessary cleanup for the asynchronous
>> service
>> + * controller. It checks if the controller is valid and if it has been
>> + * initialized. Also If the controller has an IRQ assigned, it frees
>> the IRQ
>> + * and flushes any pending asynchronous work. It then locks the
>> transaction
>> + * list and safely removes and deallocates each handler in the list.
>> + * The function also removes any asynchronous clients associated with
>> the
>> + * controller's channels and destroys the asynchronous ID pool.
>> Finally, it
>> + * resets the asynchronous ID pool and invoke function pointers to NULL.
>
> Did you mean to repeat the same paragraph twice?
>
Ignore this comment...
Powered by blists - more mailing lists