From patchwork Wed Dec 11 21:02:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 11286403 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 30A9A6C1 for ; Wed, 11 Dec 2019 21:02:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 10739222C4 for ; Wed, 11 Dec 2019 21:02:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P0P1tS1T" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbfLKVCL (ORCPT ); Wed, 11 Dec 2019 16:02:11 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44572 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfLKVCL (ORCPT ); Wed, 11 Dec 2019 16:02:11 -0500 Received: by mail-pf1-f194.google.com with SMTP id d199so2389671pfd.11; Wed, 11 Dec 2019 13:02:10 -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=3OhBkMI3t3DWSX3k7D+r5JxYn0BJD2ICRypnq2eXkR0=; b=P0P1tS1T3NzwhVl8ZF5LJwPyhvw9yGhEEvxjhk0lzERnuFw2U8FfN7Y8QBU98CS5FC /fuI/tXT0blh59eEfaBMhxgMfeCH6ThCLgzhzBKRZswCzx7ySCF3pT92C3hBksy4A5Ac ANqvwHTLzIpnJNTqN7up4PA8jjPzk+tD87UZtn3AGa1cjuFEjB7UB480e6a+AF20D+vb OFFkC/ocfj81d1eKNMy2CI7MS4WUGGVKj+/BXmJXR4n8oM6iUcHYZMROsDl+HbJeoLlr AUEi6chsM9yaZuJ9aZ26LjlHQi6gFmybFQphtrWpSEx0x/V0A5HWtXp4OFpIAIWhWL3f qtMQ== 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=3OhBkMI3t3DWSX3k7D+r5JxYn0BJD2ICRypnq2eXkR0=; b=bU9SO6d0ot2xHecc2movB3eMabJdq8Bk6G1uDA02UfvKjC/Q3kHlfdMnTTSc5z9vv/ cOktjoTRZvGJk6V1NyJTBUYB4OdwYPYn9f6zqTs1KuX5BKaEuo0aYd9kCi6MZfE2w6/n 22ZZSVpqzBYI1/PJKRigPqAc7cbCeKNWTnAW67czrmVF24QN/bxvzHBVeuiFmeQsRBNS hK+Vre4BzSmCjEmfRWvH0Q7rKlZUTqWb3lE58u1Aj/Sbkgt5S7/bHfz3kPMyKFV12jL2 4A4PnUUk2dMoeK4ZDFvBKaTGauAu7vYI4lfjkBSNUBJ/E59/EhXIOUcCtOTStc5JGp1L h9vw== X-Gm-Message-State: APjAAAX4MsZz1LOdSYsdJkI9HUEHLDP0tMmLJnhOJc+oliiBmbdXLVrF IglNRYOH5tGZg2jVJihkwQrVFxbd X-Google-Smtp-Source: APXvYqxF7uajY/k2sjYOpwbigBP1VPQ6hkyHaUQQRhNvPJVuVLBqSKNCYo4JdRr8VytSCzFajcg3Ag== X-Received: by 2002:a63:30c:: with SMTP id 12mr6401250pgd.276.1576098130113; Wed, 11 Dec 2019 13:02:10 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g19sm4062137pfh.134.2019.12.11.13.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 13:02:09 -0800 (PST) From: Florian Fainelli To: linux-watchdog@vger.kernel.org Cc: Florian Fainelli , Wim Van Sebroeck , Guenter Roeck , linux-kernel@vger.kernel.org (open list), linux-mips@linux-mips.org, Paul Burton , Denis Efremov Subject: [PATCH 1/2] watchdog: mtx-1: Drop au1000.h header inclusion Date: Wed, 11 Dec 2019 13:02:03 -0800 Message-Id: <20191211210204.31579-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191211210204.31579-1-f.fainelli@gmail.com> References: <20191211210204.31579-1-f.fainelli@gmail.com> Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Including au1000.h from the machine specific header directory prevents this driver from being built on any other platforms (MIPS included). Since we do not use any definitions, drop it. Reported-by: Denis Efremov Signed-off-by: Florian Fainelli --- drivers/watchdog/mtx-1_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c index 25a92857b217..aeca22f7450e 100644 --- a/drivers/watchdog/mtx-1_wdt.c +++ b/drivers/watchdog/mtx-1_wdt.c @@ -41,8 +41,6 @@ #include #include -#include - #define MTX1_WDT_INTERVAL (5 * HZ) static int ticks = 100 * HZ; From patchwork Wed Dec 11 21:02:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 11286401 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 227506C1 for ; Wed, 11 Dec 2019 21:02:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 01A6E20836 for ; Wed, 11 Dec 2019 21:02:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DVhZZmb1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbfLKVCN (ORCPT ); Wed, 11 Dec 2019 16:02:13 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:39611 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfLKVCM (ORCPT ); Wed, 11 Dec 2019 16:02:12 -0500 Received: by mail-pj1-f65.google.com with SMTP id v93so65462pjb.6; Wed, 11 Dec 2019 13:02:12 -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=4x089GCW851wB44OMyqqrKLGIDjDoejo+eqllaL+RO8=; b=DVhZZmb1Ph8PNvtFOTR1oLnqYgtXOKOimqKsQvbZaNkfqksw9W4XLv+agXbU3UNlqZ T0fjMvF9d+WiK5foM9BMC5F8TDRxGQTl59GNQdVK7yAmIfhWwMeVSVjapzIFxVqp/OmA zVaJMoLEaFWnenDaaLBMWsB0abNfWzSEEQiAOxhyE0J93Boa4E9KTlH0FZ0pVPorZd19 hBoe8mWPuAgJi0uR/7X2KLDx7uKyQ+DyN7Ox/0wFrVes1CB9gRl91sjKjRR2zI0zxAhq 5MPWn9unRJBLrDGyN8zTCZMIVR1W5VOQWPWW/ynoHzAdjC7Zd9QSpEtQscuiXFNWfN7m lgAA== 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=4x089GCW851wB44OMyqqrKLGIDjDoejo+eqllaL+RO8=; b=tTX7bEJOgNBCYK1bC76O3bDZdv+h/dmo2UvoEcTJ+vdL8/7ukSbXcpZsUSBwzTlJRz DjF0gZUH2jO3lEB4eNbqTymIt+fm/tH2ohzDnHS+MUZyTq9pwlQ7FHdCujoQIbMLZFE7 0U+OH0HnFY7zNKmWYX9+8SmFueYgLhuqWWs57nx1eQ1wEiO51M/FxbTeS5UpIcXbH7Ra NpKbcVaVMQTk4f0luYiAE0HmgysmXEBeDKQbBKLy6Lkh6EE05wSU22v3MAVl2YjJEHUh 5OvjeFIBokpChSi+LHGZX9dyEzYgj5DarZY+wCIvxFkfW0KI7v9NjBMQKwEC8jxgXxq2 uM4g== X-Gm-Message-State: APjAAAVBbod+B6kckPTyYtD4q8qgfbZvPq84OeKWiybKvYblPg7uPsqo rUyhF20Deot2kRxDcU36SbsDvwgT X-Google-Smtp-Source: APXvYqyyY/Dbrnw0FV5dlFmqhznPeyzwP+1Mj66Anb+Yn3qsn7WOSC0uSzUmLG18uUkb4Xk/7GPAYA== X-Received: by 2002:a17:90a:c385:: with SMTP id h5mr5729970pjt.122.1576098131406; Wed, 11 Dec 2019 13:02:11 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g19sm4062137pfh.134.2019.12.11.13.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 13:02:10 -0800 (PST) From: Florian Fainelli To: linux-watchdog@vger.kernel.org Cc: Florian Fainelli , Wim Van Sebroeck , Guenter Roeck , linux-kernel@vger.kernel.org (open list), linux-mips@linux-mips.org, Paul Burton , Denis Efremov Subject: [PATCH 2/2] watchdog: Relax dependencies for CONFIG_WDT_MTX1 Date: Wed, 11 Dec 2019 13:02:04 -0800 Message-Id: <20191211210204.31579-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191211210204.31579-1-f.fainelli@gmail.com> References: <20191211210204.31579-1-f.fainelli@gmail.com> Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Now that we have dropped the inclusion of a machine specific header, we can allow the driver to be compile tested beyond just MIPS. Signed-off-by: Florian Fainelli --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 1679e0dc869b..982897ff074e 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -1651,7 +1651,7 @@ config JZ4740_WDT config WDT_MTX1 tristate "MTX-1 Hardware Watchdog" - depends on MIPS_MTX1 || (MIPS && COMPILE_TEST) + depends on MIPS_MTX1 || COMPILE_TEST help Hardware driver for the MTX-1 boards. This is a watchdog timer that will reboot the machine after a 100 seconds timer expired.