From patchwork Tue Oct 1 16:59:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13818637 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08593CEACEE for ; Tue, 1 Oct 2024 18:16:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=/QFFRq6FbM7/+BnU4Q7XaV/HWPgLY/MsBemdyytLyHk=; b=U2/l5GEduiFv/efpeC2kHHTHU3 Ld3WRTyaTpsi5xksEYH2gt4vs2d1rKE+nFJ8IUdV3vH+UZeQnJQlAB9JNO5mNIza+d9OKe6u9gqB1 C1AbzSjLzgPbRNh2XgA4ogcni/wObzTFZvVs58csgAcbyMZ+ys3FdpZ+jStGbQGwr0N09cuKUJ+Ox cHM/4vMLCHaIGDUbdcjpeE0wnlugYIiXbgiDjqTpjZ45I/w3PhxNOXh8r3DtN+1BM7BR7jPVmxOt3 m71W06b/vr7eYizeSh619N3ckTyAUsGSIY3UCuDguIPTMCmwmsgWz/EoSKzjkwVDN2KKtYjP1c48q gXwUBgwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svhQG-00000003kUR-49WJ; Tue, 01 Oct 2024 18:16:33 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svgEq-00000003bp0-0vWS for linux-arm-kernel@lists.infradead.org; Tue, 01 Oct 2024 17:00:41 +0000 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-709346604a7so3148563a34.1 for ; Tue, 01 Oct 2024 10:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727802038; x=1728406838; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/QFFRq6FbM7/+BnU4Q7XaV/HWPgLY/MsBemdyytLyHk=; b=FBqnZf0ku+iSl9ArOwKlfwIyiImJz4vVB1yLOY1IlEzNr4GwowKlnU5YRaIU9TmV4d MlfNrIjjBzADevaAtmbgR+ujC7IBfwyCwzlDu7pjeqnwzjygY3ksxb4o7JxwdF63jhz6 6EmKFIp35y86iW0VcoEBrBY7BfZa378oxg1B1t25jDuUpeH4pkDsK5me6Aj01mD5hEkd Hjad+v622Pars9kEkM+rBBvV8IUX4TTftidKO5pxmvxdL+yqt//zmMJvtIoGppZSYTiv BihRvBCjsoDBXoOOAIBIszBmlBoxbDQ/6BM9Ck4Z7yrUO1bIjRQPO35VfKdXSyoXX6nq UR4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727802038; x=1728406838; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/QFFRq6FbM7/+BnU4Q7XaV/HWPgLY/MsBemdyytLyHk=; b=KkPWrtt/TQIIBgDXeudI9JOR2QcHW+SlX33tI8iPkZH6YGrSSKlAIB+p1GE5d3SJnT sOiPLUoCE/VNS4Paj7sXNqvyVSIW82n+FGQqYbt7RAY66nUe7U55shSpP8XGfaOi9erF c3Pw+zvBSNKZGdfO9RBKJr5g3RNUp5G2nVowrJi9oI1BkKjWL/q64rOd3v6bixiT1ysJ QC9UwQuLNCRaiewg81ehOZcM14VWjW+G/uOUbGlyGum5GZi4wtaSfhD2sfuCrY0+wIF1 klm7x0Yz+KTCOutHL1FbDXIhrvpXuFVXDc6lkQesX4efRBj9/1o4c94LoBeCdnWq+Qo7 o2HA== X-Forwarded-Encrypted: i=1; AJvYcCVRViA0PTPyVJgETf3EprCqFIng8I6ZW4+MikW8vksQsuV3EgoS7xXZYf+th0Hf+eiqmtKES4cx8AihebbGXP3+@lists.infradead.org X-Gm-Message-State: AOJu0YzEiIGOBmhTZh5elau21mxSToe9n1uBqOdlIs1eafPFhfd40Kzm TfNgihypSbBid1J+T/dAAx45eOashRLE2mnstZQEpl/d5+guwzog X-Google-Smtp-Source: AGHT+IHFMj8zmgWl46T4cvkR9/THnVuc/vRc0F0i12hVhXq+fbmktXRXE5UFCsX+OXeQgnrURGw0NA== X-Received: by 2002:a05:6830:2682:b0:713:7e2d:225a with SMTP id 46e09a7af769-7153cde99b3mr295707a34.22.1727802038169; Tue, 01 Oct 2024 10:00:38 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71b2651623asm8234054b3a.120.2024.10.01.10.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 10:00:37 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Wim Van Sebroeck , Guenter Roeck , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nick Chan Subject: [PATCH v2 0/2] watchdog: apple: Increase reset delay to 150ms Date: Wed, 2 Oct 2024 00:59:50 +0800 Message-ID: <20241001170018.20139-1-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_100040_282783_4E97DF8B X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Increase the reset delay to 150ms as the Apple A8X SoC can take up to 125ms to actually reset. Since the code is being modified anyways, also fix a bug where watchdog writes were not actually getting flushed after requesting reset, depsite what the code comments said. Changes since v1: - Fix an existing bug where watchdog writes are not flushed v1: https://lore.kernel.org/asahi/20240930060653.4024-1-towinchenmi@gmail.com/ Nick Chan --- Nick Chan (2): watchdog: apple: Actually flush writes after requesting watchdog restart watchdog: apple: Increase reset delay to 150ms drivers/watchdog/apple_wdt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) base-commit: 77df9e4bb2224d8ffbddec04c333a9d7965dad6c