Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2748220rwb; Sat, 8 Oct 2022 13:35:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM76Yc4K1f0SVMaO4HyceBmkCL+xzfMP35jkjiUbK2pUKD0/CT1lfinl0ORaqBCXWtxls3Yq X-Received: by 2002:a17:90b:4c02:b0:20a:7d26:149 with SMTP id na2-20020a17090b4c0200b0020a7d260149mr23850276pjb.134.1665261321862; Sat, 08 Oct 2022 13:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665261321; cv=none; d=google.com; s=arc-20160816; b=PqfUtj94bevtVreWeJIi2lGvwTXZ/1rItN4PAsA9ujpbUl5mjYseo2fpb9bhXD7rTT 5ZdP8tC8o5/Tf5nPCQsxs/gsocM4Hj1nFukIDL19mMuZxFLTXevk/v8WZNL9Cu+b5eO6 kybXggW4JMilPaxnAOqT+sLhx+onfHf9o0IXphNopzKSn/Pv3si3SAqVeOQniFixtj8d D2yePljSmC5gk7wsKLaGBlzaAgU8V2e/3n0PGbYCiA7+e5hVqNcmidXUZmXpc7baus9Z 1/SwFGXXiDq1f3diK7+bFN2OY8u+51/TtRQuYZmZaJ82ab7T6jTqmMf2L1ypgHg9SE9E n+9A== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Hc9W7HgSLjSy07M4A9xL/NkhzDYCiBve9SmVv914q4w=; b=UMV132+nmnsKAZy0yvcp3jv/GZc4DqWXhkeQ49xYpqwyPOnIWuWKskCZm2CSqicFVp pEMRHW2pXoWHEJv9gOqKTIUSJIc1tZCEYkdR+NG/XeoHb0l3eLh/AMSaZzpfY0MS0FQo gw0og10jPlx5Arr6lK93nv/sqBklvKPKf09PKQQOHtLv3ofTiU9KOWnG3fyo8i60Odeh Uq2q0A4nh7TB28vpw4OLu1THtxhHmsr7SFkCXSigGFZad47dNcIFbRaIarOpasUmQt7Y Cjqw5QJWwco7gF6y3T9FHgeoWL9mDM4VG87czES5ywwaintPdtnf7oZU1hFGah75e42+ mPAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EZ1f+GBT; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r134-20020a632b8c000000b00460a5961827si2086782pgr.651.2022.10.08.13.35.09; Sat, 08 Oct 2022 13:35:21 -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=@redhat.com header.s=mimecast20190719 header.b=EZ1f+GBT; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbiJHT7X (ORCPT + 99 others); Sat, 8 Oct 2022 15:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbiJHT7V (ORCPT ); Sat, 8 Oct 2022 15:59:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F17AC38A0C for ; Sat, 8 Oct 2022 12:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665259159; h=from:from:reply-to:subject:subject: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=Hc9W7HgSLjSy07M4A9xL/NkhzDYCiBve9SmVv914q4w=; b=EZ1f+GBTWj4tI6m8tWU4Q2Vl1KWaLOyzbFswRvQc5TudZGQ8pZWXeUVaUPHxpNIMnIU5FJ hrXwL24ACGIYIcpSv9QjV7HIvt+vlbC05jNO/CnRzOf+SiUVEbER/rViYPQmnFzspA4WA1 tK1eyVek1Mx8Ss9KFvexU3mCkrkWbQQ= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-458-caad5Q4yPYGlnLydzw9g4g-1; Sat, 08 Oct 2022 15:59:18 -0400 X-MC-Unique: caad5Q4yPYGlnLydzw9g4g-1 Received: by mail-ej1-f70.google.com with SMTP id jg33-20020a170907972100b0078d174b3bb7so3697689ejc.22 for ; Sat, 08 Oct 2022 12:59:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Hc9W7HgSLjSy07M4A9xL/NkhzDYCiBve9SmVv914q4w=; b=4l+DHFjBrP4I7E68hM5DOegyl3f1Og5Dtt90D4hxRUq/J4izbUxtwJkXa0rBlTiO6H qP6aEu5igIe4dhQ9zcmQ/7LjiP4vGMgdezc055h5EpYzqEi2+P2tCK/S2P6wcZl7TjJT REj/NkCeG3ox1fKfqQi3iEdgWrDgKyeYEmmoE6YBN5dTvpLbRujEvzg4Ti32S5x33WtM qe9gUFmwBYapmC7bHtrGKQWNYK4HaYK4EpHVKVUvvHVvuHV6g5keW9IyzRe3QJGN6gEX R2lMnbOiNTq6Qo9LEr7K2t54DRKj4LkTnTKGgYNRuNKI16NPS2vltRWnFh7HIA2Uhmlp Xo0g== X-Gm-Message-State: ACrzQf39cBxPBPcijb9pqTqbbQxmiy33Ta35prc+uzp6DbS4e6nqfzc9 Q8cL3QFBh2UZTfBnhK6+hwwFqr0GSiLxNI4WQFzr2bcsNQrDRstxMAXOUoPx9IL+ML+MGUOAvz9 NIKNu/WPBTTKMyJ62QaMGUUhg X-Received: by 2002:aa7:c78d:0:b0:454:fe1d:8eb1 with SMTP id n13-20020aa7c78d000000b00454fe1d8eb1mr10359396eds.59.1665259156552; Sat, 08 Oct 2022 12:59:16 -0700 (PDT) X-Received: by 2002:aa7:c78d:0:b0:454:fe1d:8eb1 with SMTP id n13-20020aa7c78d000000b00454fe1d8eb1mr10359389eds.59.1665259156391; Sat, 08 Oct 2022 12:59:16 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id d23-20020a170906305700b0078d3e54aca1sm815833ejd.75.2022.10.08.12.59.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Oct 2022 12:59:15 -0700 (PDT) Message-ID: Date: Sat, 8 Oct 2022 21:59:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [GIT PULL] Backlight for v6.1 To: Linus Torvalds , Andy Shevchenko Cc: Lee Jones , Mark Brown , Linux Kernel Mailing List References: Content-Language: en-US, nl From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 Hi Linus, On 10/8/22 21:02, Linus Torvalds wrote: > On Sat, Oct 8, 2022 at 11:31 AM Andy Shevchenko > wrote: >> >> The Intel PMICs are the beasts when we want to run the code on the real >> hardware. > > 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? I have several x86 tablets with this PMIC and the driver does actually work on real hw, I test it regularly. As for the admittedly weird: depends on I2C_DESIGNWARE_PLATFORM=y dependency, as Andy mentioned on most of these devices the ACPI tables (often the _PS0 / _PS3 power on/off methods) poke at the PMIC through ACPI Opregions which are registered through the MFD driver. This all needs to be available early on which is why I2C_DESIGNWARE_PLATFORM needs to be builtin (the PMIC is connected to the system through a designware I2C controller). When built as a module we get a whole bunch of ACPI subsys errors about OpRegion calls to a non registered OpRegion in dmesg and this can also results in real bugs like e.g. a touchscreen not working because it was not powered on. After several bug reports about this I decided to add this dependency to force distros to built I2C_DESIGNWARE_PLATFORM into the main vmlinuz image if they want to enable these drivers. > depends on I2C_DESIGNWARE_PLATFORM=y > > might be better with a "|| COMPILE_TEST" to at least find the build > issues, even if actual runtime testing is a different anumal entirely. Adding "|| COMPILE_TEST" sounds like a good idea to me. Note that as I tried to explain the: depends on I2C_DESIGNWARE_PLATFORM=y is actually there to avoid known runtime issues with having that built as a module in combination with this (and a few other similar) PMIC drivers. Regards, Hans