Gregory Nutt
38ae28e978
MCP2515: Changes from review of last PR
2017-05-23 12:22:49 -06:00
Alan Carvalho
cf3351aa8c
Merged in acassis/nuttx_acassis/canbus (pull request #377 )
...
Canbus
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-23 17:47:51 +00:00
Alan Carvalho de Assis
001919ffe9
Add CANBUS SPIDEV definition
2017-05-23 14:33:52 -03:00
Alan Carvalho de Assis
607b9b5a8c
Add board support to test Microchip MCP2515 driver
2017-05-23 14:29:36 -03:00
Alan Carvalho de Assis
eb7373cedf
Add Microchip MCP2515 CAN Bus controller driver
2017-05-23 14:28:52 -03:00
Alan Carvalho
bb0685c0db
Merged nuttx/nuttx into master
2017-05-23 14:21:56 -03:00
Gregory Nutt
b59f583171
Update TODO list
2017-05-23 10:29:53 -06:00
Juha Niskanen
0c9abbfe67
STM32L4: Add IWDG peripheral. This is the same as for STM32 except that prescale and reload can be
...
changed after watchdog has been started, as this seems to work on L4.
2017-05-23 07:02:36 -06:00
Masayuki Ishikawa
4d5c1c7dba
Merged in masayuki2009/nuttx.nuttx/network_test (pull request #376 )
...
netdb: Fix time info in lib_dnscache.c
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-23 11:07:09 +00:00
Masayuki Ishikawa
2b028bc4e5
netdb: Fix time info in lib_dnscache.c
...
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-23 16:02:41 +09:00
Masayuki Ishikawa
72b1928d6f
Merged nuttx/nuttx into master
2017-05-23 16:00:20 +09:00
Masayuki Ishikawa
2f1972fb89
Merged in masayuki2009/nuttx.nuttx/bug_fix_by_sony (pull request #375 )
...
Bug fix by sony
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-22 08:47:08 +00:00
Masayuki Ishikawa
99bdab3ac3
FAT: Fix 'Missing unlock' in fs_fat32.c
...
Jira: PDFW15IS-265
Coverity-ID: 10590 10589
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-22 14:44:24 +09:00
Masayuki Ishikawa
810f9b516c
drivers/bch: Fix 'Missing Unlock' in bchdev_driver.c
...
Jira: PDFW15IS-265
Coverity-ID: 10597
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-22 14:29:41 +09:00
Nobutaka Toyoshima
a862b653bd
Replace sprintf() with snprintf() in pipe.c
...
Jira: PDFW15IS-265
Coverity-ID: 10696
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-22 09:22:23 +09:00
Masayuki Ishikawa
c9e817dc4d
Merged nuttx/nuttx into master
2017-05-22 09:10:04 +09:00
Taras Drozdovsky
0fdb000e53
Fix define CONFIG_AUDIO_CS43L22 typo
2017-05-21 17:09:53 -06:00
Gregory Nutt
32eb5ca99a
Missed one change in the previous commit.
2017-05-21 15:02:00 -06:00
Gregory Nutt
7ffbb704d6
This is based on a patch by Taras Drozdovsky. Basically, the delay that was added during the integration of the CDC/ACM host driver was interfering with streaming audio. That delay was put there to prevent build endpoints from hogging the system bandwidth. So what do we do? Do we hog the bandwidth or do we insert arbitrarity delays. I think both ideas such.
2017-05-21 14:28:29 -06:00
Taras Drozdovsky
4ab2a3661e
STM32F4: add cs43l22 audio driver and i2s driver
2017-05-21 14:14:09 -06:00
Gregory Nutt
679a08e371
Merge remote-tracking branch 'spiriou/wapi_scan'
2017-05-21 09:25:02 -06:00
Simon Piriou
a332c4b9ce
bcmf: fix issue in AP scan event processing
2017-05-21 16:04:24 +02:00
Gregory Nutt
d764942e9d
Update README and a Document
2017-05-20 16:36:55 -06:00
Simon Piriou
6b15c26e56
bcmf: add SIOCGIWSCAN ioctl support
2017-05-20 22:13:15 +02:00
Gregory Nutt
2c00825dcf
Porting Guide: Add description of IOBs.
2017-05-20 08:50:05 -06:00
Masayuki Ishikawa
36d0f1178c
Merged nuttx/nuttx into master
2017-05-20 17:28:25 +09:00
Gregory Nutt
36d5f5085c
Merge branch 'ieee802154'
2017-05-19 15:51:31 -06:00
Gregory Nutt
c5816b719f
Merge remote-tracking branch 'origin/master' into ieee802154
2017-05-19 15:51:02 -06:00
Sebastien Lorquet
c9dc1d928d
network IOCTL commands: The only place in net/netdev/netdev_ioctl.c where the interface state should change is for SIOCSIFFLAGS. the other ones .. SIOCSIFADDR, SIOSLIFADDR, SIODIFADDR .. should not change the link state.
2017-05-19 10:04:57 -06:00
Gregory Nutt
bc32eaa228
Merge remote-tracking branch 'origin/master' into ieee802154
2017-05-19 07:17:37 -06:00
Juha Niskanen
819a6e049e
stm32_i2c: make private symbols static
2017-05-19 07:16:01 -06:00
Masayuki Ishikawa
3f22fd07d6
Merged in masayuki2009/nuttx.nuttx/bug_fix_by_sony (pull request #374 )
...
binfmt: Fix .dtor memory allocation
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-19 11:20:29 +00:00
Masayuki Ishikawa
7591bbc15a
Merge branch 'master' into bug_fix_by_sony
2017-05-19 17:22:25 +09:00
Masayuki Ishikawa
e72a6adeeb
Merged nuttx/nuttx into master
2017-05-19 17:21:10 +09:00
Yasuhiro Osaki
b1008477ac
binfmt: Fix .dtor memory allocation
...
Jira: PDFW15IS-265
Coverity-ID: 11053
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-19 17:01:48 +09:00
Masayuki Ishikawa
4a93c2aaa4
Merged in masayuki2009/nuttx.nuttx/network_test (pull request #373 )
...
net procfs: Fix buffer corruption and refactor netdev_statistics.c
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-19 01:24:23 +00:00
Masayuki Ishikawa
0260891c96
net procfs: Fix buffer corruption and refactor netdev_statistics.c
...
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-19 06:09:06 +09:00
Masayuki Ishikawa
3633b5b6d5
Merged nuttx/nuttx into master
2017-05-19 06:01:47 +09:00
Gregory Nutt
49a70079c1
Update TODO list
2017-05-18 09:51:36 -06:00
Masayuki Ishikawa
19e1d98734
Merged nuttx/nuttx into master
2017-05-18 21:14:42 +09:00
Masayuki Ishikawa
2d6ef32d27
Merged in masayuki2009/nuttx.nuttx/network_test (pull request #372 )
...
IOBs: Fix build break
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-18 11:35:01 +00:00
Masayuki Ishikawa
980b17d951
IPv6: Fix net_ipv6_pref2mask()
...
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-18 20:26:24 +09:00
Masayuki Ishikawa
f10e10e465
IOBs: Fix build break
...
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
2017-05-18 13:59:03 +09:00
Gregory Nutt
989195cec8
STM32 Ethernet: Last patch breaks every board that does not use the KSZ80801 PHY.
2017-05-17 15:36:57 -06:00
Gregory Nutt
aac3a3df8e
STM32 Ethernet: Should not stm32_phyintenable() return a failure if it could not enable the PHY interrupt?
2017-05-17 10:07:09 -06:00
Sebastien Lorquet
2c6ea23aee
STM32 Ethernet: Add support for KSZ8081 PHY interrupts.
2017-05-17 10:04:49 -06:00
Juha Niskanen
8896f91f53
STM32L4: remove duplicate USART selects from Kconfig
2017-05-17 08:05:24 -06:00
Jussi Kivilinna
9169ff6a15
stm32_serial: fix freezing serial port. Serial interrupt enable/disable functions do not disable interrupts and can freeze device when serial interrupt is received while execution is at those functions.
...
Trivially triggered with two or more threads write to regular syslog stream and to emergency stream. In this case, freeze happens because of mismatch of priv->ie (TXEIE == 0) and actually enabled interrupts in USART registers (TXEIE == 1), which leads to unhandled TXE interrupt
and causes interrupt storm for USART.
2017-05-17 06:50:46 -06:00
Gregory Nutt
5ce2ece134
syslog: Add header file inclusion to eliminate a warning; mm/iob: private function needs static storage class.
2017-05-16 12:26:23 -06:00
Gregory Nutt
6a3800f611
There can be a failure in IOB allocation to some asynchronous behavior caused by the use of sem_post(). Consider this scenario:
...
Task A holds an IOB. There are no further IOBs. The value of semcount is zero.
Task B calls iob_alloc(). Since there are not IOBs, it calls sem_wait(). The v
alue of semcount is now -1.
Task A frees the IOB. iob_free() adds the IOB to the free list and calls sem_post() this makes Task B ready to run and sets semcount to zero NOT 1. There is one IOB in the free list and semcount is zero. When Task B wakes up it would increment the sem_count back to the correct value.
But an interrupt or another task runs occurs before Task B executes. The interrupt or other tak takes the IOB off of the free list and decrements the semcount. But since semcount is then < 0, this causes the assertion because that is an invalid state in the interrupt handler.
So I think that the root cause is that there the asynchrony between incrementing the semcount. This change separates the list of IOBs: Currently there is only a free list of IOBs. The problem, I believe, is because of asynchronies due sem_post() post cause the semcount and the list content to become out of sync. This change adds a new 'committed' list: When there is a task waiting for an IOB, it will go into the committed list rather than the free list before the semaphore is posted. On the waiting side, when awakened from the semaphore wait, it will expect to find its IOB in the committed list, rather than free list.
In this way, the content of the free list and the value of the semaphore count always remain in sync.
2017-05-16 11:03:35 -06:00