Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4395042rdb; Mon, 11 Dec 2023 19:27:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEq9vpiVBccMdmPmOlPKWmp7+/R3LGD1qdYd6zP54F0jSJLeEzW6Ar6Uf+CKdXjP8ESpLs6 X-Received: by 2002:a05:6a00:1251:b0:6ce:63d8:3b61 with SMTP id u17-20020a056a00125100b006ce63d83b61mr6754659pfi.26.1702351671035; Mon, 11 Dec 2023 19:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702351671; cv=none; d=google.com; s=arc-20160816; b=dVlfaWyFK9EN7WTNUYpyL5Zfym08TVHxs719iPw/5jeO6EknR5AuiO2ScUMHexdndv KEs9A27s4k1GqmKb85n9l6kWqh6tCZIATcR/yBNA9NP/+y63jd5V9DgjpbbqbXMbhrCA 7fKNLV1MJagd6IgWFqFjv6OBMnfuNV4TzSnjJ8qMwBWmwq7+Gc8SbyBqvrx3Se/VDrol SXZQsXs+8+auxRcXNMHjjQ3aODZGHpGVi+nR2oCNMZ9s/LphCa7RYRx/Q3amkPDaTzyY e54Z5W4mynt61ctdDnL6Ce8C/AeMLyXhO5dJVuBhlGqABW0zhV3lEtNtf40R1V2Z176b 2emQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zfJNZ32sVh2iLbmfUKzYlbIBaffVb9k4xvcxL/M+9h4=; fh=/v5I3mY9mgl/rAvZYAJa67FbsRDQQ6A1ORCjddixnV0=; b=oaBAr/Uo7YE4Sge7fcd67WihdBgZXhItgWaO8hsUH8oo7x/Rt/ras6RnIVbrBFVN7w j7aiDWFXxar9bdU9g2hXN43VTXpsQRXY1p8pQKjUhdydywXKzTJ+lkeG4vWdeYozy6Jr aAxORTYlvD2vqc4CabzQ8DfxtnwXPPyPDfQOAP71H7UwDsJ4bmAloxeJ2P16BY243cEk nPjLK0ZRtyuzHEXahtG/6nkFfjIP1wupEtvZT1zfOwY5DICUbIszxsMLMukZxKir5DE7 9cfG8ZInN8L+G7M++V3PAcU1pXSW96Bp0r6+nAdO2sHqpcwaLAwQ3oKrbnjbWDvS4vhZ WUUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d14-20020a056a00198e00b006cbbdc31d10si5781180pfl.220.2023.12.11.19.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 19:27:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9E4B3805090B; Mon, 11 Dec 2023 19:27:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345801AbjLLD1f convert rfc822-to-8bit (ORCPT + 99 others); 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 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 19:27:48 -0800 (PST) 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/