lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] how to set the link up


From: Noam Weissman
Subject: Re: [lwip-users] how to set the link up
Date: Wed, 5 Jul 2017 11:59:39 +0000

Hi,

>From what I have seen the KSZ8081RNACA is an IEEE compliant PHY... that means 
>that the driver is standard.

You need to read PHY_BSR register (1) and check bit 3 ... this is the link 
status. This is what I am doing in a task.
The reason for doing the above is that a PHY with RMII has no link interrupt 
and the simplest way is to read the
basic status register.

Do you have a fully functional driver and initialize code that works for you ?

BR,
Noam.



-----Original Message-----
From: lwip-users [mailto:address@hidden On Behalf Of massimiliano cialdi
Sent: Wednesday, July 05, 2017 2:24 PM
To: address@hidden
Subject: [lwip-users] how to set the link up

I haveKSZ8081RNACA as phy that has to be polled (interrupt signal is not
routed)

In LWIP documentation I read:

- netif_set_link_up(struct netif *netif)

   This is the hardware link state; e.g. whether cable is plugged for wired
   Ethernet interface. This function must be called even if you don't know
   the current state. Having link up and link down events is optional but
   DHCP and IPv6 discover benefit well from those events.

- netif_set_up(struct netif *netif)

   This is the administrative (= software) state of the netif, when the
   netif is fully configured this function must be called.


So I understand that netif_set_link_up() has to be called from phy driver? and 
what about netif_set_up()?


best regads


-- 

Powersoft logo <http://www.powersoft.it>

*Massimiliano Cialdi |*Senior Firmware Engineer

*skype:*  mci.pws *| email:* address@hidden 
<mailto:address@hidden>

*HQ Italy:* Via E. Conti, 5 *|* 50018 Scandicci (FI) Italy

*direct phone:*  +39 055 0153429 *| Fax:*  +39 055 735 6235

*web site:* www.powersoft.it <http://www.powersoft.it>

Green Audio Power


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]