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 CAEF8C7EE2E for ; Tue, 28 Feb 2023 14:03:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbjB1ODd (ORCPT ); Tue, 28 Feb 2023 09:03:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjB1ODb (ORCPT ); Tue, 28 Feb 2023 09:03:31 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 720781EBC0 for ; Tue, 28 Feb 2023 06:03:29 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id d30so40455304eda.4 for ; Tue, 28 Feb 2023 06:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677593007; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tOSJ6umcOZA5CjUGiyBLVx5qUO7As8SlOyj3YKzeyGA=; b=vMEAwTDHGxtNiHIstWX9O4/Qc+j3JpDj8jIp4Ui9bfcB6A3JdYU5/juL+MSluiobSO LXQmuxdHun72mIGZejPqHAGjXKPFGBT4tGDwDflwHz1W+T5J4E8hwGur8kNskWZAcFGh KhwmqXn23rXf3oatc9zydMto00qyiETBmW1CPKaG7NoHmQULeGFRHGaCh3CRtMauTDUp w8KNVdgViH5yMEel5uAM/Y3nMxBrzZemRzM6r2ZuOfNrKvFgVbr3qysykocqp0ogR0y7 3aIn2ShfFkH+m00LEYfanUhNocfZEw9zH5RhqJJt9w/ffBKN826ZL3E2ytWM86oaeJ5w az3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677593007; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tOSJ6umcOZA5CjUGiyBLVx5qUO7As8SlOyj3YKzeyGA=; b=pyC1suD+y0nkA/SCbP/SO9xXzLam4CwTGtEb5UfyDgjW9AR1yN1Bp6SzAWKefvVg5a 7NkkvQ+lQ3Ucra/Lb+uFdmWosNUV2uMwUEpU3m3DYG4ItQgDlX/1aWEDpmsx+VgJJu2C a5lYcj5JAZKsB/9we/9bY7kduPg7A0dZfavEH2S6G66uFsRQy123WWyTfCzyKhoX/+DX Iy1FXX8aRtTApYwQz4h23G4mIulaySVxKVA8qSqAWHtELIokl9P+ImiUI8PTumeIWKWs cCm9yw4S6eqNgB7O5jhIfc8iI9tF4hoWfyc9TfEwqxsMxPiX2c3w/oKU97gvPB2r/o8f nsQA== X-Gm-Message-State: AO0yUKW5Arz8aM+IaT2lPPGgCwYkawG+RnkhR1w/0ahmTg/vNv3WXjQo q8vmknDWU8EtwmZJM279iTOUog== X-Google-Smtp-Source: AK7set+dumf3UHtLmRhYjVhZb6oiDxoCBxZsl+O0HoDiARM7jnxwQwI7aKhclSInAOmneYFVjwWZ0A== X-Received: by 2002:a17:907:3e25:b0:8ed:a0ea:29ee with SMTP id hp37-20020a1709073e2500b008eda0ea29eemr14754489ejc.22.1677593007619; Tue, 28 Feb 2023 06:03:27 -0800 (PST) Received: from [192.168.1.20] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id os6-20020a170906af6600b008f7f6943d1dsm4487936ejb.42.2023.02.28.06.03.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 06:03:27 -0800 (PST) Message-ID: Date: Tue, 28 Feb 2023 15:03:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v3 2/2] drivers: watchdog: Add StarFive Watchdog driver Content-Language: en-US To: Xingyu Wu , Conor Dooley , Emil Renner Berthing Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, Wim Van Sebroeck , Guenter Roeck , 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: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/02/2023 14: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'. Bindings are for hardware, not drivers. One version of driver in one OS should not determine the bindings... Best regards, Krzysztof