From patchwork Thu Nov 17 11:49:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 1822 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp355689wrr; Thu, 17 Nov 2022 03:55:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6j6h1eLL6Pzh4O70F6JBDjHRk6gqW3od6BuoQjZMaktRNbpvFiSWXLxie+BpCjmRgntLNP X-Received: by 2002:a17:906:e21a:b0:7a1:e4c2:fb0b with SMTP id gf26-20020a170906e21a00b007a1e4c2fb0bmr1852790ejb.464.1668686110848; Thu, 17 Nov 2022 03:55:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668686110; cv=none; d=google.com; s=arc-20160816; b=T/n5ZHJ3+bvCKSuxX4SVLy+H54GN3SnKI0zI0PLwarzkQ/oM75vyD0LJrJ6njKL712 QqTIAkq6NeOUazG/zeWiDrTpZd1cqd91NmA8G0QlDsbCcmQVBMr/SrRnHUFC37eKpiuW u5GVvsO0zBUo44r5UfL8bZpKfSsCoff/PS0nem0huz+l47pcXe9TF8NhBdTmCdb2P3+j sTvsPrqS7MEUcYGacuK5+HMFd0SHpFHdGHwQizupX2OFMZoeyQMiUpAvlFatr4K+4UCO fqK4CnpqHiPMg6ID8Tlq3FNeCAsavF//Vv4JqsUm7GH+dVq4zdR4XDx7EDAAhRK3wUIa kFrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3OKLnmajaataiHzhgJadU5xvv0Mnm9CXdIXWwhDmXEs=; b=xGX+es0dOv9A6BlnVNuPKqR6bwpKdr32HvVHxVlEpwV8sm32EXc+8tVjksYjh3j+HS oHH5jN3BF/9+EBaRokjzDpYttoz7wSwtHSisKjWNFFQ8fZfDfz5He9dNOoU5zS8LztV0 OKnIZhzzpi6KZNwMkKeRqN7hxqrLyKXRcIkKIy7kM2flH4CwWBCzFtz5kUYtkDjdwKEL /C1Nz9/6HsEQhVyskge/gYydiNw7RK7tm5Zh7ejR7DvxWAK144imoyu1MRUFZd2CQWf4 VHyTkIcfqJzo2vCm2VV2gaOg7mqvnBFbA31KGOSahINMECkmqFBOoQJRfbQUzPQs2kiK s2jA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xe14-20020a170907318e00b007af13652caasi426935ejb.325.2022.11.17.03.54.46; Thu, 17 Nov 2022 03:55:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239749AbiKQLtx (ORCPT + 99 others); Thu, 17 Nov 2022 06:49:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239943AbiKQLtX (ORCPT ); Thu, 17 Nov 2022 06:49:23 -0500 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB14A317C3; Thu, 17 Nov 2022 03:49:15 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,171,1665414000"; d="scan'208";a="142991195" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 17 Nov 2022 20:49:15 +0900 Received: from mulinux.example.org (unknown [10.226.93.80]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 4C63040031D7; Thu, 17 Nov 2022 20:49:11 +0900 (JST) From: Fabrizio Castro To: Wim Van Sebroeck , Guenter Roeck , Philipp Zabel , Geert Uytterhoeven Cc: Fabrizio Castro , Biju Das , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Paterson , Biju Das , linux-renesas-soc@vger.kernel.org, Laurent Pinchart , Jacopo Mondi Subject: [PATCH 0/2] Reset related fixes for rzg2l_wdt Date: Thu, 17 Nov 2022 11:49:05 +0000 Message-Id: <20221117114907.138583-1-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=1.1 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749744207398428020?= X-GMAIL-MSGID: =?utf-8?q?1749744207398428020?= Dear All, this series addresses a couple of issues found with the rzg2l_wdt driver: 1) on the RZ/Five SoC it was observed that changing the timeout wouldn't reset the system as expected 2) on the RZ/V2M SoC it was observed that calling into the restart callback from the reboot command wouldn't reboot the system straight away As it turns out, the RZ/Five watchdog IP requires the module clock to be supplied during a reset. On RZ/V2M, a specific procedure has to be followed to reset the watchdog IP. This series comes with two patches, one to fix the problem affecting RZ/Five, and one to fix the problem affecting RZ/V2M. Thanks, Fab Fabrizio Castro (1): watchdog: rzg2l_wdt: Handle TYPE-B reset for RZ/V2M Lad Prabhakar (1): watchdog: rzg2l_wdt: Issue a reset before we put the PM clocks drivers/watchdog/rzg2l_wdt.c | 45 +++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 6 deletions(-)