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

From: Xu Yilun

Date: Tue Jul 07 2026 - 00:41:35 EST


On Mon, Jun 29, 2026 at 11:57:19PM -0700, tze.yee.ng@xxxxxxxxxx wrote:
> From: Tien Sung Ang <tien.sung.ang@xxxxxxxxxx>
>
> 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: stable@xxxxxxxxxxxxxxx # 5.1+
> Signed-off-by: Tien Sung Ang <tien.sung.ang@xxxxxxxxxx>
> Signed-off-by: Tze Yee Ng <tze.yee.ng@xxxxxxxxxx>

Reviewed-by: Xu Yilun <yilun.xu@xxxxxxxxx>

Applied to for-next.