Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3582759rwe; Mon, 29 Aug 2022 15:07:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GP+uHgQSo00zXI16yfr7rnXUBqGB2uQczc2RrTSSsxqJ0QBoOVb06WftjXxTMXKtNLjmX X-Received: by 2002:aa7:ccc8:0:b0:448:b0ce:3b65 with SMTP id y8-20020aa7ccc8000000b00448b0ce3b65mr1668239edt.56.1661810875634; Mon, 29 Aug 2022 15:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661810875; cv=none; d=google.com; s=arc-20160816; b=rlRXiMD0bnky79XB+5JjSk5DBlnDwmLSMwwn/daWdHDeJhNTccatOmWdQebA8qZHhc rAnwxC+eH+eMFwFHpDEfOeSrZam9cZu+pypkOrMHl5Otgbk9A6ua8LZV4Ks/xE0H0+d4 ueC+6nlxbAZYuevUADIdejEQ5PEpdk5FaaNpI4V0sR0wzcquEIhjPFe7azcZGZ8mQXKJ RQ5b2/bwu/nlIFRle4JRtakXfKUFpqcW9YWK1iBiqlC7gjWQ10RfRRn7v5BZeu04ftNc DLgF2xWGZCQRoDJz1ytE83kpZ7e3ZsAqt0KKSGPGJr4d8dLQEWMRyCtgj0jrhLZVfFaK UbRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=acwnTDPJBH/SZHxNkUlBZQjd5qjVLZ2s6MKT/VszfhA=; b=0oPR2MImMKIYr1pvcMjEDJMfvWT3rrqUZ3fkTzKfxwcaJRYB7pDRGfw7gyvtlvvxrm KPXgyISz/YsmqcrEdEKQUN3eIVIWkgGc3fXZcdNiK7ygFhT4YD57YoYQYukxBSDFcyGZ IvrnlsdesQgsbNgfx9uHC35X6jevGpbsG5BgoIR6RBIDicCc5CNy2gLgaGqM5C5n+EKX G5SmdmP2OYDsJqwlz/vQN6Y7UaS6Owfq5dY/yp+qae1u6/OoqXHGkwxXQt6zlBrx1oHw zPRPefqgCvu6zSLH4KLzwC4maA8CsJmZ/0Npy/ApVftVL9jbAM6ARwjAb1zrBxRrqT4t E/Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ieQg9ieU; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt17-20020a1709072d9100b0073d7ad9607bsi8214260ejc.551.2022.08.29.15.07.30; Mon, 29 Aug 2022 15:07:55 -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=@kernel.org header.s=k20201202 header.b=ieQg9ieU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbiH2Vyx (ORCPT + 99 others); Mon, 29 Aug 2022 17:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiH2Vyv (ORCPT ); Mon, 29 Aug 2022 17:54:51 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E5CCF61; Mon, 29 Aug 2022 14:54:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 85D63CE12AD; Mon, 29 Aug 2022 21:54:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 287FAC433D6; Mon, 29 Aug 2022 21:54:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661810085; bh=OeSLXvCWQ7C65bUk1sYHK/hHg1itGBL4NFVbuoULT8s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ieQg9ieUPWQlhZDjI3MjCCYc2bqIht15x/+OtR6/G8rnLEdkzpdHkCTXinGhHsokL URkGLPeZD1daNiiTdjTARphNIIOYZeFFBvtAj1Qf4MhEn5EnKJYIIREiksGUNwjKdr XU+PQOBH35uXCUNngPfCy5dS+M1wBs50yPcJlu2GCM6WGVzs/9vbvEObiENZuyKEHL aB62I/h+wlqH0EbXszszVsq0ZeX/5D75rP3tkdCIn2VBbmlQQawkGc//Wbb0gfZr04 oMr6AplJFaJNFy5PHSz00OGPCpFTv9XcmFMQeHOcJrdRn4uP4EIikktd5Jb3G+Hau6 gZEQm2hNlfkwA== Date: Mon, 29 Aug 2022 16:54:43 -0500 From: Bjorn Andersson To: Rudraksha Gupta Cc: Bjorn Andersson , agross@kernel.org, david@ixit.cz, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org Subject: Re: [PATCH v2 1/2] ARM: msm8960: Rename cxo_board to cxo-board and add alias Message-ID: <20220829215443.dvc5xnmeqnhmxb2d@builder.lan> References: <20220808234723.5184-2-guptarud@gmail.com> <20220809000300.6384-1-guptarud@gmail.com> <499c8b49-a09e-e775-3242-13d37a13877e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499c8b49-a09e-e775-3242-13d37a13877e@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Aug 10, 2022 at 10:51:51PM -0400, Rudraksha Gupta wrote: > > Clock and dts patches goes through two different paths towards mainline, > > > so they should be separated. > > Gotcha, thanks. I will do that. > > > > This breaks compatibility with existing DTB files. > > > What you probably want is to make sure that any clocks with parent name > > > of "cxo", should have a .fw_name = "cxo", then you can make a > > > phandle-based reference in DT and these global names doesn't matter (and > > > in the end we can remove this board_clk from the driver). > > Ah, I see. If I understand correctly, it should be something like this, > right? > https://github.com/torvalds/linux/blob/master/drivers/clk/qcom/gcc-msm8996.c#L169-L172 Correct, this will try to find the clock by clock-names of "cxo" and if not found fall back to do a lookup globally just on the name "xo_board". So it seems making .name "cxo_board" should handle both cases nicely. Regards, Bjorn