From patchwork Wed Oct 25 05:14:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 737799 Delivered-To: patch@linaro.org Received: by 2002:adf:f842:0:b0:32d:baff:b0ca with SMTP id d2csp110556wrq; Tue, 24 Oct 2023 22:15:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhyLVG7MLhDe7Im/HDnoS+TRKPmGwSb5EY+7YHNvZlnqSTV60qqy85bYPpqyrsPJKlA6YJ X-Received: by 2002:adf:fdd1:0:b0:32d:dd04:bb81 with SMTP id i17-20020adffdd1000000b0032ddd04bb81mr15876308wrs.17.1698210908551; Tue, 24 Oct 2023 22:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698210908; cv=none; d=google.com; s=arc-20160816; b=fkcKQWlJxgeeWc7+grCEA1tECcRAB/OtFFaY5SQ7Wtj0tHPdisVKvJ+AxWZzaf5AkO t/UL8mLr94jR4WVkqg8Sf1LYoNfIwncdh/m+osLzdUVj04FOk30oGuGZfsXNt2kVVuyH 7iysThnIZ0DT6hA8upHPOLfcuITUulL+jiL3kCxMwzQa30WkGPMg1dgUwSvvx31YFJEy 6gxtdHfSkFQNkHA6/8l8J2kc6qXAvm96BfUJWdv3Fv78tBDMjI+Jd+1b9rOoDnefFPKU RII0sL6zPiL51OFpr/26wcUO/xFqMG6ErtMALj4YLhpwzgetdmbqpJP+IEp26QJs7cJo dMEQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SUMAbMzHoHPTo3By3XoRLcFc4qPp57JA/75ABBehsIw=; fh=FEXntNvfp44QdEE6WJIcPMgg3VtrFk//sTXqtO2Yfu8=; b=kEf1Wb8qHOyn79lWjS2f35sdrbmCONVujjlqLhjrly1sq2QzN+j5doKAyDzGp3zqZh dt0UquPr19TXxWvPy9K9VWe0kFMXlm+MxTR6b6vhi/5AlLMWqD8CfZb+D8RwIfLsBYdF t5kFd+Vh+fU4hH/Jy8z42GyNBCRc+s7ADoTSDEtCuWo/6pAWY7OrWf3TBsKWEnGnc8bT dwQKVAI8Hofmf2WWU+usjfpl00T0UKsaXs36Sabrds830agiv9oxMkCf4B1xHbWxkqKJ z2gPOJQosd+gFcA9CClSZaHRaTi/wi+xVXKAGFrfQXbBR7z5hL3FsvNynwWzBT+QuhjN UZSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fmRRCHwd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id c21-20020a05600c4a1500b003feb1b6cc6csi10371669wmp.75.2023.10.24.22.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 22:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fmRRCHwd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 E96BB87A02; Wed, 25 Oct 2023 07:15:00 +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="fmRRCHwd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 22082879DF; Wed, 25 Oct 2023 07:15:00 +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-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (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 EFD63879DF for ; Wed, 25 Oct 2023 07:14:57 +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-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-27d797f349fso1206211a91.1 for ; Tue, 24 Oct 2023 22:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698210896; x=1698815696; darn=lists.denx.de; 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=SUMAbMzHoHPTo3By3XoRLcFc4qPp57JA/75ABBehsIw=; b=fmRRCHwd7lElgJoIZx5DKxN3p557VwtHNUx7MI/vb/0yafvLW11RJipy/c8hDZkTNZ BJRY5GSgzCvygREsZfE4ERxsFL0BevRHAmTNy3l+eM5NPgbAjri2a/ZrYjVwlOIsp7Zb mFDaU6dDhh0ly9RBOELgDvkhXxQUm2P2qtyMxYQGcUDvsUkg/uEVZSgCTZTsT0tSAkQo /WlgewZG7RW0Tt+T23qs9G2l/CC9eA4nk3YlF+MBgtJfN0IovsXPDxXqdZfRuYx5r9wa ra/ARNBrvpC2gTJ68Fl3PpOp3ts1uZ7U/9aK8gGMeOYtzANz0JCdR9Y0JPkh3x+F/qAw kK8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698210896; x=1698815696; 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=SUMAbMzHoHPTo3By3XoRLcFc4qPp57JA/75ABBehsIw=; b=E8AqdtmwbyCowsVfP6jaMKVt452oJBjlfsShy/xKY3VUBR8ocgRSaPGxZwwYaoux6H 4WExY0u3VLJhYlT0WcVh+UdSf8oPisB7Xg9aiq/8S3SIyuZ7Ekq63xI/NMOvvBdk9m6W s5VTrWA/1/qq7/eWVW9GzslQ7oycGYAl7fNVIx/L9ChArUnkHPWrTZFh3dusziFuZoc3 zSBVTuA8iY91NB9+WYmLD7ezjqhY7lsrBUxH4lO2e0uhDnZYWu4oao0UC8ZKmTN4Go4O yf6DoY7WBisFbMW5Z3L8lmjliBunf2Qzx4dtX4MLQR8CBdF8GKnMNuOWn7BW8cz8t3FJ k2gw== X-Gm-Message-State: AOJu0YzritbGG0yws7Hx4a51lY5hjoXtnt6ZVLKVpVhe9xPEdcLXfdJo pi5HtSApxbkOBE30JSO9bPFdaQ== X-Received: by 2002:a05:6a21:9998:b0:15c:b7bb:2bd9 with SMTP id ve24-20020a056a21999800b0015cb7bb2bd9mr16042722pzb.6.1698210896127; Tue, 24 Oct 2023 22:14:56 -0700 (PDT) Received: from octopus.. ([2400:4050:c3e1:100:65fc:df7c:6edb:619f]) by smtp.gmail.com with ESMTPSA id fz3-20020a17090b024300b002609cadc56esm7715815pjb.11.2023.10.24.22.14.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 22:14:55 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org Cc: etienne.carriere@st.com, michal.simek@amd.com, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH 1/5] test: dm: skip scmi tests against disabled protocols Date: Wed, 25 Oct 2023 14:14:23 +0900 Message-Id: <20231025051427.509602-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231025051427.509602-1-takahiro.akashi@linaro.org> References: <20231025051427.509602-1-takahiro.akashi@linaro.org> 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 This is a precautious change to make scmi tests workable whether or not a specific protocol be enabled. Signed-off-by: AKASHI Takahiro --- test/dm/scmi.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/dm/scmi.c b/test/dm/scmi.c index da45314f2e4c..2f63f2da16fb 100644 --- a/test/dm/scmi.c +++ b/test/dm/scmi.c @@ -217,6 +217,9 @@ static int dm_test_scmi_power_domains(struct unit_test_state *uts) u8 *name; int ret; + if (!IS_ENABLED(CONFIG_SCMI_POWER_DOMAIN)) + return 0; + /* preparation */ ut_assertok(load_sandbox_scmi_test_devices(uts, &agent, &dev)); ut_assertnonnull(agent); @@ -317,6 +320,9 @@ static int dm_test_scmi_clocks(struct unit_test_state *uts) int ret_dev; int ret; + if (!IS_ENABLED(CONFIG_CLK_SCMI)) + return 0; + ret = load_sandbox_scmi_test_devices(uts, &agent, &dev); if (ret) return ret; @@ -382,6 +388,9 @@ static int dm_test_scmi_resets(struct unit_test_state *uts) struct udevice *agent_dev, *reset_dev, *dev = NULL; int ret; + if (!IS_ENABLED(CONFIG_RESET_SCMI)) + return 0; + ret = load_sandbox_scmi_test_devices(uts, &agent, &dev); if (ret) return ret; @@ -418,6 +427,9 @@ static int dm_test_scmi_voltage_domains(struct unit_test_state *uts) struct udevice *dev; struct udevice *regul0_dev; + if (!IS_ENABLED(CONFIG_DM_REGULATOR_SCMI)) + return 0; + ut_assertok(load_sandbox_scmi_test_devices(uts, &agent, &dev)); scmi_devices = sandbox_scmi_devices_ctx(dev);