Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6573328rdb; Fri, 15 Dec 2023 02:24:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEw1jptb4ly3oeJPnxZx4y8iRr21HlCUJb3A0PiLGVBqM4zeuzGi92Sd7lhzgzTEYZE+zgC X-Received: by 2002:a37:ac15:0:b0:77f:6a:feff with SMTP id e21-20020a37ac15000000b0077f006afeffmr11958927qkm.86.1702635850943; Fri, 15 Dec 2023 02:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702635850; cv=none; d=google.com; s=arc-20160816; b=e1Qp+oBEdKDvttZXXIrpc9JSiNN+zUS+2waOe+UWiQk+sbNM/mPUYyhHRBxu/opL64 lN8hFMecZA+UJxMwx+nNrQz+HWlSQDVwYsxc3o/m6yiI+Tn8a2D1tcizToZ7ViRijgSt jSRN76gKd3FFnZBB8x1ObbCTCTYj/m0u0nqjSFhL4BV4d+sSn6W64VOU80cEBXwTeuPv SEmI2VBfTSE77Bea6x/jqTTGSfL2XdpX3symtuVaRQX6PfDg7AdT5fe2iiaTyevvohjw LLd3rtWNL1vqTtt+b+LySlB7Nx6JBfszmbfkw7V/GxIOUl4bElM1YBTGlgWCmMGxQEVs t3kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yS+Astco5Bh8/oc41ujRmjEsBCKo5wFUS+A13l4o33Y=; fh=Fq+TbqshLWdqDgvkYcHoAvZfpd4EG7zw7LClJMfR03k=; b=y2TvTf7JhUR8vO+AUsVta9yQGogcr9BQt+tyucXHLSxV3XX7tT9PutveSDlpp1RKFD AybUdpsS7XpTOzalMAuEtUc0FPV/4QnaGSPyTBZFG1C+TtKfI74qe6Ra9G/+94CgnPng 1Cl17UUrqqzGJadFJCOvfOUZzTkAWGZUllV5RU7/i8XH0SQ72kl5K9N473/tBwU/KQ6Y ekdA/NXkwd9/+HRHxAfkL2utmlar+j4pV0sXtjvtY1GghScNNN2du60ZD/VWLksBirMd KNCKKHf15Wo//vRCiB6+ezd2z5SPxBVgfJ0SfVTNhYeN2rc5g6yejRhnbmosI0+sPXRC lpYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eRWotJ23; spf=pass (google.com: domain of linux-kernel+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g3-20020a05620a40c300b00775787784bfsi18607208qko.67.2023.12.15.02.24.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:24:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eRWotJ23; spf=pass (google.com: domain of linux-kernel+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-747-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6C3F61C23045 for ; Fri, 15 Dec 2023 10:24:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D586E19BBA; Fri, 15 Dec 2023 10:24:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eRWotJ23" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69F791947E for ; Fri, 15 Dec 2023 10:23:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40c3fe6c1b5so5198745e9.2 for ; Fri, 15 Dec 2023 02:23:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702635836; x=1703240636; darn=vger.kernel.org; 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=yS+Astco5Bh8/oc41ujRmjEsBCKo5wFUS+A13l4o33Y=; b=eRWotJ23Lg58plC5QVSmTCOVCi/HG2B8Xb3NveC21vJdMk2JPknPsApCsbKSrHrOrd ul0tCXS8hjyUgsQMXoQjfA8+ZNYo7+Hud+bFA8O3u9VsgIumwOkrjzjUHoQB9MLYdE2F PO38bqWBAUcY+7t+PJEy2O78KjG283mteM1NvA3xaQO6us7ZXQVDsv+ASwJJHcD7PMyb 25o/OwgJA/w/ii2KxyUw7ISppBRWMt7nyTwTBtxNh40uCX5CJhr7TL86QmIdjskl32qd aq3tzkcL8aaLLHoOA4V6tMsM1eDYBJHMSF6yBVPzyAIanuhuBDKqUte/8egFc59dt3Fz RZAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702635836; x=1703240636; 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=yS+Astco5Bh8/oc41ujRmjEsBCKo5wFUS+A13l4o33Y=; b=JQXxtP0Ric7Ts7N95pGWIZIFw7j2ok++Sp0OFyJK370PmG90lu9o4+yjXnIvPzvcuu 2AqBc8+4vp0zvM8I9FlvkTjWxcrp+4/lCmu/xLTGuwB+y171jHGUuLn2ogVjlMBImj6D zPYn3C8itRMGMl4NVqNVCiySCm8xpaJLN1VNxRR0WOuJKJdY0ynRkmJBIVMFkfqomIvr Yu3yJNBsFxt1DRyRj51DrO+xnqx7Kjg3r/eoQCKS4S6PaT2rkEU7Ashoe7vl50L2ur9M T5gGec6k6t1Gzo9FN61UWfYe0XFZ8ECkG7k+7ZmO79959JhYrw47HeAGJnBL8udDYirg qlng== X-Gm-Message-State: AOJu0YyfN4qfKCVVta6fJ+xIbUCqyXlpeUUA/M22eRL085AkyKi/Wo+V NWaTsfb6MgOcnOAgcGv5/ithGw== X-Received: by 2002:a05:600c:444c:b0:40c:3831:27ee with SMTP id v12-20020a05600c444c00b0040c383127eemr5814657wmn.59.1702635836594; Fri, 15 Dec 2023 02:23:56 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id s18-20020a5d4ed2000000b00336421f1818sm5937758wrv.112.2023.12.15.02.23.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 02:23:55 -0800 (PST) Message-ID: <5e454300-f1ef-435c-8c4c-16561502196a@linaro.org> Date: Fri, 15 Dec 2023 10:23:53 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 01/13] dt-bindings: clock: google,gs101: fix CMU_TOP gate clock names Content-Language: en-US To: Krzysztof Kozlowski , peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, catalin.marinas@arm.com, will@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org Cc: andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org References: <20231214105243.3707730-1-tudor.ambarus@linaro.org> <20231214105243.3707730-2-tudor.ambarus@linaro.org> <050c3119-0431-4400-9052-7a9c0ec67918@linaro.org> From: Tudor Ambarus In-Reply-To: <050c3119-0431-4400-9052-7a9c0ec67918@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Krzysztof, On 12/15/23 08:13, Krzysztof Kozlowski wrote: > On 14/12/2023 11:52, Tudor Ambarus wrote: >> The gs101 clock names are derived from the clock register names under >> some certain rules. In particular, for the gate clocks the following is >> documented and expected in the gs101 clock driver: >> >> Replace CLK_CON_GAT_CLKCMU with CLK_GOUT_CMU and gout_cmu >> Replace CLK_CON_GAT_GATE_CLKCMU with CLK_GOUT_CMU and gout_cmu >> >> For gates remove _UID _BLK _IPCLKPORT and _RSTNSYNC > > I don't understand what it has to do with the bindings. > >> >> The CMU TOP gate clock names missed to include the required "CMU" >> differentiator which will cause name collisions with the gate clock names >> of other clock units. Fix the TOP gate clock names and include "CMU" in >> their name. > > Neither here. Clock names are not related to defines. > When saying "clock names" I meant the clock symbolic names that are defined in the bindings, the _id passed in GATE(_id, ) if you want. >> >> Fixes: 0a910f160638 ("dt-bindings: clock: Add Google gs101 clock management unit bindings") >> Signed-off-by: Tudor Ambarus >> --- >> drivers/clk/samsung/clk-gs101.c | 167 ++++++++++++----------- >> include/dt-bindings/clock/google,gs101.h | 144 +++++++++---------- > > I miss the point why bindings must be changed with driver. The clock symbolic names that are defined in the bindings file are used as IDs in the clock driver. Having the changes split per file will result in compilation errors breaking bisect. > > Really, guys, we are milling the first GS101 patches for entire cycle. > Almost 3 months. The moment I merge bindings you tell me they are wrong. > Few days after merging them. I apologize. It happens when we work in parallel. The clock symbolic names were mangled just in v6. It was considered that the clock names used in the datasheet are too long and the dt becomes unreadable. I just recently updated the peric0 clock symbolic names according to the clock symbolic name mangling strategy, that's why we spot the inconsistency and the symbolic name collision so late. Cheers, ta