Page 1 of 1

hal: spi_v2: propagate msg passed to __spi_wakeup_isr

Posted: Sun Jul 13, 2025 10:13 pm
by Dron_Gus
__spi_wakeup_isr is called from __spi_isr_complete_code with msg = MSG_OK and from __spi_isr_error_code with msg = some error code(s). Pass this msg to osalThreadResumeI and further to thread.

Code: Select all

@@ -378,7 +378,7 @@ do {                                                                        \
  */
 #define __spi_wakeup_isr(spip, msg) {                                       \
   osalSysLockFromISR();                                                     \
-  osalThreadResumeI(&(spip)->sync_transfer, MSG_OK);                        \
+  osalThreadResumeI(&(spip)->sync_transfer, msg);                           \
   osalSysUnlockFromISR();                                                   \
 }
 #else /* !SPI_USE_SYNCHRONIZATION */

Re: hal: spi_v2: propagate msg passed to __spi_wakeup_isr

Posted: Thu Jul 17, 2025 8:59 am
by Giovanni
Fixed thanks.

Giovanni