Move NETDEV_LATEINIT from drivers/net/Kconfig to net/Kconfig so that we can select NETDEV_LATEINIT without enabling NETDEVICES since the net driver in arch folder may need to initialize later too.

This commit is contained in:
Xiang Xiao 2018-11-12 06:36:26 -06:00 committed by Gregory Nutt
parent d94bd49b78
commit 77098f8736
2 changed files with 29 additions and 29 deletions

View File

@ -62,35 +62,6 @@ config NETDEV_STATISTICS
Enable to collect statistics from the network drivers (if supported Enable to collect statistics from the network drivers (if supported
by the network driver). by the network driver).
config NETDEV_LATEINIT
bool "Late driver initialization"
default n
---help---
Normally, networking initialization occur in the later phase of the
boot process in the function up_initialize() when it calls the
driver initialization function, up_netintialize(). This
initialization occurs after a sufficient about of the OS has been
initialized so that driver registration can be performed, but
before the completion of OS initialization and before the first
application is started.
In a few situations, however, you may want to suppress this early
network driver initialization. As examples:
- If you are using SLIP or PPPD, then there will be no network
driver to be initialized,
- Certain multi-network configurations where a simple call to
up_netinitialize() may be insufficient, and
- Situations where there are other board-level hardware
dependencies so that the hardware is not in an appropriate
state for up_netinitialize() to be called.
Examples of this latter situation includes such things as network
drivers that required some setup via an I2C I/O expander, or network
drivers that depend on USB, SPI, I2C, PCI, serial, or other
interfaces that may not be ready when up_netiniailize() is normally
called.
config NET_DUMPPACKET config NET_DUMPPACKET
bool "Enable packet dumping" bool "Enable packet dumping"
depends on DEBUG_FEATURES depends on DEBUG_FEATURES

View File

@ -231,6 +231,35 @@ config NET_USRSOCK
can access standard socket API, with socket descriptors that can access standard socket API, with socket descriptors that
can be used with NuttX system calls. can be used with NuttX system calls.
config NETDEV_LATEINIT
bool "Late driver initialization"
default n
---help---
Normally, networking initialization occur in the later phase of the
boot process in the function up_initialize() when it calls the
driver initialization function, up_netintialize(). This
initialization occurs after a sufficient about of the OS has been
initialized so that driver registration can be performed, but
before the completion of OS initialization and before the first
application is started.
In a few situations, however, you may want to suppress this early
network driver initialization. As examples:
- If you are using SLIP or PPPD, then there will be no network
driver to be initialized,
- Certain multi-network configurations where a simple call to
up_netinitialize() may be insufficient, and
- Situations where there are other board-level hardware
dependencies so that the hardware is not in an appropriate
state for up_netinitialize() to be called.
Examples of this latter situation includes such things as network
drivers that required some setup via an I2C I/O expander, or network
drivers that depend on USB, SPI, I2C, PCI, serial, or other
interfaces that may not be ready when up_netiniailize() is normally
called.
endmenu # Link layer support endmenu # Link layer support
source "net/netdev/Kconfig" source "net/netdev/Kconfig"