From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9ABC8C4332F for ; Tue, 12 Dec 2023 03:27:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345880AbjLLD1f convert rfc822-to-8bit (ORCPT ); Mon, 11 Dec 2023 22:27:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345867AbjLLD1d (ORCPT ); Mon, 11 Dec 2023 22:27:33 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EE92E8; Mon, 11 Dec 2023 19:27:38 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id CFA2324E2AC; Tue, 12 Dec 2023 11:27:36 +0800 (CST) Received: from EXMBX072.cuchost.com (172.16.6.82) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 12 Dec 2023 11:27:36 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX072.cuchost.com (172.16.6.82) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 12 Dec 2023 11:27:32 +0800 From: Ji Sheng Teoh To: CC: , , , , , , , , , , , Subject: Re: [PATCH v1 1/2] watchdog: starfive-wdt: Add JH8100 watchdog compatible string Date: Tue, 12 Dec 2023 11:27:25 +0800 Message-ID: <20231212032725.2524247-1-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX072.cuchost.com (172.16.6.82) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Dec 2023 11:01:21 +0800 Xingyu Wu wrote: > On 2023/12/12 0:47, Ji Sheng Teoh wrote: > > On Mon, 11 Dec 2023 11:06:42 +0100 > > Krzysztof Kozlowski wrote: > > > >> On 09/12/2023 15:27, Ji Sheng Teoh wrote: > >> > Add "starfive,jh8100-wdt" compatible for StarFive's JH8100 > >> > watchdog. JH8100 watchdog reuses JH7110 register mapping. > >> > > >> > Signed-off-by: Ley Foon Tan > >> > Signed-off-by: Ji Sheng Teoh > >> > --- > >> > drivers/watchdog/starfive-wdt.c | 1 + > >> > 1 file changed, 1 insertion(+) > >> > > >> > diff --git a/drivers/watchdog/starfive-wdt.c > >> > b/drivers/watchdog/starfive-wdt.c index > >> > 5f501b41faf9..31785bb373d5 100644 --- > >> > a/drivers/watchdog/starfive-wdt.c +++ > >> > b/drivers/watchdog/starfive-wdt.c @@ -581,6 +581,7 @@ static > >> > const struct dev_pm_ops starfive_wdt_pm_ops = { static const > >> > struct of_device_id starfive_wdt_match[] = { { .compatible = > >> > "starfive,jh7100-wdt", .data = &starfive_wdt_jh7100_variant }, { > >> > .compatible = "starfive,jh7110-wdt", .data = > >> > &starfive_wdt_jh7110_variant }, > >> > + { .compatible = "starfive,jh8100-wdt", .data = > >> > &starfive_wdt_jh7110_variant }, > >> > >> Device is compatible, so why not expressing it in the bindings and > >> dropping this change? > >> > >> Best regards, > >> Krzysztof > >> > > > > Ok, will drop this change. > > > > Thanks, > > Ji Sheng > > Hi Ji Sheng, > > You can add the compatible "starfive,jh8100-wdt" in the bindings and > add this: > > compatible = "starfive,jh8100-wdt", "starfive,jh7110-wdt"; > > in the dts. I think it would be better and does not change the driver. > > Best regards, > Xingyu Wu Thanks for the suggestion, will go with this approach. I have respin a v2 for this, as it only requires small changes. v2: https://lore.kernel.org/all/20231212031731.2498584-2-jisheng.teoh@starfivetech.com/