From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 08 May 2008 20:52:00 +0200 Subject: [U-Boot-Users] [PATCH v2 1/3] New i.MX31 SPI driver In-Reply-To: Your message of "Thu, 08 May 2008 18:17:08 +0200." <20080508181708.60e8b3e9@hskinnemo-gx620.norway.atmel.com> Message-ID: <20080508185200.A1CC324764@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20080508181708.60e8b3e9@hskinnemo-gx620.norway.atmel.com> you wrote: > > Yes, perhaps we need that. But I was sort of thinking that once you > initialize a slave, it will just stick around until you boot an OS or > reset. Most drivers don't seem to have any cleanup hooks anyway, and > some don't even have init hooks. In the latter case, you can simply > keep a static struct spi_slave * around and if it's NULL, you > initialize it. Even if there is lots of bad examples, it is a design requirement to disable a hardware interface after use. See bullet 6 at http://www.denx.de/wiki/UBoot/DesignRequirements Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If the odds are a million to one against something occuring, chances are 50-50 it will.