From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Yanovich Subject: Re: [PATCH v2] wait while adding MMC host to ensure root mounts Date: Thu, 14 Mar 2013 15:57:56 +0400 Message-ID: <5141BB44.2020902@gmail.com> References: <1363223183-3772-1-git-send-email-ynvich@gmail.com> <1363224194-7366-1-git-send-email-ynvich@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-lb0-f180.google.com ([209.85.217.180]:51425 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756768Ab3CNL6C (ORCPT ); Thu, 14 Mar 2013 07:58:02 -0400 In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Namjae Jeon Cc: Chris Ball , Greg Kroah-Hartman , Ulf Hansson , Linus Walleij , Jaehoon Chung , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org On 14/03/13 08:08, Namjae Jeon wrote:> 2013/3/14, Sergey Yanovich : >> Kernel panic - not syncing: VFS: Unable to mount root fs on >> unknown-block(0,0) > Have you ever tried to use rootwait or rootdelay on command line ? > If no, You can use them. Those options work. However, they introduce a delay in the range of hundreds milliseconds and seconds respectively. They delay is not required. If a cards is present, mmc_rescan will return synchronously with card initialized. prepare_namespace() uses wait_for_device_probe(). The latter assumes that all "known devices" have initialized by the time it returns. MMC is not currently delivering on the assumptions. It will with the patch applied.