From patchwork Thu Sep 21 20:01:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 817154 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="JbS6puVh"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xypKY5p9dz9s2G for ; Fri, 22 Sep 2017 06:35:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 3B8E2C21F79; Thu, 21 Sep 2017 20:01:09 +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 2B5A5C21C4E; Thu, 21 Sep 2017 20:01:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 08917C21C4E; Thu, 21 Sep 2017 20:01:04 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.denx.de (Postfix) with ESMTPS id 69DA1C21C45 for ; Thu, 21 Sep 2017 20:01:04 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id b127so6806573lfe.9 for ; Thu, 21 Sep 2017 13:01: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; bh=Rx10UZGyPxVcqbUtVUNJ5hJd8ouN5e+ZxIMqZipnins=; b=JbS6puVh5bg08QjhHkS+ZVzG8oQMxe/WAotAG//HMCO8pZDCTUuQo4yMQVpOUhvS3I s1tHwvrokid7sHUgqcfT6Tgl9pEVicUEXbNidLAZi/v7STADLTFSQ/eqx+B9kB2kMIqX H4hR6L6h3FJ6CLtbU1WDu54w096Bq7pxZG/PU= 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; bh=Rx10UZGyPxVcqbUtVUNJ5hJd8ouN5e+ZxIMqZipnins=; b=V5GuG/1wsZ/tZTHPWWw+UKOgVgoH7gGYfRpRUM3dNSPRm4kAEg6LWIT9aosiJEG2Bb 1zDfI6ro4YlrC5RjtBRYaMMcJsENVwM3x2nWKlkUgvKAT6+PmLif3l/xj/mF1+A/OTmf I4HrJYU4VH2cMoVSo0C80Ld2wY2y6cP0pXk1DIG5QBTWzJ5xcS+Q4uBpOzGtfPfXCn7r 1XadojjNLdWcGHwq1dx1V6BV1BMrDZVEYk2nAMQFLnx64UFsONsHXakqlsso6ILdMvaL xNDt43mXbq+WMAFOskieh9WViWU6cjG7+exMYbjNqo/00ERpkiJXxz/S5T5QvwV4TmcW z7ZA== X-Gm-Message-State: AHPjjUjt8yucoDBOUCVUur3SWEaxS0tYkhZdElWtlXDNN7KwmRuZJ4HD oWPJ3VvATq7l5HHAyNALfJz29+C9s6Y= X-Google-Smtp-Source: AOwi7QBJXB1LwgJuTeJAXkxfIePYL3YtjdmoO5dl3a8z6KAwzPdr9pWE9PTTT61AjhPqZ9fDirwr6g== X-Received: by 10.46.16.202 with SMTP id 71mr1492921ljq.190.1506024063384; Thu, 21 Sep 2017 13:01:03 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id 26sm353277lfx.50.2017.09.21.13.01.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Sep 2017 13:01:01 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 21 Sep 2017 23:01:00 +0300 Message-Id: <20170921200100.27886-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.14.1 Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH 1/1] omap: Omit fastboot.userdata_size related errors 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 using regular $partitions variable (for Linux boot), we can see some unwanted messages: > ERROR: cannot find partition: 'userdata' > at arch/arm/mach-omap2/utils.c:96/omap_mmc_get_part_size() > Warning: fastboot.userdata_size: unable to calc Let's remove those, as missing 'userdata' partition is correct behavior for Linux partition, and we don't want to see some Android-related messages in this case. Signed-off-by: Sam Protsenko --- arch/arm/mach-omap2/utils.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c index 0b0bf1837c..3892853c7e 100644 --- a/arch/arm/mach-omap2/utils.c +++ b/arch/arm/mach-omap2/utils.c @@ -92,10 +92,8 @@ static u32 omap_mmc_get_part_size(const char *part) } res = part_get_info_by_name(dev_desc, part, &info); - if (res < 0) { - error("cannot find partition: '%s'\n", part); + if (res < 0) return 0; - } /* Calculate size in bytes */ sz = (info.size * (u64)info.blksz); @@ -111,13 +109,10 @@ static void omap_set_fastboot_userdata_size(void) u32 sz_kb; sz_kb = omap_mmc_get_part_size("userdata"); - if (sz_kb == 0) { - buf[0] = '\0'; - printf("Warning: fastboot.userdata_size: unable to calc\n"); - } else { - sprintf(buf, "%u", sz_kb); - } + if (sz_kb == 0) + return; /* probably it's not Android partition table */ + sprintf(buf, "%u", sz_kb); env_set("fastboot.userdata_size", buf); } #else