Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8038954pxb; Fri, 19 Feb 2021 06:03:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqF2A/JgXCm5kWIhQJfoCsFzpqmkzuvqV+xdaxjgKcKDXCpAVF1KVtap+OZuf7tTsbJfcA X-Received: by 2002:a17:906:bc90:: with SMTP id lv16mr8752116ejb.293.1613743434014; Fri, 19 Feb 2021 06:03:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613743434; cv=none; d=google.com; s=arc-20160816; b=dvcdZIt5ruf7K/yWicfjkUJPLdCUs0F89SLt4Lx7ikRWamx4x4zZ0WUWesZ1G0X4na 2+OtiF+r+ihenZwod5q3XqfcH4OnyONlm809srab+eAoRm4X0khjtS66+Ybn68ykJ6um HADVuzmuLYYJFQTnTseMiTNtl9SFdoWjSGbpWQwVJdE8efALU6kBT9+CLH3aXXmXR1s1 TfuEMIiV3oVecWeCjltbN1+K5CxTipZWDFfeuMxY9fVGt4WCeqEYwmQ+Fn5rAgwIdlni 4fOqPCQmUv1Jx0edTmSkVdlYhia8A1cTWZH+yMjHrirkucrsb4vfXR7GWbVmmxUrPDBO 8AFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=nTsEAfnFh4OuLdxMZ2UthWf3IHeYdnv6q2+Xf7Hn/wA=; b=Y8OQi5nCe9j3w57cqNhiD0C28gGFKEUms0AvRxQ5C8dybyF+r7ywsjMjRpiiXBILZj R3GQnIiESfxVwijh6cCTG/D8/yxxyKnUiWhQec44m8VYMO/WxZf3cau+r2QmlrAG3PYL NlW/Tr7NKwPp+KNo+Kek4rAAs/EUMR6ay+8apFcPQ6zwM7A2X5liAYjf+G1TZLuDbPzY Kpawf1SW2wFX7s5arUWElyQW+ZgDGVTUdl+ERL/K1tkHFGwEVXq4mgUawoyBjN+0qYEv IHOS8RRCofGBtXC3T31Nre+2AfXxKpVRsFKEE5QR9PHc2GDntQx/Tos2fatMclf5P5na 0X/Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=asem.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si5540530ejb.137.2021.02.19.06.03.26; Fri, 19 Feb 2021 06:03:54 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=asem.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbhBSOCl convert rfc822-to-8bit (ORCPT + 99 others); Fri, 19 Feb 2021 09:02:41 -0500 Received: from smtp.asem.it ([151.1.184.197]:54910 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbhBSOCk (ORCPT ); Fri, 19 Feb 2021 09:02:40 -0500 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 6.5.2) with ESMTP id SG000818655.MSG for ; Fri, 19 Feb 2021 15:01:57 +0100S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 19 Feb 2021 15:01:56 +0100 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1979.003; Fri, 19 Feb 2021 15:01:56 +0100 From: Flavio Suligoi To: Mika Westerberg CC: Wim Van Sebroeck , Guenter Roeck , "linux-watchdog@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: R: [PATCH v1] watchdog: wdat: add param. to start wdog on module insertion Thread-Topic: [PATCH v1] watchdog: wdat: add param. to start wdog on module insertion Thread-Index: AQHXBhOZhCefmAy4X0yS/T4Cg8tbv6pfPluAgAAygZA= Date: Fri, 19 Feb 2021 14:01:56 +0000 Message-ID: References: <20210218163200.1154812-1-f.suligoi@asem.it> <20210219105447.GI2542@lahna.fi.intel.com> In-Reply-To: <20210219105447.GI2542@lahna.fi.intel.com> Accept-Language: it-IT, en-US Content-Language: it-IT X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.17.208] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A782F20.602FC4D5.00A7,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mika, > > const struct wdat_instruction *instr, u32 *value) > > { > > @@ -437,6 +443,8 @@ static int wdat_wdt_probe(struct platform_device > *pdev) > > } > > > > wdat_wdt_boot_status(wdat); > > + if (start_enabled) > > + wdat_wdt_start(&wdat->wdd); > > No objections to this if it is really needed. However, I think it is > better start the watchdog after devm_watchdog_register_device() has been > called so we have everything initialized. Yes, it is needed. We need this feature to enable the watchdog as soon as possible and this is essential for unmanned applications, such as routers, water pumping stations, climate data collections, etc. Right, ok for the correct positioning of the wdat_wdt_start function at the end of the watchdog device initialization. Thanks! > > > wdat_wdt_set_running(wdat); > > > > ret = wdat_wdt_enable_reboot(wdat); > > -- > > 2.25.1 Regards, Flavio