public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCH 0/3] fix netconsole for CONFIG_DM_ETH
@ 2015-08-21 22:30 Bernhard Nortmann
  2015-08-21 22:30 ` [U-Boot] [RFC PATCH 1/3] expose eth_is_active() function to test network device state Bernhard Nortmann
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Bernhard Nortmann @ 2015-08-21 22:30 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-08-25 18:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 22:30 [U-Boot] [RFC PATCH 0/3] fix netconsole for CONFIG_DM_ETH Bernhard Nortmann
2015-08-21 22:30 ` [U-Boot] [RFC PATCH 1/3] expose eth_is_active() function to test network device state Bernhard Nortmann
2015-08-23 21:21   ` Simon Glass
2015-08-24 10:20     ` Bernhard Nortmann
2015-08-24 16:59       ` Simon Glass
2015-08-24 17:02         ` Joe Hershberger
2015-08-25  9:53           ` Bernhard Nortmann
2015-08-25 15:55             ` Joe Hershberger
2015-08-25 18:01               ` Bernhard Nortmann
2015-08-25 18:13                 ` Joe Hershberger
2015-08-21 22:30 ` [U-Boot] [RFC PATCH 2/3] fix netconsole when CONFIG_DM_ETH is set Bernhard Nortmann
2015-08-21 22:30 ` [U-Boot] [RFC PATCH 3/3] avoid eth_unregister() call when function is unavailable Bernhard Nortmann
2015-08-23 21:21   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox