Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1383584rwb; Sat, 5 Aug 2023 13:51:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZLM4El7k3NC+j2z9a8V41oY/1aOpI+0FiGuhvR4GhvTg/oxyfBOWXjJ0tTBvYUB6flMPG X-Received: by 2002:a05:6a20:38c:b0:122:cb38:636a with SMTP id 12-20020a056a20038c00b00122cb38636amr3860759pzt.33.1691268707632; Sat, 05 Aug 2023 13:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691268707; cv=none; d=google.com; s=arc-20160816; b=aFaCLAnFrRBwZQpSyN4jGaxk8nhvil6/CeEwZKpswKmQ+kMLhVVBVQItAEmy1LlUZ+ zVzGPH4H7SzADqiNLUamMJJgz/WsnI/8YmLBzal2QGFY3GVBUT1zhaJ1eVuHZOKOufSW 9Csmb9xkJE7IcZ4owqvmGKAqnXWlCdRcBcuswiZQvrTFHm5shQ4kLidj5eJi/K974XiQ roHOHH2pujyui6GdC3looQoPa2bftYSFY1c4thyRTEOcc2gQBzRfyNM/yJ6bHoFpzbUI 0c+txmvdaxq1HE+PnWFcnPK4Ys77EvwcIhKPpTfg2W9Cpmvju0Itd2Z/gIDE8GQkPVcs T6Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AhM0nX24vtVjYSXmggbmwPwtE6IDQBa7yTOKVCY9Lqc=; fh=8vn51LSH6VzAkSWZOqW06ijrdvx1yJitn1zrYdjs1CA=; b=cRyrbp0MCnk5EFmWqXbkB4oXN3UEkoV8yCYTr4+B8I9OJeX/jTxUHVM12k2eefR9c1 PUyNCIYCoLTW/T/q8+UVv9cEKUrZ8zqzN/1nb3M+JUXa7KNOK6r7lhV+AtJmJpAM+tnA r22XkPweYHaQCBBdImqJsdd565nt51GxNbM4+xRMMjZvIdArwDp09TAjuCUe381YuA5W 95fphuy0DIOpfaoem8vz2JaLvNDdphafXUpN4diF/qi8ku6pCUBrRQ9ABsM5HuJY7fTc pZKd51+6XbzxG/1+DC5ubj+uVbLaDLH0xN6ZdlpoK/1wItgMq37EXTzToUCwVXK+tWlb AsRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i1+pyAYK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a056a0016c900b00687a8b8ef0esi967725pfc.296.2023.08.05.13.51.36; Sat, 05 Aug 2023 13:51:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i1+pyAYK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbjHETKB (ORCPT + 99 others); Sat, 5 Aug 2023 15:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHETKA (ORCPT ); Sat, 5 Aug 2023 15:10:00 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E5BA113 for ; Sat, 5 Aug 2023 12:09:58 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fe45481edfso21653655e9.1 for ; Sat, 05 Aug 2023 12:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691262597; x=1691867397; 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=AhM0nX24vtVjYSXmggbmwPwtE6IDQBa7yTOKVCY9Lqc=; b=i1+pyAYKBW4/QY4KSspsfj/nnye88FYeNW/UjTZk3/UzCDzUekF3J1E4qCNzxdyUmF wno3uyLLi/vAPH1h7oA6AnK3P0wlx50Jh6yHSYbmW054SzhQUpYcoSLs1G3shKMP7U+B Q/4K8FchPYG33D/yhT61eq6wkUQwzeG47y5r7W6TcY7VYmWBxMMRYGnF8136ggbnjw3n uAfovA9Tt1Fl5KRNGYcctHwoY7UtnEjZzWC9eXc7NNvCR7XrPTjxEsGRvklrsm42PsvP DjfNr3FwS1ewU37aQ39phfzLhr1ebI/ZoH+KKpHy5X5GOJr1MvWxUCOqALWahYNQwlsi gdVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691262597; x=1691867397; 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=AhM0nX24vtVjYSXmggbmwPwtE6IDQBa7yTOKVCY9Lqc=; b=L1r3Fu+WvMtQwMDfAiXJIJBSaTsY6nOJX64b5cUZzRHLIk+hJtNltiL+BdEF7/4jeh 1D6SA3cNYbqzDGDGe6QMPoAi2xg6ycNF3Udvc1J9oC6VGKWNVYfcckHhDGqrpTwDZ+0R /yiER3bv/HaP18MV7imce5BzL026vNMsvvjhjQePdE0p4AgkyJDlU1CO779xPLBmVgeC keWY2PAzXEzC60TtxTsufeqKgWVKzJAjB+lIxYhTYS1IAZIsTmf/oWc82Pzu1VQ4GbBX pZ+jzWRPhVPJfTFvEN4Dzf7ENbkHglo/f3gUdm7x2/gMHfhbLoW4uTAj8W0Zj+lh1z3L SUkw== X-Gm-Message-State: AOJu0Yyg91+6xxAbi7Oa8NqldclPlHLzsqBXR2i/FTDstzWl774d1uGs VEZ/D33tYT1VmBnjNSQix1fUIw== X-Received: by 2002:a7b:cb95:0:b0:3fe:374f:f7fd with SMTP id m21-20020a7bcb95000000b003fe374ff7fdmr4214209wmi.33.1691262596826; Sat, 05 Aug 2023 12:09:56 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.245]) by smtp.gmail.com with ESMTPSA id o12-20020a05600c378c00b003fd2e89620asm10047151wmr.40.2023.08.05.12.09.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Aug 2023 12:09:56 -0700 (PDT) Message-ID: <0ab2f6c1-4f48-592e-1123-d89d5eb0d164@linaro.org> Date: Sat, 5 Aug 2023 21:09:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH 2/2] dt-bindings: clock: intel,cgu-lgm: add mxl,control-gate option Content-Language: en-US To: Florian Eckert Cc: mturquette@baylibre.com, sboyd@kernel.org, yzhu@maxlinear.com, rtanwar@maxlinear.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Eckert.Florian@googlemail.com References: <20230731100349.184553-1-fe@dev.tdt.de> <20230731100349.184553-3-fe@dev.tdt.de> <780aa090-3a97-abab-271f-59790df29cc4@linaro.org> <11386dd27487075a9a0b1a2aa7794951@dev.tdt.de> <75cbeeed-84c9-7637-b2a7-b37d87f5872e@linaro.org> <2053f32f262911061e3e56540e4b51d4@dev.tdt.de> From: Krzysztof Kozlowski In-Reply-To: <2053f32f262911061e3e56540e4b51d4@dev.tdt.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/08/2023 10:09, Florian Eckert wrote: > Hello Krzysztof, > >>>> You described the desired Linux feature or behavior, not the actual >>>> hardware. The bindings are about the latter, so instead you need to >>>> rephrase the property and its description to match actual hardware >>>> capabilities/features/configuration etc. >>> >>> You have correctly identified that this is not a hardware >>> configuration, >>> but a driver configuration. Currently, the driver is configured so >>> that >>> the gates cannot be switched via the clk subsystem callbacks. When >>> registering the data structures from the driver, I have to pass a flag >>> GATE_CLK_HW so that the gate is managed by the driver. >>> >>> I didn't want to always change the source of the driver when it has to >>> take >>> care of the GATE, so I wanted to map this via the dts. >>> >>> I have a board support package from Maxlinear for the Lightning >>> Mountain >>> Soc >>> with other drivers that are not upstream now. Some of them use the >>> clock framework some of them does not. >>> >>> Due to missing documents it is not possible to send these drivers >>> upstream. >> >> So when you upstream them, the binding becomes wrong or not needed? >> Sorry, bindings are entirely independent of OS, so using this as an >> argument is clear no-go. > > Yes, that would probably be the case, as the maxlinear drivers are at > an early stage and are not yet upstreamable in my opinion. If I had the > documents, I would take a closer look. But they are developing behind > closed doors. Nothing can be contributed. Not until the drivers are > hopefully upstream at some point as the cgu-lgm. > >>> Strictly speaking, this is about the gptc and the watchdog. >>> >>> Since it is a buildin_platform driver, it can also not work via >>> module parameters. >> >> None of this explains any hardware related part of this binding. You >> created now policy for one specific OS. Devicetree, which is OS >> independent, is not for such purposes. > > Yes this would be the case. Maybe I need to patch the cgu-lgm.c [1] > and send it upstream to restore the old behavior. > Because the following commit has changed the behaviour [2]. > Unfortunately, it is also included in 5.15 stable branch. > Which in my opinion should not have happened! Then unfortunately this is not a correct change. Best regards, Krzysztof