Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp876644pxf; Wed, 7 Apr 2021 13:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkTEaad3Nb6gj+FTyX85WXtJ0VHeNJ8ne/cEHhmTDcWo5We5o3lNWVaI4bXiuuBEVqw3zP X-Received: by 2002:a6b:ec14:: with SMTP id c20mr4097843ioh.122.1617828971025; Wed, 07 Apr 2021 13:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828971; cv=none; d=google.com; s=arc-20160816; b=JY7YPBitZoyguvq1l5LyNGuresvHogCBGHwB4U38UO7Ngt8jY6fQevTlOKu0S35423 ukcRkM5/sn67C6PnYRJ85mS6bl7TWwr305Kc6Ww3qZjxSUBn+dLx351AQfaH1sJhlT7d 9gWuO7wIeLFVJi8Jo1Bz8Oi2Lv/DJr8Q+fYyZ6NSkXY+fHcGqwdq6o+8I47dYTajlr6g glwXIFkYIPSUXul6Ma8muVVtQyKwZ/46mDWTT+cjMwRysvPc62XVMkgDfa5zdPPOp2V7 EeT2EF71dCkUzBizAIi5X+m31XOWfnLQ1EBiDKAtZBqWEUF4EMOJ/hkUOrpvawAIngkQ HY+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=1+IGD1lFi/dtjGX1UdNt4cubGIxpuOkFLqRacFVurCI=; b=LMhe2x0VhYK1GLWGKxb+tshsef/9j7nVmBuyFew9Zv8Hhq9DtA083tyw0q4kWoaqUP cVUqpc0L9/OYMEBcy58YIXQqeMIrtFlFBjCgm11xGNNHRcBA/XIMTNpP9u+D+fN4HSUz s3FmZrAsTd6fqyN/UsuKBNzL0rleQFaemyIu/2LqiQE7Y8ox4L35ST+eDZjtFHWie+7t qK9s6vnjhYSj/wYwGv+rM1B0U/uY5ZaPJQGQ4ebID7lolg6pXj2ZiT2DlW1a5Hf+y/qn RAz2dtcpXHVRFGfvzSZ8kJsD+PvI2J+pU4ZPSXZ2y6Vax8zccNaJcLHh+muKjKcempno G1bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R3aJLZvY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si6707988iln.93.2021.04.07.13.55.57; Wed, 07 Apr 2021 13:56:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R3aJLZvY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240491AbhDGLg4 (ORCPT + 99 others); Wed, 7 Apr 2021 07:36:56 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:37371 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235017AbhDGLgx (ORCPT ); Wed, 7 Apr 2021 07:36:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617795404; 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=1+IGD1lFi/dtjGX1UdNt4cubGIxpuOkFLqRacFVurCI=; b=R3aJLZvYX2k9dZgWLnVQzFAjkEyVBEBaMQojTSvpGys6juDrs+3Kb5JVG80MrboLppkQBi T92oZrNZ9YkRmb2yF8l9Q2TM5apRHqQzgQrMOawuTqbEN91fazh2oqUJ5boQ7y0VYMSdqG OrIhjXrvs4fEEgIJOfII4o0hEcMR5dI= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-228-xJdS3RDtN-SZVmuqVawpsw-1; Wed, 07 Apr 2021 07:36:42 -0400 X-MC-Unique: xJdS3RDtN-SZVmuqVawpsw-1 Received: by mail-ej1-f69.google.com with SMTP id k26so3157863ejs.5 for ; Wed, 07 Apr 2021 04:36:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1+IGD1lFi/dtjGX1UdNt4cubGIxpuOkFLqRacFVurCI=; b=EkM84dHYOkYbb5NeMPSoqrTgHFlTLognj1P8NnuZwGLRk1mflnCN2T/8qlDfUzX0Zl 3UJx3EI/AlFZ0ahOhIyFT+gaYMtRf/KXLuFQSQjtolXgIlGgxkqq+5iTH2JsPxcgSIoH 5aRpA8ASWSIVUSrDwQvXgj1+A6XLXfHFfyK/SWFdA/6I5D7S7BzPxYfRvHH6a2e/Ptr9 eukqV6HE5pX4h/4iB4t3P3guDvgk0DIyAl0zywWqeX3HLS5KoeN2NrCM3ZGzGjFpSyFQ W5GdROr2mpEcfLSiG6UnhEfW/vteyBVQ8CaS+S7xClJlKeZKGsHKzFuR7ZZMcpG1bbCx wjwA== X-Gm-Message-State: AOAM531HgfzKwVmX+StwvnZHxakWNtKmbG9JIP2asQXLFyPulSaUj8pb VRKQH8SZvRBTypoFIfYnpgQePFQDDIaw6L49c0TpiZMxLvFZ2s78r9jwtWqmatqGitEDwhgAEOf RoxwnxYZjYHDH6yytGjs6xp5k X-Received: by 2002:a17:906:7257:: with SMTP id n23mr3242607ejk.412.1617795401467; Wed, 07 Apr 2021 04:36:41 -0700 (PDT) X-Received: by 2002:a17:906:7257:: with SMTP id n23mr3242584ejk.412.1617795401306; Wed, 07 Apr 2021 04:36:41 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id r26sm4127077edc.43.2021.04.07.04.36.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Apr 2021 04:36:40 -0700 (PDT) Subject: Re: [PATCH v3 0/4] add device drivers for Siemens Industrial PCs To: Henning Schild , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Srikanth Krishnakar , Jan Kiszka , Gerd Haeussler , Guenter Roeck , Wim Van Sebroeck , Mark Gross , Pavel Machek , Andy Shevchenko , Enrico Weigelt References: <20210329174928.18816-1-henning.schild@siemens.com> From: Hans de Goede Message-ID: <857d6cd4-839d-c42a-0aa7-8d45243981ee@redhat.com> Date: Wed, 7 Apr 2021 13:36:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210329174928.18816-1-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 3/29/21 7:49 PM, Henning Schild wrote: > changes since v2: > > - remove "simatic-ipc" prefix from LED names > - fix style issues found in v2, mainly LED driver > - fix OEM specific dmi code, and remove magic numbers > - more "simatic_ipc" name prefixing > - improved pmc quirk code using callbacks > > changes since v1: > > - fixed lots of style issues found in v1 > - (debug) printing > - header ordering > - fixed license issues GPLv2 and SPDX in all files > - module_platform_driver instead of __init __exit > - wdt simplifications cleanup > - lots of fixes in wdt driver, all that was found in v1 > - fixed dmi length in dmi helper > - changed LED names to allowed ones > - move led driver to simple/ > - switched pmc_atom to dmi callback with global variable > > -- > > This series adds support for watchdogs and leds of several x86 devices > from Siemens. > > It is structured with a platform driver that mainly does identification > of the machines. It might trigger loading of the actual device drivers > by attaching devices to the platform bus. > > The identification is vendor specific, parsing a special binary DMI > entry. The implementation of that platform identification is applied on > pmc_atom clock quirks in the final patch. > > It is all structured in a way that we can easily add more devices and > more platform drivers later. Internally we have some more code for > hardware monitoring, more leds, watchdogs etc. This will follow some > day. IT seems there still is significant discussion surrounding the LED and watchdog drivers which use patch 1/4 as parent-driver. I'm going to hold of on merging 1/4 and 4/4 until there is more consensus surrounding this series. Regards, Hans > > Henning Schild (4): > platform/x86: simatic-ipc: add main driver for Siemens devices > leds: simatic-ipc-leds: add new driver for Siemens Industial PCs > watchdog: simatic-ipc-wdt: add new driver for Siemens Industrial PCs > platform/x86: pmc_atom: improve critclk_systems matching for Siemens > PCs > > drivers/leds/Kconfig | 3 + > drivers/leds/Makefile | 3 + > drivers/leds/simple/Kconfig | 11 + > drivers/leds/simple/Makefile | 2 + > drivers/leds/simple/simatic-ipc-leds.c | 202 ++++++++++++++++ > drivers/platform/x86/Kconfig | 12 + > drivers/platform/x86/Makefile | 3 + > drivers/platform/x86/pmc_atom.c | 57 +++-- > drivers/platform/x86/simatic-ipc.c | 169 ++++++++++++++ > drivers/watchdog/Kconfig | 11 + > drivers/watchdog/Makefile | 1 + > drivers/watchdog/simatic-ipc-wdt.c | 215 ++++++++++++++++++ > .../platform_data/x86/simatic-ipc-base.h | 29 +++ > include/linux/platform_data/x86/simatic-ipc.h | 72 ++++++ > 14 files changed, 769 insertions(+), 21 deletions(-) > create mode 100644 drivers/leds/simple/Kconfig > create mode 100644 drivers/leds/simple/Makefile > create mode 100644 drivers/leds/simple/simatic-ipc-leds.c > create mode 100644 drivers/platform/x86/simatic-ipc.c > create mode 100644 drivers/watchdog/simatic-ipc-wdt.c > create mode 100644 include/linux/platform_data/x86/simatic-ipc-base.h > create mode 100644 include/linux/platform_data/x86/simatic-ipc.h >