nuttx-mirror/drivers
YAMAMOTO Takashi f2aeb5e56f SYSLOG_DEFAULT: wrap up_putc/up_nputs calls with critical section
This would avoid the undesirable intertactions with the serial driver
described in https://github.com/apache/nuttx/issues/14662.

Although I'm not entirely happy with this fix because it assumes
the particular implementations of up_putc/up_nputc and its association
to the serial devices, I haven't come up with better ideas for now.

An alternative is to place some serializations inside the target
specific serial (and/or whatever provides up_putc api) implementaitons.
But it isn't too attractive to put potentially complex logic into the
low-level machinaries, especially when we have a lot of similar copies
of it.

Another alternative is to deprecate up_putc. (at least for the purpose
of syslog.) But it seems at least some of users are relying on what
the current implementation provides heavily.

This commit also removes g_lowputs_lock because the critical section
would serve the purpose of the lock as well.
2024-11-12 09:49:57 +08:00
..
1wire drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
aie drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
analog drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
audio drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
bch drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
can drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
clk drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
contactless drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
coresight drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
crypto crypto/se05x: Allow set_enable_pin to be NULL and fix error handling 2024-11-07 11:37:58 +08:00
devicetree drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
dma drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
dummy drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
eeprom drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
efuse drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
i2c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
i2s drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
i3c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
input drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ioexpander drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
ipcc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
lcd drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
leds drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
loop drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
math drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
misc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
mmcsd drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
modem drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
motor drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
mtd drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
net drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
note drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pci drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pinctrl drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pipes drivers/pipes: return after short write if buffer is full 2024-11-07 01:10:20 +08:00
power drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
rc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
regmap drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
reset drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
rf drivers/rf: migrate license to ASF 2024-11-06 19:46:13 +08:00
rmt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
rpmsg drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
rptun drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
segger drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
sensors drivers/sensors/adt7320 : migrate license to ASF 2024-11-06 19:46:13 +08:00
serial SYSLOG_DEFAULT: wrap up_putc/up_nputs calls with critical section 2024-11-12 09:49:57 +08:00
spi drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
syslog SYSLOG_DEFAULT: wrap up_putc/up_nputs calls with critical section 2024-11-12 09:49:57 +08:00
thermal drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
timers drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usbdev drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usbhost drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usbmisc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usbmonitor drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usrsock drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
vhost drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
video drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
virtio drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
wireless drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
drivers_initialize.c drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
Kconfig AI engine driver 2024-10-16 13:57:23 +08:00
Makefile drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00