[U-Boot] [PATCH v2] net: bootp: Add environment variable for timeout period

2016-02-01 Thread amessier . tyco
From: Alexandre Messier There is currently one config option (CONFIG_NET_RETRY_COUNT) that is available to tune the retries of the network stack. Unfortunately, it is global to all protocols, and the value is interpreted differently in all of them. Add a new environment variable that directly se

[U-Boot] [PATCH v2] net: Add bootfile in DHCP Request

2016-01-28 Thread amessier . tyco
From: Alexandre Messier Add the bootfile name in the DHCP Request packet, in addition to it already being sent in the DHCP Discover. This is needed by some DHCP servers so that the bootfile name is properly returned by the server to the client in the DHCP Ack, as expected by U-Boot. Signed-off-

[U-Boot] [PATCH 2/2] net: bootp: Add BOOTP specific config for timeout value

2016-01-22 Thread amessier . tyco
From: Alexandre Messier There is currently one config option (CONFIG_NET_RETRY_COUNT) that is available to tune the retries of the network stack. Unfortunately, it is global to all protocols, and the value is interpreted differently in all of them. Add a new config option that sets directly the

[U-Boot] [PATCH 1/2] net: Add bootfile in DHCP Request

2016-01-22 Thread amessier . tyco
From: Alexandre Messier Add the bootfile name in the DHCP Request packet, in addition to it already being sent in the DHCP Discover. This is needed by some DHCP servers so that the bootfile name is properly returned by the server to the client in the DHCP Ack, as expected by U-Boot. Signed-off-

[U-Boot] [PATCH] net: tftp: Add TFTP specific config for retry count

2016-01-22 Thread amessier . tyco
From: Alexandre Messier There is currently one config option (CONFIG_NET_RETRY_COUNT) that is available to tune the retries of the network stack. Unfortunately, it is global to all protocols, and the value is interpreted differently in all of them. Add a new config option that sets directly the

[U-Boot] [PATCH] net: phy: Use 'autoneg' flag from phydev

2016-01-22 Thread amessier . tyco
From: Alexandre Messier Use the 'autoneg' flag available in phydev when checking if autoneg is in use. The previous implementation was checking directly in the PHY if autoneg was supported. Some PHYs will report that autoneg is supported, even when it is disabled. Thus it is not possible to use

[U-Boot] [PATCH] net: phy: Set ANRESTART in setup_forced

2016-01-22 Thread amessier . tyco
From: Alexandre Messier When configuring a PHY in fixed (forced) link mode, in order for the changes to be applied, either one of these conditions must be triggered: 1- PHY is reset 2- Autoneg is restarted 3- PHY transitions from power-down to power-up Neither of these is

[U-Boot] [PATCH] net: phy: micrel: Disable B_CAST on config

2016-01-22 Thread amessier . tyco
From: Alexandre Messier Micrel PHYs KSZ8021/31 and KSZ8081 have a feature where MDIO address 0 is considered as a broadcast address; the PHY will respond even if it is not its configured (pinstrapped) address. This feature is enabled by default. The Linux kernel disables that feature at initiali

[U-Boot] [PATCH] net: lpc32xx: Fix MDIO busy wait

2015-12-16 Thread amessier . tyco
From: Alexandre Messier The MDIO read function waits on the busy flag after issuing the read command, while the MDIO write function waits on the busy flag before issuing the write command. This causes an issue when writing then immediately reading. As the MDIO module is still busy, the read comm