mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-06 23:15:24 +00:00
If other threads are accessing the modem concurrently during gsm_ppp initialization, they can easily corrupt UART comms. Normally this is not noticable since those services are usually started only after modem setup has been completed. But with the new gsm_ppp stop/start functionality, the need of synchronizing concurrent access in a structured way has arisen. This commit ensures modem_cmd_handler is locked when concurrent access to the modem UART would interfere with the driver, or otherwise cause problems. Since the semaphore is not available during this period, all essential calls to modem_cmd_send has been replaced with the non-locking equivalents. Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
gsm_ppp.c | ||
hl7800.c | ||
Kconfig | ||
Kconfig.gsm | ||
Kconfig.hl7800 | ||
Kconfig.ublox-sara-r4 | ||
Kconfig.wncm14a2a | ||
modem_cmd_handler.c | ||
modem_cmd_handler.h | ||
modem_context.c | ||
modem_context.h | ||
modem_iface_uart.c | ||
modem_iface_uart.h | ||
modem_pin.c | ||
modem_receiver.c | ||
modem_receiver.h | ||
modem_shell.c | ||
modem_socket.c | ||
modem_socket.h | ||
ublox-sara-r4.c | ||
wncm14a2a.c |