From patchwork Tue Jun 4 10:25:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Pagani X-Patchwork-Id: 13685021 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 50BAD142640 for ; Tue, 4 Jun 2024 10:25:48 +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=1717496749; cv=none; b=NcZh+aHmNt02y7HxZHGd6G4Uii1cCQonjySAise7XFRtTiDcW2wXv3dHh44o5HhyRTo8bUYpHnWzy702Zq3KBzgVOURt0GFtw2mCC/sLxUB1XUAquUk800YDeVJ3ZR+2/I8ynA3vIZQDV/lWpoQ85XPhkSPaBMY1/Q4mgIhI7Rg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717496749; c=relaxed/simple; bh=+97KsIZt98CG2CLQQ+IHOpFd91SSXI25Tj7kdAO85dM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fWjO2qqn1bIzrcoI2S4YIuLCzPRgFghFCYFeK5RFu/8hKK7LN3LsLf+9Td/OK6rVtGjohvmikaLS3CLyqtAd1tuDD2pmia4vSmH8Kqjsgq6ZxZAqxonlwWnX+v1eF1N3MD0aizNDkuuoZq294kG0cyNe0kWKwUj/jDnPF6ck2yU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=awDF//VM; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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="awDF//VM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717496747; 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=sjq+ocxMAUYVGusvI1ZuTtsck+6zljQvQ0oRVrUKm+k=; b=awDF//VMiy4s9jdNz9y9QFTSQJaVLOUbk70CWY/tmx5aVL4e+NSrUfk/CNfCvHdPfP16o3 FR5ywzU9kD6P0NRRSq2e9e1M/oSl7154hWtkHoNtYHOE6sRTMGKOFuy6/M2tG0ySe8b0RZ 2FiPY2ym87yM8QLpv5kxB7I9wBoWkZs= Received: from mail-yb1-f200.google.com (mail-yb1-f200.google.com [209.85.219.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-675-OijDHw9zN7upauB21_OnCg-1; Tue, 04 Jun 2024 06:25:46 -0400 X-MC-Unique: OijDHw9zN7upauB21_OnCg-1 Received: by mail-yb1-f200.google.com with SMTP id 3f1490d57ef6-df771b5e942so1395085276.2 for ; Tue, 04 Jun 2024 03:25:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717496745; x=1718101545; 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=sjq+ocxMAUYVGusvI1ZuTtsck+6zljQvQ0oRVrUKm+k=; b=Oevn6vnp706LmxUBz2D+n5xdf4SGJunIxz0PNB3C14KTRmx1UUbO1QOWLcrf1wmDXr wpUbjdypLgeMB1Cq/yA1uKLx/mgsetNfo5jkeHKZUkDWh8XFp2oMuLZ0+W8qMaeG8UIL B4G1zTxQh3Nknl2JeCtuAphI+oWbgv+8T+4svAHkxzSCLBPGFuXEnU+KnayyrzfquYcv eFaY8IVsWELvqJrumRyXJWMU1WrMkxEePrgDproYI5p3/1bK8Yc8vgNiBN2wZDFaTnha pO++vMDVgXLm7kTcGY+XhFGKQ/qfYbKISUYStZIPrCIvBHVgYIlSEMyG1A3aGKJ16YpM LQCA== X-Forwarded-Encrypted: i=1; AJvYcCWSy1N559qGo3n04LSM3OIp5LUmLUL3z5JrPzGD0TI7ZJYI7Rd6d15a8Tir9g2YS/vM94AJESt9I6qoRfrdBTHe0dWnco08weGcTg== X-Gm-Message-State: AOJu0Yx/nPkgm+hTTclsKYfcQogjNWhGyHAWF7NJiv2UHlDffOeS9n/o t7AkQi5ScQOxaamyEkh77KhLF+Kadlkyu+ylLsMfxPyEIRhFYAtzX+LXKT08U78M9I/c+AUGcmK gHg2blo6U2udo7CCqpRfRh5l80suNaT/X8R5eeoyyErs5pROhekg1kqEzeQ== X-Received: by 2002:a25:6b4b:0:b0:dcf:f9bd:fe05 with SMTP id 3f1490d57ef6-dfa73d9d171mr10940054276.48.1717496745520; Tue, 04 Jun 2024 03:25:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzKks9sYQBB15/uyoqAU68Bp9AvizlHHt2LmvmToSGcHUC1wjK/6K1q3rNrZhfzQf3HfbZpg== X-Received: by 2002:a25:6b4b:0:b0:dcf:f9bd:fe05 with SMTP id 3f1490d57ef6-dfa73d9d171mr10940043276.48.1717496745159; Tue, 04 Jun 2024 03:25:45 -0700 (PDT) Received: from klayman.redhat.com (host-82-62-247-97.business.telecomitalia.it. [82.62.247.97]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43ff23c5ef2sm47985371cf.24.2024.06.04.03.25.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:25:44 -0700 (PDT) From: Marco Pagani To: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix Cc: Marco Pagani , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 RESEND] Revert "fpga: disable KUnit test suites when module support is enabled" Date: Tue, 4 Jun 2024 12:25:35 +0200 Message-ID: <20240604102536.59010-1-marpagan@redhat.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-fpga@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This reverts commit a3fad2e92c76587fe262a1a4a122045b29885354. The core components of the subsystem no longer assume that low-level modules register a driver for the parent device and rely on its owner pointer to take the module's refcount. KUnit test suites can now be safely re-enabled with loadable module support. Signed-off-by: Marco Pagani Acked-by: Xu Yilun --- v2: reworked commit message --- drivers/fpga/tests/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) base-commit: b7c0e1ecee403a43abc89eb3e75672b01ff2ece9 diff --git a/drivers/fpga/tests/Kconfig b/drivers/fpga/tests/Kconfig index d4e55204c092..e4a64815f16d 100644 --- a/drivers/fpga/tests/Kconfig +++ b/drivers/fpga/tests/Kconfig @@ -1,6 +1,6 @@ config FPGA_KUNIT_TESTS - bool "KUnit test for the FPGA subsystem" if !KUNIT_ALL_TESTS - depends on FPGA=y && FPGA_REGION=y && FPGA_BRIDGE=y && KUNIT=y && MODULES=n + tristate "KUnit test for the FPGA subsystem" if !KUNIT_ALL_TESTS + depends on FPGA && FPGA_REGION && FPGA_BRIDGE && KUNIT=y default KUNIT_ALL_TESTS help This builds unit tests for the FPGA subsystem