esp-idf/components/esp_eth/src
Karl Palsson a85d1e1eca fix(esp_eth): dp83848: correct link detection to use BMSR
Reading the link state via PHYSTS was incorrect, as it only reflects the
link state bit from BMSR.  BMSR latches link down events, and are not
cleared without being read.  (See 802.3-2008 section 2, section 22.2.4.2.13)
This leads to the original DP828xx code only supporting link up, then a
single link down event.

Switch to reading the link state via BMSR, but continuing to read the
negotiation results via PHYSTS and ANLPAR.  This is inline with
LAN8720x, RTL8201, KSZ80xx phy drivers, and other opensource drivers for
the DP838xx family of devices.

Tested on a private board with a DP83825i PHY.  No publically available
boards using the original DP83848 are known of for testing.

Signed-off-by: Karl Palsson <karl.palsson@marel.com>
2024-04-24 09:34:58 +02:00
..
dm9051.h esp_eth: allowed DM9051 to receive multicast packets 2023-03-14 13:59:27 +00:00
esp_eth_mac_dm9051.c fix(esp_eth): made access to PHY registers for DM9051 more robust 2024-04-15 15:39:23 +08:00
esp_eth_mac_esp_dma.c feat(dma): refactor dma calloc function 2024-04-02 14:30:14 +08:00
esp_eth_mac_esp_gpio.c feat(gpio): add gpio fun sellect api 2024-02-27 17:01:53 +08:00
esp_eth_mac_esp.c feat(esp_eth): added option to configure interrupt priority 2024-03-07 10:30:32 +01:00
esp_eth_mac_ksz8851snl.c fix(esp_eth): Removed -Wno-format in esp_eth component 2024-03-01 17:01:28 +01:00
esp_eth_mac_openeth.c fix(esp_eth): fixed build for openeth due to incorrect printf format 2024-03-14 09:44:53 +01:00
esp_eth_mac_w5500.c fix(esp_eth): Removed -Wno-format in esp_eth component 2024-03-01 17:01:28 +01:00
esp_eth_netif_glue.c fix(esp_eth): Removed -Wno-format in esp_eth component 2024-03-01 17:01:28 +01:00
esp_eth_phy_802_3.c fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped 2024-02-16 16:36:26 +01:00
esp_eth_phy_dm9051.c fix(esp_eth): various Ethernet driver fixes 2023-10-12 07:23:51 +00:00
esp_eth_phy_dp83848.c fix(esp_eth): dp83848: correct link detection to use BMSR 2024-04-24 09:34:58 +02:00
esp_eth_phy_ip101.c fix(esp_eth): Removed -Wno-format in esp_eth component 2024-03-01 17:01:28 +01:00
esp_eth_phy_ksz80xx.c fix(esp_eth): Removed -Wno-format in esp_eth component 2024-03-01 17:01:28 +01:00
esp_eth_phy_ksz8851snl.c fix(esp_eth): Removed -Wno-format in esp_eth component 2024-03-01 17:01:28 +01:00
esp_eth_phy_lan87xx.c feat(esp_eth): Added support of internal EMAC for ESP32P4 2024-01-16 14:29:25 +01:00
esp_eth_phy_rtl8201.c esp_eth: change rtl8201 reset timing to match datasheet 2023-10-02 10:10:25 +02:00
esp_eth_phy_w5500.c fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped 2024-02-16 16:36:26 +01:00
esp_eth.c fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped 2024-02-16 16:36:26 +01:00
esp_openeth.h feat(esp_eth): add opencores ethernet support for ESP32-C3 (QEMU) target 2023-08-24 10:32:46 +08:00
ksz8851.h esp_eth: Update KSZ8851SNL driver to use global error checkers 2021-04-22 13:55:51 +00:00
openeth.h feat(esp_eth): add opencores ethernet support for ESP32-C3 (QEMU) target 2023-08-24 10:32:46 +08:00
w5500.h esp_eth: fixed copyright for W5500 2023-01-19 07:56:22 +00:00