From patchwork Sun Feb 11 20:08:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 10211479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7AF4760329 for ; Sun, 11 Feb 2018 20:40:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6856628678 for ; Sun, 11 Feb 2018 20:40:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BF9C28A54; Sun, 11 Feb 2018 20:40:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C401628678 for ; Sun, 11 Feb 2018 20:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=roLmD+sir3m7LNVCj60NoH7grSd88JXxJKt4X1hBpIA=; b=uN4I0rTbZjPFMcDwIGMRWaT9UO Km/anVeKK2GAw8k4ZHHfP95LtRmpinVl8I2xkbTgMUsBYCEMwJHhgZ9CL/8uZoIOQHomUEItfUl9R KLe/j1bULpFB7f/+VYY91A86UeIRT+RZAr1VZhf0xs+PqQKzVLnwhCRx8oHEu+srgljTgpsI//mEE MuPuR01e9hQazsxvU+MkMeSfL0iMx2J1IL9HG7w5pwI0YjffMuOeCF7fOYy/U7+5XtgdLHNdSBAoI /NUFe+4OV3l+oZ7UjvCqFUvgtaQFk9jqVNwNNnTO0ImAuhjC41vjcZAXPNKyDF2An23xowU4hyyhE 8xWgvwnw==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ekyQD-0004Ft-Vo for patchwork-linux-mediatek@patchwork.kernel.org; Sun, 11 Feb 2018 20:40:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=roLmD+sir3m7LNVCj60NoH7grSd88JXxJKt4X1hBpIA=; b=i8JWWIqfc5NJARdhghYv3NJFRl N+l1jRDoB6d3p2n40SRKhq76tNmPOFQG/QU6aKD665l0rFnNqM1hcftzNUU2eZjmpqLvI1R9Slbb6 HXVTjC3Qc1dwT9wAQU3fEy7EH1iUs0DA/YuUieJ5Kx217YEqn1qN8lxSe4jVxfvuvR8r6EE/jjfAn gPftTLnzB/e/iITAgMvfIyTyiVyGLtApovI1EXASmdbVpUIMTWlfo4seicC33j1lF17diiXFBHnWE 9plhnFltTo2bT1283OrqdG+u8BAytw/JaPvxHXaS1HgRGJoFv9hQ1MUct4xEYvO+a/S0pOe+Khp0x BkyiencA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ekxyG-0007VT-IP; Sun, 11 Feb 2018 20:11:32 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ekxwO-0003Ai-NW; Sun, 11 Feb 2018 20:09:38 +0000 Received: by mail-lf0-x244.google.com with SMTP id w10so5031357lfc.9; Sun, 11 Feb 2018 12:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=H2Wg9nRuNX02l7bkxEYKY/cnVmAhcd/Ie5xGJ5iD9OM=; b=qDgcC4145zNey3gIQ9KqR9/hb5CdJHXqfiY0WOt5o7InLF1KFjwQeX4qzEauDzdkXX l1tkUcl6jG88WlEjTcstJpzJnZ/eC2FYj+VE1nZUHvf1orx7MCAAbts6v3Pcqh1u6Ts2 Qndco78lwLXM9ahTxh5IcFSoVPs/xlx9J/V92a/G+68ndF0oRlKYYFKNLPAM552Izcn1 eKUOu3Q56PSH1SKuGtR/JlNN/rdrqbauQI8RigkFsl8dCRVpiIoVMXG3Y0RoAh107lsb jHj/HH7KyhAEzAyEPKlpJhLlA0j3MSrpsV/w9i5QlVKhq2tmfpzscbkKrswVr7JzTATw 5mUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=H2Wg9nRuNX02l7bkxEYKY/cnVmAhcd/Ie5xGJ5iD9OM=; b=OzSk5qOKJ0PIeAKABdlM3KVnj23lNhQHITuiwzQbgaZTIC9Kv5p3AV53McOmzrmcnz lXfgDLWzmocj0zC8jbcQK+tduEo96GTVsC1cKgD1jaPyq8HBaOpbhLyjwJJs2X1V2SuG BMk/SJSNW3WFlgrXc75B2cpEzikMDgcbKMaDKvCTPkOTMF6jmum99ejNbQxeExIUytj9 ySt8yIIy6PzplRhB+UJwkpTbOpf9kTVTn7Jghn2BLolhOzvyn+wMO3tvEpVQT0+uFvIV Vx/mp2eycovlzhhJYhL6UjTINQCFt2YvzragqOE2/cpQ10SXI+KVgXfTBBNkgfB6rHz5 MSGA== X-Gm-Message-State: APf1xPBLF3t3uvkXgsH/iPCO9YT9ATqyakhwb6urobRLNbxkc2+O3GVD pj23MF2bMQndBYrAPWoVpFU= X-Google-Smtp-Source: AH8x227pqvDSUDHiUUacslrjG2iNRhUfQ1RcmiTQigcWdZk6Ws2UTCGHCtNNajPxWRMdTVC6drTb3g== X-Received: by 10.25.109.5 with SMTP id i5mr6073831lfc.63.1518379764788; Sun, 11 Feb 2018 12:09:24 -0800 (PST) Received: from localhost.localdomain (c-2ec27091-74736162.cust.telenor.se. [46.194.112.145]) by smtp.gmail.com with ESMTPSA id c21sm927549lfb.13.2018.02.11.12.09.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Feb 2018 12:09:23 -0800 (PST) From: Marcus Folkesson To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Mark Rutland , Carlo Caione , Kevin Hilman , Matthias Brugger , Barry Song , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Vladimir Zapolskiy , Sylvain Lemieux , Nicolas Ferre , Alexandre Belloni Subject: [PATCH v3 4/7] watchdog: pnx4008: make use of timeout-secs provided in devicetree Date: Sun, 11 Feb 2018 21:08:44 +0100 Message-Id: <20180211200847.25000-4-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180211200847.25000-1-marcus.folkesson@gmail.com> References: <20180211200847.25000-1-marcus.folkesson@gmail.com> X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Marcus Folkesson , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP watchdog_init_timeout() will allways pick timeout_param since it defaults to a valid timeout. Following best practice described in Documentation/watchdog/watchdog-kernel-api.txt to make use of the parameter logic. Signed-off-by: Marcus Folkesson Reviewed-by: Guenter Roeck --- drivers/watchdog/pnx4008_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/pnx4008_wdt.c b/drivers/watchdog/pnx4008_wdt.c index 0529aed158a4..8e261799c84e 100644 --- a/drivers/watchdog/pnx4008_wdt.c +++ b/drivers/watchdog/pnx4008_wdt.c @@ -78,7 +78,7 @@ #define WDOG_COUNTER_RATE 13000000 /*the counter clock is 13 MHz fixed */ static bool nowayout = WATCHDOG_NOWAYOUT; -static unsigned int heartbeat = DEFAULT_HEARTBEAT; +static unsigned int heartbeat; static DEFINE_SPINLOCK(io_lock); static void __iomem *wdt_base;