Message ID | 1632808919-8600-3-git-send-email-ashok.reddy.soma@xilinx.com |
---|---|
State | Accepted |
Commit | dced079c53b283e15f04282f405de410a9be584d |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-xilinx-onmicrosoft-com header.b=sESOUFKL; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HJTSY2N3Mz9sR4 for <incoming@patchwork.ozlabs.org>; Tue, 28 Sep 2021 16:02:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BFB7B8310F; Tue, 28 Sep 2021 08:02:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="sESOUFKL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 68A4082EDA; Tue, 28 Sep 2021 08:02:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam08on2060a.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8b::60a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5B89582EA5 for <u-boot@lists.denx.de>; Tue, 28 Sep 2021 08:02:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ashokred@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KUYnU6LGOJfAPGvfQC+HILxQQ1XxMlZrzvpuNMYQR/5u/VeBJmmZjOxih+SABWdiTxDgxrrckhKl19V7asr23oiP3qFTIZofu7Noj2Hoq0/xtiqS3TaPwmP0IMwDHaRKJ7Z4ZB5odOkPIr2jXJGx5BtcTQ9LuvNVnixbUhYgNcNSkmFSIVfYiKbCv5zaqUXOZzZmRMP1HoBlu+7lYH8lVvONne0wCsXkXTE9o/4UtW4fDgOtEl2M0q+MzJQg9RjACuP/pVb6T/AOgiA4eQeqgIK4GWZGhJI/+T3QLo6NVn6l8sssdkxFYAaFhiWI5gkpuAZaLMdwI6cwdK90S9EqAA== 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; bh=OSJVexbbq3NW5bBCIt17OTcXJUFEprvmal11nwic7s4=; b=jZVkGXTWvjLY0wKBJmCzyNqvRMhLFVlXvGzTf7WYHhu+2jeRGNyHH/733wE1jnODanJVwV8+rS2REjFyQMGP8F7lr33eS/VBC2IA5b45LswCd2TDZAOmCX9pS40nsSnhcUz+34emANvTrNc1FltvRWMSeCiHIqutekPCtPJ0G9r+eeuFAQLJdLqDDK0ckeoaXFfQjDKOPVJICy7En3gKba4DePJZuM2om7ZilnYUOeZBivJrHWps4Fun/JyM7fv0WxOZcFuHG2V/5aShAx3R9GH/+G696WZa3kgYw+xNN6K4R89H8cB9OlDnUv9HUYG9nr3hjzPPEEiC8i7xIPQGIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=gmail.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OSJVexbbq3NW5bBCIt17OTcXJUFEprvmal11nwic7s4=; b=sESOUFKLw/agxM3kDbPiBbGi6pYQryy6ITKXTMKaI+esl2yq9JB/cfHL5Lhj12vyhQQtvCNB4Xp8quMb1hbBt0j0XUzBoqXrY37y5eGqfrAQwiu2aehYHsITeT/uPRJa6xbeqtFAKKYCtqMycWKp4syhq7IfwnEr5bKKgHESUqg= Received: from DM5PR15CA0054.namprd15.prod.outlook.com (2603:10b6:3:ae::16) by CH2PR02MB6790.namprd02.prod.outlook.com (2603:10b6:610:7d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.14; Tue, 28 Sep 2021 06:02:32 +0000 Received: from DM3NAM02FT029.eop-nam02.prod.protection.outlook.com (2603:10b6:3:ae:cafe::d5) by DM5PR15CA0054.outlook.office365.com (2603:10b6:3:ae::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Tue, 28 Sep 2021 06:02:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT029.mail.protection.outlook.com (10.13.4.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4544.13 via Frontend Transport; Tue, 28 Sep 2021 06:02:31 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 27 Sep 2021 23:02:30 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 27 Sep 2021 23:02:30 -0700 Envelope-to: git@xilinx.com, somaashokreddy@gmail.com, u-boot@lists.denx.de Received: from [172.23.64.5] (port=48158 helo=xhdvnc105.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from <ashok.reddy.soma@xilinx.com>) id 1mV6CD-0008WS-Ma; Mon, 27 Sep 2021 23:02:29 -0700 Received: by xhdvnc105.xilinx.com (Postfix, from userid 2896) id 9BF1561055; Tue, 28 Sep 2021 11:32:02 +0530 (IST) From: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> To: <u-boot@lists.denx.de> CC: <michal.simek@xilinx.com>, <git@xilinx.com>, <somaashokreddy@gmail.com>, Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Subject: [PATCH 2/2] watchdog: versal: Add support for expire now Date: Tue, 28 Sep 2021 11:31:59 +0530 Message-ID: <1632808919-8600-3-git-send-email-ashok.reddy.soma@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1632808919-8600-1-git-send-email-ashok.reddy.soma@xilinx.com> References: <1632808919-8600-1-git-send-email-ashok.reddy.soma@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 418c3998-42c9-4465-87ac-08d982458f6f X-MS-TrafficTypeDiagnostic: CH2PR02MB6790: X-Microsoft-Antispam-PRVS: <CH2PR02MB67901780A032654EB62BA6EDBAA89@CH2PR02MB6790.namprd02.prod.outlook.com> X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yQDwxxFgkiMjy0mQuu8qyKKNuUzMgiH1Up03Fh3wmJX6X+OXDBL9mqgSrRvB835sqzc9w+/8BEHdpfL7EBZ5sEyJOinHMiCRvHHGGpSk/98ApPh4rPwEW2uZl/F2/EMiNyxWgto6yjHWsjItGssJ2iNQ6gcNs7wLLPI1uGKe9UbWKDn2yaOk0Ec48f9fsbprDGrEPym4Ng+/q+Yc0/0cBO/D9P6xGhznBhT4oXvwrMBgSNXBrBS4RvnsCLwwgP9mZXNq9WHWTeiGRsDvf8Af9btmxkDmuLMDoZkeND9Ir0w4SR5jXZvzHW2R53qRbwI+wkdVvgLZovhlDteZwWpqyEwBKVnTVF/OStPUh3NFIW3TNeutikcgL0G0g2XRZtZ3zxQYJqbqnfur0SQnyVRz1K9xZgbYTC7eO9e+fu6XVjXa0NWrmNBQlIqj8An0Ztcec4s66ZpjWT4iqBtq6aTw39q8Q22gx8laxXESnKBoz8NBa274X9+vZab8JwaLgp+WVAE6MoIYkEx8FmbrGERxH3zsOgWNGC2RTxwRntTuoP86YCZ6SdEevMqeTLhMCul8i5TDB9ue7vX0SJpNDsV41NJRKuOHNQcptYrNnUnNpnGuF2365fvQx7fpRWHxBzxVxadot+CY6OLg1hd+/nFsOBasdWTFgxNS/z7BHMWTx11hwyXD1dqtwIzCt/pahuQ3H2zpvtrOHdrT0vkj/UVTYQHn9FQgCFM+i2sYds2Mllo= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(4326008)(6666004)(5660300002)(8936002)(36906005)(47076005)(82310400003)(2906002)(2616005)(336012)(426003)(8676002)(36860700001)(54906003)(107886003)(508600001)(356005)(316002)(6266002)(83380400001)(6916009)(70586007)(70206006)(42186006)(26005)(7636003)(36756003)(186003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2021 06:02:31.9541 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 418c3998-42c9-4465-87ac-08d982458f6f X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT029.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR02MB6790 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
Add basic window watchdog mode support
|
expand
|
diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c index d8b2ae7248..d582e3cc8f 100644 --- a/drivers/watchdog/xilinx_wwdt.c +++ b/drivers/watchdog/xilinx_wwdt.c @@ -144,6 +144,11 @@ static int xlnx_wwdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) return 0; } +static int xlnx_wwdt_expire_now(struct udevice *dev, ulong flags) +{ + return xlnx_wwdt_start(dev, XWT_WWDT_CNT_MIN, flags); +} + static int xlnx_wwdt_probe(struct udevice *dev) { int ret; @@ -182,6 +187,7 @@ static const struct wdt_ops xlnx_wwdt_ops = { .start = xlnx_wwdt_start, .reset = xlnx_wwdt_reset, .stop = xlnx_wwdt_stop, + .expire_now = xlnx_wwdt_expire_now, }; static const struct udevice_id xlnx_wwdt_ids[] = {
Wdt expire command makes the wdt to count least possible ticks(1) and expires immediately. Add expire_now option to the xlnx_wwdt_ops and implement it by calling xlnx_wwdt_start() with minimum possible count(1). Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> --- drivers/watchdog/xilinx_wwdt.c | 6 ++++++ 1 file changed, 6 insertions(+)