Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8212354rwp; Wed, 19 Jul 2023 06:53:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxVw7skSMgtCDJWS2APFHgDWe+k9ynS5jMAqXmf9yucXsJmh43NGYGfCSAtTtCxjfs7zns X-Received: by 2002:a17:90a:1f4e:b0:25c:2260:9f5c with SMTP id y14-20020a17090a1f4e00b0025c22609f5cmr1945598pjy.34.1689774825627; Wed, 19 Jul 2023 06:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689774825; cv=none; d=google.com; s=arc-20160816; b=mvQbZ5wybb3McnNJ/Bgcnnpp5CqfNEDFAvBMuiy939SY+g7X0RROmG/AP5o7Ip/Tai GymL0ebl70F/d2xPIl3lEZb2tuqjCMEAK+r17tyJqGlJge6j69Wv/oU8wlblWrUOCmXF XYPtRq5B1UP425ihSx37xPfN5x06lo//mQZP42OG7g1WmZidxStaQGuc17Q3Eon0BHMc ZULPOaK6jQ5h1laWPH99xU59l8sjZD6dQVgRsWfCHbzxLIYZszhjCV/KATZFG9ww6Nc5 6QxfHJ+hiCTl5QlK7HRtQ0qVZhtDbITYRJCFzf6vsoglLigIrJIgwhHI27KrywaUpI4i QYSQ== 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:sender:dkim-signature; bh=vEZpNOYS9nfEBGq46i0VO/JDsbT3stpNrnYlf/F2Bm4=; fh=7w6LNVPgGU9qVPpEbzfu/4BNLGVEsFoIyamml1j8QYs=; b=ISkTu6SsybKOysWuxmLU7GJ9HxYUPbkqwQqGMDI5oehxaFrYCKaQzGkhxzEBg0oRWB 7g9Sn6WoMWCB6l4dl1Z0NrZvS9kn1qOHdL4BiP/HSKVtdRzhG2YnIlr4ZMB9r6pjmHBd CUYujQxBYQed8/lStl6JglKTH7RhNjBOBC0d2SWd4sUVg9v+BmF6TxWT3ZXOAxH3grLo 5e3R1iBouMnSS0uvn0HAbAwD5CrCGHFfI4SjzuxXKwxl4nFdbHInFdWyaCyUD3hSePOz JzEqzPfEMNjKqHh8L9WOwtFVNALDQRRyid3h2MTh9nn6HI4/GfdLAKYTdi22YFraQQQe L8iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=G8vFs7rl; 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 pi12-20020a17090b1e4c00b00262ef440ed4si1515228pjb.27.2023.07.19.06.53.32; Wed, 19 Jul 2023 06:53:45 -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=@gmail.com header.s=20221208 header.b=G8vFs7rl; 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 S231263AbjGSN1Z (ORCPT + 99 others); Wed, 19 Jul 2023 09:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230224AbjGSN1X (ORCPT ); Wed, 19 Jul 2023 09:27:23 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AF4E10A; Wed, 19 Jul 2023 06:27:22 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1b9ecf0cb4cso42890765ad.2; Wed, 19 Jul 2023 06:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689773241; x=1692365241; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=vEZpNOYS9nfEBGq46i0VO/JDsbT3stpNrnYlf/F2Bm4=; b=G8vFs7rlJXCbgpn4q2delBk60nXYL9q0Qrzx234KnTpOjs1JPIbA2FQMBVxQXW3D27 BD22ZYk8nL3ap3wHIHgmXAhTgCxB7uJDsMt1ojnGbfDJs9E3XWi/4GM16vsst2/iML/k DcovuDihH0Dv8GRLv00BVZuvv/lr/TmzA/M4Z6wxNGxlysM6qqwrestKAx0EhclxJWcS rpeitkAxPXYNgEGvbj9uBJXrR3VbTTflsmklPyy39sTQENEK4nXRmEWQZyuKp11JtqVx juORTCPYUbKyCbJ0OrFpuIe1Q4t1kVRDBUnyBZUdIkf2f2gDFbEebv5t7A0yV3zeRmPH MPYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689773241; x=1692365241; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vEZpNOYS9nfEBGq46i0VO/JDsbT3stpNrnYlf/F2Bm4=; b=hTFLnKU1jg8pcc4bW9ZJ8/7zcbCYiNpmCvklqnKq8ODBfm2PnW8hjn/GNuPj4AL2GK 3LsEU6J56t/coAitxUnFhPRRa5JtiIMHY7Ea+IBJVMy3xJI/3JjD9VgTtDM7G6eZKqRO Q5Ep/r60U3kPu742PwNvj4qRnvHkPkx7SJwcn9VUUVW7M0pbjhay9bF1vVG7JIrDJ8Yl SByz950pUj7Z2g+qauR9FYflGaDvAWHC/1DGPFbG67sWZV5KjARSB4wDgDR1IZm6pbx1 LnSasMLJ6HNq+FjJIAwo5pQArPvSaIDuWq2p3Irr5Jd7qkQM6fdK296iQpWnDBM9cHNG Okjg== X-Gm-Message-State: ABy/qLZEb9NQs/BGfsihfb5t6tHR8doc48e7HxwZLmAuefP0e6w0yD5+ xWabakn+2MEGqGrYSrXSJAkTinHTlz8= X-Received: by 2002:a17:902:b086:b0:1b8:9b17:f63d with SMTP id p6-20020a170902b08600b001b89b17f63dmr2294700plr.23.1689773241404; Wed, 19 Jul 2023 06:27:21 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id jk16-20020a170903331000b001b8a3dd5a4asm3946916plb.283.2023.07.19.06.27.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jul 2023 06:27:20 -0700 (PDT) Sender: Guenter Roeck Message-ID: <160cb639-5081-ec50-2c41-fc31502107a2@roeck-us.net> Date: Wed, 19 Jul 2023 06:27:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/3] watchdog: make Siemens Simatic watchdog driver default on platform Content-Language: en-US To: Henning Schild Cc: Andy Shevchenko , Lee Jones , Hans de Goede , Wim Van Sebroeck , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-watchdog@vger.kernel.org, Pavel Machek , Mark Gross , Tobias Schaffner References: <20230718105213.1275-1-henning.schild@siemens.com> <20230718105213.1275-2-henning.schild@siemens.com> <20230718164251.13855c47@md1za8fc.ad001.siemens.net> <20230719091816.6661d535@md1za8fc.ad001.siemens.net> From: Guenter Roeck In-Reply-To: <20230719091816.6661d535@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 7/19/23 00:18, Henning Schild wrote: > Am Tue, 18 Jul 2023 08:10:09 -0700 > schrieb Guenter Roeck : > >> On 7/18/23 07:42, Henning Schild wrote: >>> Am Tue, 18 Jul 2023 17:20:48 +0300 >>> schrieb Andy Shevchenko : >>> >>>> On Tue, Jul 18, 2023 at 12:52:11PM +0200, Henning Schild wrote: >>>>> If a user did choose to enable Siemens Simatic platform support >>>>> they likely want that driver to be enabled without having to flip >>>>> more config switches. So we make the watchdog driver config switch >>>>> default to the platform driver switches value. >>>> >>>> A nit-pick below. >>>> >>>> ... >>>> >>>>> config SIEMENS_SIMATIC_IPC_WDT >>>>> tristate "Siemens Simatic IPC Watchdog" >>>>> depends on SIEMENS_SIMATIC_IPC >>>> >>>>> + default SIEMENS_SIMATIC_IPC >>>> >>>> It's more natural to group tristate and default, vs. depends and >>>> select. >>> >>> Will be ignored unless maintainer insists. >>> >> >> Maintainer wants to know why "default SIEMENS_SIMATIC_IPC" is needed >> or warranted instead of the much simpler and easier to understand >> "default y". > > I thought a "default y" or "default m" was maybe not the best idea for > a platform that is not super common. That is why i did not dare to even > think about defaulting any of the Simatic stuff to not-no. > > But it seems that this would be ok after all. And i would be very happy > to do so because it means less work on distro configs. > > SIEMENS_SIMATIC_IPC_WDT will drive a platform device which gets > registered by SIEMENS_SIMATIC_IPC and nothing else. That is why > "default SIEMENS_SIMATIC_IPC" was chosen. > It depends on SIEMENS_SIMATIC_IPC. "default y" would make it y if SIEMENS_SIMATIC_IPC=y, and m if SIEMENS_SIMATIC_IPC=m. If SIEMENS_SIMATIC_IPC=n, it won't even be offered as option, and default={m,y} will be ignored. > But if i may i would change that to "default m", not "y" because there > is an out of tree driver package which if installed on top, should be > able to override the in-tree drivers. > > So i will go ahead and make that one "default m" > Why make it m as default even if SIEMENS_SIMATIC_IPC=y for whatever reason ? Presumably anyone selecting SIEMENS_SIMATIC_IPC=y would also want SIEMENS_SIMATIC_IPC_WDT=y, which is what you had before. Sorry, I don't understand your logic. Guenter