RTEMS | bsps/xqspipsu: Add timeouts to NOR transfers (!90)
Kinsey Moore (@opticron)
gitlab at rtems.org
Mon Jun 24 17:24:22 UTC 2024
Kinsey Moore commented on a discussion on bsps/shared/dev/spi/xqspipsu-flash-helper.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/90#note_107967
> +{
> + rtems_status_code sc;
> + TransferTask = rtems_task_self();
> + s32 Status = XQspiPsu_InterruptTransfer(InstancePtr, Msg, NumMsg);
> + if (Status != XST_SUCCESS) {
> + return Status;
> + }
> +
> + sc = rtems_event_transient_receive(RTEMS_WAIT, NOR_TIMEOUT_TICKS);
> + if (sc != RTEMS_SUCCESSFUL) {
> + rtems_event_transient_clear();
> + XQspiPsu_Abort(InstancePtr);
> + return XST_FAILURE;
> + }
> +
> + return 0;
Fixed.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/90#note_107967
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240624/1e33f02e/attachment-0001.htm>
More information about the bugs
mailing list