Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp666079pxb; Fri, 14 Jan 2022 13:33:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2/vscuRvvli2Wpv0EDdGLSl5ZB5l5i9Op9huWcahNY2L8kzyEfCtP86TjGgMB2mJ0Nkck X-Received: by 2002:a63:3dcd:: with SMTP id k196mr9602750pga.540.1642195987924; Fri, 14 Jan 2022 13:33:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642195987; cv=none; d=google.com; s=arc-20160816; b=FnmyWTmEkjQv7QgUduMCwsiE2cIA6dq8egGll0nSTNjAYFk5IjnSENOpfXc3cR6Cuz notBQhZstEedSuU1lfyIsBY6mk78CSdD3AciQBLJEv9nU0F+hpFMD3IBXxAg2b7cWNsY ROtafJXL/w6nhxeNdnSE5qUW02PP2feAloA188UCryVHxhmc/w3FKln7BATFOD/SUnMf EZRUwoRjPaQQXMtbMabk+0speZoa9/IDzLTukfpwPJYz5YaiVPhzEQFRTMyh0vuoz33J k2RUG7xJBYpw8tpohnkt+waYT6PZVWc32y+U8RXgRUoBX3U9AKO6tEhactpknvNdjSG3 iQXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:sender:dkim-signature; bh=lD1Jt5HPXkkJLqLAECNA5LcmSI3wdXLzJYaLp3IBqKE=; b=HYZaQg/KLg9uuS7XQDE6QXRG/zah5um3pCKtT7vUXjupPPq6NHsxwpML/H4YNjlDtX aigkY/iIOkd1ix2KtgpVqWmBt0EgUYc7UucLxdx8ydIvfYXptAOxCzPjvroKS/uhgrRy vVNArhFjnpahYs0s+6RfBNKvJPZ1VV5nbPycNcjGyup9PKrrsNEKPfvo54go/DyY9aa8 dHu3Dz/KO9wSU4L17jzbD9pTRiWHyegqsQO+KSBwYtxJqcNO/h5+GfNGJrmDK4y7+g/8 XzZ+GjCmCmo6o8cdFoxEfJ0fzvaI+XCE2VsH/MTLf4XhPLFljXfKq7z58g+5C5U82VMf Q9wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DhViUY9Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si11139997pjp.45.2022.01.14.13.32.56; Fri, 14 Jan 2022 13:33:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DhViUY9Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238032AbiANOgE (ORCPT + 99 others); Fri, 14 Jan 2022 09:36:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233926AbiANOgE (ORCPT ); Fri, 14 Jan 2022 09:36:04 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D5D0C061574; Fri, 14 Jan 2022 06:36:03 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id w188so12389718oib.7; Fri, 14 Jan 2022 06:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lD1Jt5HPXkkJLqLAECNA5LcmSI3wdXLzJYaLp3IBqKE=; b=DhViUY9Z0mT9rsuJto9tllmgMtiy1HosH8oeA3M1/0PZ89p7v7nhZDFp0UHHeXHdf0 TucO4pLCWCAng/aXDyLKNL+REJYGoH1Wpc5sYhlJDsGEyQNDpUg2tNfJGk9tjNtM0XV3 EIti+2dShywaR4VqNxVkp3/a1eApnsKRaFluBLXyGnWLcmWMccKMIOgPD0XDeuGq4jQR NOfon0xLmUs0BfnYylg8u+4KUdJYAKEJOpbw+v+meSu5CSRb18yfu+JiH1qXNbXnGoUz g1Cf3SiAN2Akh83YcBtnC1T7Ke1HDTq0MztdWfhC62mT8I9XbD4t4UCV6OUl71rbPVUo 8FIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lD1Jt5HPXkkJLqLAECNA5LcmSI3wdXLzJYaLp3IBqKE=; b=hUsncOlYpFyirqa1xvpJO3RazmqsJbUMwtOQBIKgWxex5BhNQsaHh9xsKJDZP4dmRd ZXaL0p5gccOwh7iNXSozlbb151FzI5qiZawSygd5E7Vjf0k++THQ3BQH46k8uUj3WdXL +EAmHpk5tAPU1qP4mUy59bMWkqp/yycYdyumUKDHJb8DdgwEhhdTtAO+aZKPxRvmTcow 9Z2gSsrkGeIKXOr4ceGN2+It7BNWODVePT70scbv+fkPcmhMljwY5xqhp+3ftP7YNFmZ IRKnhfv6hJAQ2Uj6daUFkoq3Nb9IbQ1Ms9/fG6+vzm/+xd6yMsn/nuSDkdZx3GerDa3/ 0PDw== X-Gm-Message-State: AOAM531Id1X0ivFiGgMj+f/jAoJDELwrRNHv0ek62fnURe0vJGT/jBGk wf2oZgEy8JTmRJ46kGLHLUo5gUPukcA= X-Received: by 2002:aca:1204:: with SMTP id 4mr3967201ois.85.1642170962978; Fri, 14 Jan 2022 06:36:02 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id q38sm1430873oiw.27.2022.01.14.06.36.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jan 2022 06:36:01 -0800 (PST) Sender: Guenter Roeck Subject: Re: [PATCH 2/2] watchdog: mtk_wdt: mt7986: Add toprgu reset controller support To: Sam Shih , Wim Van Sebroeck , Matthias Brugger , Philipp Zabel , Rob Herring , Ryder Lee , linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org Cc: John Crispin References: <20220105100456.7126-1-sam.shih@mediatek.com> <20220105100456.7126-3-sam.shih@mediatek.com> From: Guenter Roeck Message-ID: <8e6ed2b7-b4e7-733a-579f-e1536f68ea2f@roeck-us.net> Date: Fri, 14 Jan 2022 06:35:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220105100456.7126-3-sam.shih@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/5/22 2:04 AM, Sam Shih wrote: > Besides watchdog, the mt7986 toprgu module also provides software reset > functionality for various peripheral subsystems > (eg, ethernet, pcie, and connectivity) > > Signed-off-by: Sam Shih Reviewed-by: Guenter Roeck > --- > drivers/watchdog/mtk_wdt.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c > index 543cf38bd04e..c6437fe1f4c0 100644 > --- a/drivers/watchdog/mtk_wdt.c > +++ b/drivers/watchdog/mtk_wdt.c > @@ -10,6 +10,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -76,6 +77,10 @@ static const struct mtk_wdt_data mt2712_data = { > .toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM, > }; > > +static const struct mtk_wdt_data mt7986_data = { > + .toprgu_sw_rst_num = MT7986_TOPRGU_SW_RST_NUM, > +}; > + > static const struct mtk_wdt_data mt8183_data = { > .toprgu_sw_rst_num = MT8183_TOPRGU_SW_RST_NUM, > }; > @@ -418,6 +423,7 @@ static int mtk_wdt_resume(struct device *dev) > static const struct of_device_id mtk_wdt_dt_ids[] = { > { .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data }, > { .compatible = "mediatek,mt6589-wdt" }, > + { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, > { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, > { .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data }, > { .compatible = "mediatek,mt8195-wdt", .data = &mt8195_data }, >