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 E49F0C61DA4 for ; Sat, 11 Feb 2023 11:42:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbjBKLmO (ORCPT ); Sat, 11 Feb 2023 06:42:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjBKLmO (ORCPT ); Sat, 11 Feb 2023 06:42:14 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A0BA30198 for ; Sat, 11 Feb 2023 03:42:12 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id o18so7673679wrj.3 for ; Sat, 11 Feb 2023 03:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=ikcY8Pm/yTY/JbPUBqfUjPlO6R9EeoJh3TYttTT10XE=; b=SXFy5RcvIzFQe1tsiULhSMLDWbeL4tdvhlCLh3stfIL2JuSSPqbTUVZXDim2EjigQE uWvW2aUwq/tNgpfNz5NdzzMfs4y+S0bnN86VqbIqAPFlvwUTLa65KeW9eYn3v907QhC3 1oLgK4+yaNE9lsX8BHPMgJBsLbdRxA4NEo+tlo7TbpTnyazAV+mqjv9lE01C6y3ULkjX fdt1CM4esJ9jSqd9MjBlxJ7iB6KHgQpyoZSFyehdGhggNXAtX3QYImIngzS8l1gbqc1x tlmEbxlghk3YsxpTPEKiwTn8UnCHxmEPO7+QU7ytwjhrkX/d3GX4GZouHpoIujygeclb OR+Q== 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 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ikcY8Pm/yTY/JbPUBqfUjPlO6R9EeoJh3TYttTT10XE=; b=gWBe9HpCIBQUXvLcH/14sUg1DTAKdLxJInQ7sbZ2GXJ0Klfu814BK11nw4opmdyo1Q E7bRG8PkG3L+ljjuHLQa2uM0p8wojPWIumPzf0HOfcWmgUwFGNmq2/IJFiVx3xs9Y29c ZgqemXPiWSdY9IFen51OWJY/tccRgFoadt9CKPv9SLhVm2OIuaIjPDYU/ISfTzxPI1bL yvy3n+iW/1BxZOsY6JKJRjGfj9ywS9PC9LRdOf92goxumfqIcwqqghIxBUoXSYZS9tA+ j/QOLxDtOdAFBgMflH9KVsMWZ4Uh8vpnPfI8S+7Yv+ISEDM6ejGp6K0VMxQkM7vUSi0R pF3w== X-Gm-Message-State: AO0yUKU72zkAgKJeKtDaZmZ6VWrYX8yj1OOanjAyUJliSdh51ako1tpH 6AXhgKSyZqze7mVB+Nc7VCWD/A== X-Google-Smtp-Source: AK7set8iZmjG9W+Y5cURJ9jueVn2aH2CjMKkFzSv6b4P4liPwwWHkouqoiCf8pcHXlew0lhDzTB9dA== X-Received: by 2002:adf:dc04:0:b0:2c3:ea92:3494 with SMTP id t4-20020adfdc04000000b002c3ea923494mr15496544wri.55.1676115730845; Sat, 11 Feb 2023 03:42:10 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id y15-20020adfee0f000000b002c3efca57e1sm6064372wrn.110.2023.02.11.03.42.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Feb 2023 03:42:10 -0800 (PST) Message-ID: <76353597-0170-e0d9-9f5d-f208a03e44e8@linaro.org> Date: Sat, 11 Feb 2023 12:42:08 +0100 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 v4 1/5] dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers Content-Language: en-US To: Sergio Paracuellos , =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: linux-watchdog@vger.kernel.org, wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, tsbogend@alpha.franken.de, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org References: <20230211073357.755893-1-sergio.paracuellos@gmail.com> <20230211073357.755893-2-sergio.paracuellos@gmail.com> <190b3135-82f3-4dfa-55ee-e048c5510e3c@arinc9.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org On 11/02/2023 12:01, Sergio Paracuellos wrote: > On Sat, Feb 11, 2023 at 11:47 AM Arınç ÜNAL wrote: >> >> On 11.02.2023 13:41, Sergio Paracuellos wrote: >>> On Sat, Feb 11, 2023 at 10:10 AM Arınç ÜNAL wrote: >>>> >>>> Is this mediatek,sysctl property required after your changes on the >>>> watchdog code? >>> >>> I don't really understand the question :-) Yes, it is. Since we have >>> introduced a new phandle in the watchdog node to be able to access the >>> reset status register through the 'sysc' syscon node. >>> We need the bindings to be aligned with the mt7621.dtsi file and we >>> are getting the syscon regmap handler via >>> 'syscon_regmap_lookup_by_phandle()'. See PATCH 5 of the series, Arınç. >> >> I believe you need to put mediatek,sysctl under "required:". > > Ah, I understood your question now :-). You meant 'required' property. > I need more coffee, I guess :-). I am not sure if you can add > properties as required after bindings are already mainlined for > compatibility issues. The problem with this SoC is that drivers become > mainlined before the device tree was so if things are properly fixed > now this kind of issues appear. Let's see Krzysztof and Rob comments > for this. If your driver fails to probe without mediatek,sysctl, you already made it required (thus broke the ABI) regardless what dt-binding is saying. In such case you should update dt-binding to reflect reality. Now ABI break is different case. Usually you should not break it without valid reasons (e.g. it was never working before). Your commit msg suggests that you only improve the code, thus ABI break is not really justified. In such case - binding is correct, driver should be reworked to accept DTS without the new property. Best regards, Krzysztof