Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp501765imn; Tue, 26 Jul 2022 01:27:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sC2CF6TwMSMprZcpQzc72o25j5AtfOkhjtGcVqjO9zZQgRhH3m6f5lDCSPdcbgPTUOaPyh X-Received: by 2002:a17:90b:149:b0:1f2:f657:2f17 with SMTP id em9-20020a17090b014900b001f2f6572f17mr1407321pjb.203.1658824076141; Tue, 26 Jul 2022 01:27:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658824076; cv=pass; d=google.com; s=arc-20160816; b=0NY8630Mvl82PajWlyYCml5HoA5ZB+iBa/WxXLzPR5nWDORz70IZwWKr6wASGD7tjd jp5Ltf4PUnWnhHo7ol6lrFmAKUmBFMX5cDL4b0wa6fG3e5O/jlE0/83VyeeW3edt0H81 biKioq8oveZUFlIzy60HEv8r/tw18QcZ4G9EhrTxgbkGqkFXpSgig47vmXLPYiHKXxhg aKxDvw3MBUFTMYyCPUjlO7E7x1yCIIaODrsyYHdicWdUcNYHvBNH3BpX5STNjasPq0NP liXSgPxjrrI+dHZQUcHi5E+7G3W8iDZ0ehvDUEL2wZbd9k4OQZvA/ZCK+y9U3DU3QmI6 AWDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=QMzMzaA9/WQOoJ5oEFmo82j9mlzhMnMe2NhORhghQMw=; b=KUJL0kZqLn+rBxEunf7hiT6WirTR5USE4hU5xVAwzhTc0ryZAjgWpVOhw4nlN9hzyj EqaRgmXpKnmwP/99sBZdkktmPe1cXcy0zT2EShr6c0WrfkNQedSSxvC4RIm0KdNDbAFG 0uHU7mO1zAiBoESgotr++yVuA0/G/1tvImr/gaLwJXDi5HEsKgGVsfjeIKmd+zswckje 2DXmshVwzfECUASqWdLfKXif/Uu2FJpYbHTY5vV5ssjL5q2eAGxekDvv9HXoYHv8yLn6 EMvUClLoBbaHrpOSwwpHm91hvuHiOMiLBr1VYGIghRU7XkJDPKy+mZgLkNqNgRqpZwdn f9AA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=YfW5l8eS; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z5-20020a63d005000000b00419b8e83910si16153862pgf.668.2022.07.26.01.27.41; Tue, 26 Jul 2022 01:27: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=@suse.com header.s=selector1 header.b=YfW5l8eS; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238410AbiGZHsd (ORCPT + 99 others); Tue, 26 Jul 2022 03:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237783AbiGZHsa (ORCPT ); Tue, 26 Jul 2022 03:48:30 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70085.outbound.protection.outlook.com [40.107.7.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B1329C9C; Tue, 26 Jul 2022 00:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CcmEdKnn5moZ8TVRMBdaUFm5lSdXLq04YkeDMhaEjrHkF9nDRz8u1PrEABoHfG+o/GXxqYWo3SSUJEagy/5AeOerLi0LHPzqVLEGwF32bzlWJ153nkGn9qxIvSkqIK9HST7VYzGg3mnuZvQDS7WQlHWyQhtqE0fKzEPZeTOqC3c7cU8SCDZPRzoopSx/RP9jHpHLacXeUH5hYGuBuwtr60DNliZI3/2cGU+QBF3npAjJdDEHNhwFV4GWPkR3jKS0Ooe9/wHLBsX6IvsEvxnchmgAfwKjWvxGVKb96ZGJc2Y23lJx8s+F23tZZMsv2CRAgNxK10yd5qjbO7+Ol1o/Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QMzMzaA9/WQOoJ5oEFmo82j9mlzhMnMe2NhORhghQMw=; b=a2ZOvjK3lzZYYaXy932Hzk6Z+a7Q9LOQMeYZPAlIsqr5WW16UzLbi+KCvunOrmiuRTcQebNxALiRxfWORVkRVG8XR3v61z3wsFAo8+wyfR08QTbWCHnNa7NFvSXQTWRB/30U5K1LSyLrYk6DEb4DjUbqEyb5cCgmDc1k7ZyIaPZoythaQ5fHoKLH87fMe888OirJafHqiHXCV/kFYp6ljTZYiYozBHuAw3iBfeiHVlydXt1cjVF/JmZoM4OueQNbxZMvzV2RjHHv5HY77OYyeLYsuA7GtFAHbOI1RrRDkhiLZh4BB09vtxLjqSwLTpjgGsqIqPC3rSwv/lCU6jjy1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QMzMzaA9/WQOoJ5oEFmo82j9mlzhMnMe2NhORhghQMw=; b=YfW5l8eSWLHKrIln0n65p8UbZ0Pqpvj3p137qZ38d5tU+olk+P2fb/4r2USd/ScCP5DQw57cpNjO+17Ms7JZQgBSvceZewbQCclvG0OuAS2DMKmMh3acPzehMlefjEo5IlvBt2MP2LgerLjMm8lY7ZslbaY6MB/ykQ9IkLsnvuKnYoLBtbnfzybgi5uV807wQScCnZlv9k9/I6bdJ2BYAeuhsu3bPxs7HRrYXRhNuTqcZ1qwcZAwnTiHbzXeDub6tt3pr4Wu/QT7m6SJ/Qtkf3k/UfTY5MWAPt3XCnNvpQEMUtNYWQyDN9tNHAFGuVRMlBxql7DvgNd1jBSLmO+Hxw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR0401MB2526.eurprd04.prod.outlook.com (2603:10a6:800:58::16) by AM9PR04MB8636.eurprd04.prod.outlook.com (2603:10a6:20b:43f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.25; Tue, 26 Jul 2022 07:48:25 +0000 Received: from VI1PR0401MB2526.eurprd04.prod.outlook.com ([fe80::21d5:a855:6e65:cf5d]) by VI1PR0401MB2526.eurprd04.prod.outlook.com ([fe80::21d5:a855:6e65:cf5d%12]) with mapi id 15.20.5458.025; Tue, 26 Jul 2022 07:48:24 +0000 Message-ID: <7770401d-fe3d-bda4-a2e2-55cd004a2d07@suse.com> Date: Tue, 26 Jul 2022 09:48:21 +0200 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: Alexey Klimov , Greg KH Cc: linux-watchdog@vger.kernel.org, wim@linux-watchdog.org, Guenter Roeck , Oliver Neukum , USB list , Linux Kernel Mailing List , atishp@rivosinc.com, atishp@atishpatra.org, Yury Norov , Alexey Klimov , Aaron Tomlin References: <20220725030605.1808710-1-klimov.linux@gmail.com> From: Oliver Neukum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0160.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::15) To VI1PR0401MB2526.eurprd04.prod.outlook.com (2603:10a6:800:58::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d368b459-029b-419e-e36d-08da6edb3804 X-MS-TrafficTypeDiagnostic: AM9PR04MB8636:EE_ X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0EXqhEIA0Rvkk8XC8XBA7FS7Fv9O37ZL3WaMjpkP77I1YGTYVVFoGPabByqDBt1RgS9OUDDlKuOSgWSXeWjZHIdGsRBUcGzkTPbv+s8Yh9kEEyKZX/tz10IrXgR2Z8Qu/aTTPBn1dtTV2gPJEpfNg7iH1Ho2n6OnoeegEB0AAUhYkt48y+R1tI1cHiwLGlLMlZ4aNgWLkKHPy1H4Ea9sFw7LuQAI1MMM0Dj9IhrnTwMVoqjXsCk/boND8fzxzpFY7G7zkXh8UJkssiejKzhj5cUcv6Hwh0VZl67Hveo/vB1ybjuPLIFcuZfqFVE/VMFrhyKjPj4aOI5PSKpMdIdvQVAguFRDwuZxdvcnBRg9Je4wiimoI9IxFw6JR56LHwK/8EhQlz1sNmXR7Z2GcHVhzRmw/OunPkcdpEAuISuDYj4WKvYE5rMraUIhwYtfknIglnRiSfqREYq56YNaK101teb6wGh8YrO+4JNK4ESJFKSPWtvQA07SKBAjhMLyiVEc/8wj83QF4r4NUyCUzY3AegXGBOb26a3JDVBGkiO5I/Eutpr6shibfuPiGShzrquHMqoydDKXOF+1/YO+C+5bGAFST1rNDBGU9F3Mi3WnxKQEHKc1YYuZxVYZNjGdt4USzw2lTuRY6fmsC5uNhD7iAZO0SJV7vNgi4bjlSQpOFQWSjtY8k9aMPrz9oVNgZoeebrBhISFpA3drJLuw1+QWvvPptvMl6dFdrKhhHaqWwCFWau4vycli6gL2sWsD9/kSiKH20oNVNrh4ntRnRonpmUC6WV2aedV/GZ58JIC9XH6JsOKxMtblHqmyqGmYCAio/mpDXZvJCZFXT1XFI4komg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR0401MB2526.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(366004)(346002)(376002)(136003)(396003)(39860400002)(7416002)(186003)(8936002)(83380400001)(5660300002)(2906002)(86362001)(38100700002)(31696002)(4744005)(66476007)(2616005)(31686004)(8676002)(4326008)(6486002)(478600001)(110136005)(36756003)(54906003)(316002)(6512007)(66946007)(6506007)(53546011)(6666004)(41300700001)(66556008)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c1RnWndCQTl6KzNUWXJMdmh5bzBHM3dWS3ZHNWF2NGRRMVhkVFJRcjF3V1VI?= =?utf-8?B?bi9oQ2lkV2J2S1hlSHFGYWhTNitUMHdvakdHOHJTODlJMEJIMTE2Q1h6dlh5?= =?utf-8?B?TUE0RHBEaU1HSUxET2dyUHR5aCtoQ2ZLbTZuR00wajNWenUvdloxWklRZUt4?= =?utf-8?B?cFRjQUdPaURsaUFNU2cyTHdndlFNamFy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ZDRk14K3Z0?= =?utf-8?B?QzZzOFhzV2lPMVpVZ05sTGdiYmN2TFMwWWtuVUZlYlVZbmZ1QXpIUFRURG9r?= =?utf-8?B?dGhRRmxTUGVIU0tDWWxCVkp1MVMyYko0OENGeEk0K3VmazlpY3hTdFJYdk9Z?= =?utf-8?B?Y1lMMkZzY3hiMnNzbGtMNTNXenZReGNocE5taGU0Q3hPcThwUDlQT2xsOGZk?= =?utf-8?Q?a47v1xK3Kv5CQQrKYMbKpp2OKwjJin4+k+4P5lCCBgAQ?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: d368b459-029b-419e-e36d-08da6edb3804 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2526.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2022 07:48:24.6208 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kYShPd6b+mIvNjxsXoVRX39Un3RDGyDXp9BHl3HXulcWibbeQhEobhBfdCCatWkZSnvp1SgNFltxqPvZ/e3+Lg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8636 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 On 26.07.22 02:21, Alexey Klimov wrote: > On Mon, Jul 25, 2022 at 9:51 AM Greg KH wrote: >> >> On Mon, Jul 25, 2022 at 04:06:05AM +0100, Alexey Klimov wrote: > > [..] > >> Anyway, driver looks good to me, nice work! >> >> Reviewed-by: Greg Kroah-Hartman > > Thanks, Greg. If you don't mind I'll use your tag in next version > after making changes suggested by Guenter since there will be no > significant functional changes. If code will change a lot, then the > process (Documentation/process/submitting-patches.rst) will require me > to drop the tag. Hi, while thinking about this a question arose. How does this device react to a USB reset? A watchdog that can be disabled by a simple reset does not like very reliable to me. Do you need to implement pre/post_reset() ? Regards Oliver