From patchwork Thu Sep 21 22:51:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 113935 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2567631qgf; Thu, 21 Sep 2017 15:52:57 -0700 (PDT) X-Received: by 10.80.152.33 with SMTP id g30mr2676175edb.49.1506034377627; Thu, 21 Sep 2017 15:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506034377; cv=none; d=google.com; s=arc-20160816; b=ne1Y7lOXlNHIKkG1Z4Vuq1ecvVgQjiswS04hEsU4Um7ol81FMuvWcLluW1CPNzIL7v PvE3D5YoGwiNCmWTXTY5255QDY/EdEm+GeF7oxYeFr9WoHzQddwdo4Jhdumvb+x1CcW2 UvXUnFmYMQYS5xak65rirTnmhoRcgOFezxDyYYuQfK+msTvfp78OcXYdlu5VDgTkFnpO rSyRCk6M70xB2i4lRDMwd1+jN/wGrt9NJsxDLllFFUvLBYuksANT/9kVI4W+Q9cltpvT 8Smfag8yv82xuhYa62H9ljsxP4zxBQvNPjxV4hVgZs6b/iEvUqyWQ5yknqsZxs+mx6rm 7IBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=KPucdlt6Q2rra5K5833yPOpO7IjMwuRZTLfVOof+M78=; b=kQy47z1ROS92SVhcyTT/VK/3klCsIaBMxIifqjpZ2qQWKLKvaBQZqeN3fovNyF7MRR tNpEVHetE5rxdHZd472B5DJmbC6HN41lRiqPloz44GHBhQt2057icp6pstrUnxn5nIgN Z9ooYcbapYB4fAtjTve22R7ECvAkV9hEKhfYBkpfsqN8PiNUXNQ6r4NPqo1yIkIrI/6R RInhcDoyU/DAsTsXIKCyDpg+4DA/ByNBvmwDfcBiH0wLAHumdbVivBHjM+HIE4DpNc2L VqEJ1yOKrO9UoMTX/5dV36hJpoX2K9k1N5jkbC/Ys6gHUliSxogBi4IeU28BsOSxyDG2 yq8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=feoQkxPr; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h9si2408134edk.169.2017.09.21.15.52.57; Thu, 21 Sep 2017 15:52:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=feoQkxPr; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 43EF9C21F4A; Thu, 21 Sep 2017 22:52:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C8A07C21E3C; Thu, 21 Sep 2017 22:52:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 68C2CC21C29; Thu, 21 Sep 2017 22:52:07 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.denx.de (Postfix) with ESMTPS id 2BA2BC21C58 for ; Thu, 21 Sep 2017 22:52:04 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id c80so7148897lfh.0 for ; Thu, 21 Sep 2017 15:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c0dxt+TYZXtDKJpYD7iwFkMs1a6eCNy1dNu9iNHdtyc=; b=feoQkxPr+TiqU/Z0+OfBBw8icwUOQalQzKQJfYFXHhoSKm0K3rCyZMPS810CZt/+fT K4aBIQuucwZJ3NPZsxPfDXbejw045OgnGQnKbZnlrVjQC0sPwl3La8qdNvlvqqRo0zyJ O4EniFGdOAQ89XWLN3PSMGyPRzRS+IpED1zgA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c0dxt+TYZXtDKJpYD7iwFkMs1a6eCNy1dNu9iNHdtyc=; b=tmlzzvMCr/CUO8FjvW7Xr7k4GA+oL+tENuev+adjG+XGZ4JUZScJRbDiz7vM2Ux20X EQboPUCmeUbsndym9ek6DRYGb0QpUbChzgDFkMyTO2YCNCllYQG81lTxxcuXJoG0phMu ADSySZtN9EmTziQv9yEMZ1wZWyaOj+wRWHolOzUQ30gGtHeLDCPj44zTIRL6+ZRQrZpE nHCYwIfCk30qMH5IyYNNmZSM8PZ8J2tKIGMl/uf0aZS72THmPxP6SArlo+KBZWHr2p/9 knJMwBIImWq3fLei3VwzTSozf5sncyxeOiAsgSG7xoSxxel4BWfgsI2eGW5o3aCW93m5 K3uQ== X-Gm-Message-State: AHPjjUivk7HWVXTZov3/9shnH1ngGFmkSL5w9DF9JouDpW/shu7MWVF4 s8Oz8uWj0mmbx4THV1wjNLWi6MiR9Yc= X-Google-Smtp-Source: AOwi7QDK7b24QyRoDH5aMJw2ha+lLX88fTiAkqXgAY5QitpYwZRh6vaYLkxkXBKIfyt9M0YhAHRKVQ== X-Received: by 10.25.87.138 with SMTP id l132mr1221419lfb.26.1506034323336; Thu, 21 Sep 2017 15:52:03 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id i2sm514214ljb.20.2017.09.21.15.52.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2017 15:52:02 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Fri, 22 Sep 2017 01:51:59 +0300 Message-Id: <20170921225159.2546-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170921225159.2546-1-semen.protsenko@linaro.org> References: <20170921225159.2546-1-semen.protsenko@linaro.org> Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH 2/2] omap: Fix warning when looking for userdata part X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When eMMC was formattaed for Linux partition table, "userdata" partition is missing. In this case, part_get_info_by_name() iterates over all registered drivers (which are PART_TYPE_EFI, PART_TYPE_DOS and PART_TYPE_ISO). And when it comes to PART_TYPE_ISO (which has empty partition table), we can see next warning in U-Boot output: ** First descriptor is NOT a primary desc on 1:1 ** This patch switches to part_get_info_by_name_type() API in order to check only EFI partitions for "userdata" partitions. This eliminates mentioned warning. Signed-off-by: Sam Protsenko Reviewed-by: Simon Glass --- arch/arm/mach-omap2/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c index 3892853c7e..e36dd8398f 100644 --- a/arch/arm/mach-omap2/utils.c +++ b/arch/arm/mach-omap2/utils.c @@ -91,7 +91,8 @@ static u32 omap_mmc_get_part_size(const char *part) return 0; } - res = part_get_info_by_name(dev_desc, part, &info); + /* Check only for EFI (GPT) partition table */ + res = part_get_info_by_name_type(dev_desc, part, &info, PART_TYPE_EFI); if (res < 0) return 0;