liuzhao
fb6f058395
Add EPSON RX8010SJ I2C RTC timer support
2022-02-26 11:47:24 -03:00
Gustavo Henrique Nihei
1a1409cbc3
drivers/timers: Fix domain of log messages
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-02-25 22:49:22 +08:00
zhuyanlin
f7a7eb9ee3
power/PM: add domain inner update power state feature
...
In some scenarios, We need to update state information internally.
Instead of use idle-task to drive the checkstate and change state
function.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-02-25 00:16:48 +08:00
Alin Jerpelea
52558e7245
drivers: usbhost-hid: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
8e8b68b131
drivers: analog: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled ADC/DAC support will not
be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
32401a0adb
drivers: wireless: spirit: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
bbfed12fd9
drivers: wireless: bluetooth: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
660da04204
drivers: sensors: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
3a77cd3d6a
drivers: power: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
96ce5347fa
drivers: modem: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
fe06e51df2
drivers: lcd: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Xiang Xiao
d7fe0127b0
Replece clock_gettime(CLOCK_REALTIME) with clock_systime_timespec if suitable
...
it's better to call the kernrel api insteaad user space api in kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-24 01:06:36 +08:00
Xiang Xiao
43f57240e0
Replece clock_gettime(CLOCK_MONOTONIC) with clock_systime_timespec
...
it's better to call the kernrel api insteaad user space api in kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-24 01:06:36 +08:00
Huang Qi
1699f530a5
vncserver: Allow fb operation while no connection
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-23 23:18:30 +08:00
Alin Jerpelea
1dada85b52
drivers: Giorgio Gross : update licenses to Apache
...
Gregory Nutt has submitted the SGA
Giorgio Gross has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-23 12:06:54 +01:00
Xiang Xiao
f1ed349dd9
sched/clock: Remove CLOCK_MONOTONIC option from Kconfig
...
here is the reason:
1.clock_systime_timespec(core function) always exist regardless the setting
2.CLOCK_MONOTONIC is a foundamental clock type required by many places
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:26 +08:00
Xiang Xiao
a5a25f72ab
pty: Move the post process after reading the buffer
...
to simplify the code logic
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-22 16:17:07 +01:00
Xiang Xiao
630b55feec
serial/pty: Remove the TODO comment for O_NONBLOCK
...
since it is fully suppported now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-22 09:34:57 -03:00
Masayuki Ishikawa
6a1a7bf455
Revert "pm: remove unnecessary depends on OSINIT_OS_READY"
...
This reverts commit 8785673a70
.
2022-02-22 10:56:14 +01:00
ligd
8785673a70
pm: remove unnecessary depends on OSINIT_OS_READY
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-02-22 07:58:55 +01:00
fangzhenwei
84b88205ab
serial/pty:Don't assert EBUSY when pty unregister driver
...
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
fangzhenwei
88e871b13e
nuttx/pty: pty FIONBIO return -ENOTTY when pipe_ioctl return OK
...
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
fangzhenwei
c7c91488d1
nuttx/pty: pass read nonblock flag to pipe
...
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
fangzhenwei
1afdb06981
nuttx/pty:pty FIONBIO pass to pipe control
...
1. pass FIONBIO ioctl to pipe
2. resolve the return value error
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
Alan C. Assis
9480ec54eb
drivers: Fix DAC license, the copyright owner didn't modify any line
2022-02-21 14:35:44 +01:00
Alan C. Assis
4553406ad4
drivers: Fix ADC license, the copyright owner didn't modify any line
2022-02-21 14:35:44 +01:00
Xiang Xiao
2dcaab8af8
serial/pty: Remove the unused code related to CONFIG_PSEUDOTERM_FULLBLOCKS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 21:22:24 +01:00
Xiang Xiao
1d1bdd85a3
Remove the double blank line from source files
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 20:10:14 +01:00
Petro Karashchenko
27d75e7552
drivers/ioexpander: minor initialize and styling fixes
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-18 16:44:40 +08:00
Xiang Xiao
e0ae2963d2
drivers/pipe: Don't use sched_[lock|unlock] to do protection
...
since the sched lock can't work in SMP context
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-17 22:08:43 +01:00
Xiang Xiao
fe04eb535f
drivers/pipe: Fix the format style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-17 22:08:43 +01:00
Huang Qi
ccc708a142
vncserver: Fix dead lock on re-connect
...
`vnc_remove_queue` would waiting for new frame update request forever
even if the connection is lost, the updater thread wouldn't exit.
But the server thread will join updater thread before accept new client
connection, then we can't re-conncet to vnc server.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-16 22:57:21 +08:00
Petro Karashchenko
41c95da594
register_driver: fix driver modes accross the code
...
State of problem:
- Some drivers that do not support write operations (does not
have write handler or ioctl do not perform any write actions)
are registered with write permissions
- Some drivers that do not support read operation (does not
have read handler or ioctl do not perform any read actions)
are registered with read permissions
- Some drivers are registered with execute permissions
Solution:
- Iterate code where register_driver() is used and change 'mode'
parameter to reflect the actual read/write operations executed
by a driver
- Remove execute permissions from 'mode' parameter
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-16 16:15:29 +08:00
Petro Karashchenko
a1f6717e2a
mtd/filemtd: improve write and erase access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-15 12:06:24 +08:00
Masayuki Ishikawa
0258968abd
drivers: wireless: Fix gs2200m_ioctl_accept()
...
Summary:
- I received an issue report that multiwebcam in Spresense SDK 2.4.0
has a problem with the Chrome browser
- Actually, the browser tries to establish 2 connections but
the multiwebcam can handle only 1 connection. And if accept() for
the second connection is delayed, the connection no longer exists
in the gs2200m hardware
- This commit fixes this issue by checking if the cid is valid or not.
Impact:
- gs2200m driver only
Testing:
- Tested with spresense:wifi_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-02-15 10:22:42 +08:00
Jiuzhu Dong
ef66c620c4
input/uinput: fix codesyle issue
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-02-11 11:58:49 +08:00
zouboan
3f6626f765
drivers/mtd/sst39vf.c: patch adress bug
2022-02-10 17:05:53 +08:00
Xiang Xiao
845640bc33
serial/pty: Decouple SUSv1 style from pseudo fs operation
...
and always enable BSD style PTYs since this feature doesn't
consume the additional code size
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-09 20:35:59 +08:00
Xiang Xiao
8e64db45c7
serial/pty: Close the internal pipe when reference count drop to zero
...
so the other side can get the hang up notification
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-09 01:42:51 +08:00
zouboan
6166dd5833
drivers/mtd/mtd_config.c: enlarge the limits of blocksize in struct mtdconfig_struct_s
2022-02-09 01:39:55 +08:00
Xiang Xiao
358dab3723
serial/pty: Reorder the register driver to simplify the error handling
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 16:11:26 +01:00
Xiang Xiao
61066ecbc8
serial/pty: Sync the default termios setting regardless CONFIG_SERIAL_TERMIOS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:33:46 -03:00
Xiang Xiao
3ec208fdbc
serial/pty: Don't initialize pd_iflag to ISIG
...
since ISIG belong local mode flags not input mode flags,
but local mode isn't implemented by pty driver yet.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:33:46 -03:00
Xiang Xiao
e3fed03e43
serial/pty: Don't use shced_[lock|unlock] to protect pp_locked
...
since the sched lock can't work in SMP context
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:31:56 -03:00
Xiang Xiao
f03fc4a179
serial/pty: Destroy pp_slavesem in pty_destroy to avoid the leak
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:31:56 -03:00
ligd
0155e910dc
serial: fix cu crash caused by ioctl is NULL
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-02-07 13:31:46 +08:00
Xiang Xiao
22f2269d6a
drivers/pipe: Remove pipe from file system after open
...
to make the pipe as an anonymous object as soon as
possible and simplify the life cycle management
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-07 12:05:47 +08:00
Xiang Xiao
345d2ac227
drivers/pipe: Add g_ prefix to pipe_fops and fifo_fops
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-07 12:05:47 +08:00
Xiang Xiao
15c487085a
serial/ptmx: Fix the typo error in ptmx_minor_free
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-06 16:19:27 +01:00
Xiang Xiao
6cc0388f4f
serial/ptmx: Add lock to avoid the race condition in ptmx_minor_free
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-06 16:19:27 +01:00