yuexinyi
326cf2bf88
drivers/video: add new video driver register api to support multi instance
...
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-29 07:42:29 -07:00
yuexinyi
56be0ab050
drivers/video: add capture arg to support multi instance
...
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-29 07:42:29 -07:00
yuexinyi
52859fe10f
drivers/video: add unlink api to release driver private data after supporing multi instance
...
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-29 07:42:29 -07:00
yuexinyi
96ea877490
drivers/video: video ioctrl api support multi instance
...
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-29 07:42:29 -07:00
dongjiuzhu1
5d09b4cbd0
libc/rand_r: support rand_r api
...
refs to https://pubs.opengroup.org/onlinepubs/7908799/xsh/rand.html
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-29 07:28:23 -07:00
hujun5
97a2528de9
graphics: remove sched_[un]lock
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-29 07:25:27 -07:00
dongjiuzhu1
44b08d3a67
net/rpmsg: read receiving data after unbind
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-29 07:04:43 -07:00
hujun5
618d47570d
arm/trustzone: update defconfig
...
we should add CONFIG_ARCH_TRUSTZONE_NONSECURE=y to ap's defconfig
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-29 06:58:24 -07:00
hujun5
e3f481d3b1
arm/trustzone: time interrupt setting failed
...
we should use a secure clock when the CPU is in secure mode
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-29 06:58:24 -07:00
wanggang26
024440663d
bch: fix sector buffer invalidation issue
2023-07-29 06:56:28 -07:00
dongjiuzhu1
e3d27444ef
boards/sim: remove unnecessary config EXAMPLES_SOTEST_DEVPATH
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-29 06:54:52 -07:00
hujun5
9f1cb4135b
binfmt/elf: bss section should init to zero
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-29 06:54:25 -07:00
dongjiuzhu1
d89e0996f5
sim/usbdev: Add string table as it is needed when USBTRACE is turned on
...
nuttx/drivers/usbdev/usbdev_trprintf.c:418: undefined reference to `g_usb_trace_strings_intdecode'
/usr/bin/ld: nuttx/drivers/usbdev/usbdev_trprintf.c:496: undefined reference to `g_usb_trace_strings_deverror'
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 20:58:23 -07:00
dongjiuzhu1
ddc2c62aa8
sim/rawgadget: don't push fifo if ioctl failed because it will cause busy read
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 20:58:23 -07:00
dongjiuzhu1
14446677d3
arch/arm64: default select ARCH_HAVE_SETJMP
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 20:57:26 -07:00
dongjiuzhu1
d415b7df54
include/fcntl.h: add O_NOATIME flags
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 20:56:22 -07:00
dongjiuzhu1
afb473707f
libc/pthread: add pthread_attr_set/getscope
...
refs to https://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_attr_setscope.html
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 20:55:22 -07:00
dongjiuzhu1
2221612512
driver/spi_slave: Simplify rx/tx buffer logic
...
1. send user data directly without memcpy
2. add qpoll check before enqueue
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 19:11:16 +03:00
dongjiuzhu1
9bf66ba3d5
driver/spi_slave: support spi_slave asynchronous
...
1. support spi slave device poll
2. support read non-block/block mode
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 19:11:16 +03:00
wanggang26
abc1cade35
binfmt/elf: Support to load ET_EXEC in flat mode
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-07-28 08:35:27 -07:00
fangxinyong
dfa6a43744
fs/mmap: fix wrong return value check
...
while iterate throuh all mapping memory to munmap and release,
the last entry is NUlL.
We need differentiate the case with invald entry at the first.
The fix is to pass ltp shm related cases.
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-07-28 08:05:39 -07:00
dongjiuzhu1
88161bfca5
fs/mmap: add sanity check
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 08:05:39 -07:00
dongjiuzhu1
e4739ab575
fs/tmpfs: add munmap interface for tmpfs file map
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 08:05:39 -07:00
wanggang26
9d67c7b6ac
binfmt/elf: both regular file and non-regular file (such as /dev/node) should be accessible
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-07-28 07:52:37 -07:00
dongjiuzhu1
7d281f46de
sim/hostfs: fix issue about access file with size more than 2GB
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 07:42:12 -07:00
dongjiuzhu1
f8991f7782
vfs/dup: add nonblock flag to avoid happening block when dup
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 07:41:51 -07:00
dongjiuzhu1
9fdf36c17e
drivers/ramdisk: don't free memory for romdisk
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 07:40:53 -07:00
dongjiuzhu1
9a22741e32
net/rpmsg: get credentials between client and server
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 07:40:00 -07:00
yangjiao
c2e1aa281d
fs/semaphore/sem_open: update the logic when the semaphore name length is greater than PATH_MAX or a component length is greater than NAME_MAX.
...
Follow the POSIX specification in https://pubs.opengroup.org/onlinepubs/9699919799/functions/sem_open.html , update the logic for condition that the semaphore name length is greater than PATH_MAX or a component length is greater than NAME_MAX.
Signed-off-by: yangjiao <yangjiao@xiaomi.com>
2023-07-28 07:38:41 -07:00
dongjiuzhu1
afec562fbb
drivers/clk: support using clk function at interrupt and idle
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 07:12:51 -07:00
liaoao
9ef19af5bb
rpmsgblk: correct args of read operations
...
Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-07-28 07:10:47 -07:00
liaoao
bc0af1e531
rpmsgblk: add support for mmc_ioc_cmd/mmc_multi_ioc_cmd
...
Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-07-28 07:10:47 -07:00
liaoao
a44f498842
rpmsgclk: allow client to disable clk of server
...
Signed-off-by: liaoao <liaoao@xiaomi.com>
2023-07-28 06:57:29 -07:00
xucheng5
872913e67b
netdev_upperhalf: reply logic only for ipv4/ipv6/arp input
...
VELAPLATFO-12228
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-07-28 06:56:35 -07:00
xucheng5
04c4207dee
driver/net : net_upperhalf support NET_LL_CAN
...
VELAPLATFO-9099
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2023-07-28 06:56:35 -07:00
dongjiuzhu1
1a609c53d7
misc/rwbuffer: using unify lock function for lock and unlock
...
if disable CONFIG_DRVR_WRITEBUFFER, the lock and unlock will misc match.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 05:10:39 -07:00
dongjiuzhu1
1cc67b68f2
fs/procfs: call the close of each component when procfs_close
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 05:09:07 -07:00
dongjiuzhu1
37fc0a0208
drivers/mmcsd_sdio: config timout to write one data block
...
Some hardware needs to config this delay to write one data block, because
the hardware needs more time to wear leveling and bad block manage.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 05:01:36 -07:00
dongjiuzhu1
21d19f89af
driver/adc: fill in missing parameters about adc driver
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-07-28 05:00:19 -07:00
Tiago Medicci Serrano
8673e659b4
espressif: quiet git commands and improve build logging
...
Add `--quiet` to git commands to avoid unnecessary logging during
the operation and add summarized logs to show progress.
2023-07-27 19:43:48 -07:00
Tiago Medicci Serrano
e38b4b2103
espressif: fix linker to include the reserved area of RTC memory
...
Basically, it reserves an area of the RTC memory to preserve the
RTC timer.
Please refer to:
fa76c82a5b
This commit also removes the rtc.dummy section because C3, C6 and
H2 don't need to skip it once the region is accessed by the same
address space using the instruction and data bus.
2023-07-27 19:43:48 -07:00
Tiago Medicci Serrano
8e343405a2
espressif: update esp-hal-3rdparty
...
The esp-hal-3rdparty release include general bugfixes.
2023-07-27 19:43:48 -07:00
hujun5
68187b68af
arch: move [enter|leave]_critical_section
...
move [enter|leave]_critical_section to the same place for easy to understand
and call matching
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-27 11:34:09 +02:00
raiden00pl
5c9c518f7f
cmake: format docstrings
2023-07-27 02:32:49 -07:00
Zhihong Chen
8e85e52708
drivers: usbhost: fix usbhost_hidkbd some errors
...
- usbhost_send_request(): data should using DRVR_ALLOC buffer
- fix usbhost_cralloc() assert variable
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-07-27 00:51:59 -07:00
SPRESENSE
b515f9a360
arch: cxd56xx: Fix compile error
...
Add inttypes.h to fix a compile error in cxd56_emmc.c.
2023-07-26 22:14:31 -07:00
hujun5
ad6b12acf5
arm/trustzone: update defconfig
...
we should add CONFIG_ARCH_TRUSTZONE_NONSECURE=y to ap's defconfig
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 18:53:28 -07:00
Ville Juven
6bafdd45fd
riscv/mpfs: Set hart2 default entrypoint to -1 like the others
...
No reason to have a different entrypoint
2023-07-26 19:58:05 -03:00
hujun5
4109908013
binfmt: remove sched_[un]lock
...
In the current usage mode, multiple tasks will not modify g_binfmts simultaneously
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 09:43:51 -07:00
yuexinyi
baefa5fa6b
Revert "drivers/video: Don't need update vbuf_tail in dequeue_vbuf_unsafe"
...
This reverts commit e15bccaa71
.
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-26 07:45:30 -07:00