From patchwork Tue Jun 12 13:04:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Rudholm X-Patchwork-Id: 9224 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 754C323E49 for ; Tue, 12 Jun 2012 13:04:43 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 3E7CDA1823F for ; Tue, 12 Jun 2012 13:04:43 +0000 (UTC) Received: by yhpp61 with SMTP id p61so3687250yhp.11 for ; Tue, 12 Jun 2012 06:04:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :x-gm-message-state; bh=6UgYDgmdGDqEh65SJJZYSW4eLry2QWrtlv7YGRIvZkQ=; b=kquP6B1gfJGVUuM4lSY1oid991X22YxwjfC/rGbb4SGE8Lr2YgHSUiOElNtBKqPerG GiAjWB+H15++5jd+7wWRNv0gZIgwlxrQHVII1Swugj/Nbt06XkZyEniq1LQKGvvvTNWp f/SI4ngzhMs6qDRC3sw5IlFDu/EQN7l5mkVMigjIibH02S1yir0AlqanNdU1oPYaGsYc KWterDLsYD8wDqpSuHxZ7Qju3id7z1DpPmEIskN7jrRvelKxPzbxqw+dFgI+kBKnZQwp wg/fIQF/tOrH5yzNh8c/aH95bZhrml0xltBr1rqG96zIFuAYtT9RxKb4X4VKzo35aNcr I22Q== Received: by 10.50.57.167 with SMTP id j7mr8054171igq.53.1339506281424; Tue, 12 Jun 2012 06:04:41 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp165853ibb; Tue, 12 Jun 2012 06:04:39 -0700 (PDT) Received: by 10.14.45.77 with SMTP id o53mr7243583eeb.36.1339506278761; Tue, 12 Jun 2012 06:04:38 -0700 (PDT) Received: from eu1sys200aog119.obsmtp.com (eu1sys200aog119.obsmtp.com. [207.126.144.147]) by mx.google.com with SMTP id e4si9106063eea.94.2012.06.12.06.04.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jun 2012 06:04:38 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.147 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) client-ip=207.126.144.147; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.147 is neither permitted nor denied by best guess record for domain of johan.rudholm@stericsson.com) smtp.mail=johan.rudholm@stericsson.com Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob119.postini.com ([207.126.147.11]) with SMTP ID DSNKT9c+VjL37+X9pF72VC16SA9sQkTAm0Oy@postini.com; Tue, 12 Jun 2012 13:04:38 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id B31A7C0; Tue, 12 Jun 2012 12:56:00 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 4C1FCEE0; Tue, 12 Jun 2012 13:04:19 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id CE27BA8072; Tue, 12 Jun 2012 15:04:12 +0200 (CEST) Received: from steludxu1610.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 12 Jun 2012 15:04:17 +0200 From: Johan Rudholm To: , Chris Ball Cc: Per Forlin , Ulf Hansson , Johan Rudholm Subject: [PATCH] mmc: card: Do not scan boot partitions Date: Tue, 12 Jun 2012 15:04:13 +0200 Message-ID: <1339506253-7164-1-git-send-email-johan.rudholm@stericsson.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQl6In1iBjtCUExydmmdQWqF5IVqzvyceN2cas0A1FOiAKqzG94fz/d7yI7SQyBemgjwN5rO Do not scan boot partitions for "soft" partitions, since the boot partitions are supposed to contain boot code. Silences the following message during boot: mmcblkXbootY: unknown partition table Signed-off-by: Johan Rudholm --- drivers/mmc/card/block.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 7e3f453..efdea68 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -1515,6 +1515,8 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, md->disk->queue = md->queue.queue; md->disk->driverfs_dev = parent; set_disk_ro(md->disk, md->read_only || default_ro); + if (area_type & MMC_BLK_DATA_AREA_BOOT) + md->disk->flags = GENHD_FL_NO_PART_SCAN; /* * As discussed on lkml, GENHD_FL_REMOVABLE should: