Commit Graph

29715 Commits

Author SHA1 Message Date
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
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
Jussi Kivilinna
a6e556d31c I had to make following change to fix interrupt context syslog (INTBUFFER untested) 2017-05-16 10:56:49 -06:00
Gregory Nutt
9fb2fed90e Merge remote-tracking branch 'origin/master' into ieee802154 2017-05-16 08:05:38 -06:00
Anthony Merlino
2393217bca Merged in merlin17/nuttx/ieee802154 (pull request #371)
wireless/ieee802154: Restructuring of MAC notifications. Simplifes some interfaces

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-16 14:03:27 +00:00
EunBong Song
5ef00f0b91 drivers/bch: BCH character driver bch_ioctl() always returns -ENOTTY for DIOC_GETPRIV command. It should returns OK if DIOC_GETPRIV command succeeds. 2017-05-16 08:01:05 -06:00
Lederhilger Martin
b8e7d5c455 I had the problem that the transmit FIFO size (= actual elements in FIFO) was slowly increasing over time, and was full after a few hours.
The reason was that the code hit the line "canerr("ERROR: No available mailbox\n");" in stm32_cansend, so can_xmit thinks it has sent the packet to the hardware, but actually has not. Therefore the transmit interrupt never happens which would call can_txdone, and so the size of the FIFO size does not decrease.

The reason why the code actually hit the mentioned line above, is because stm32can_txready uses a different (incomplete) condition than stm32can_send to determine if the mailbox can be used for sending, and thus can_xmit forwards the packet to stm32can_send. stm32can_txready considered mailboxes OK for sending if the mailbox was empty, but did not consider that mailboxes may not yet be used if the request completed bit is set - stm32can_txinterrupt has to process these mailboxes first.

Note that I have also modified stm32can_txinterrupt - I removed the if condition, because the CAN controller retries to send the packet until it succeeds. Also if the condition would not evaluate to true, can_txdone would not be called and the FIFO size would not decrease also.
2017-05-16 07:47:18 -06:00
Gregory Nutt
56c8456ff0 Update some comments. 2017-05-16 07:38:57 -06:00
Anthony Merlino
06634afbe0 wireless/ieee802154: Restructuring of MAC notifications. Simplifes some interfaces 2017-05-15 21:44:57 -04:00
Gregory Nutt
914c5dad0c TCP: An RST recevied suring the 3-way handshake requires a little more clean-up 2017-05-15 08:10:43 -06:00
Juha Niskanen
34e68a569b drivers: rename newly introduced up_i2creset to I2C_RESET 2017-05-15 07:22:17 -06:00
Juha Niskanen
b9a769d65d drivers: fix some bad NULL checks 2017-05-15 07:20:32 -06:00
Gregory Nutt
17e9a88d0d Merge branch 'ieee802154' 2017-05-14 16:37:55 -06:00
Gregory Nutt
b10d2bbc8c Merge remote-tracking branch 'origin/master' into ieee802154 2017-05-14 16:37:10 -06:00
Anthony Merlino
2cf94a62d5 Merged in merlin17/nuttx/ieee802154 (pull request #370)
Ieee802154

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-14 22:33:48 +00:00
Anthony Merlino
8ec0b71a59 wireless/ieee802154: Updates configuration settings 2017-05-14 17:59:19 -04:00
Anthony Merlino
2b5e415fab wireless/ieee802154: Starts implementing START.request primitive 2017-05-14 17:55:15 -04:00
Gregory Nutt
aa57fb159d TCP: Send RST if applicaiton 'unlistens()' before we complete the connection sequence. 2017-05-14 13:30:59 -06:00
Gregory Nutt
8acfea1197 Fix some typos 2017-05-14 12:14:31 -06:00
Simon Piriou
8d2a3f4856 Merged in spiriou/nuttx/photon_telnet (pull request #369)
photon/wlan: disable network logs and add nsh over telnet

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-14 18:13:11 +00:00
Simon Piriou
7e75d61ea0 photon/wlan: disable network logs and add nsh over telnet 2017-05-14 19:33:44 +02:00
Gregory Nutt
93d73b14ab Merge branch 'synack' 2017-05-14 11:00:47 -06:00