Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2304936rwp; Fri, 14 Jul 2023 04:16:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHg1nKtOuBLeuo2uJzeFmZ6P74kusCUO84B9ZzY7mPtOFxmmefc1ycjpv2QoVT5k2UjvKMR X-Received: by 2002:a17:90a:ee81:b0:263:6a7e:c239 with SMTP id i1-20020a17090aee8100b002636a7ec239mr2962083pjz.37.1689333418454; Fri, 14 Jul 2023 04:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689333418; cv=none; d=google.com; s=arc-20160816; b=C74SNt3TcEM6/gOoMWo0BYY0bYfeUPoKwWeVLU+eskaZjmqJk0l3B/2vKuTzqitJhv eJ01JWwttMWxeDVFMMofHkeCGSgAH4awg8VAjcy1YCmg1u5yEFhH2xypKUYU0mlDo7Tg Tyicv7dK0ceKOD008kYvc7m/tME8g9HJ77UmwFAPbPpBvyZrMxBw2gaJa1GKfXlEQF8O 4ef6javHx9tMKU7bSyrUGo7xUEWGV/k/ohqFRP4R4qZgxySPibuIoukuNPm+DV/NXTpl aSxnN1Ys9DA4UnvdMUNfQ8vF9n7SYlpfSuXyG7PttIemucqp6OaDwZtdB+P0fYFwrvfE 5Y3Q== 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=96qqFzDGT6zmEWh/wldMyUAPgFi2WARkbaGaLknDDcA=; fh=qvzbTd11Vo6BzKRcEl8XLE/cMDjbVrxapiveh/rsFIk=; b=rHqrThGupgQ4Rp7nzQ8Jom5JoEf3RBskDZZZZpT9y5jzqjmG9180QEpNWpUFvhAZl8 nn7R/mXVsWkQIKJLNnj38cBKE2I6csbdYyZ3YukdsotVV2cfo5YDgcRL9q/E1TQLSI5i QC+9P/9kHxvpB0Vk9XODbsuvq4gDq8hvRzaSNDpadaLvHWPv6PiByguvS1+tJZWdz6PR qiTorSx5WzLbgSlKgVe9/jv7AcDPEzXyCyOfO97mJuVFWUU9hQ2raGLbzvtc7M5ZWUW2 TDQhQ4rlqotdcrSKBHHT1wlwEFPn6Qv7qNJX8w5m1XIjkw+qfNS0nIr10Jzy4YTVofIF 1a8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=E0pA+QK0; 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 c3-20020a17090ad90300b0025be6419478si1078594pjv.92.2023.07.14.04.16.36; Fri, 14 Jul 2023 04:16:58 -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=E0pA+QK0; 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 S236187AbjGNKTA (ORCPT + 99 others); Fri, 14 Jul 2023 06:19:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236142AbjGNKSw (ORCPT ); Fri, 14 Jul 2023 06:18:52 -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 770B91989 for ; Fri, 14 Jul 2023 03:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689329887; 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=96qqFzDGT6zmEWh/wldMyUAPgFi2WARkbaGaLknDDcA=; b=E0pA+QK0lfNA1fqbUW8KHJHIltcB4cI6sgmruahmq70cZFVJdymVYkphtPX1x4nxU4harE aCYK0jbLd6ik4MaO2DrXcDFTquYyIxR/4vEmZf6mOHwld5Oy+qbstnjIAM1fuxNXKzXh4l /f/qF+VfFPmWYsQmdOOKNfVIFJzmbHk= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-530-NU0TN5WPNVKVVHokeMOujQ-1; Fri, 14 Jul 2023 06:18:06 -0400 X-MC-Unique: NU0TN5WPNVKVVHokeMOujQ-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-94a355c9028so96226366b.3 for ; Fri, 14 Jul 2023 03:18:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689329885; x=1691921885; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=96qqFzDGT6zmEWh/wldMyUAPgFi2WARkbaGaLknDDcA=; b=c1m1yaDLUMUu/INRKUl7PXT+JwtK4jgHWa1Dh3+odm9eKJjSxQm4Ot/TDwyj3rPJEn pzxIUfI/oXfnfyMyOQX1DQWeNVfXeiY82snI/JYQndkhfK8ioYHz7Ow+C+a7gPGqkIjj gOxiqKlFAtG1Mhrh5bT8+4pSsOKK/61kGG/06Bv/8Fck2a1EXdTEssXapVuhTJpYjEXW pzDyBXkqeHIT5g9nZ9HsI1h/fKJL4ihWrftz7Yd8MQjYvksscRVoEpeUf1HtZROMdJny Tuf71kiIXBkuis25JTPvqKT7bX8qIHebIr2Hm+Zvm5THnYc5BdTACiZMdVq18zIpDNlw 4EqA== X-Gm-Message-State: ABy/qLalP3FW5jVPx+GM4wOd1gkTXV/ok8Mm39szt2eZsZOAJWQpNjKa qoA9lgB22mEhQB/3RQ4hsnTWYo01Q3mdZX8yz+tI9hddQmSd/T8cheEgvo0PAybQt/xXzhwn6SD nRF1vBjEnDQD2q3vu5fJRQf02 X-Received: by 2002:a17:906:10cf:b0:993:d8be:53f3 with SMTP id v15-20020a17090610cf00b00993d8be53f3mr3484732ejv.14.1689329885489; Fri, 14 Jul 2023 03:18:05 -0700 (PDT) X-Received: by 2002:a17:906:10cf:b0:993:d8be:53f3 with SMTP id v15-20020a17090610cf00b00993d8be53f3mr3484717ejv.14.1689329885208; Fri, 14 Jul 2023 03:18: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 s8-20020a170906a18800b0098e0a937a6asm5218411ejy.69.2023.07.14.03.18.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jul 2023 03:18:04 -0700 (PDT) Message-ID: <88021872-8aff-4bd2-ba95-8277a5a8e1fe@redhat.com> Date: Fri, 14 Jul 2023 12:18:04 +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 v2 0/3] platform/x86: simatic-ipc: add another model and hwmon module loading Content-Language: en-US, nl To: Henning Schild , Mark Gross , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tobias Schaffner , Gerd Haeussler References: <20230713144832.26473-1-henning.schild@siemens.com> From: Hans de Goede In-Reply-To: <20230713144832.26473-1-henning.schild@siemens.com> 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=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 Henning, On 7/13/23 16:48, Henning Schild wrote: > cahnged since v1: > - switch to using a list of modules per device > - add p3 and make the watchdog module load code use what p2 created > > The first patch just adds a device that is pretty similar to another one > we already had here. > > The second patch loads modules for hwmon support, should they be > available. That will save users the need to detect and manually load > those modules after a machine has been clearly identified by its Siemens > Simatic IPC station id. > > And finally p3 changes another request_module call to use the mechanism > introduced in p2. > > Henning Schild (3): > platform/x86: simatic-ipc: add another model > platform/x86: simatic-ipc: add auto-loading of hwmon modules > platform/x86: simatic-ipc: use extra module loading for watchdog > > drivers/platform/x86/simatic-ipc.c | 74 ++++++++++++++----- > include/linux/platform_data/x86/simatic-ipc.h | 1 + > 2 files changed, 57 insertions(+), 18 deletions(-) p.s. Looking at the latest simatic pdx86 code: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=platform-drivers-x86-simatic-ipc I see 5 Kconfig options and 5 .c files directly under drivers/platform/x86/ at this point I think it would be nice to move this into its own simatic subdir: drivers/platform/x86/simatic with its own Makefile and Kconfig to avoid cluttering the main drivers/platform/x86 dir and Kconfig too much. Can you prepare a patch for this on top of: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=platform-drivers-x86-simatic-ipc ? See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28 For an example of a similar move done for Dell. Note this example also adds "default m" to all options except for the main X86_PLATFORM_DRIVERS_DELL (X86_PLATFORM_DRIVERS_SIMATIC in this case) so that on interactive make config only the X86_PLATFORM_DRIVERS_SIMATIC will gets asked about and then the rest will automatically get enabled as modules. Regards, Hans