From patchwork Tue Dec 21 10:59:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 424251 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBLAxAtn016269 for ; Tue, 21 Dec 2010 10:59:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750816Ab0LUK7J (ORCPT ); Tue, 21 Dec 2010 05:59:09 -0500 Received: from mail-fx0-f43.google.com ([209.85.161.43]:47083 "EHLO mail-fx0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805Ab0LUK7H convert rfc822-to-8bit (ORCPT ); Tue, 21 Dec 2010 05:59:07 -0500 Received: by fxm18 with SMTP id 18so4149203fxm.2 for ; Tue, 21 Dec 2010 02:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TzCcKcTXYPCkMiyZ0y4ean/t2C47FlqnZCbFIpE5G6o=; b=QzL/CgwgVuua0/1KWTWRIr5z/8d6cEmndbPV+rmcS84h7ND3r0E8ImpP+jE/hI4Ahi zRXj6S8JPksQa4c8l52htS6n23gBqQ4Wlr54QIueiodGbz84jq+ltMwaaWPLJb2xtzws khODbURGb73n9Kech1lOSkaAHEbL7p2HTgafU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RxG79p3pgS/wjFvtXsHS57XWuTAGpekjRXSnAYriKuHN5+cKezuF+u6At3oXCUs6WD cnPVZsx+yLCM0An9qk6fD6iUju2Wn95e/HZuKPUzk0MT/FQKFdUYKApOGG4MR72sLX5l 37AsjV1PxbPq+6h91Gkr+R+dMPtyBZjFWC3MY= MIME-Version: 1.0 Received: by 10.223.97.7 with SMTP id j7mr6058381fan.41.1292929146133; Tue, 21 Dec 2010 02:59:06 -0800 (PST) Received: by 10.223.122.210 with HTTP; Tue, 21 Dec 2010 02:59:06 -0800 (PST) In-Reply-To: References: <20101216234032.GA17239@void.printf.net> <50D31EC8-BD9E-4920-8CEB-2AD10DF9C5C5@marvell.com> <20101217034342.GA19673@void.printf.net> Date: Tue, 21 Dec 2010 05:59:06 -0500 Message-ID: Subject: Re: [PATCH] mmc: Test bus-width for old MMC devices (v2) From: zhangfei gao To: Takashi Iwai Cc: Chris Ball , Philip Rakity , Aries Lee , Qiming Wu , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Dec 2010 10:59:10 +0000 (UTC) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 1d8409f..86cac0d 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -586,7 +586,11 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, } else if (ddr) { mmc_card_set_ddr_mode(card); mmc_set_bus_width_ddr(card->host, bus_width, ddr); - } + + } else + mmc_set_bus_width(card->host, + bus_widths[idx]); + } if (!oldcard)