From nobody Wed Dec 17 08:51:00 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BBA92222AC for ; Wed, 19 Mar 2025 23:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742425559; cv=none; b=pNkFuQqLCVnIGsdMGCRsJKvfpta2YCvuevNhqLKlaPlwUieBeoSz6OsMVjIV7xxsVxcFJ8UsTw5wWuWA2XKLOK7IAXYABPk27xGdAh+taRZmM2pGfF7NKKaf/ZOlGUvUw+C25qACYN46RIqACnQVdzoLS+Q8zouAJ0EGRDvzQEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742425559; c=relaxed/simple; bh=LmwAD6/9aquNzytRBY1gcavajfnLc7fxEGs2n19fJSU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ft9wMckjIwGU2rwRzcIETc2YAjcE4OCeqL2TJN1+YzJdpR9KZbJF9QIbU5yESGLqP9FAAdXTZ9nGZqGP7GdDOMegwEOEp0j4wvzcN9SQw9b6COQiQHms4ntPdx9hdzBOFsUW10FIs+wM+HLhpZwFzKt2rgofou55I7aCspjWfBk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Y8j2OQi+; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Y8j2OQi+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742425556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dpj3t+buqjjPgv0f+e6vq0WAn2anL3UEuZpKME7d92g=; b=Y8j2OQi+2GnQc3jvkHtz0IUpSppUsAt0kkMpOF+HxpyDXPwxs61n9kJDBL4DmRPtLSYQGM lHy8MDrcykKqt+GuMDCR/NcaSgNhu6daYekxV6x+VOeA+jvFvCVid1QZhUaroNXdpQgszg 0yobkSyZZr6u6Ai7xTMc79W23BqiXiI= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-19-ZhLic6xDM7qw8jowqkcBYA-1; Wed, 19 Mar 2025 19:05:52 -0400 X-MC-Unique: ZhLic6xDM7qw8jowqkcBYA-1 X-Mimecast-MFC-AGG-ID: ZhLic6xDM7qw8jowqkcBYA_1742425551 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CE29E1801A07; Wed, 19 Mar 2025 23:05:50 +0000 (UTC) Received: from h1.redhat.com (unknown [10.22.82.139]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 185701956094; Wed, 19 Mar 2025 23:05:46 +0000 (UTC) From: Nico Pache To: rf@opensource.cirrus.com, broonie@kernel.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Cc: simont@opensource.cirrus.com, ckeepax@opensource.cirrus.com, brendan.higgins@linux.dev, davidgow@google.com, rmoar@google.com, johannes.berg@intel.com, npache@redhat.com, sj@kernel.org Subject: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it Date: Wed, 19 Mar 2025 17:05:39 -0600 Message-ID: <20250319230539.140869-1-npache@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" FW_CS_DSP gets enabled if KUNIT is enabled. The test should rather depend on if the feature is enabled. Fix this by moving FW_CS_DSP to the depends on clause, and set CONFIG_FW_CS_DSP=3Dy in the kunit tooling. Fixes: dd0b6b1f29b9 ("firmware: cs_dsp: Add KUnit testing of bin file downl= oad") Signed-off-by: Nico Pache --- drivers/firmware/cirrus/Kconfig | 3 +-- tools/testing/kunit/configs/all_tests.config | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/cirrus/Kconfig b/drivers/firmware/cirrus/Kcon= fig index 0a883091259a..989568ab5712 100644 --- a/drivers/firmware/cirrus/Kconfig +++ b/drivers/firmware/cirrus/Kconfig @@ -11,9 +11,8 @@ config FW_CS_DSP_KUNIT_TEST_UTILS =20 config FW_CS_DSP_KUNIT_TEST tristate "KUnit tests for Cirrus Logic cs_dsp" if !KUNIT_ALL_TESTS - depends on KUNIT && REGMAP + depends on KUNIT && REGMAP && FW_CS_DSP default KUNIT_ALL_TESTS - select FW_CS_DSP select FW_CS_DSP_KUNIT_TEST_UTILS help This builds KUnit tests for cs_dsp. diff --git a/tools/testing/kunit/configs/all_tests.config b/tools/testing/k= unit/configs/all_tests.config index b0049be00c70..96c6b4aca87d 100644 --- a/tools/testing/kunit/configs/all_tests.config +++ b/tools/testing/kunit/configs/all_tests.config @@ -49,3 +49,5 @@ CONFIG_SOUND=3Dy CONFIG_SND=3Dy CONFIG_SND_SOC=3Dy CONFIG_SND_SOC_TOPOLOGY_BUILD=3Dy + +CONFIG_FW_CS_DSP=3Dy \ No newline at end of file --=20 2.48.1