From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 3 Nov 2015 10:56:57 -0500 Subject: [U-Boot] [PATCH V2 10/13] spl: add support for alternative boot device In-Reply-To: <20151031153956.GB27702@skynet> References: <1446024210-16517-1-git-send-email-nikita@compulab.co.il> <1446024210-16517-11-git-send-email-nikita@compulab.co.il> <20151031153956.GB27702@skynet> Message-ID: <20151103155657.GX8499@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Oct 31, 2015 at 05:39:56PM +0200, Nikita Kiryanov wrote: > On Thu, Oct 29, 2015 at 11:19:51AM -0600, Simon Glass wrote: > > Hi Nikita, > > > > On 28 October 2015 at 03:23, Nikita Kiryanov wrote: > > > Introduce spl_boot_list array, which defines a list of boot devices > > > that SPL will try before hanging. By default this list will consist > > > of only spl_boot_device(), but board_boot_order() can be overridden > > > by board code to populate the array with custom values. > > > > > > Signed-off-by: Nikita Kiryanov > > > Cc: Igor Grinberg > > > Cc: Tom Rini > > > Cc: Simon Glass > > > --- > > > Changes in V2: > > > - No changes. > > > > > > common/spl/spl.c | 33 +++++++++++++++++++++++++++++---- > > > 1 file changed, 29 insertions(+), 4 deletions(-) > > > > How will we convert this to driver model? I'm worried that this might > > create a separate method which will live forever. > > I don't see how this is related to driver model. This code just fills in > an array and iterates over it. Can you elaborate? Indeed. With DM we'd just want to make sure that we probe for the device before trying to use it, yes? -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: