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: 10211461 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 5BB44602CB for ; Sun, 11 Feb 2018 20:19:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A187289E8 for ; Sun, 11 Feb 2018 20:19:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DA9428A9A; Sun, 11 Feb 2018 20:19:30 +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 875CC289E8 for ; Sun, 11 Feb 2018 20:19:29 +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=37TE4rRLT1J4OWC5qfO1tCnUTfdkdr/NygXJatDLp04=; b=Pls+Bt9EKikFQfjBf/LIzAN/XU 2jPTiWMXmfD0Vw59zwvIbeB/b1PG1SpFWF1eCOzf8z4uWl0HJZ3ZPsGrDNi76YmzA2Pz8UhrF0Bxi DhZuFil2xylODtaly5wHhBEilaluTJnmVevmTLohlpf7j6a8urW4Hbc6/2Fwr3YstGrZfFoBgd5D+ ouFuoOBar7Jl2xCzlYKQTGvW6IA+c88zgS3fbnUBGy6WGeT6UwYbHbZY04Siw6neXNekAuswZZGEG CojQAdeNWOFHejx8CPHLMxRwUlTDqjK9VqnDKLgxc68lsPNqHeg004m7DsTUgbuwxwRyJnTUgzBSA NMZeM1ow==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eky5n-0007ue-TX for patchwork-linux-arm@patchwork.kernel.org; Sun, 11 Feb 2018 20:19:20 +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=37TE4rRLT1J4OWC5qfO1tCnUTfdkdr/NygXJatDLp04=; b=hGMUkhmbvXc1BYUiTGo68YRmNN btIcww4TjyrU2C7P40vKWff63IHsYWTFzhIdgLCsktD6T5eWwg5oEo+hlr2DYO3eYiajP2UZ3czM9 TrPVaIZRHh+27zdVZXiMp/stImRy0d2moLoldEej3LNHXszXIJaTGYYiACMFAiSbGckeSw6V9451y Fwqq3tw22HGHh4+njIcmmeGBZVn+C3ITw7a8+dNBYBaO/r0AHuJP2QsKrtlWJtFmOWp50pWZubaf0 Y80XnKEjMRDVuZB+Xq75ub0oLkryx4dBaggV6uAxbVTof6j2Sqib04ZldxLQDoOAK0BjTG56P52Vs /n+Pohdg==; 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 1ekxxj-0006QW-7t; Sun, 11 Feb 2018 20:10:59 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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;