[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3d51d249-7e87-0bf3-c756-f46cd4892745@huawei.com>
Date: Tue, 11 Mar 2025 19:20:23 +0800
From: "lihuisong (C)" <lihuisong@...wei.com>
To: Sudeep Holla <sudeep.holla@....com>, <linux-acpi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Jassi Brar <jassisinghbrar@...il.com>, Adam Young
<admiyo@...amperecomputing.com>, Robbie King <robbiek@...ghtlabs.com>
Subject: Re: [PATCH v2 04/13] mailbox: pcc: Return early if no GAS register
from pcc_mbox_cmd_complete_check
在 2025/3/6 0:38, Sudeep Holla 写道:
> pcc_mbox_cmd_complete_check() accesses pchan->cmd_complete.gas to check
> command completion status. Even if GAS is NULL, pcc_chan_reg_read() gets
> called which returns success doing nothing and then we return.
>
> Add an early return if pchan->cmd_complete.gas == NULL before performing
> any operations.
>
> Acked-by: Huisong Li <lihuisong@...wei.com>
> Signed-off-by: Sudeep Holla <sudeep.holla@....com>
> ---
Tested-by: Huisong Li <lihuisong@...wei.com>
>
Powered by blists - more mailing lists