From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Mon, 23 Aug 2010 17:19:40 +0200 Subject: [U-Boot] Start/stop of network devices (was: Re: [PATCH] UEC PHY: Speed up initial PHY neg.) In-Reply-To: <4C721E61.5000608@gmail.com> (Ben Warren's message of "Mon, 23 Aug 2010 00:08:17 -0700") References: <1281451009-26015-1-git-send-email-Joakim.Tjernlund@transmode.se> <4C721E61.5000608@gmail.com> 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 Hi Ben, [Jocke deleted from CC as this is not about the patch anymore] > Sorry for the delay on this. I'm all for changing the existing > behavior. It seems to me that the only time we would ever want to > wind an interface down is if we switch the active one (even then, I'm > not sure). My world view is limited, but I can't imagine that even > changing interfaces happens much in real world U-boot usage, that is > the non-lab, non-interactive use cases. What would you think about > adding something like ifup and ifdown commands so that users could > explicitly start/stop interfaces? Actually I was thinking of an automatic initialisiation once we do a network transfer. This would be more in line with the current command line interface. For this we would need a state variable per device and start the device if it is down. The "ifdown" _may_ be implemented as a command, but I think this should be done automatically once we boot a kernel. For USB we already have to do something like this as USB host controllers tend to DMA frame numbers into memory as long as they are running. This was an especially difficult problem to diagnose back then. From this lesson I think we should learn and call "stop" methods for every initialized device. What do you think? Once more this is going into the "device" model dicussion that we already thought about a while ago [1]. Maybe someday somebody finds some time and starts to work on it ;) Cheers Detlev [1] http://www.denx.de/wiki/view/U-Boot/OLSUbootBOF -- A foolish consistency is the hobgoblin of little minds. -- Ralph Waldo Emerson -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de