Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp2104796otr; Mon, 25 Jul 2022 07:25:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vyuM82YgptTaKriK5+J5ESPox9OkiEzjvErgdQDhsPnHWZYOq3Fv3lsgM+8RuXN5MXoB1J X-Received: by 2002:a05:6a00:1948:b0:525:45e3:2eb7 with SMTP id s8-20020a056a00194800b0052545e32eb7mr13191713pfk.77.1658759113207; Mon, 25 Jul 2022 07:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658759113; cv=none; d=google.com; s=arc-20160816; b=THCdxMfZfoJKq6ECFmDFPEKTwL4JhcHY+H7+ySc2uA3/Pd8eOv4ZL9k8rvwz+Riczb +/ih3RitUUfeuZL55KN6vQ8G32nbMpw6qsx9ILPYxpIU6c3jGWn9coRGNYjeu4uyTB6H kWx6UnWfhpvyPKRT4vzrsPDsfRdwmSdX+MmClXwVUzNDjM7+kUCWZ9QKwE04yYm0Y0s5 Xon3ah9kfZfqJqK6KZA+cOEiNt4OUWnubsiO0Vzqsn+7QRyuzOGmK7dF4QDaQ6/3Z7tN FkrEkZ+SqaVPxzsZ0KnlqhV81ntIcGWFTEPyfXwd1a+9uYLocUUhgmhc4H0CcTteWKQp D4Ww== 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=mbvIXTn30Rl2aubdxi4kIY7ompkhv+r5bFVC1iAjIf8=; b=xH+Zj8zg8wv/iYujX4HuHitgoPs1ma7w0WSAmd4Uq5vA69f0e1dEQGIDeW1UGab4lO BpR5hZSRFMprf0cWjLoqrHdXdlHS3JBGpCSuYYEPTP5s0dnkecZXQcrvwGbwQl/RATst pfxgTQgpoVAegUmJPg2BM9Vx/yV4RfBaguEZ+9/KgJ9MiEukpANgtXWuWYvzpk8oEp5t uynVP+6sdUDOCLEOvM5BWkZHfbFswdeXkkodYp3/B2OAWMg7wYUdzpSZWhxfbQDgRU/7 J1n4kTvyEaEYnVItcrBrPIPPxdFNWlvANSOvtKsjAriDyl0BS2UQk7IXZWvzCS4nOdOb aU3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qfqOX9NC; 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 s13-20020a632c0d000000b0040cc512db04si14348938pgs.844.2022.07.25.07.24.57; Mon, 25 Jul 2022 07:25:13 -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=20210112 header.b=qfqOX9NC; 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 S234082AbiGYOHX (ORCPT + 99 others); Mon, 25 Jul 2022 10:07:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231472AbiGYOHV (ORCPT ); Mon, 25 Jul 2022 10:07:21 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B79613CC4; Mon, 25 Jul 2022 07:07:20 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id c3so10505812pfb.13; Mon, 25 Jul 2022 07:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=mbvIXTn30Rl2aubdxi4kIY7ompkhv+r5bFVC1iAjIf8=; b=qfqOX9NCZ35c6s1+SGcylAwHK9tj10QEKszs64RSy5mqoYX/WRpd+eSVS8E16g37wR 2Ik1lf1EARtX6qnb5Du79G54GHaTQiVsLhBIYdICMLPCXT3vKAEI17qNPW54qIgMNKwD B4i9wM53v5bmi0sHa/k9ZGjBh/asZykwpPNcdknzBvwyKG1qDkWGHL0wu06Ey0P/9c/a dK7R+Mk5b8sHYmKnGr0gNEop5GMnI4BGyuCWR2EGy1rfIrJauoPTYI0mT5Izrpfe2GP5 3QGLtf9JVjsaW1tvkzt0gwaH4MCWAPiR73EHVaT3K+NHw3Y1tzvfI8apJnndTUq+Y5jv JDNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=mbvIXTn30Rl2aubdxi4kIY7ompkhv+r5bFVC1iAjIf8=; b=DwWrTBMBZhSPTyu0mQA+qAasJsgbu6cjZT5wc4uTvWVoHBZFVKYCW1beSHgobtEI8T m6Y8cVrvrG7uicLcuFF0gu6tpfcFcfs3BTQyMhnTwiM9+JnO1INrMOl7YvlE2iPcMPaY GYOR0szM9auAQPL5T+16mqwy63Njh098rVkac/Zn0zSNP193yQCuYTtYFUuN1ZI4RAPM 42ynA0OBhaiuKuwEleM3D56DnOURdSge0jvoSZHa6jePUjRUFfioLKHKsjuEGV6Oc9mh 9D+fRPZw1I0Z3e4kolyoZ2orueV9qXhs8q1CV1CRxfY7YaRm5yWVk+i/ZZUl+URGsVhC DF4g== X-Gm-Message-State: AJIora/s151xD+zNhW7aau2h5DQUnjcMgMrB1/SdZxE5+anrXpk/EXmO pqtLLniQY8jIsWyBMtzaBy8= X-Received: by 2002:a05:6a00:140a:b0:4e0:54d5:d01 with SMTP id l10-20020a056a00140a00b004e054d50d01mr12917947pfu.20.1658758039791; Mon, 25 Jul 2022 07:07:19 -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 p16-20020a170902e75000b0016b81679c1fsm9381356plf.216.2022.07.25.07.07.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 07:07:18 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Mon, 25 Jul 2022 07:07:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v5] watchdog: add driver for StreamLabs USB watchdog device Content-Language: en-US To: Greg KH , Alexey Klimov Cc: linux-watchdog@vger.kernel.org, wim@linux-watchdog.org, oneukum@suse.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, atishp@rivosinc.com, atishp@atishpatra.org, yury.norov@gmail.com, aklimov@redhat.com, atomlin@redhat.com References: <20220725030605.1808710-1-klimov.linux@gmail.com> From: Guenter Roeck In-Reply-To: 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_NONE,SPF_HELO_NONE,SPF_PASS 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/25/22 01:51, Greg KH wrote: > On Mon, Jul 25, 2022 at 04:06:05AM +0100, Alexey Klimov wrote: >> +static bool nowayout = WATCHDOG_NOWAYOUT; >> +module_param(nowayout, bool, 0); >> +MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" >> + __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); >> + > > Meta-comment about watchdog drivers, this is per-driver, not per-device, > which does not make sense for when these devices are on removable busses > where you can have multiple ones. > It is really intended to be a system configuration parameter (CONFIG_WATCHDOG_NOWAYOUT) which can be overridden. Also, I think it still makes sense to have it, even for removable devices. The ability to bypass the flag by pulling the device would defeat its purpose. Guenter > I don't suggest changing this (as it follows the current style of other > watchdog drivers), but perhaps a sysfs attribute for watchdog devices > can do the same thing in the future so you can do this on a per-device > basis. > > Anyway, driver looks good to me, nice work! > > Reviewed-by: Greg Kroah-Hartman