From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Thu, 01 May 2014 14:03:00 -0600 Subject: [U-Boot] [PATCH v5 06/12] ums: always initialize mmc before ums_disk_init() In-Reply-To: <1398712412-15503-7-git-send-email-m.zalega@samsung.com> References: <1389277919-15279-1-git-send-email-m.zalega@samsung.com> <1398712412-15503-1-git-send-email-m.zalega@samsung.com> <1398712412-15503-7-git-send-email-m.zalega@samsung.com> Message-ID: <5362A874.5080508@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/28/2014 01:13 PM, Mateusz Zalega wrote: > In cases when MMC hadn't been initialized before, ie. by the user or other > subsystem, it was still uninitialized while UMS media capacity check, > leading to broken ums command. > > UMS has to initialize resources it uses. It's probably better to just switch from find_mmc_device() to get_device(), which does the initialization internally. patch "ums: use get_device() not find_mmc_device()" does this. http://patchwork.ozlabs.org/patch/344328/ That said, at this point, it's probably simplest to just apply this series, and I'll rebase my series on top of this in a day or two.