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 56548C05027 for ; Tue, 14 Feb 2023 12:39:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232037AbjBNMjw (ORCPT ); Tue, 14 Feb 2023 07:39:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231891AbjBNMjr (ORCPT ); Tue, 14 Feb 2023 07:39:47 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87DD51F5DA for ; Tue, 14 Feb 2023 04:39:46 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id j32-20020a05600c1c2000b003dc4fd6e61dso13557545wms.5 for ; Tue, 14 Feb 2023 04:39:46 -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=CEiKMEVtBuEXcWgSS3bW1AVgiz7paLJWbSWxqpf4KL0=; b=SvD6tLh44XT/G3dEu8Z8dGpH9lPbBgjhOj5q+gsSI47Lu+AJtYFcrwM9qzPskfrcbe ZL1EfMKNEFcdmipx5JbaLO+9y96WTz0lM6xcVKGu2IzoV51TyzgyFJRArRIhnUlP2GpE d5S7YmuuUZoYWG6KsRtKypEbp2uEx/Aj/ABu2a8qaIcoE5noIF9pvBZWW+tN6JRNni+b oPVdJIkmqDtbVjXB7kIsoRZitgeDom2h3AscRdNPiz4iZNlDJtkO8HNlI2syKNRLmg5m FNZMHs4uGHrH1TNIz4rlAH66JNZSNINmQpBT6j63Cu3EGYT5JhYuFJuhSrgqcjAJwZ0o 66ug== 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=CEiKMEVtBuEXcWgSS3bW1AVgiz7paLJWbSWxqpf4KL0=; b=dUHJtNAne/F3TRroWnI6aioFaWlkXzt4K6hWO9wCYd/phOt9jJZJ1iiLWJHqizzCqN MDRXgz3O7cZAjP+wjTDOZK1m02QajqOD8S5IHvV4tZQ0UA8ZsHP6W2rgc8FtUD5Ue7q/ G7e0fM9Vig716Qt2FZ2BhAbDWVh09vq3WMOeODS7OFX+KCvpnoF3BjosXa5JBLGjmtW1 hI3bz3AD4HvAYU2K9nYy4RLvZT/l7nM+BiXNsd3R6cIwiPq410MPI8jsPQPq5L8JRalx wwZI1e/julYKMmvETYbe6Zt0+yIThquVgpniZyCaQsMI9WELUuYVhYAd9JZoFPk0xYey AIvg== X-Gm-Message-State: AO0yUKVZGAW8TIXQsQBz2o2USWIcCqF3xGJ+/XT5fU6RrwmkY14sXJPO XCaKh7QqM4tLkzjKvEc5Rz7+hQ== X-Google-Smtp-Source: AK7set8EVHso4/Xkab5oZtnZwwagkai8GeZ6rb46YWHuCXYyV4Vpj+uUYZuT8GMB/w/FqJ3nfkh7iA== X-Received: by 2002:a05:600c:43ca:b0:3d3:513c:240b with SMTP id f10-20020a05600c43ca00b003d3513c240bmr1717849wmn.7.1676378385174; Tue, 14 Feb 2023 04:39:45 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id s21-20020a1cf215000000b003e001119927sm19664484wmc.24.2023.02.14.04.39.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Feb 2023 04:39:44 -0800 (PST) Message-ID: Date: Tue, 14 Feb 2023 13:39:43 +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 2/3] dt-bindings: hwlock: sun6i: Add missing names Content-Language: en-US To: Andre Przywara , Wilken Gottwalt Cc: Bastian Germann , Ohad Ben-Cohen , Bjorn Andersson , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Samuel Holland , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org References: <20230213231931.6546-1-bage@debian.org> <20230213231931.6546-3-bage@debian.org> <20230214104554.35338faa@posteo.net> <20230214121217.43f6124f@donnerap.cambridge.arm.com> From: Krzysztof Kozlowski In-Reply-To: <20230214121217.43f6124f@donnerap.cambridge.arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/02/2023 13:12, Andre Przywara wrote: > On Tue, 14 Feb 2023 09:45:54 +0000 > Wilken Gottwalt wrote: > > Hi, > >> On Tue, 14 Feb 2023 00:19:29 +0100 >> Bastian Germann wrote: >> >>> The allwinner,sun6i-a31-hwspinlock.yaml binding needs clock-names >>> and reset-names set to "ahb" as required by the driver. >> >> Hmm, this one is a bit odd. If you look into my earlier versions of the >> patchset, you may notice, that I actually included these bindings and they >> were refused. I think the argumentation was like >> "there is only one bus = no need for it". > > That's interesting, because your driver implementation relies on there > being a clock name. And if I chased down devm_clk_get() correctly, there > must be a named clock in the DT, otherwise it would fail? I haven't tested > this, though, but I guess this is the reason for Bastian's patch. > > Regarding "one bus clock only": while this is true, I think there > is (or was?) also the rationale of using names being more future-proof, so > adding clocks (for future hardware revisions) can be done more easily, > without breaking compatibility. It's not a big problem, since you probably > have a new compatible string in this case anyway, but it also doesn't > hurt, and allows to use more generic helpers like devm_clk_get(). > >> If it gets accepted now, I really like to know why. (It was some trouble >> back then to get the documentation properly done and accepted.) > > IIUC, it simply doesn't work without a clock-names property. Oh, there is clear way. One can ignore review and push mismatched bindings/drivers. Incomplete binding to satisfy DT maintainers and driver doing something entirely else (using undocumented properties). Best regards, Krzysztof