From: Bernhard Nortmann Date: Sat, 22 Aug 2015 00:30:44 +0200 Subject: [U-Boot] [RFC PATCH 0/3] fix netconsole for CONFIG_DM_ETH Message-ID: <1440196247-6885-1-git-send-email-bernhard.nortmann@web.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de With the introduction of driver model and accompanying changes, outdated code in netconsole leads to compilation errors when both CONFIG_NETCONSOLE and CONFIG_DM_ETH are set. This is a series of patches to fix these issues and get netconsole working again. I have deliberately marked it "RFC" since I'm not entirely sure of what I'm doing here... Especially the bootm.c change (patch 3/3) probably needs review or improvement by someone more knowledgable on U-Boot networking / driver model. Nevertheless I have tested the resulting code on my Banana Pi (sun7i / Allwinner A20) and had a functional netconsole again. I've also backported eth_is_active() and netconsole.c to v2015.04 to make sure they properly worked in case CONFIG_DM_ETH is absent. Regards, B. Nortmann Bernhard Nortmann (3): expose eth_is_active() function to test network device state fix netconsole when CONFIG_DM_ETH is set avoid eth_unregister() call when function is unavailable common/bootm.c | 2 ++ drivers/net/netconsole.c | 14 +++++++++++--- include/net.h | 6 ++++++ net/eth.c | 18 +++++++++++++++++- 4 files changed, 36 insertions(+), 4 deletions(-) -- 2.4.6