From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sat, 22 Feb 2014 06:09:45 +0100 Subject: [U-Boot] [PATCH v2 10/12] dfu:mmc: raw data write fix In-Reply-To: <1391533364-17663-11-git-send-email-m.zalega@samsung.com> References: <1389277919-15279-1-git-send-email-m.zalega@samsung.com> <1391533364-17663-1-git-send-email-m.zalega@samsung.com> <1391533364-17663-11-git-send-email-m.zalega@samsung.com> Message-ID: <201402220609.45263.marex@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 On Tuesday, February 04, 2014 at 06:02:42 PM, 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. This patch certainly does more than that I think, no ? Moreover, it's up to the user to init the MMC before using it, don't you agree? Best regards, Marek Vasut