From patchwork Thu Aug 17 17:41:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1822493 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=QuUhL4qb; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RRXPL2LqLz22PN for ; Fri, 18 Aug 2023 03:41:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4BF8986BA3; Thu, 17 Aug 2023 19:41:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="QuUhL4qb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA2ED86B96; Thu, 17 Aug 2023 19:41:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E501486B96 for ; Thu, 17 Aug 2023 19:41:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6bcf2fd5d69so120778a34.1 for ; Thu, 17 Aug 2023 10:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1692294086; x=1692898886; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=i7DjVnXA8umFlQujAjNwNTxgLjYcmWgr5UQUrwGCaR0=; b=QuUhL4qbgBCXUpwjTQVKTJlZkHU6PN5v7DlBFCJDLCOJ5+Vdy7scUlgwrlOaQQgBNX MOKRQbck/YU7pq4BZLJNUYeoyLkMEe+aoBOl3Ga9HW56ACEQxGRhmlZZ7VkYuleyk1TH NUUKhnSapvijrQoQ4j7/8eMYC9YzGf7gI3L6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692294086; x=1692898886; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=i7DjVnXA8umFlQujAjNwNTxgLjYcmWgr5UQUrwGCaR0=; b=ZKxsQ+0yS4qTBnyV82YsyxYCSM676JffGZcXX626qLbXVYecLtlF7Bdd2OAiQ9ubYi ECzSfJdG8NuWOf50BwuFKt+KgLYx3cUqDUuyZEsnjA4w7DRaRIuLv56ftEki3S/ynavI REkmTBz/TgTcMYJlozGj97AY6MGNqSoJRperMn3R95TTIFmvdfYre6vgLV+a6E+fp2F6 Hz7nTuIERbeD0WmX1x1Xhbsp2hG9I0Eet1imOia9xW9hMWLgwTfP/QQba+MhqznGwOHy ienBR91vDEfTKuKv975DuHHvUILMd59BMA0ZFT7976JmZWg/3o5EO+aH06aqCKajSTaO cu7g== X-Gm-Message-State: AOJu0Ywu8WqfQOa9NW/ma0b5WHF7GoL+7KmnyeRue+GLHqvKo0Ht7t3b mbRuTFpNfYOjTrfzqEjunIClHLXJ7I9K6r/6oNC7vA== X-Google-Smtp-Source: AGHT+IGbyOf5uuRVWa9qLBYgL8vc0yQw521QQZe1S1+Tj+ZJzJH4L/lgJcBUokSEJqSGAzlovlXQbQ== X-Received: by 2002:a05:6358:8aa:b0:13a:a85b:a4ce with SMTP id m42-20020a05635808aa00b0013aa85ba4cemr167120rwj.16.1692294086391; Thu, 17 Aug 2023 10:41:26 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-8f9f-218d-98ab-058b.res6.spectrum.com. [2603:6081:7b00:6400:8f9f:218d:98ab:58b]) by smtp.gmail.com with ESMTPSA id 78-20020a250d51000000b00d1b86efc0ffsm4099005ybn.6.2023.08.17.10.41.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 10:41:26 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 1/4] usb: gadget: g_dnl.c: Drop unused includes Date: Thu, 17 Aug 2023 13:41:22 -0400 Message-Id: <20230817174125.369849-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean We don't need nor in this file, drop them. Signed-off-by: Tom Rini --- drivers/usb/gadget/g_dnl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index afb7b74f3057..8423da377ca9 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -16,8 +16,6 @@ #include #include -#include -#include #include From patchwork Thu Aug 17 17:41:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1822494 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=TL9SNQZg; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RRXPN1kdBz22PN for ; Fri, 18 Aug 2023 03:41:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E3D086B9B; Thu, 17 Aug 2023 19:41:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="TL9SNQZg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 913FE86BAA; Thu, 17 Aug 2023 19:41:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D07FB86B9B for ; Thu, 17 Aug 2023 19:41:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-d72cf9156easo114087276.0 for ; Thu, 17 Aug 2023 10:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1692294087; x=1692898887; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3U9+rF1jKShEFBy3a6mi7BV7pmumNdkfVbrO549W9NU=; b=TL9SNQZguOxDgWCPM9oCOSnuZ30dPqSn2NnxVI+VzAgv7BPEFwSqrP2UTYHSduCEM9 XdAb+lsNgvPjYhtfOR4VaMJbvQFk196b+2mOFe0gN3r5914L5HyxhKlZJZzhvczKxpwr /jQR3jBq0BrRrsHzwKONnodf37xV4HG6eBeYY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692294087; x=1692898887; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3U9+rF1jKShEFBy3a6mi7BV7pmumNdkfVbrO549W9NU=; b=hcxocD8J2kuxgDZ3SS0gGNLxST9W071rsh1dqMrTsqlupHz8cYo9/b4oLJ0NgrWiTn uezUjYMp6x/biZVkJYOCzh+n+G6Sm+oPvR4QgakhyqG6TLtowCANfuYbufBDwPzwvJ3R hSnz8cw1b7jSAMuQBjnA2ymp5ROS4+9mU95NpytMjw4rOBRC43sYAcbt9pPVaFMlgjzv jVPYzbMU95TVarN1XEvsKRii9Wq89F5p/dRbVtDingFylfw6L1NjEPjPJ4dGVAGc/XOV jF2Jl9Jgekx+qSNaI2e8iFZ314eByqDUvtktBUnuq+mFGBtPed8gc/zvhuAiBIynOIv0 Uc7g== X-Gm-Message-State: AOJu0YxzWM8YRsDn/oRT/wAvHeGJGONzmkjoKZUQzjAVGAZAq5bZzFSO FDR7BEPo+UyZIbK20LdAiFGeVyegREWFa/Gtw1wjfA== X-Google-Smtp-Source: AGHT+IHQ/wDhIPOGX6JcfA9RCPKVoQqtPVWK8PypWCivMQSDim+AUqWzCw/g4NLa/XcZBxGQLd3tfw== X-Received: by 2002:a25:d08c:0:b0:d55:cf49:9144 with SMTP id h134-20020a25d08c000000b00d55cf499144mr313410ybg.15.1692294087432; Thu, 17 Aug 2023 10:41:27 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-8f9f-218d-98ab-058b.res6.spectrum.com. [2603:6081:7b00:6400:8f9f:218d:98ab:58b]) by smtp.gmail.com with ESMTPSA id 78-20020a250d51000000b00d1b86efc0ffsm4099005ybn.6.2023.08.17.10.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 10:41:27 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Masami Hiramatsu , Jassi Brar , Sughosh Ganu , Ilias Apalodimas , Heinrich Schuchardt Subject: [PATCH 2/4] fwu-mdata: Make FWU_MDATA_GPT_BLK depend on DFU Date: Thu, 17 Aug 2023 13:41:23 -0400 Message-Id: <20230817174125.369849-2-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230817174125.369849-1-trini@konsulko.com> References: <20230817174125.369849-1-trini@konsulko.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The implementation of this option in lib/fwu_updates/fwu_gpt.c is wholly dependent on DFU, so make that a requirement here. Signed-off-by: Tom Rini --- I'm honestly not sure how to best proceed here as drivers/fwu-mdata/gpt_blk.c doesn't need DFU, but both files are controlled by this single symbol. Cc: Masami Hiramatsu Cc: Jassi Brar Cc: Sughosh Ganu Cc: Ilias Apalodimas Cc: Heinrich Schuchardt --- drivers/fwu-mdata/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fwu-mdata/Kconfig b/drivers/fwu-mdata/Kconfig index 42736a5e43b0..0bd5fef4abfa 100644 --- a/drivers/fwu-mdata/Kconfig +++ b/drivers/fwu-mdata/Kconfig @@ -15,7 +15,7 @@ config FWU_MDATA_GPT_BLK bool "FWU Metadata access for GPT partitioned Block devices" select PARTITION_TYPE_GUID select PARTITION_UUIDS - depends on FWU_MDATA && BLK && EFI_PARTITION + depends on FWU_MDATA && BLK && EFI_PARTITION && DFU help Enable support for accessing FWU Metadata on GPT partitioned block devices. From patchwork Thu Aug 17 17:41:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1822495 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=Euf/csTf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RRXPb1rw2z22PN for ; Fri, 18 Aug 2023 03:41:55 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D355986BB2; Thu, 17 Aug 2023 19:41:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="Euf/csTf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8ED9786BAA; Thu, 17 Aug 2023 19:41:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AA3DD86B9E for ; Thu, 17 Aug 2023 19:41:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-d3d729a08e4so118188276.3 for ; Thu, 17 Aug 2023 10:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1692294088; x=1692898888; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5SvcEld4rkbpuE/vs+27PFDMS5rK13f0HtwTUqQkGx0=; b=Euf/csTfbEks3EQAPirve+2B8Bgog549Hq2uARmuRin2lUNRfn74jSaesi+XCdV12b NKKVTIP2WQXNPiLO3Y3VfoEEyt+bGhvuf+PHDZhDLNTDITzsTj98nCxmyE3/uOi9RANh YY8v4IwL9xXOzlAj4SK+BqJQYKwvaiCCw/SQ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692294088; x=1692898888; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5SvcEld4rkbpuE/vs+27PFDMS5rK13f0HtwTUqQkGx0=; b=guuqMhiTrG1U6a3cim7dUNBKAn2cDgQNQpbIGopN5xst2k0Dv7PIjCqPXkZsiXSJfD fuFB4479Yaw0q9JG5VCbIaruHKzVTq7t2KaZKSMXsAuHGG321BeAqIu2fy4AOPqoiNhb lmE5BpMPv8t4Vg/PgJm5HrgN+2GN0lBtT408z//ZbD92MRS3/Q8r5UygBIHbBnmN1CBt so0e+K5BVf0u8Hp3PazcfYn8EILiRH5MoAybJ2cTOezAob7msBmeWTQFyA4PtnvDEGDO 9KrK1BenjwH9WINIfUCwz9V/jTkWhvcS3zjo3a0KduF2UVw4kQoTTi3N7W2IhBX/ETzh GhwA== X-Gm-Message-State: AOJu0Yyyom3jU09HDwr+g9nSatTkg5yc6210chMJE+ujRPTyhCB/i5IO /leiM7t5dVipzaE+4M8c3VPZsuutTL2+wUVVeRfLeA== X-Google-Smtp-Source: AGHT+IGgb32SpxcF9xt3hDeNe7LfxY2fOKWcMG/6u9xUF9NxCs5kZPEIaMl4n2I1hBHJYVKa7naNaQ== X-Received: by 2002:a25:37d5:0:b0:d11:97d5:e8a8 with SMTP id e204-20020a2537d5000000b00d1197d5e8a8mr199663yba.49.1692294088332; Thu, 17 Aug 2023 10:41:28 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-8f9f-218d-98ab-058b.res6.spectrum.com. [2603:6081:7b00:6400:8f9f:218d:98ab:58b]) by smtp.gmail.com with ESMTPSA id 78-20020a250d51000000b00d1b86efc0ffsm4099005ybn.6.2023.08.17.10.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 10:41:27 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Michal Simek Subject: [PATCH 3/4] xilinx: zynqmp: Move dfu.h include to be with the code Date: Thu, 17 Aug 2023 13:41:24 -0400 Message-Id: <20230817174125.369849-3-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230817174125.369849-1-trini@konsulko.com> References: <20230817174125.369849-1-trini@konsulko.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Move where we include to be guarded by a DFU-related Kconfig option. Signed-off-by: Tom Rini Reviewed-by: Michal Simek --- This becomes an issue with https://patchwork.ozlabs.org/project/uboot/patch/20220620111354.448512-1-jh80.chung@samsung.com/ applied as now we can't include without CONFIG_DFU_NAME_MAX_SIZE set (or we have a dummy value for ifndef). Another option would be to restructure the code to move the dfu code to another file, but I don't know if that will make the rest of the real use cases here easier or harder. Cc: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 309f24a5f43d..367c3c65a9dc 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -606,6 +605,7 @@ enum env_location env_get_location(enum env_operation op, int prio) } #if defined(CONFIG_SET_DFU_ALT_INFO) +#include #define DFU_ALT_BUF_LEN SZ_1K From patchwork Thu Aug 17 17:41:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1822496 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=nEMmUKvf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RRXPr0fLhz22PN for ; Fri, 18 Aug 2023 03:42:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2462886B9C; Thu, 17 Aug 2023 19:41:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="nEMmUKvf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A18D486BAC; Thu, 17 Aug 2023 19:41:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 74C7A86BA2 for ; Thu, 17 Aug 2023 19:41:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-d733844772eso117135276.3 for ; Thu, 17 Aug 2023 10:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1692294089; x=1692898889; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=DHKboCp3v5H58JmWNvgJfoaa/M57xPqef5954XnYW6g=; b=nEMmUKvfEHwAM8H9EWS/JpZ8rqmCxv2s46aLTXWhqygpDDVTVgLP+PKc9N9dt8wvgd HBS45ikMg4w6aYtdX2ciNLO6XjTM1XMsFMx8UYiFhc+mDA87YjOt2FscA5ItOezPXgPt +0zWAuKAA229fJ2RKXdN895lZIWAhXoqCLjIw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692294089; x=1692898889; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DHKboCp3v5H58JmWNvgJfoaa/M57xPqef5954XnYW6g=; b=IZAKIPVc95DhKg7XPo9lU8LV98fJU7jtwoN16H9fgTvQtdx0bDny2GnG6hECJN7ArR 2iXfWhfKpQYgH2Bu4qWRCl2lQPo9jVh7Ut5N/SlsM94BwPa8UFvsUpB/3y00bCjjARap VaKxj5W4iSbqF4BkhKPSBs6I35DRxxwZL1w8Or0m3KZ7JYFh0/0B0uT9MnRe8MfE9YMh RYhupiXBFoFqaGUfVh3mapHmir2CCPKFd8V5f03izDuOafWEo09vsptbrCvKB3UNAf6p 1HOp7EhKQqhcuCBQEP5hJJLIl0InY3rpvuzFvSUH9v3gsxqEyqs1JoCPoe3wUUQubSgU bXQg== X-Gm-Message-State: AOJu0YxHd+C1iFOssc79F/JbC6IwzmoNQIXndH/kXDAZk674nDRDzA2U 3CEKWXWgf7yOGWKbY+gOqZS+QxDZAPb13hwrEEkqxQ== X-Google-Smtp-Source: AGHT+IHNFGHVe8KwTfzCeNHwuXt/zJZWM3VKtQaMgPyQu9dOcMoOYthgkq6+Ymw5zQ/sjPi1AA9thQ== X-Received: by 2002:a25:d38c:0:b0:d0c:3be2:b626 with SMTP id e134-20020a25d38c000000b00d0c3be2b626mr204771ybf.30.1692294089131; Thu, 17 Aug 2023 10:41:29 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-8f9f-218d-98ab-058b.res6.spectrum.com. [2603:6081:7b00:6400:8f9f:218d:98ab:58b]) by smtp.gmail.com with ESMTPSA id 78-20020a250d51000000b00d1b86efc0ffsm4099005ybn.6.2023.08.17.10.41.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 10:41:28 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 4/4] ti: mach-k3: Move dfu.h include to be with the code Date: Thu, 17 Aug 2023 13:41:25 -0400 Message-Id: <20230817174125.369849-4-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230817174125.369849-1-trini@konsulko.com> References: <20230817174125.369849-1-trini@konsulko.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Move where we include to be guarded by a DFU-related Kconfig option. Signed-off-by: Tom Rini --- This becomes an issue with https://patchwork.ozlabs.org/project/uboot/patch/20220620111354.448512-1-jh80.chung@samsung.com/ applied as now we can't include without CONFIG_DFU_NAME_MAX_SIZE set (or we have a dummy value for ifndef). --- arch/arm/mach-k3/sysfw-loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c index 9be2d9eaea26..a8edc4a92d11 100644 --- a/arch/arm/mach-k3/sysfw-loader.c +++ b/arch/arm/mach-k3/sysfw-loader.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -297,6 +296,8 @@ static void k3_sysfw_configure_using_fit(void *fit, } #if CONFIG_IS_ENABLED(DFU) +#include + static int k3_sysfw_dfu_download(void *addr) { char dfu_str[50];