From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 5 Sep 2013 09:47:28 -0400 Subject: [U-Boot] [PATCH v2] dfu:mmc: raw data write fix In-Reply-To: <1377082801-13095-1-git-send-email-m.zalega@samsung.com> References: <1375786266-11822-1-git-send-email-m.zalega@samsung.com> <1377082801-13095-1-git-send-email-m.zalega@samsung.com> Message-ID: <20130905134728.GG30199@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, Aug 21, 2013 at 01:00:01PM +0200, Mateusz Zalega wrote: > When user attempted to perform a raw write using DFU (vide > dfu_fill_entity_mmc) with MMC interface not initialized before, > get_mmc_blk_size() reported invalid (zero) block size - it wasn't > possible to write ie. a new u-boot image. > > This commit fixes that by initializing device in get_mmc_blk_size() when > needed. > > Tested on Samsung Goni. > > Signed-off-by: Mateusz Zalega > Signed-off-by: Kyungmin Park > Reviewed-by: Lukasz Majewski > Cc: Minkyu Kang Acked-by: Tom Rini I poked Marek on IRC yesterday, and he was fine with me taking this into master, but since it depends on some other samsung patches, I'm fine with this going in via u-boot-samsung. -- Tom