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: 817203 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="feoQkxPr"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xysMH40Bwz9sxR for ; Fri, 22 Sep 2017 08:52:43 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 3EE09C21D8C; Thu, 21 Sep 2017 22:52:21 +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;