sunkun3
e3a6368c9a
drivers/usbdev_fs: when the device is not opened, the received data is retained.
...
It is up to the app to determine whether the data is valid when opened
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-23 22:02:02 +08:00
dongjiuzhu1
e2f1ccdefc
drivers/misc/rwbuffer: fix rwbuffer overflow issue
...
issue:
in rwb_wrflush():
memmove(rwb->wrbuffer + padblocks * rwb->blocksize,
rwb->wrbuffer, rwb->wrnblocks * rwb->blocksize);
when the offest from rwb->wrblockstart to startblock plus rwb->wrnblocks is greater
than rwb->wralignblocks, it will be causing memory overflow since rwb->wrbuffer is
allocated rwb.wrmaxblock(rwb.wralignblocks) blocks.
fix:
Let us ensure that the wrblockstart in rwbuffer must be aligned according to
wralignblocks after writing, so there is no need to perform memmove when flushing
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-23 10:28:52 +08:00
dongjiuzhu1
0d609c451b
Revert "fix: the bug about rwbuffer causing mem overflow"
...
This reverts commit e43aa99ae8
.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-23 10:28:52 +08:00
zhanghongyu
92cd1c3742
netdev_upperhalf: add L3 packet handle
...
To provide support for the received L3 network packets
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-04-22 23:44:37 +08:00
raiden00pl
41803a0c20
sensors/bh1749nuc: add support for the new sensor framework
...
bh1749nuc can be used with the new sensor framework
2024-04-21 14:48:28 -03:00
dongjiuzhu1
7c4e3aff14
drivers/usbdev/mtp: fix compile break
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-21 23:24:40 +08:00
dongjiuzhu1
e7fd416f9f
drivers/usbdev: support config pid/vid by soft interface
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-21 23:24:40 +08:00
anjiahao
ff4c6c33e8
usbdev:fix usbdev usbdev_fs_classuninitialize double free
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-04-21 23:21:54 +08:00
dongjiuzhu1
a8d7103a2b
drivers/usbdev: push cdcacm rx buffer to serial rx buffer when resetconfig
...
When usb is re-enumerated due to the reset signal, we need to push
the rx_pending message into the serial port buffer.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-21 23:21:54 +08:00
dongjiuzhu1
e5a925543b
drivers/usbdev: fix double free when cdcacm uninitialize with not used
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-21 23:21:54 +08:00
dongjiuzhu1
ad59ef075f
drivers/usbdev: remove first uninitialization and release resouce once.
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-21 23:21:54 +08:00
dongjiuzhu1
3b39ba72a4
drivers/usbdev: fix used after free when calling close after uninitialize
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-21 23:21:54 +08:00
dongjiuzhu1
9c55f21a6f
drivers/cdcacm/serial: add release interface to release uart_dev resource
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-04-21 23:21:54 +08:00
raiden00pl
5af805b2ef
sensors/bmi270: add support for the new sensor framework
...
bmi270 can be used with the new sensor framework
2024-04-21 19:06:18 +08:00
raiden00pl
3d765616ea
sensors/adxl372: add support for the new sensor framework
...
adxl372 can be used with the new sensor framework
2024-04-21 18:57:33 +08:00
hujun5
72548951d3
drivers: syslog: Replace sched_lock with critical section in syslog_flush_intbuffer()
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-04-21 11:40:01 +02:00
raiden00pl
db7c8be61f
sensors: add support for bmm150 magnetometer
...
add support for Bosch BMM150 Magnetometer
2024-04-20 16:20:43 -03:00
ChenChuang
e43aa99ae8
fix: the bug about rwbuffer causing mem overflow
...
when the offest from rwb->wrblockstart to startblock
plus rwb->wrnblocks is greater than rwb->wralignblocks,
it will be causing memory overflow since rwb->wrbuffer is
allocated rwb.wrmaxblock(rwb.wralignblocks) blocks.
2024-04-20 11:58:12 -03:00
raiden00pl
ebcf25b2f6
sensors: add support for adxl362 accelerometer
...
add support for Analog Devices ADXL362 accelerometer
2024-04-20 11:47:50 -03:00
chao an
d11b1ba9cb
drivers/serial/16550: remove unused function
...
drivers/serial/uart_16550.c:690:20: warning: unused function 'u16550_restoreuartint' [-Wunused-function]
static inline void u16550_restoreuartint(FAR struct u16550_s *priv,
^
Signed-off-by: chao an <anchao@lixiang.com>
2024-04-19 20:13:16 +08:00
simbit18
7677f10d3f
fix nxstyle
...
fix Relative file path does not match actual file.
2024-04-16 19:09:12 +08:00
Xiang Xiao
81c8f902b6
video: Move video_format_s from video.h to v4l2_cap.c
...
since it is only used in v4l2_cap.c.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-04-14 12:08:30 -03:00
Simon Filgis
cb0e8454d7
enable support for multible devices of mcp48xx
...
Instead of one static dev and priv, allocate a dedicated one each time
the init is invoked.
2024-04-14 22:10:58 +08:00
Jakub Janousek
23c6b5b07d
drivers/spi: Add support for FPGA iCE40 bitstream loading.
...
Tested on ICE-V-Wireless board.
Signed-off-by: Jakub Janousek <janouja9@fel.cvut.cz>
2024-04-12 10:19:58 -03:00
jianglianfang
62a4799409
video/vnc: add vnc_fb_register
...
To optimize the initialization of vnc, change it to vnc_fb_register.
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2024-04-12 17:42:49 +08:00
wangjianyu3
f0590eeaf0
drivers/power/pm: Fix warning of type cast
...
Env: sim (Ubuntu 22.04.3 LTS (x86_64 GNU/Linux)), enable PM
```
power/pm/pm_autoupdate.c: In function ‘pm_auto_updatestate’:
power/pm/pm_autoupdate.c:84:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
84 | pm_auto_updatestate_cb, (FAR void *)domain, 0);
| ^
power/pm/pm_autoupdate.c:89:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
89 | pm_auto_updatestate_cb((FAR void *)domain);
| ^
```
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-04-10 22:51:28 +08:00
simbit18
9967989b02
Fix Kconfig style
...
Remove spaces from Kconfig files
Remove TABs
Add comments
2024-04-09 10:49:23 +08:00
chenrun1
d19486e1f8
driver/filemtd:support isbad & markbad
...
In this change, we can mount a filesystem on filemtd that works like Yaffs and works on the Nand driver
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-04-07 18:50:00 +08:00
chenrun1
4fc111965d
filemtd:fix Fixed the issue of incorrect content returned when using nandflash earse
...
Nand_erase return result should be the number of blocks that were successfully erased in NuttX
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-04-07 18:50:00 +08:00
Michal Lenc
17e1d43f6d
ioexpander/icjx: add support for change of input interrupts on NINT
...
iC-JX expander has NINT (not interrupt) pin that goes to logical zero
if interrupt occurs. This commit adds support for iC-JX options settings
that allows to enable the interrupt for defined input pins.
The interrupt is handled in HP worker thread to avoid waiting for SPI
transfers in interrupt context. Board has to configure interrupt event
for GPIO pin connected to NINT.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2024-04-05 15:23:10 -03:00
chenwen@espressif.com
252e0f8a97
drivers/net/lan9250: Fix crash issue of sending packets by lan9250 driver under SMP and multi-thread
...
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
2024-04-03 10:06:43 -03:00
Yanfeng Liu
1eb96c3446
virtio/gpu: minor revision on virtio_gpu_send_cmd()
...
This revises comments and completes reclaiming buf param.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-04-01 00:27:16 +08:00
Yanfeng Liu
715f8de1bb
virtio/cmake: sync with makefile system
...
This adds drivers like virtio-gpu etc to cmake system to be in line
with the makefile system.
Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-31 08:04:47 -03:00
SPRESENSE
d5c654914e
drivers/video/isx019: Fix default_value of 3A status
...
Fix default_value of ioctl(VIDIOC_QUERYCTRL)(id=V4L2_CID_3A_STATUS)
to AE operating and AWB operating, because both AE and AWB are
automatical adjustment mode by default.
2024-03-29 16:05:37 +08:00
SPRESENSE
33485cfe7c
drivers/video/isx019: Fix the default_value of some parameters
...
Because the exposure time and ISO sensitivity are adjusted automatically
by default, the default value can not be defined.
So, return the value out of range as the default_value of
ioctl(VIDIOC_QUERYCTRL).
2024-03-26 20:52:28 +08:00
Xiang Xiao
79f834dcbb
video: Make v4l2_ops_s to support the mutilple context
...
which is useful in the m2m usage scenario, by replacing the first
argument of callback from "struct v4l2_ops_s *" to "struct file *"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-26 15:21:05 +08:00
Xiang Xiao
c6821c741d
video_framebuff: Replace critical section with spinlock
...
to avoid th global big lock and improve the performance.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-26 15:21:05 +08:00
Xiang Xiao
0db82210fd
video_framebuff: Hold mutex in video_framebuff_realloc_container
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-26 15:21:05 +08:00
Xiang Xiao
efee5f86e8
video_framebuff: Remove the unnecessary vbuf_curr field
...
since vbuf_curr is always equal to vbuf_next
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-03-26 15:21:05 +08:00
yaojingwei
25e7d9e43e
video: add video buffer overflow warning info.
...
Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2024-03-26 15:21:05 +08:00
shizhenghui
fa1b55d297
v4l2-cap: Add FAR to pointer
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-03-26 15:21:05 +08:00
yaojingwei
f03a1a14f3
video: move user define mem_ops into imgdata_ops.
...
Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2024-03-26 15:21:05 +08:00
yaojingwei
64aecbcc5c
video: add user define memory ops for v4l2 frame buffers.
...
Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
2024-03-26 15:21:05 +08:00
SPRESENSE
1d2fcc81f4
drivers/video/isx012: Make the I2C access more efficient
...
Store the i2c configuration in power on
because they are not changed permanently.
2024-03-26 07:41:21 +01:00
SPRESENSE
d9f9c0143c
drivers/video/isx019: Make the I2C access more efficient
...
Store the length of address and the frequency in power on
because they are not changed permanently.
2024-03-26 07:41:21 +01:00
ligd
a1836de09a
fdt: move fdx_xx extend APIs from boards to drivers
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-03-22 18:51:33 +08:00
zhanghongyu
a65cdce281
cdcecm: remove duplicate assignment statements
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-03-21 20:06:13 +08:00
shizhenghui
3afd26bcd1
Add ioctl interface used in v4l2m2m
...
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2024-03-21 19:23:53 +08:00
chao an
feb6ede434
sched/cpu: replace up_cpu_index() to this_cpu()
...
In SMP mode, up_cpu_index()/this_cpu() are the same, both return the index of the physical core.
In AMP mode, up_cpu_index() will return the index of the physical core, and this_cpu() will always return 0
| #ifdef CONFIG_SMP
| # define this_cpu() up_cpu_index()
| #elif defined(CONFIG_AMP)
| # define this_cpu() (0)
| #else
| # define this_cpu() (0)
| #endif
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-21 18:52:35 +08:00
chao an
4e62d0005a
sched: replace some global variables to macro
...
replace to macro will help to extend the scheduling implementation
Signed-off-by: chao an <anchao@lixiang.com>
2024-03-21 18:51:25 +08:00