Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1093583lqe; Sun, 7 Apr 2024 19:37:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3LHm6LOXNfEU4ZOKF8MYi7zzzXPiesFurDiZZdmLAr8ZjGAGNm1IHuqSzci1Zr4E1pFkLX8WYW7qJiRmpsg/WObD0ipKvsF3l+kw7hg== X-Google-Smtp-Source: AGHT+IFucB2qfFgHopdPKZvCIZCkXeyiBqkZBjiLXLOhG2CmhgPZGYqKCL6toWw3KJI1pxMuMA2T X-Received: by 2002:a17:90a:17ab:b0:2a2:f4f4:2c4a with SMTP id q40-20020a17090a17ab00b002a2f4f42c4amr11064473pja.21.1712543862807; Sun, 07 Apr 2024 19:37:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712543862; cv=pass; d=google.com; s=arc-20160816; b=JbJOikdLu1k/xm5X+i7jvss1uyMT7SI9JEf3JCjnkSpdXYTPPLs1FgeNk/Rz5EhSZb 5QN1ZjpSj/stBfWUmQCr8CrbqqcA6KQ4QIEEfz0cKlsjsVXdz4xqS/zWEhq9FhWynNiN c+lvnRNb0StcORb9CAe1lMpUI32xkJEgl5ChH74VLHc6s0VXDYYV8Njw3nmdv/iVJGrZ gX4Hye+o1TwaTwz5F6Gyyf2YFwagGAcjiYLFvAfzmVCsjEEJ9IGv3lj9aQ7W3rtk6Nn/ CdPnkMXdmR1yp43lNkfw7iSLbhmCMTSpGUVi88vBQjIEs7X0nywqOaglMrFnpZr+fQQH GPNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=Qy3aIcnw128COjcx5ZkLH7sn4aLCJPiOUq2u2hUN8ak=; fh=Net1+9BszATlPaFQGOPI6BEX7pzoM/ueWJyYGS7C45g=; b=tWTIK5LeMUD+avfoa3bzn38HtoAMAAiBUkbMgzjQwO9MTLMdcaN4jAlGcoUeoGLt1m u+UMYVPi3sr1J37yBkOGigA5I4DhJm0DhmYIFh3ppfKASUALXrp97kqg0etYYQ4YYeK3 Ev0NrLitwZsPpebkq2VogB9eIXKK5zMWxnABiEaf50Q0A/mnjF5tEXJOApM/Fvgm0+sn D9Rdm5ikXPP4Bi++z06C5vltR25jQBd7RN+gcXbfiDnDUKZOkcwxiiX5ZDM7eMILgS1X 1QhbA9Pj0tVzHzm+j0J2+efvAM510+4EXiatcMG9iI4PkV2jRIU/qNF2SFoieXd2coff 22LA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nz2LHvRO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134725-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x23-20020a17090a165700b002a2c92c3365si5575665pje.11.2024.04.07.19.37.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 19:37:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nz2LHvRO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134725-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6A894B21229 for ; Mon, 8 Apr 2024 02:36:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 653501869; Mon, 8 Apr 2024 02:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Nz2LHvRO" 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 839154C63; Mon, 8 Apr 2024 02:36:20 +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=1712543780; cv=none; b=NpuTkN8yuYw8kQxnJCUIEMB7SMEVnvqP4bPmPvm9eW8OhnFNBQyqnabrmAC2jfF5aPLaXOSdpQnkKSKz5T30lhCiK8D8djod/ycv7gz0WHFGoltnsYwF19qboGsjfZWxFE5xm68phrPQBe3i7aT9j+E+ZnsVHLOzzTWclu3cyv8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712543780; c=relaxed/simple; bh=Qy3aIcnw128COjcx5ZkLH7sn4aLCJPiOUq2u2hUN8ak=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=vErE4Zl0xVk0g+uhLmYqvNKvPyoZAyQKDjRvPYbpcm30OaGku/b3KvZ8L1HPO6ait4BDj6ajXMhPwoByNj+ZniNUd18h4hX9x3hIYhlgPnpPzf29WY30lRNF9inbXGzLNoq//H3va6G80mvEcygjyZNPW5WzYE6lenohwBe2mf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Nz2LHvRO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02506C433F1; Mon, 8 Apr 2024 02:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712543780; bh=Qy3aIcnw128COjcx5ZkLH7sn4aLCJPiOUq2u2hUN8ak=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Nz2LHvRO5rSrzZFXLK8P17cotOVKV4gDgenEsN5Psrhybwr3VnT+68TR90mFzNfyc PA11WbLEBzLG8u2jFPqUHAo/VhCCsMPGrXnHKUKmfe/U8QjYUjRoqmOcWcJZICUnXN 816PfSnhKzyBk2qPxbWnSjwn0tbvAqwKjmWfA23quaAMXghyxyDCbZJi4xcCbFSsYq r+qtzRWOa6ZSXClsKzRC9/7qAAmbFbChkxQ+0G+FldL4sHdHz/QTrv9Et8RLPwRgie Y7/MLmVXy8zf/re14wDZoGbyF6Coxy3xPDZ0tjkXqq/5KVf1kLkjVIQbwqbqE+Fei6 9E3ByLd7ptUAQ== Message-ID: Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240325184204.745706-4-sboyd@kernel.org> References: <20240325184204.745706-1-sboyd@kernel.org> <20240325184204.745706-4-sboyd@kernel.org> Subject: Re: [PATCH v2 3/5] clk: Initialize struct clk_core kref earlier From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, Douglas Anderson To: Michael Turquette , Stephen Boyd Date: Sun, 07 Apr 2024 19:36:17 -0700 User-Agent: alot/0.10 Quoting Stephen Boyd (2024-03-25 11:41:57) > Initialize this kref once we allocate memory for the struct clk_core so > that we can reuse the release function to free any memory associated > with the structure. This mostly consolidates code, but also clarifies > that the kref lifetime exists once the container structure (struct > clk_core) is allocated instead of leaving it in a half-baked state for > most of __clk_core_init(). >=20 > Reviewed-by: Douglas Anderson > Signed-off-by: Stephen Boyd > --- Applied to clk-fixes