Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1037835rdg; Fri, 11 Aug 2023 07:55:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfnlEDRFd8qaP6NqSqAMNHfqMJkpaRAmxdcY1qpw1ILzKDKDA+beMWH3YkHVeaerj2FFy3 X-Received: by 2002:a54:4883:0:b0:3a4:24aa:b556 with SMTP id r3-20020a544883000000b003a424aab556mr2188885oic.13.1691765700101; Fri, 11 Aug 2023 07:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691765700; cv=none; d=google.com; s=arc-20160816; b=VFJ8gHdGv/x/nQcqgZAPHh8qpufG1zpjpW2631FjUhPVIRyXkNOi45RrdycyriIiKk vMKgsgEzcSuh9XPqqxU04EpyM6ulTjtRbG1aegJOK43GPZ7VIgRGv0+I8OpqMuMdVsYt SAxYlgL6m6TzF2FEh+YUBezeyEcwL7ULmNbNtZjfmkHYF5zn/8QaK7gJXvfowZp9MANB AE2oBv+z675Drg8ffHDPpqK2mNUx6v5zOu4v1VaWSK4uF3f8wGYx53dfMjl7zz30ppya 5ZkSIdwm9+CuVjI97Ep1FWaGuX4e4+q/HxrY4Hi3288sdrcspVynalbwMhiDiS4TtcY5 PSUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4ax0tAR8lAR0HnZ4PpObj621XaNtJQJ7wGBBbdJIOFk=; fh=s5nn9xOQUCbcehKR5t1C59VaUa8jFoz0P5uD48G8Txs=; b=B2+3RvfVwjFRljHkGKG/DN/kHJH3P/Nj3yNXUdWK0wyeBzRu0Gc5lFW+x3omppb0j/ 4lFvAMveoKpnx80DBC/hj41LkB6Oks1Vu6xATyIkJUvKQv9M6/tYtHROgFPFRBHgt+ds 4fcOOaW63WQM4ujPY/lhIxHlK4Nng/sVxrPrf7d0e82bWyzYHB55FHZAiecCvtWZPaT4 NixpUAQKH6aazihCfFm09qit/z95myLEcNiycl1KKILUl0JfcmNJ4Pw7JMzuCzAkjrjQ 6Lldy3CTEf5vvQ2lDMPRzqNCcKF3yZL+SWRi5zAvVJ+GjKYmwjnSP7gFxHStgwpGHiol 4m4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IrTmanFG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a63f113000000b005648b1d63fcsi3621359pgi.484.2023.08.11.07.54.46; Fri, 11 Aug 2023 07:55:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IrTmanFG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbjHKORS (ORCPT + 99 others); Fri, 11 Aug 2023 10:17:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235808AbjHKORO (ORCPT ); Fri, 11 Aug 2023 10:17:14 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2ACE2706; Fri, 11 Aug 2023 07:17:01 -0700 (PDT) Received: from notapiano (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id F1E446607247; Fri, 11 Aug 2023 15:16:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1691763419; bh=NZlwVv6zfIFpXPe7gaVoJDJ6zhVLPAy87Kilc5JeT1E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IrTmanFGMYBw2UDSuTY+IFBMMkyHRoMJ4Nq+idLsIYKvBJclwmAhm4+iPptpQJN5A HqJWWCXHMBUEAwjVx2vQ3KYWPcSMgmvuOithi9eP1n+obhS2NXbfK04V3dzP/0CK3L ndZpjntTTim3BnDtAGhiFhzTb9zI2wQ4lNnmPH33ehV2wgLeMGZjqjuIvK4lbH3pW2 5pGkeWPtynt5FAKQ1vC4kM+fucxNt3lzGK70ACvsrMRZzVYi+2lowmJFsYgb9ADxq6 QOYOUb9nviBWASIbtoVKlVjg26LtbaOWNFxgER8Z+KqeB4HNIg8zVImwNthCIXU/mE nRwBpMHKqmO2Q== Date: Fri, 11 Aug 2023 10:16:52 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Mark Brown Cc: Rob Herring , Frank Rowand , Shuah Khan , cocci@inria.fr, Nicolas Palix , kernelci@lists.linux.dev, Julia Lawall , Bjorn Andersson , kernel@collabora.com, Guenter Roeck , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [RFC PATCH 2/2] kselftest: Add Devicetree unprobed devices test Message-ID: References: <20230810202413.1780286-1-nfraprado@collabora.com> <20230810202413.1780286-3-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 11, 2023 at 02:54:56PM +0100, Mark Brown wrote: > On Thu, Aug 10, 2023 at 04:23:51PM -0400, N?colas F. R. A. Prado wrote: > > Introduce a new kselftest to detect devices that were declared in the > > Devicetree, and are expected to be probed by a driver, but weren't. > > > > The test uses two lists: a list of compatibles that can match a > > Devicetree device to a driver, and a list of compatibles that should be > > ignored. The first is automatically generated from a script that parses > > the kernel source using Coccinelle, and will be run as part of building > > this test, therefore Coccinelle is a build-time dependency for this > > test. The list of compatibles to ignore is a hand-crafted list to > > capture the few exceptions of compatibles that are expected to match a > > driver but not be bound to it. > > This doesn't appear to produce KTAP output which is going to make it > less useful for generic kselftest runners. Right, I'm going to need to rewrite it in C for that, but since I already had the shell script done, I decided to send it as is for the RFC, since I wanted to get feedback on the general approach more than anything. Thanks, N?colas