arch: Remove up_netinitialize

since this api change to xxx_netinitialize

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-08-18 02:17:28 +08:00 committed by Petro Karashchenko
parent 7f32eaa13e
commit 90f8315432
6 changed files with 11 additions and 16 deletions

View File

@ -23,7 +23,7 @@ SocketCAN Device Drivers
- **Initialization sequence is as follows**.
#. up_netinitialize(void) is called on startup of NuttX in this
#. xxx_netinitialize(void) is called on startup of NuttX in this
function you call your own init function to initialize your
CAN driver
#. In your own init function you create the net_driver_s

View File

@ -70,10 +70,6 @@ extern FAR struct qspi_dev_s *stm32f7_qspi_initialize(int intf);
*
****************************************************************************/
void up_netinitialize(void)
{
}
void stm32_boardinitialize(void)
{
#if defined(CONFIG_STM32F7_SPI1) || defined(CONFIG_STM32F7_SPI2) || \

View File

@ -50,8 +50,7 @@
****************************************************************************/
#ifdef CONFIG_NET
void up_netinitialize(void)
void x86_64_netinitialize(void)
{
}
#endif

View File

@ -179,7 +179,7 @@ static void up_reset(const struct w5500_lower_s *lower, bool reset)
* Name: arm_netinitialize
****************************************************************************/
void up_netinitialize(void)
void riscv_netinitialize(void)
{
struct spi_dev_s *spi;
int ret;

View File

@ -963,10 +963,10 @@ menuconfig RNDIS
- "Remote NDIS To USB Mapping"
This option may required CONFIG_NETDEV_LATEINIT=y otherwise, the
power-up initialization may call the non-existent up_netinitialize().
power-up initialization may call the non-existent xxx_netinitialize().
This option is not automatically selected because it may be that
you have an additional network device that requires the early
up_netinitialize() call.
xxx_netinitialize() call.
if RNDIS
@ -1102,10 +1102,10 @@ menuconfig NET_CDCECM
Revision 1.2, February 9, 2007"
This option may require CONFIG_NETDEV_LATEINIT=y, otherwise the
power-up initialization may call the non-existent up_netinitialize().
power-up initialization may call the non-existent xxx_netinitialize().
This option is not automatically selected because it may be that
you have an additional network device that requires the early
up_netinitialize() call.
xxx_netinitialize() call.
if NET_CDCECM

View File

@ -277,7 +277,7 @@ config NETDEV_LATEINIT
---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_netinitialize(). This
driver initialization function, xxx_netinitialize(). This
initialization occurs after a sufficient amount of the OS has been
initialized so that driver registration can be performed, but
before the completion of OS initialization and before the first
@ -289,15 +289,15 @@ config NETDEV_LATEINIT
- 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
xxx_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.
state for xxx_netinitialize() to be called.
Examples of this latter situation include 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_netinitialize() is normally
interfaces that may not be ready when xxx_netinitialize() is normally
called.
endmenu # Link layer support