From patchwork Wed Sep 8 14:25:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lei Wen X-Patchwork-Id: 178212 Return-path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on void.printf.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.9 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5 Envelope-to: chris@printf.net Delivery-date: Wed, 08 Sep 2010 15:26:03 +0100 Received: from lists.laptop.org ([18.85.2.145] helo=mail.laptop.org) by void.printf.net with esmtp (Exim 4.69) (envelope-from ) id 1OtLb9-0000hp-KR for chris@printf.net; Wed, 08 Sep 2010 15:26:03 +0100 Received: by mail.laptop.org (Postfix) id B5B3724586; Wed, 8 Sep 2010 10:25:43 -0400 (EDT) Delivered-To: cjb@laptop.org Received: from spam.laptop.org (spam.laptop.org [18.85.46.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.laptop.org (Postfix) with ESMTPS id 5C42224585 for ; Wed, 8 Sep 2010 10:25:43 -0400 (EDT) X-ASG-Debug-ID: 1283955960-0b742dbf0001-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id VjaPESVjz2a6s6ZO for ; Wed, 08 Sep 2010 10:26:00 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754677Ab0IHO0A (ORCPT ); Wed, 8 Sep 2010 10:26:00 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:58741 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753259Ab0IHOZ7 convert rfc822-to-8bit (ORCPT ); Wed, 8 Sep 2010 10:25:59 -0400 Received: by qyk33 with SMTP id 33so95910qyk.19 for ; Wed, 08 Sep 2010 07:25:58 -0700 (PDT) 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=AgQeDIphjHHgaocynoir+Z3IRku5k6jToBrFoyPIU2I=; b=JBSYGNmXLul9k2C8LpSNOXhvdAKdUnn25vkGYy8zTNpJYvjkC+O9TUDufocnni3hQy EG0/nYZ66tB8AK2MsdLigQvFKcdosAUXVNhhiWtVcFa4JflAsDlOqN7dmYsl1mlcQA91 7p3lp5opOVpOjj3gD/g8BfXALHKueK5b1WDXQ= 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=HkZXt38mN4dQ4RDQyPj+fEGPGPCywymg0RZogVO9plkKOLG5CijokzDSpdPLk1np8N s8spuqZm6HaoWYSnB4d+EBJPwzokp8Bg/8m4GFY1YNMssYQ4V9G1X92qTt45gMppDbLO fzCo5SiDN1V4u+RNeK6LFV/86dBpm0K8d1aRA= MIME-Version: 1.0 Received: by 10.224.123.146 with SMTP id p18mr452710qar.4.1283955958278; Wed, 08 Sep 2010 07:25:58 -0700 (PDT) Received: by 10.229.110.17 with HTTP; Wed, 8 Sep 2010 07:25:58 -0700 (PDT) In-Reply-To: <20100820221323.GC8535@lixom.net> References: <20100818041333.GA14149@lixom.net> <20100818171636.0625b668.akpm@linux-foundation.org> <20100819032230.GA21980@lixom.net> <20100820010242.GA29588@lixom.net> <20100820221323.GC8535@lixom.net> Date: Wed, 8 Sep 2010 22:25:58 +0800 Message-ID: X-ASG-Orig-Subj: Re: [PATCH v3] mmc: add config and runtime option for number of mmcblk minors Subject: Re: [PATCH v3] mmc: add config and runtime option for number of mmcblk minors From: Lei Wen To: Olof Johansson Cc: Andrew Morton , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Mandeep Baines Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Barracuda-Connect: vger.kernel.org[209.132.180.67] X-Barracuda-Start-Time: 1283955960 X-Barracuda-URL: http://18.85.46.23:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at laptop.org X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.5 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.40288 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 8d2bd24..2e3eeb1 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -557,6 +557,7 @@ static struct mmc_blk_data *mmc_blk_alloc(struct mmc_card *card) md->disk->private_data = md; md->disk->queue = md->queue.queue; md->disk->driverfs_dev = &card->dev; + md->disk->flags |= GENHD_FL_EXT_DEVT; /*