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 B1C77C64ED6 for ; Tue, 28 Feb 2023 15:11:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjB1PLC (ORCPT ); Tue, 28 Feb 2023 10:11:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjB1PK7 (ORCPT ); Tue, 28 Feb 2023 10:10:59 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F349E212A0; Tue, 28 Feb 2023 07:10:53 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id u6so6445457ilk.12; Tue, 28 Feb 2023 07:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=0hFgCVYvdf8qCio/mcfsT/HFMMai5H9F95nC41WxplU=; b=dijrorNv9fDP9TTW1Cs81VGsu1XCztj0Z2xPY7I9NWdwoIiqm/LKgimo/i6O2xaMLR yzO0K0yqc+hQZL25Vvoly6iZBrakjAHqmGhnXrK+npdDeH0UokiBGgYyi4Yhsedvc8on pJ5ZZZhqZH/4JcwVJxjJ4GHUsz0wizN2i9HYjsCLYiGhTgSyaVQ3p3N6M3HPj4DQXi/H 2BW/swGHEI1Qhpu/AKdH3ur9UBbIvcdkvOShLPwADfDQxDzuFmwGD7KVupZ9IikRl/17 mXzUpZ+uPVzJYf08j/rWYYyOCtn+QG3AjRVoj0mav667JNh/tAu9VjuxeBovRWgbL7v2 MLSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0hFgCVYvdf8qCio/mcfsT/HFMMai5H9F95nC41WxplU=; b=NitGhgVsPRE/j8Mk0ws15T7ceegBvORTxmhx6pze5BgsMPAkN12adinjrnj1x1Acvl 2TuSJ1aNCj8BVku2m/bPl2sW34sx/nUNPOcpl/2ObUaMuCYuyMkerdbWmYhr0yGTGgjJ 86VxNL7VjHcBsL8ITVgr3QFSykRB2xDLzsbGPKsw7noTUpTL8BQIxoa/fj4PZ9cPe/O/ zNAjP8xyu0A7ozM/1P5O82b40otj0kw512RumFmGriBHBmv7RZRbwTIO4Q4S4Z5W7tfL nAGJLF95gQns69W2KiO2rHgHFmi5+5qmjSaPE+YbXGnsU+iby3AxSsZsTRkQbzrJ/XfI ItVA== X-Gm-Message-State: AO0yUKVO/ZdyyQ5Xs0SeV9Koj3IdYL3qXt3IRQUMwhJNJZfD1y0U0kpN tEfdkxSfS72V3yKuV4fRXF8= X-Google-Smtp-Source: AK7set/G+92FN/0hLG5LTDqB/5HLO+jsglkAAhxlxzfORyNGXB0Myo5noi0wmboxoHyoUt8qSFqJcg== X-Received: by 2002:a92:cd89:0:b0:315:34b8:4c6d with SMTP id r9-20020a92cd89000000b0031534b84c6dmr2888115ilb.17.1677597053373; Tue, 28 Feb 2023 07:10:53 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id b13-20020a05663801ad00b003e9e5e1aacasm2778973jaq.143.2023.02.28.07.10.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 07:10:52 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Tue, 28 Feb 2023 07:10:50 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 2/2] drivers: watchdog: Add StarFive Watchdog driver Content-Language: en-US To: Xingyu Wu , Conor Dooley , Krzysztof Kozlowski , Emil Renner Berthing Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, Wim Van Sebroeck , Krzysztof Kozlowski , Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Samin Guo , linux-kernel@vger.kernel.org, Conor Dooley References: <20230220081926.267695-1-xingyu.wu@starfivetech.com> <20230220081926.267695-3-xingyu.wu@starfivetech.com> <0ffb02d2-0bbd-fd0d-b0f6-cb5605570050@starfivetech.com> <545c23f3-1d68-2bff-89d9-584e3ca31044@linaro.org> From: Guenter Roeck In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/28/23 05:16, Xingyu Wu wrote: > On 2023/2/28 19:11, Conor Dooley wrote: >> On Tue, Feb 28, 2023 at 11:57:58AM +0100, Krzysztof Kozlowski wrote: >>> On 28/02/2023 11:51, Conor Dooley wrote: >>>> On Tue, Feb 28, 2023 at 11:36:49AM +0100, Emil Renner Berthing wrote: >>>>> On Tue, 28 Feb 2023 at 10:44, Xingyu Wu wrote: >>>>>> On 2023/2/26 22:14, Emil Renner Berthing wrote: >>>>>>> On Mon, 20 Feb 2023 at 09:21, Xingyu Wu wrote: >>>> >>>>>> So the dt-bingdings need to rename, and which one could be better, >>>>>> 'starfive,jh71x0-wdt.yaml' or 'starfive,jh-wdt.yaml'? >>>>> >>>>> Sure, starfive,jh71x0-wdt.yaml sounds good to me. >>>> >>>> I feel like a common comment I see from the dt folks is to not put >>>> wildcards in filenames & just pick the first compatible. >>>> I could very well be wrong on that front though... >>> >>> First compatible is a bit better, unless you are sure this will cover >>> all such compatibles now and in the future. For many bindings the >>> family/wildcards were fine in filename. >> >> Ahh cool, good to know what the specific policy is - thanks! > > If this watchdog driver is improved to also support JH7100 in next patch, > it seems more reasonable to rename the dt-bingdings to 'starfive,jh71x0-wdt.yaml'. Up to the devicetree maintainers to decide, but I for my part never accept wildcards in file names. You can not guarantee that all of jh71[0-9]0 will be supported by this set of bindings. On top of that, when / if you add support for anything outside that range (say, jh7200 or jh8100 or jh7101 or whatever) you'd have an even worse problem. Are you then going to suggest renaming the file to jhxxxx-wdt ? Or one digit at a time ? Guenter