Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp243362rwi; Wed, 19 Oct 2022 20:47:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6L8DEi9PAjKmoIeefY4ugFE4QuoD02vCndU4dE6T39zS9iOqfTmTV4S2r8l8fdRDFm7fvd X-Received: by 2002:a05:6402:548f:b0:457:ed40:5f58 with SMTP id fg15-20020a056402548f00b00457ed405f58mr10238073edb.408.1666237656441; Wed, 19 Oct 2022 20:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666237656; cv=none; d=google.com; s=arc-20160816; b=sTrEToMimV87su9xgYxgp7g8DABB3I2h8ILYuzduAIc5H0pLY7hdbCiAS7uvgvUuZw okzcDeEi+D6ruFyH77nWiWiBwFHhr7KncyP5diS8iSgTQx63X3eEdpi5F9QDSzXqDF8D FtYlzHw98QeIeW4rOobTlRjt+IvLl9GvF+jTb4xCPm40aG7uTuRruaulcVxDfbu5KaXY d2XWQs6Ik1JyWLj48TWi9v5OcRbw2/T+LWfXrcobEyjjyb5rMebZMOm3w6rDoyMZYjlP gkidVTmRYhuDP52L+T2OTdzw6dhi73HffL/sVsl2mkN+32Rv6dqgl+Rgb3ZBP6+DBmuX tYdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FK9pfVH2MwuIme9II68lfWwQSqGVFiwYeu262/7JwAQ=; b=dX1GBQNlV4+5y77z56lyA8J8XQILzs5uc+j9Mt9gGLtKUuTyT4F+3VwyVecmEBqXdC x6Z9+WH+s80NQtdKterD4De4UwtWKzMbaERfLVT+qm7t/nvgKoADrgCFfGw0hTzaKMIa t+teOok6UtfqVNRvnbnvxOmV1V4RxJnz+6+NC/0VFfNfet17MzckWecB/NU6sqjl5RZb 0GZRShBIc0EIfU7tKUCIlxujdOXWoz+l1cwoT02SGgR4VOmtqb20n5nL+s/c1vszZ29H g11Aop0YYr31fTSJA57HcjdL/NFdhQJaPpaWmuoZ1DztbEJjDq4BUgXgzpvy0Xnr+QUh EO8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="yxvxh/p1"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a056402248400b0045c21f435dbsi15492466eda.521.2022.10.19.20.46.10; Wed, 19 Oct 2022 20:47:36 -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=@infradead.org header.s=bombadil.20210309 header.b="yxvxh/p1"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbiJTDbq (ORCPT + 99 others); Wed, 19 Oct 2022 23:31:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiJTDbo (ORCPT ); Wed, 19 Oct 2022 23:31:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC770165C8C for ; Wed, 19 Oct 2022 20:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=FK9pfVH2MwuIme9II68lfWwQSqGVFiwYeu262/7JwAQ=; b=yxvxh/p1LlEBHyhtnmcdPkvaZe 1dZyIkKWXDPptNDefT2fYC1qISkPSEl3HPmymmGi7NHD07HZ9TntO4stiY0CqviWcNNaWgWF5IIYY pxmXcZPrkNxAdQHl1DJLphWncekuVy/exv6VKOkmSu47fbVSGw2mflV+dXuqU8yZkinqErDU/a/CM QmlDrBzW7mhXJrtqfY0YJcjelbMFFP3n3kbhsmPkTV2kMLJXjIhrIW3EfDzyiqhiPTiC2CbNpFNHf stuoqLDtmllIjrcLS/1BCqzAWroLYQWaXfz30tJa6wb56LSIUMCWisupNzXfszeifStecppgMN8R6 KAnnASrg==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1olMHQ-009xYP-It; Thu, 20 Oct 2022 03:31:36 +0000 Message-ID: Date: Wed, 19 Oct 2022 20:31:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [GIT PULL] Backlight for v6.1 Content-Language: en-US To: Hans de Goede , Linus Torvalds Cc: Andy Shevchenko , Lee Jones , Mark Brown , Linux Kernel Mailing List References: <189ed242-4ccb-4935-ede0-c5807d7b5083@redhat.com> From: Randy Dunlap In-Reply-To: <189ed242-4ccb-4935-ede0-c5807d7b5083@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 10/9/22 05:58, Hans de Goede wrote: > Hi, > > On 10/9/22 01:23, Linus Torvalds wrote: >> On Sat, Oct 8, 2022 at 12:59 PM Hans de Goede wrote: >>>> >>>> Yeah, I don't expect he driver to work on real hardware, >>> >>> I'm not sure what you mean here. I guess you mean that you >>> do not expect to be able to test the driver on real hw >>> yourself? >> >> Well, that too, but I really along the lines of "make it build as a >> module when I2C_DESIGNWARE_PLATFORM is a module" > > Actually because the driver only works properly when builtin the > driver itself is a bool option not a tristate. So I am not sure > if even if we change the the: > > depends on I2C_DESIGNWARE_PLATFORM=y > > to: > > depends on I2C_DESIGNWARE_PLATFORM=y || COMPILE_TEST That change worked for me. drivers/mfd/intel_soc_pmic_crc.o is built and drivers/i2c/busses/i2c-designware-platform.ko is built. > it still will not be build with an "allmodconfig" build? I must > admit I don't know what that does with bool options. I don't see a problem... but I didn't test all of the other x86 PMIC drivers. They are all built as loadable modules since I didn't make any changes to their Kconfig entries. > If it says yes to bool options, then yes adding the " || COMPILE_TEST" > will give you build coverage with an "allmodconfig" build and > I would be happy to submit a patch adding this for all the affected > x86 PMIC drivers. > >> Because if it depends on some symbols from I2C_DESIGNWARE_PLATFORM, >> and that one can be a module, then the Intel PMIC driver also needs to >> be built as a module to just get the build coverage, at least. I don't see intel_soc_pmic_crc.c using any direct calls into i2c-designware-platform code. If it calls into it, it must be thru some indirect pointers (?). It's not causing any build problems once the "|| COMPILE_TEST" change is made. (I am build testing on linux-next-20221019.) > See above, currently these are bool-s I guess we may be able to > come up with some Kconfig magic where they can be build as module > only when COMPILE_TEST is set ? Anyone now the right Kconfig magic > for this ? > >> And I can imagine that that will not work very well on actual hardware >> with some of these core drivers that may want to initialize early? > > Right, we want to enforce things, including the i2c controller driver > to be build in because that is necessary on actual hw and allowing > these to be build as modules has lead to bug reports in the past. > >> But I'd love to at least have the build coverage. > > I agree, see above for some gotchas though. > > FWIW as a side-project I actively work on keeping these platforms working > well with the latest mainline kernel, so I do build these with the latest > rc kernels all the time. -- ~Randy