Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2660488rwl; Fri, 6 Jan 2023 09:16:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXussKgnncQMGl/Ano9cUvSbULtzPyZpFjUj36zSh4poj5EQ2SRUl+gq5WV8WitroQ7RGuex X-Received: by 2002:a17:902:9b97:b0:193:b58:2b0c with SMTP id y23-20020a1709029b9700b001930b582b0cmr2829355plp.23.1673025377675; Fri, 06 Jan 2023 09:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673025377; cv=none; d=google.com; s=arc-20160816; b=BNkyzUbdbWzl8d4uDJew1luHzrERw7oE31/aEMUzTaKsT29bBGgh+z85wznq1BTdjP anhk5IUvkoYZxot6XEwFk5pTzKBSPYLkxQ7c5T1wkasp7TAcCK0BtytGYb/jam9ZxZ+M ockNdijAvF/ynS/P4mgYsfnYlZXDg65r6ybYVdMDFEcJfPRn78vUR6ulEZMwUqw6XSPX xvhi/Fm845r2vst9GCFV63sMedIN0xLxQVLNEsKhYuJpxhpCQbrqAwUzr6XlWgX3GbBV axybKrYkCkDs3MVBBQLoZR1leqWRt8bKAiJRrugYNr3ujH71NqFktIbhM7xgagqwaimC JlDA== 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=NPGjO3GLxwuKoc7lZtIvtYmPySePxCmc9A8414gqSgU=; b=zTEwyvpDTArB9VbdgiauT+o/UTiQW1+ZsdmbqZjOhX2uzZrCRLiaKKfGtH1E6i9MKY Euu+w1FfXnyMQ0Y/xPKN96cQK79g3IND32mcM+JZPjA74tuBN4fwVKxbDJxrEo80iLs0 P040ZplZoNXpjUtehFm2LLJa2U2Zt4n04GuUB4ToPCnLqZEB6G03QzHigHAJXDpL59By 4niC4r7DFBO9BB+Zfj0xDm/9WRotZbimXqT1gcRJLUXGQ40gEXZiSn0bvIaYEyo3Q2m2 tmgghQK5gN07RjCObSaxB3FXm+8Msq8LMlgx9+IU9nb8UiMT08es1IU97ljxzWgktofb 0Guw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=euSC14S8; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a63fc01000000b00463dbc5cebfsi2036010pgi.67.2023.01.06.09.16.10; Fri, 06 Jan 2023 09:16:17 -0800 (PST) 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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=euSC14S8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234814AbjAFRA7 (ORCPT + 54 others); Fri, 6 Jan 2023 12:00:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231527AbjAFRAx (ORCPT ); Fri, 6 Jan 2023 12:00:53 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F8A741648 for ; Fri, 6 Jan 2023 09:00:51 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id z16so1839418wrw.1 for ; Fri, 06 Jan 2023 09:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NPGjO3GLxwuKoc7lZtIvtYmPySePxCmc9A8414gqSgU=; b=euSC14S8bRke4P9nxYzrLsV7/Rs+V6Xwl16eqrk35fgRXHrcJW5M+EQ3TnnmVVz0OG imulyWr/yTkRznDSLBl6k+WUX9Hs08bCyaj/QtWTBFWr7PY4Bs/uZgGVLA+u+G0kjK1Q qXyAQWkNWXr2Jtmwao2CR7rfbv8Gr9gBMeR00JF4LoZPF4CGI8jAAZLlvp+/VbpPfmIo 4eeQb6ZkqPijQpvRdJPZbbz8MfSqPjoTyC40kWVWydVWtcd5HC6/wjxYGrCZJJ8aS6w/ OHJDK985nTHcaHYGlN3Uos/RdUc/afXFpdOH7junzOIQUY5F7bbBQggu0lFe/Q4h5PNO TfVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NPGjO3GLxwuKoc7lZtIvtYmPySePxCmc9A8414gqSgU=; b=Bhtn5pCRkl+mfrXUaR6tZXeZhu5GXE/LqX0i4lxB/140x5k4OL+bAUDqFqaBxlt1FT CWSdtQBwjpNIJlA9nN/SSPLcZgNcYICNAbGqykw8DsQtBH/+RDfnw/BmupEsjyElrih0 iXvnqkSZiJU9TChxA3mXhwrgKwQJwoFxCbX42U5YTsVXVAt8dLGwsPHcVgQmdUrlDHTN 5ol4woWG2bYjglI9AG5Fdyni596/ppO/WXR/TLowUdPCpKUjWap/KTXwOL7k8H4gl9W5 cUp+vSULDz8PcKfcEr1WEO8eKeUn3SBp6k2/brlXfvKzSJg/F8uhy4GZHP75Wv79WiiS Anqg== X-Gm-Message-State: AFqh2kqRZhaV5OXv7LKmVlFkejwe1k4QXnemTHmhmBx538mwU2K79D2q xHK6eCIB6bE291jAZTPpggA4eQ== X-Received: by 2002:adf:da51:0:b0:2b6:daf8:52ad with SMTP id r17-20020adfda51000000b002b6daf852admr3402719wrl.52.1673024449899; Fri, 06 Jan 2023 09:00:49 -0800 (PST) Received: from blmsp ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id f8-20020a0560001b0800b002423edd7e50sm1633417wrz.32.2023.01.06.09.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 09:00:49 -0800 (PST) Date: Fri, 6 Jan 2023 18:00:48 +0100 From: Markus Schneider-Pargmann To: Chen-Yu Tsai Cc: AngeloGioacchino Del Regno , mturquette@baylibre.com, sboyd@kernel.org, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, fparent@baylibre.com, chun-jie.chen@mediatek.com, sam.shih@mediatek.com, y.oudjana@protonmail.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, ryder.lee@kernel.org, daniel@makrotopia.org, jose.exposito89@gmail.com, yangyingliang@huawei.com, pablo.sun@mediatek.com, weiyi.lu@mediatek.com, ikjn@chromium.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH v2 04/23] clk: mediatek: cpumux: Propagate struct device where possible Message-ID: <20230106170048.p4d3rq6kehmf3adp@blmsp> References: <20221223094259.87373-1-angelogioacchino.delregno@collabora.com> <20221223094259.87373-5-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Angelo, On Mon, Dec 26, 2022 at 03:07:10PM +0800, Chen-Yu Tsai wrote: > On Fri, Dec 23, 2022 at 5:43 PM AngeloGioacchino Del Regno > wrote: > > > > Take a pointer to a struct device in mtk_clk_register_cpumuxes() and > > propagate the same to mtk_clk_register_cpumux() => clk_hw_register(). > > Even though runtime pm is unlikely to be used with CPU muxes, this > > helps with code consistency and possibly opens to commonization of > > some mtk_clk_register_(x) functions. > > > > Signed-off-by: AngeloGioacchino Del Regno > > Reviewed-by: Chen-Yu Tsai > > As with the gates patch, could we make the |struct device *| parameter the > first one? Also for this case I think we could even drop the > |struct device_node *| parameter. Reviewed-by: Markus Schneider-Pargmann clk_hw_register and others are using the device pointer as first parameter as well. So I think it makes sense to do it the same way as ChenYu suggested. Best, Markus