From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 31 Aug 2017 20:52:16 +0800 Subject: [U-Boot] [PATCH 20/23] efi_loader: use events for efi_net_receive In-Reply-To: <20170826225444.7608-1-xypron.glpk@gmx.de> References: <20170826225110.7381-1-xypron.glpk@gmx.de> <20170826225444.7608-1-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27 August 2017 at 06:54, Heinrich Schuchardt wrote: > A timer event is defined. The timer handler cares for receiving new > packets. > > efi_timer_check is called both in efi_net_transmit and efi_net_receive > to enable events during network communication. > > Calling efi_timer_check in efi_net_get_status is implemented in a > separate patch. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_net.c | 35 ++++++++++++++++++++++++++++++++--- > 1 file changed, 32 insertions(+), 3 deletions(-) > Reviewed-by: Simon Glass But this code should not support pre-DM networking. E.g. calling eth_rx()... It should be adjusted to work only with boards that define CONFIG_DM_ETH. Otherwise we will never be able to move things over.