mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Merged in masayuki2009/nuttx.nuttx/tiva_with_qemu (pull request #927)
arch/arm/src/tiva: Add a workaround for tiva with qemu With qemu, tiva_ifup() hangs because ethernet link status can not be set correctly. This PR is a workaround to avoid this issue. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
committed by
Gregory Nutt
parent
b6e7812c74
commit
7815c3a720
@@ -1381,6 +1381,10 @@ config TIVA_DUMPPACKET
|
||||
---help---
|
||||
Dump each packet received/sent to the console.
|
||||
|
||||
config TIVA_WITH_QEMU
|
||||
bool "Workaround for tiva with qemu"
|
||||
default n
|
||||
|
||||
endmenu # Stellaris Ethernet Configuration
|
||||
|
||||
menu "Ethernet Configuration"
|
||||
|
||||
@@ -1345,6 +1345,7 @@ static int tiva_ifup(struct net_driver_s *dev)
|
||||
* set
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_TIVA_WITH_QEMU
|
||||
ninfo("Waiting for link\n");
|
||||
do
|
||||
{
|
||||
@@ -1352,6 +1353,7 @@ static int tiva_ifup(struct net_driver_s *dev)
|
||||
}
|
||||
while ((phyreg & MII_MSR_LINKSTATUS) == 0);
|
||||
ninfo("Link established\n");
|
||||
#endif
|
||||
|
||||
/* Reset the receive FIFO */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user