From patchwork Thu Jun 8 00:55:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 690525 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp74533wru; Wed, 7 Jun 2023 17:56:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GR4yWzoZ9YNAmN5dAlLvTsKCFvXshMqKuwJ8Nz+wsav+oXot16FXG345OMn7Yxh7xBjUt X-Received: by 2002:a05:622a:54c:b0:3f3:96a3:c763 with SMTP id m12-20020a05622a054c00b003f396a3c763mr6409230qtx.20.1686185800767; Wed, 07 Jun 2023 17:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686185800; cv=none; d=google.com; s=arc-20160816; b=NhrUh/CliSIaKpOpYHEcrBFqbhVGSkLQy2FNBCu2MSbInarhe5R76uFSVMIJlQ6d2C TWZgcmhWy5cpUO6FZna/jH5hLWK3OYd/HoE58Y1VyDJQ+E07Tvw6/TZoSXj4OqnNWF48 hu2Z2k4qrSnr8vqXSyLwmsbXrzupnRKSYgSY3X7btil8bgXVywhU0I3KArknNtfNEIxZ GiOZqYCD1F3HcJCcxH23szu/bmQBgirOV2SGJ+wwbRPlsxlK4oSk1qqC4aWEGgGvkkqU sYXw5n2sLE/QvozobG8kHbqH1/rm9/gAmA9VAsDd1vZVKgT6DjT3zzWEIUNJ7mT5treT Ickw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=94rhTXoW6wgRIEtGcg8zQPtCtNZ6nHlk/KQ+rR5JA3M=; b=Zx1mEpDGdGY6P3tqRUbJ7rJeM669kN0Z+SLTqBfTbrCHxVQPDEKc0meojgFlBPvvGf F5AnTiJ++MOQPDDv7xm3HwZuegQbKWGTow/RJS9SURx1TrUKhf5z0GsH6l0pOZESOU20 hRF26EZPkeS1OgFK+CTEsa9HfDI0uwlh2hkAJ0iO8Sn2mnveY/GT3PalyOPcgHc8IUpH n7tBvAnEktaVcfnpGfkjh+fdU66OpgInxoKni91/WtxWdsmolVEW7gI6t9zzJ9g3vOcX 21IbmCi2U/e2JPDRoE5CmZbnNSfjNWgLJvkW4BJEuFHrE0mu+P/Kv/dPB6Jx/vvE/81o TMBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KxMjo3cq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id jx8-20020a170903138800b001ac9a3ebb38si179633plb.360.2023.06.07.17.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 17:56:40 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KxMjo3cq; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE7CC84988; Thu, 8 Jun 2023 02:56:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="KxMjo3cq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6772C857D2; Thu, 8 Jun 2023 02:56: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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (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 4A9AB847D7 for ; Thu, 8 Jun 2023 02:56:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-65c6881df05so825286b3a.1 for ; Wed, 07 Jun 2023 17:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686185785; x=1688777785; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=94rhTXoW6wgRIEtGcg8zQPtCtNZ6nHlk/KQ+rR5JA3M=; b=KxMjo3cqYtF4lopfulcIn/QVnXKTU49ZUgfaVvkALEuDxT9pXDGzFu1sY1SpZGPpPN caEJd8S7NhCkL80YtlHDY6FJXioKpA++obYE5nCVk2e4jEc4HTpib+c8j2P7qs4SGrJV qSRckKU35C8lF84iH4QYbnhZGqhgzef43oxKfjrNQSURpbNXGO2nj2KuHKKXI5eAnUyJ 6yEPeWifQXauuPIU8UPWrmk8gyPmYy58ktZcMQrFCXGyMGTFEdEoXLEgp4AMXD9qwZcs 4waHlFvCA3ib3MyDr8ABPtFbngxrWt86x/sFn/rQd4lOakBy9aaojmiVBkvi9jxwGrOB gZ0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686185785; x=1688777785; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=94rhTXoW6wgRIEtGcg8zQPtCtNZ6nHlk/KQ+rR5JA3M=; b=DRtYt5Nok8nbYTJXsZtiqkF1KtoKzAGi1WvONb4nOGA6xHkWhY/pYZLABp2QDNLikN xJtcFs/vEr+e+H6ny9KaiSsAVLGsXZ2JyaDNkREeFkwrYj03HXURip3nu9JqwNqZ25cY uWgcGnhaDyHbz8zIyjouV1ziLp4p/AcljzkEQr+4uGfYE4PwHbFJbv7/ndr4GNaPBYfX bkKxbOHg28DsG/m8RDOV0KwILjL9j9Jynn6g0YO2lbMf8RTmb8wxbV2e0yU+dcxbl0o2 fgg5pRVT6c8JDEVUNS8DautDRu4FrhZoqpkTAjbFjG6r5w4K6ycI2scYUTPoffPwqkIo wd8g== X-Gm-Message-State: AC+VfDwey/MSeyWMkDSNJZrLZ/+zs4xduhlVifP1p9oK3BoTubNdrm+c oRwzzJnyF8PDJsyCDKKiuN0VMA== X-Received: by 2002:a05:6a00:3a22:b0:65c:8d9d:7bbe with SMTP id fj34-20020a056a003a2200b0065c8d9d7bbemr7416190pfb.0.1686185785524; Wed, 07 Jun 2023 17:56:25 -0700 (PDT) Received: from laputa.. ([2400:4050:c3e1:100:f8af:10ca:4db8:ab4a]) by smtp.gmail.com with ESMTPSA id t8-20020aa79388000000b0065cfd5cbef3sm5061417pfe.15.2023.06.07.17.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 17:56:24 -0700 (PDT) From: AKASHI Takahiro To: sjg@chromium.org Cc: etienne.carriere@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH] test: dm: restore /firmware nodes after testing Date: Thu, 8 Jun 2023 09:55:59 +0900 Message-ID: <20230608005559.39509-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.41.0 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 dm_test_restore() is called after dm unit test is run. But this function does not scan any nodes under /firmware since it calls dm_scan_fdt(). This causes an issue. For instance, scmi_sandbox_agent device will disappear after running 'ut dm scmi_sandbox_agent'. So call dm_extended_scan() instead. This change will be coherent with what dm_scan() and test_pre_run() does. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass --- test/test-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-main.c b/test/test-main.c index b3c30d929376..2a3b2ba364a8 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -272,7 +272,7 @@ static int dm_test_restore(struct device_node *of_root) return ret; dm_scan_plat(false); if (!CONFIG_IS_ENABLED(OF_PLATDATA)) - dm_scan_fdt(false); + dm_extended_scan(false); return 0; }