From patchwork Tue Dec 18 13:10:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 154138 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3690377ljp; Tue, 18 Dec 2018 05:10:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uk0YCzzPJZAAD2GPHD2dGr8SCtlNZd+ZRoJGt5CIoorQUyndq6Ybmdu5b308Uk0LnRBYzi X-Received: by 2002:a62:130c:: with SMTP id b12mr16677071pfj.247.1545138622084; Tue, 18 Dec 2018 05:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545138622; cv=none; d=google.com; s=arc-20160816; b=VC06E41sqco0S/119eQkTyltUqHOAiNCLGNOJHcUaETZQd2Ls80S+XO8IV/wOsMROf rLoZTtBu183lhxoZWorpD+/tB9wOkPu3uJcdk3nQNi0mcI0VyE3uaGSmgk1C3WWTXLKK ZpYe50xr4oqkU9bLvkxO5etZhrZmEcs7wrxdsQbozMoEB26XwML5B1G0n5UO/ZGjn/ff m75d5rru8VHLLsf9m6koOl+JvwerX33ki5QymS2Yi/M0HQCENYbjz+Z2bTORIP0CpJAP aGt7KwNLrsmeG99ceayjJZvV6W8/DlFytqoMmAEfIniE4CO7bmML785HaIM0LY/h6htD 9B5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=euj5RcexfE2+BIx2LnlpdKvp/V+Tu+0rFX3AuC4F9DY=; b=W/FdDQirCvqEgf8mgbfIxmqyAm2gqa3ajnXzPa/2HP+Zxh0ezFxQp5fF03SgloSH7E v8hx1zE07Wbi+6uHvJWiztKZvxV6Bdwj0xFs+Km/we4ENoxnjLN4BkW0CQch0cYwNAar oB+oX5HIuFEoG4G0PYunWeef/H79U5gWJHRBbDRMJG6UmY62219ebJFkSyfgOxoM40J5 VGs0PqjQgg+id6HEE9YXJKncZNdOT+Dlw3lAQU4QJ3mcw1dKz2fXLZl7rGv/DZP4fcjM 5kZgwjM4fU4soec06ltV7FbDbI0x9hKgnO4C2tD2U0qd24I3KiB+RswH+UexI+nmwn+K tHog== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aoxY2QlG; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id h129si12212687pfb.253.2018.12.18.05.10.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 05:10:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aoxY2QlG; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5D8772119EF2A; Tue, 18 Dec 2018 05:10:21 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::543; helo=mail-ed1-x543.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E455221199B29 for ; Tue, 18 Dec 2018 05:10:19 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id o10so13794370edt.13 for ; Tue, 18 Dec 2018 05:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gntD1HGPB9pSkouDpupWqeCwipuO6MsexBZsr8Q9zTo=; b=aoxY2QlGLuQYNduHeG+MeV7gpBoRbcXzOSh72j8KRyY4tOsmozfvIOoKvO9frMyh3Q w2/K4E//2fSipmL/Vijemi2ZjuBVnlTOXbGI6k4/3H0hMXpm1Mlzhbw9mGxfodx11Cci 0emPclrFyds7zJXXo9jpBI5gRispGUNMyE8Bs= 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; bh=gntD1HGPB9pSkouDpupWqeCwipuO6MsexBZsr8Q9zTo=; b=IjoP5wbqjsjBCGuOEorP9NXTBktvy3xyDn50FR/f+qZZ1wT58Si2WRzN8026VsQQCW gAvFLZrj8/TUNY2LTxW704s2iWUnlG67rGgvsDjs1eqx++HV8g9zODcxrCkJfvlY8n+n QvtclTrP2cWS3IGiBzYOM+UC3187zFpb4Fs9bXMoko4rCp3qUxYVn0F0WLKFvZOJpAYd 1aFaUvwRGUVDvkVTeVXwyar46py0Uepn0gJsvq9OgScQGz0i2KhOMzYXoCzkYXEPj8t3 heB0GwXVZiBtOObTNiQnWZegb4u6wJEVNt2ux+2qljZWUn1dOOiG/vT5DLt33C3XCU+4 wYuA== X-Gm-Message-State: AA+aEWbhqggDC6zwcQh5zIb4VHPWQcfitBsOe3DGrmvi3blaK3prcXvY v4dl8IAv8sFu8QcgXgyRrTwOWsX2p8i2ARbV X-Received: by 2002:a50:f10b:: with SMTP id w11mr17100894edl.0.1545138617798; Tue, 18 Dec 2018 05:10:17 -0800 (PST) Received: from mba13.arnhem.chello.nl (dhcp-077-251-017-237.chello.nl. [77.251.17.237]) by smtp.gmail.com with ESMTPSA id f6sm4384755ede.53.2018.12.18.05.10.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 05:10:17 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 18 Dec 2018 14:10:10 +0100 Message-Id: <20181218131015.20062-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [edk2] [PATCH 0/4] ArmPkg, ArmPlatformPkg: watchdog driver cleanup X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This series cleans up the code of the two watchdog drivers we have for ARM systems, and brings them in compliance with the PI spec, which specifies that the default action of the watchdog can be overridden by registering a handler. Note that the TC2 code in edk2-platforms will have to be brought up to date. The SP805 on the FVP model seems terminally broken (it is 'wired' to the 24 MHz APB clock instead of the 32 kHz WDOG clock, so I'll switch that one over to use the SBSA watchdog instead) Cc: Leif Lindholm Cc: Sami Mujawar Cc: Thomas Panakamattam Abraham Cc: Meenakshi Aggarwal Cc: Udit Kumar Cc: Matteo Carlini Cc: Nariman Poushin Ard Biesheuvel (4): ArmPlatformPkg/SP805WatchdogDxe: cosmetic cleanup ArmPlatformPkg/SP805WatchdogDxe: switch to interrupt mode ArmPkg/GenericWatchdogDxe: clean up the code ArmPkg/GenericWatchdogDxe: implement RegisterHandler() method .../GenericWatchdogDxe/GenericWatchdogDxe.c | 145 ++++++++------ .../GenericWatchdogDxe/GenericWatchdogDxe.inf | 11 +- ArmPlatformPkg/ArmPlatformPkg.dec | 1 + .../Drivers/SP805WatchdogDxe/SP805Watchdog.c | 182 +++++++++++------- .../SP805WatchdogDxe/SP805WatchdogDxe.inf | 17 +- 5 files changed, 211 insertions(+), 145 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel