Re: [PATCH v4] fpga: stratix10-soc: Fix SVC mailbox handling during reconfiguration

Xu Yilun <[email protected]> Tue, 7 Jul 2026 12:40:11 +0800
Newsgroups org.kernel.vger.linux-fpga,org.kernel.vger.linux-kernel
Message-ID <akyDKzyRjI87IO/O@yilunxu-OptiPlex-7050>
On Mon, Jun 29, 2026 at 11:57:19PM -0700, [email protected] wrote:
> From: Tien Sung Ang <[email protected]>
> 
> Fix incorrect stratix10_svc_done() usage during FPGA reconfiguration.
> 
> Do not call stratix10_svc_done() at the end of write_init() on success, so
> the SVC session remains active through write() and write_complete(). Call
> stratix10_svc_done() on failure in write_init() and write() so the shared
> SVC mailbox is released when reconfiguration aborts, allowing coexistence
> with other SVC clients such as soc64-hwmon.
> 
> Fixes: e7eef1d7633a ("fpga: add intel stratix10 soc fpga manager driver")
> Cc: [email protected] # 5.1+
> Signed-off-by: Tien Sung Ang <[email protected]>
> Signed-off-by: Tze Yee Ng <[email protected]>

Reviewed-by: Xu Yilun <[email protected]>

Applied to for-next.