From patchwork Wed Sep 3 09:02:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 36541 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ECF6120792 for ; Wed, 3 Sep 2014 09:02:29 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id rl12sf43123886iec.1 for ; Wed, 03 Sep 2014 02:02:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=FLeh+sMtcaqcEHgHsZ8eemH4+BNMspQazKIYGURGd+c=; b=fKElY49S6cQ/URFsTHXHJzhpyHH+KkOfG6x4jyAmmTlGTotYzH/Yi2K7wKWgjc42w0 UbgThazVnPA4JH0eTdZ/vmFxsgXH7bj8RESaWu18nr+Ywu7oNtUwu2FGlChFKrRJxdMX PEMX0Bp1ajM+d1rfxiMlRNsG+mo0AKOox7VsF0G4YeQmP2yWEyfRGXE14bpqnylHa+iT fd/LW03zwFnmUl/f6t0CM2jLgMQvBOi3E4pO1ReNZYxhHyu/5zwZRlJW0KBtMuolgR8X QBDgKKiXjAY0uVVFp9+XPYLNR705gkFxyx7ZOC/IEjcn5CcfsHnJOPYJxqkdwAK3E7Ma x6Gg== X-Gm-Message-State: ALoCoQmf5PbM5OKTgi4kqXET3JcQuSPfWhXX2A2LTGnFaS09+PcRjzEyW3aRDTayy7SJWUhka83K X-Received: by 10.182.129.37 with SMTP id nt5mr22048499obb.8.1409734949378; Wed, 03 Sep 2014 02:02:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.48 with SMTP id m45ls2709278qgd.18.gmail; Wed, 03 Sep 2014 02:02:29 -0700 (PDT) X-Received: by 10.220.105.201 with SMTP id u9mr34340916vco.11.1409734949268; Wed, 03 Sep 2014 02:02:29 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id f2si585224vdf.74.2014.09.03.02.02.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 02:02:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id im17so8641205vcb.27 for ; Wed, 03 Sep 2014 02:02:29 -0700 (PDT) X-Received: by 10.52.170.211 with SMTP id ao19mr28601000vdc.23.1409734949189; Wed, 03 Sep 2014 02:02:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp648794vcb; Wed, 3 Sep 2014 02:02:28 -0700 (PDT) X-Received: by 10.180.98.196 with SMTP id ek4mr33948813wib.13.1409734948272; Wed, 03 Sep 2014 02:02:28 -0700 (PDT) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by mx.google.com with ESMTPS id w6si9365579wjf.90.2014.09.03.02.02.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 02:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.169 as permitted sender) client-ip=209.85.212.169; Received: by mail-wi0-f169.google.com with SMTP id n3so5483170wiv.4 for ; Wed, 03 Sep 2014 02:02:27 -0700 (PDT) X-Received: by 10.180.88.167 with SMTP id bh7mr34576188wib.12.1409734947836; Wed, 03 Sep 2014 02:02:27 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id lp1sm3304423wic.21.2014.09.03.02.02.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 02:02:27 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Ulf Hansson Subject: [PATCH] mmc: card: Prevent partition scan for the eMMC boot areas Date: Wed, 3 Sep 2014 11:02:23 +0200 Message-Id: <1409734943-21376-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , It seems very unlikely that eMMC devices would hold a standard partitiontable in one of it's boot areas. Therefore, let's prevent them from being scanned. Signed-off-by: Ulf Hansson --- drivers/mmc/card/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index ede41f0..b05c67f 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -2131,7 +2131,7 @@ 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_RPMB) + if (area_type & (MMC_BLK_DATA_AREA_RPMB | MMC_BLK_DATA_AREA_BOOT)) md->disk->flags |= GENHD_FL_NO_PART_SCAN; /*