Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1768010ybg; Thu, 30 Jul 2020 02:05:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqx5E7ufVtjTGh6vVNdCYWqmslg6IdMbBTyUaIFqsnQiLuGNKecVYyflfFivV0egj0b6iM X-Received: by 2002:a17:906:3c59:: with SMTP id i25mr1599236ejg.202.1596099903755; Thu, 30 Jul 2020 02:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596099903; cv=none; d=google.com; s=arc-20160816; b=IK3b/JBed58+GH4FRzEpIqqdJM2LQyhRpfccLzR1QMi4n86rs3Pd3H0pWvqKy7Vn6L 21o+1eJZF8ZTmgz1xhgJM/8Bkr6YNPVxN2cyoOkKnxDxp/0DE+LO61VZkxU9EiwAYu0B CtcAYV5szNRn1beaoIqNgjf03oZKNp+R0ja12IbJh3zwR9BSH4TC7UJaM6HrZMi6FpGw Tr4ADxi6/Rc5Auan5cfA6IUDozo35ClKU3S0cnUPXbG4bMNbZhsIBT3N/fWJMrcABBff 6VLnfLHRDuomfeLlEAjPUiXZaKvggL/tZJUFfiZdYBOsvxhZqZGLhEcBtM9kcsq0mVfh /UZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=SeUArJS4+sD39HCLlt6g8IUuT8R2pEK+lwZA6XLSsz4=; b=Xw9OZ+Pi84pqVBF4twDRBDgFQVXvChX5Lh4GUxSlEjghg6xp35bK3F7QIHtpUHtKJ1 DCcbyYFh7P9KIbbohLZODvMUv9lL4/TLIH/v2lcGW9Oevkf6sLv0EwPC9jN1mM9k4AoO L8+JbCTJWcGoibgkcmOfqxXjgG1YLCWt5HElurRMuVsZP5npPy3VMHq4t2jLbF63i6qq UU2rT087UME7sZBKniZuDgsxuN/xM2fc8WUU7VdH6KS/6FoXywgYA2XEdIlxv1kZ/pJj chYJnBt296Fc7chhhKDxORBhC5wJtb694rzHapxmm7IdnMV3JyvNRoCjrtAukkbS5s2w SW4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eMBhXmWk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si2917368edj.349.2020.07.30.02.04.41; Thu, 30 Jul 2020 02:05:03 -0700 (PDT) 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=20161025 header.b=eMBhXmWk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729092AbgG3JDy (ORCPT + 99 others); Thu, 30 Jul 2020 05:03:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728732AbgG3JDx (ORCPT ); Thu, 30 Jul 2020 05:03:53 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E253C061794; Thu, 30 Jul 2020 02:03:53 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id a5so14165101wrm.6; Thu, 30 Jul 2020 02:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=SeUArJS4+sD39HCLlt6g8IUuT8R2pEK+lwZA6XLSsz4=; b=eMBhXmWkxmg8kJQm8Jm9Azy2o1rj87qKzFIlGdv9S9zFeAlc+PZZhZuPt1FnsQFru/ E2NRbjGpXGR9NcmWb4OLqypJt0ZbroKgEGQw8UF9xj4Of/s3ETwrrmxCy9AOA2dvtqof gNzCAtV78LdThaKzcdJrTCokF54I4gNnAdsCE3Q1RR5OZU3GyBaJopRogyMJOQAx2UiD ss4m4HR2iasI4N7xAF4x1wdZlk68e5toSHV2R4mCUKfJdqcpzPuqRjDUmBMIslxwrJWu aDmkSysxYGlfNR1UTdCEvGfMHzXJHwawlbhLPdyhrqHcVt/+9b+K2uAwzDVtIvpfOz4u lMGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SeUArJS4+sD39HCLlt6g8IUuT8R2pEK+lwZA6XLSsz4=; b=tYp7oCveWSVqooE/eMe/bct6+k5eeAA0H4bjbvaxuqTxG61CKsTcqmkGb6okgz4M7U xSFK3WaxOBEXOj+HKD03ZjFYg9rcrRFrbKAgXpXBQjV8oOLaOpevQby/t1vWO9z0NlFk 0WiqVyS40x3DYLD9Rx9Ex/0zMTmS3ZwaqMQ9azWIPhf2Dl7a5sjtg+hMajhhpoYP1s8H LWLuVZC5IsScnm3SE0ssYhQUyoC+POT1sKvEQQisUZ6hPFAXjmMY9TL1jeX/TgARS7zQ ikmge6f2BHZb/Ha1g47lFrOFac02yt+tMQ1stWv5vdiOQqYfW7OPLo5Dj+WV+sD0kWwx iPhQ== X-Gm-Message-State: AOAM532QwBSglRCU8nUJjlaBZjpAukr8mMjWZJ5k+256gpKCU7UQk5N5 En3hnnR+NabFBLDXCsbbeGo= X-Received: by 2002:adf:8bd3:: with SMTP id w19mr32760613wra.167.1596099831847; Thu, 30 Jul 2020 02:03:51 -0700 (PDT) Received: from ziggy.stardust (81.172.57.81.dyn.user.ono.com. [81.172.57.81]) by smtp.gmail.com with ESMTPSA id f12sm8492015wrj.48.2020.07.30.02.03.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jul 2020 02:03:50 -0700 (PDT) Subject: Re: [v2,3/3] watchdog: mt8192: add wdt support To: Crystal Guo , linux@roeck-us.net, robh+dt@kernel.org Cc: srv_heupstream@mediatek.com, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, seiya.wang@mediatek.com, erin.lo@mediatek.com References: <1596016922-13184-1-git-send-email-crystal.guo@mediatek.com> <1596016922-13184-4-git-send-email-crystal.guo@mediatek.com> From: Matthias Brugger Message-ID: <8774e948-502d-8a83-6e7c-5459497c52a4@gmail.com> Date: Thu, 30 Jul 2020 11:03:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1596016922-13184-4-git-send-email-crystal.guo@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/07/2020 12:02, Crystal Guo wrote: > add driver setting to support mt8192 wdt Commit message could be better: "Add support for watchdog device found in MT8192 SoC." for example. > > Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger > --- > 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 d6a6393..aef0c2d 100644 > --- a/drivers/watchdog/mtk_wdt.c > +++ b/drivers/watchdog/mtk_wdt.c > @@ -11,6 +11,7 @@ > > #include > #include > +#include > #include > #include > #include > @@ -76,6 +77,10 @@ struct mtk_wdt_data { > .toprgu_sw_rst_num = MT8183_TOPRGU_SW_RST_NUM, > }; > > +static const struct mtk_wdt_data mt8192_data = { > + .toprgu_sw_rst_num = MT8192_TOPRGU_SW_RST_NUM, > +}; > + > static int toprgu_reset_update(struct reset_controller_dev *rcdev, > unsigned long id, bool assert) > { > @@ -322,6 +327,7 @@ static int mtk_wdt_resume(struct device *dev) > { .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data }, > { .compatible = "mediatek,mt6589-wdt" }, > { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, > + { .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, mtk_wdt_dt_ids); >