From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 21 Oct 2015 16:49:04 -0400 Subject: [U-Boot] [PATCH v2 09/14] fastboot: Implement NAND backend In-Reply-To: <20151021145704.GG10947@lukather> References: <1444912462-3949-1-git-send-email-maxime.ripard@free-electrons.com> <1444912462-3949-10-git-send-email-maxime.ripard@free-electrons.com> <20151020194636.GD23893@bill-the-cat> <20151021145704.GG10947@lukather> Message-ID: <20151021204904.GS23893@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 Wed, Oct 21, 2015 at 04:57:04PM +0200, Maxime Ripard wrote: > Hi Tom, > > On Tue, Oct 20, 2015 at 03:46:36PM -0400, Tom Rini wrote: > > On Thu, Oct 15, 2015 at 02:34:17PM +0200, Maxime Ripard wrote: > > > > > So far the fastboot code was only supporting MMC-backed devices for its > > > flashing operations (flash and erase). > > > > > > Add a storage backend for NAND-backed devices. > > > > > > Signed-off-by: Maxime Ripard > > > > This is mutually exclusive with MMC support, right? If so, it's not > > quite written that way in the #ifdef's so I think it need to be down in > > say: > > > > > @@ -569,6 +572,11 @@ static void cb_flash(struct usb_ep *ep, struct usb_request *req) > > > (void *)CONFIG_FASTBOOT_BUF_ADDR, > > > download_bytes, response); > > > #endif > > > +#ifdef CONFIG_FASTBOOT_FLASH_NAND_DEV > > > + fb_nand_flash_write(cmd, fastboot_flash_session_id, > > > + (void *)CONFIG_FASTBOOT_BUF_ADDR, > > > + download_bytes, response); > > > +#endif > > > > With #elif/#error "Fastboot enabled but without any backing store > > support" and we drop the #error once this is Kconfig'zied. > > We said in the precedent version that the end goal would be to support > both at the same time, if relevant. > > I was willing to treat that as a followup patch, but I guess I should > do as you suggest for the time being. Yeah, we want to make sure that until it's supported it can't be configured to try and do it. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: