From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77605C001DE for ; Fri, 11 Aug 2023 14:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234157AbjHKORT (ORCPT ); Fri, 11 Aug 2023 10:17:19 -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: 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