Received: by 2002:a05:6504:5087:b0:1e5:d399:13c4 with SMTP id i7csp13366ltq; Mon, 3 Oct 2022 23:27:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79ZpFr+lyRI2DgilHllhXrt/Zrs2c6HSr+9AL70Pzzlha9aAGhkBq132miF1fLsPFNjs5G X-Received: by 2002:a63:4383:0:b0:440:3e0d:b9ec with SMTP id q125-20020a634383000000b004403e0db9ecmr22817195pga.54.1664864870480; Mon, 03 Oct 2022 23:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664864870; cv=none; d=google.com; s=arc-20160816; b=HImSIs0SxKn/uPM82PxE7BPkFN6lmDoXXQWVIBuF5s63itGYOPD2R/EIN1CWDnEeyW k15xCRKo04Y8a6ZJHedegZ2N1Gz2Y7t/g6eAhEWZCXgGC41utDAa8AUc8rmYRERUYiPU 6/ZSOpjMMCgkxGBXkRCJ7gfpkcWn1PwDg4HPeb5GfTVggAkOopGoh7Qp1L6kPkFvgo8Y aWvFSYcn85Nl8aFEYqI+MzoGRnM+P5xqPatbTaz8eR9ylSwj6W1EWM6SFNZIUd8b7kB4 ao92UERITT9piQCFG/S1SgcozW2lvIlvntkccb6alLq0s0+9K17M+TiaSpfJItFWAtXn oBHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=QAYzHxW51Wjle631nz2ovLMzm+yY3Bm2JEKRDUI7a/k=; b=xj+77oDZMBXX7X0dnRMv4TaFupLn7HgQ33VAZG+C6V86za4SMivB3NvtHa21atYL0S PLfUc8EIMqbdqBvJ2hZblURZtmOqZVdd5CNmAFHPk8m2eWDg2UmH+2bCuS2bQNClNAO4 R6ZEi+DHJCfZ5GjUdBUf5aCR+xmjq17UP/PvJicdbZqzAhPKLBtEExIbwF9Qao0PtQNr j6lH8TPXnO4vQGsjlE2tiolLRV7NTYLzmI6Ql0S4fIQKzXVHXHOIg+P7ybjkvFRYvhwF dBOMmTL8YKRRkLSwrcqgo+SwnbcuJKuTOWK+Q8sAR01XVAKvHc3ftR06mRRgj80rlUtd T4nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Ly1tUEQb; dkim=neutral (no key) header.i=@suse.de; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a63e307000000b0043954dec8c1si10731527pgh.615.2022.10.03.23.27.39; Mon, 03 Oct 2022 23:27:50 -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=@suse.de header.s=susede2_rsa header.b=Ly1tUEQb; dkim=neutral (no key) header.i=@suse.de; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbiJDFpI (ORCPT + 99 others); Tue, 4 Oct 2022 01:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiJDFpG (ORCPT ); Tue, 4 Oct 2022 01:45:06 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF1B71A830; Mon, 3 Oct 2022 22:45:02 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8C4D32190B; Tue, 4 Oct 2022 05:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664862301; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QAYzHxW51Wjle631nz2ovLMzm+yY3Bm2JEKRDUI7a/k=; b=Ly1tUEQbd5GLn7BUBBUQZwXV85uyrlZOXyuoCs0NvGKm/kJm4gM/52RVmkRnrhMZ52Dvkz fEtuE3OIzv0e/4jbcke6rqoIGz3kbK1ZcdC75cQhpjexwsNqI+Af9qpK0n2JsYvun7eAXP 63Q0oEt/tAxZj/qXACnsLoY4CdmCgY0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664862301; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QAYzHxW51Wjle631nz2ovLMzm+yY3Bm2JEKRDUI7a/k=; b=rOAhD4zlXHDQFUwD2f2YSRTi0iVsOEAPLIqLBMsyTsj2qIDrydrLEiIUyt1NSrbyD06dBP EvCrXs1fQ3DFsuCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5FECD13A8F; Tue, 4 Oct 2022 05:45:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qkXVFV3IO2ODCwAAMHmgww (envelope-from ); Tue, 04 Oct 2022 05:45:01 +0000 Date: Tue, 4 Oct 2022 07:44:59 +0200 From: Jean Delvare To: Dmitry Torokhov Cc: Daniel Hung-yu Wu , linux-input@vger.kernel.org, LKML Subject: Re: [PATCH] Input: misc - atmel_captouch does not depend on OF Message-ID: <20221004074459.35b58ed0@endymion.delvare> In-Reply-To: References: <20221003172953.30354439@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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_NONE, SPF_HELO_NONE,SPF_PASS 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 Mon, 3 Oct 2022 20:54:48 -0700, Dmitry Torokhov wrote: > Hi Jean, > > On Mon, Oct 03, 2022 at 05:29:53PM +0200, Jean Delvare wrote: > > The atmel_captouch driver does not actually depend on OF, it includes > > a non-OF device ID which could be used to instantiate the device, and > > the driver code is already prepared to be built with or without OF. So > > drop the unneeded dependency. > > > > Signed-off-by: Jean Delvare > > Cc: Daniel Hung-yu Wu > > Cc: Dmitry Torokhov > > --- > > The problem I'm trying to solve here is that "depends on OF || > > COMPILE_TEST" does not make sense since OF can now be enabled on all > > architectures. One way to fix this is by removing the dependency > > altogether (this patch). > > > > If the driver is known to be needed only on OF-enabled systems then we > > could leave the dependency on OF and only drop COMPILE_TEST (and > > simplify the driver code accordingly). I have an alternative patch > > doing that already. Tell me what you prefer, I'm fine either way. > > The driver is not operable on systems without OF: > > static int atmel_captouch_probe(... > ... > > node = dev->of_node; > if (!node) { > dev_err(dev, "failed to find matching node in device tree\n"); > return -EINVAL; > } > > if (of_property_read_bool(node, "autorepeat")) > > So the reason for "depends on OF || COMPILE_TEST" is to avoid prompting > users who actually try to configure real systems for drivers that make > no sense for them while still allowing people interested in compile > coverage to select COMPILE_TEST and enable more drivers. OK, thanks for the clarification. Please disregard this patch then, I'll send the other one. -- Jean Delvare SUSE L3 Support