Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp911267rdb; Thu, 15 Feb 2024 22:02:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU0p41Z5iB4kychokBfXk5EpNHylz0zVQ9hUzel6KaxExleDuZVg2/VINBrmy708odZLKxXwj3d2fxn0uZ8wzTIMh2RwYoYX5fjf7sYFw== X-Google-Smtp-Source: AGHT+IFjtTplFwBvzFdEhqjMEbsjUyRJ5NaLSBLKQ0nhCn+3vNzuqiY4dYfnWri5WoY/WN0XqW02 X-Received: by 2002:ac8:574c:0:b0:42d:de25:8cd6 with SMTP id 12-20020ac8574c000000b0042dde258cd6mr1005852qtx.63.1708063370986; Thu, 15 Feb 2024 22:02:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708063370; cv=pass; d=google.com; s=arc-20160816; b=Dyx5O3IBXKQfq6KkSAKS86ECKhwk2vhqPn/CxrooC9yKYetsZRZDGcQP2t2jtyMbHL 7yoBOr36om88UZDPcJHVohGqOMoQsqUAJmh1n9QMzs8Idg5hQFEiRCUkCCYjAvmFl5SF u96a8wrx794tiN5TPTQH3Vs/GXm0/wyeKRklSR9HA9Su3a7OrMs9Ye2YC7cwXZfiTm6U swQA2f9SAi8pNbeU99qY1rxMdsciNZzhGtPsJSHsWmI+2AGweZ70E4dy+tLTiOUSWzL/ NSoEKa9Fn+sXORQ5RiC2A9g9xGrDhc9iW7gyGNbYu5m0xcX1WF6aUg2FKDBOnRrtt4M/ GUwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2txxjvnrW2UNqS/cEH50KsCaEADK9ar37fccQJhhNCo=; fh=jJOD4wW863ld2Lyr/69ltiCNhSOJMRL6H2xxXB5a0zA=; b=zfhvdfVNB2BfT1DsKW9thLGD3kdXfZBPDcBPrzdaaBSoti/H7CdVqM+Y6kgmbLTivC yEyLUPkZBxETn9YImnO2Q7sZy6o2BjVCtNzRL++AQoZzgzfHtTsUomjHwof3CBp5ycWu dv1+VNnaDTSibxKttNZ7jUxFMLERkPJqkcNSrRXbBnki+viax9QWa5LRTbWF84ckBf1u M2yL/5FHfYJDDS8IO3fKNY3StiL8SYrRyc2pmNhC29MsgExqNsXbZvWdJCieKdN3R119 H1i/9uJxrQgyLJcPHaQReXr9VbnhxI1XcrpEC9YyaW7GvrdYGMQqbUax9pFWCBn7NXou w9bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=THXyeRci; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x6-20020ac85f06000000b0042c6d87f293si3294582qta.487.2024.02.15.22.02.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 22:02:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68085-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=@kernel.org header.s=k20201202 header.b=THXyeRci; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 A979B1C2267D for ; Fri, 16 Feb 2024 06:02:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82C4B14265; Fri, 16 Feb 2024 06:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="THXyeRci" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9076063CF; Fri, 16 Feb 2024 06:02:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708063356; cv=none; b=uHIfdb6S3cpIIF2EUwzV/0AbLqdEep5MJKvsS+kGAvRU4k8l2P1QRVyvhx8IyOgcDyJlGmtJYA9gluWOYRh0ll167DxNWTvCCJyqNmpXiokUbYheHsIRK5RJ86SGgrGOwzJdNnSxa8Z1cB95VM8lJTclxL3EwMi4QV+yC0qv3LM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708063356; c=relaxed/simple; bh=xLbg9CJsDugebWTcD0p7oHppt3/BIZOhQtv1Tcg/emU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L6wnicCmN85jxHLESXiPFVzwH6c4L6/UHtE8f3T2Ne4aURJ+mxQVwMtM3ZmOl0be5I8xk2Iv5jtv69uyFqrkps8pVWH0plh8BfCt93tADp3aZuTckqRpCntDgj7fBM0rr1mhA3C4tFG8tAM/Pf5YSyoPiOZY6pj6gebFoBygLwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=THXyeRci; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D6DFC433C7; Fri, 16 Feb 2024 06:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708063356; bh=xLbg9CJsDugebWTcD0p7oHppt3/BIZOhQtv1Tcg/emU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=THXyeRcij7KtomuLH6sUqnXn8UU7L7Hte6T9jzC5fFgVNlU3zQKtDaRdHKmQbcgAN CRhnLUVsiOag7GJykwVBqAHhbNekbvdJn2iTZr3hWMoippmFXyEWEJXGt6XEtrcA5T gWtVwASk5StZBaoXwTP1sDuRPOBBYT2w1d1Ubgd4rwjDtL064eHSRhxJ3A3LYwgpRF AXuNnzln5/R5Frx7J9tRu5PklVyvd7GMXIXtfXEstV29hrLzwnpYCSIvBEq0KuSaSD 6RJEcQBJ4KPZfh8oe5/P6hxicMI/Rw5+2L17q/fcIcbmzsIbNukbmK1OaO6KrkpQsH xdirAFy6zk3hw== Date: Fri, 16 Feb 2024 11:32:31 +0530 From: Vinod Koul To: Andy Shevchenko Cc: Thomas Richard , Linus Walleij , Bartosz Golaszewski , Tony Lindgren , Haojian Zhuang , Vignesh R , Aaro Koskinen , Janusz Krzysztofik , Andi Shyti , Peter Rosin , Kishon Vijay Abraham I , Philipp Zabel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, gregory.clement@bootlin.com, theo.lebrun@bootlin.com, thomas.petazzoni@bootlin.com, u-kumar1@ti.com Subject: Re: [PATCH v3 08/18] phy: ti: phy-j721e-wiz: split wiz_clock_init() function Message-ID: References: <20240102-j7200-pcie-s2r-v3-0-5c2e4a3fac1f@bootlin.com> <20240102-j7200-pcie-s2r-v3-8-5c2e4a3fac1f@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 15-02-24, 17:43, Andy Shevchenko wrote: > On Thu, Feb 15, 2024 at 04:17:53PM +0100, Thomas Richard wrote: > > The wiz_clock_init() function mixes probe and hardware configuration. > > Rename the wiz_clock_init() to wiz_clock_probe() and move the hardware > > configuration part in a new function named wiz_clock_init(). > > > > This hardware configuration sequence must be called during the resume > > stage of the driver. > > ... > > (Side note, as this can be done later) > > > if (rate >= 100000000) > > > + if (rate >= 100000000) > > > + if (rate >= 100000000) > > I would make local definition and use it, we may get the global one as there > are users. > > #define HZ_PER_GHZ 1000000000UL Better to define as: #define HZ_PER_GHZ 1 * GIGA -- ~Vinod