Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp851933rwp; Thu, 13 Jul 2023 02:00:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjZQ87Rr4R7ARRNGMLcREw3+b5tvfAPUupoekT1MyLFa6NDFmisHdYYbSOX4U/SGxBrMZV X-Received: by 2002:aa7:d0cb:0:b0:51e:1a3b:bd6 with SMTP id u11-20020aa7d0cb000000b0051e1a3b0bd6mr1164665edo.31.1689238856691; Thu, 13 Jul 2023 02:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689238856; cv=none; d=google.com; s=arc-20160816; b=dxLKZ2CBvfXKUWn1p/MXoZ92k1OnUmX2cDjyEip1kq8r0PTdk0mzlqPA/WBxj9DezG ytINgDpD5svk044ZncHudRZ+xLtjGH8ZWHReP2i80sCp1lY6tRVC1em3cVCDW9BA5I7D UGWBFg7V9H4kWgl2D0JgO2R7pwzg3xUU9kHmKunNwYjGk9luDSmEXjiU/v0DO+NkpBzJ yTUapkzf0UnBlpq41Lk6q+kfXz5Tej+6Y0XPR52IdecHcQAFiuNX+FZfMjK140E1IpV2 Q4BeRncS0NiiWslhfFPNLWw5AhFkO8unIrYtSIQr6ldHjCttrbjHpnR7EgF9wgCIAoy/ 8U4Q== 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=B/zyYDOKGaV8MGnruif6L2Wtxw0ltAUAK4vKzkv5DiM=; fh=cDFkxDHI/d54Rou73yuuy92ZsXAUgrxEO1q3OuQPaT4=; b=SV2sgEraX3wo5//Wfq5jnrMIEuOnjQ8voWsVsY+SEkjhYmbNdvdqUrGzdz0nZQ9u8l zUQKH+n8XgAm47jiAOuFngBnnNuaTvQ+q+oRF+dQgfFuMtsOzTXwaewyTySRaWW8FJQz x+uPgX9B3WjF89hIlnwJfTXvy/xmVfwe67FW/DufmWayd96iz7aXlO/DQK3Gmu4t4HyS 6onbYBAzFWo2ZTutjp+jiKytiBODuZ/nfu3B6m5286YcELpved13lSdgsChJGJEmMJpZ J7xsXnqCVHXwwNPRvEgMxXrYuzPDrwUyXjvr5QaxuOP5K31XrbKK7YfvwRag7xxpIzZh H8og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IZZiZM1e; 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 r23-20020aa7d597000000b0051dd525dd79si6665376edq.521.2023.07.13.02.00.32; Thu, 13 Jul 2023 02:00:56 -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=IZZiZM1e; 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 S234541AbjGMIlm (ORCPT + 99 others); Thu, 13 Jul 2023 04:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233495AbjGMIlY (ORCPT ); Thu, 13 Jul 2023 04:41:24 -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 D67691FC9 for ; Thu, 13 Jul 2023 01:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689237375; 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=B/zyYDOKGaV8MGnruif6L2Wtxw0ltAUAK4vKzkv5DiM=; b=IZZiZM1e+uL5bUAP5QJhh/B9WeV2r+UscuOHbTYcvhmi7RymuV3m9MQNlDpBJ7Zhy+qxCZ OlslvEKs1hvhZdDwcq9jjmqycFtDtyuauomVBLHZSUK6MzuiGZEusXL52Ku02z5bazC2lo CUMVPF6GjSt8jOdjNeLV2PNkg5YvF80= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-614-guDyjGzZM-ivuO9C7Yi2Uw-1; Thu, 13 Jul 2023 04:36:06 -0400 X-MC-Unique: guDyjGzZM-ivuO9C7Yi2Uw-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-993d41cbc31so33057666b.1 for ; Thu, 13 Jul 2023 01:36:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689237365; x=1691829365; 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=B/zyYDOKGaV8MGnruif6L2Wtxw0ltAUAK4vKzkv5DiM=; b=EjywIUImAwZaHC6qlt1034yQWnWDTm0biKI63niDv2Yas3WBrNzlfoQxJ6VYJUpWPv PRjbSUm0taajTNoR/qhnIlOahYjR1n7gTQF15GaVVsf4ne90DBOS8KWzFF7tctOT9ztB /qI25C/ixKmOpEaWGZaNLKmqs1zD+qsa/D7S8Oi5fPIpqh0W9aeWCZ+zAHM4nQ1yVta5 chWoQ120Qjbb9aYZY3Epj41ORmo4JDnWksvKDaxEl5Aw7liG3sUTydWUkfUxCVwoRaX/ 9WuUnFyIgqYOp9wqGD1FmtHdUgIMmX4OwZG4uYMCrGBYlgpS38YGw2apJSGiA05VoTe5 iyjQ== X-Gm-Message-State: ABy/qLZ1sX2lD0XZ6BaiR5NoiFQhHrC5fj7i8xs5xd8CyubGpW36oOph /MspL9I+r/jySkBzv3xzlrOC4upITLSZPLhSjM4wejh3e4XQdaXCRnugV/I0vMwxERda2kVWQN1 iOyAqU8/5McxdKX2Wc08sb/BD X-Received: by 2002:a17:907:6025:b0:993:22a2:8158 with SMTP id fs37-20020a170907602500b0099322a28158mr718110ejc.61.1689237365692; Thu, 13 Jul 2023 01:36:05 -0700 (PDT) X-Received: by 2002:a17:907:6025:b0:993:22a2:8158 with SMTP id fs37-20020a170907602500b0099322a28158mr718096ejc.61.1689237365432; Thu, 13 Jul 2023 01:36:05 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id d8-20020a170906370800b009929ab17be0sm3608565ejc.162.2023.07.13.01.36.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jul 2023 01:36:04 -0700 (PDT) Message-ID: <145850e2-f22e-0afa-7ff1-bc2d07ac3e96@redhat.com> Date: Thu, 13 Jul 2023 10:36:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 2/2] platform/x86: add CMOS battery monitoring for simatic IPCs To: Henning Schild Cc: Mark Gross , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Lee Jones , Wim Van Sebroeck , Guenter Roeck , Jean Delvare , linux-watchdog@vger.kernel.org, linux-hwmon@vger.kernel.org, Tobias Schaffner , Gerd Haeussler , Linux LED Subsystem References: <20230706154831.19100-1-henning.schild@siemens.com> <20230706154831.19100-3-henning.schild@siemens.com> <3b1dc0a1-94b0-4fba-07e7-b871dfc08e88@redhat.com> <20230713102840.7cb514d5@md1za8fc.ad001.siemens.net> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <20230713102840.7cb514d5@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, On 7/13/23 10:28, Henning Schild wrote: > Am Wed, 12 Jul 2023 20:05:54 +0200 > schrieb Hans de Goede : > >> >> >> Hi, >> >> On 7/6/23 17:48, Henning Schild wrote: >>> Siemens Simatic Industrial PCs can monitor the voltage of the CMOS >>> battery with two bits that indicate low or empty state. This can be >>> GPIO or PortIO based. >>> Here we model that as a hwmon voltage. The core driver does the >>> PortIO and provides boilerplate for the GPIO versions. Which are >>> split out to model runtime dependencies while allowing fine-grained >>> kernel configuration. >>> >>> Signed-off-by: Henning Schild >> >> So I tried to merge this, but it does not apply because: >> >> "[PATCH 1/1] leds: simatic-ipc-leds-gpio: add new model BX-21A" >> https://lore.kernel.org/platform-driver-x86/20230531155457.31632-2-henning.schild@siemens.com/ >> >> has not been merged yet. >> >> I think it would be best to split the: >> >> drivers/platform/x86/simatic-ipc.c >> include/linux/platform_data/x86/simatic-ipc-base.h >> include/linux/platform_data/x86/simatic-ipc.h >> >> bits of >> https://lore.kernel.org/platform-driver-x86/20230531155457.31632-2-henning.schild@siemens.com/ >> >> out into its own prep patch named e.g. : >> "platform/x86: simatic-ipc: add BX-21A model" >> >> And then post a new v2 series for >> "leds: simatic-ipc-leds-gpio: add new model BX-21A" >> consisting of the prep patch + the actual new LED driver. >> >> Then I can do an immutable branch based on 6.5-rc1 with >> the prep patch in there and send a pull-req to Lee Jones >> for that, so that he can apply the LED driver patch on >> top of the immutable branch. >> >> This way we can continue with merging all the pending >> simatic IPC work without being dependent on Lee having >> time to review the LED driver. > > Sounds like a plan, i will send another version of "leds: > simatic-ipc-leds-gpio: add new model BX-21A" with the pdx86 stuff as > separate patch. Great. > But just to note one thing, we would be registering a platform device > before there is a driver for it. ("simatic_ipc_leds_gpio_elkhartlake") > I think that is fine> Yes that really is not an issue, e.g. the ACPI subsystem registers a platform device for every device in the ACPI tables and not nearly all of them has a driver. Having a platform_device without a driver around is not an issue. Regards, Hans