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 940711C2339; Wed, 29 May 2024 19:56:10 +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=1717012570; cv=none; b=ew90ObUUMOuyipPTgG+sSWK2dmv8IxBXGJnG6ZvihxYGZSomvcgQ9Jq6XZvoDZbHvRtzKO5Ifrw792Mn+65gl96wVNlazv4QfWZOKm03jIjiMJr59kBZmcVhXgDuOabtQGGFCEuBlHO3T6ib/HYSg2Q8BdJiHNC1kSiZtnZxOzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717012570; c=relaxed/simple; bh=TBklheaPOVSZbia8qZxB0VNyWBs0CAJRg+n/yZzg/ZY=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=RgR3T+/CVEqvFRx9JaURachK5aZowB2kEqAI8xNtWm+7Nt8J684wDGRDo564FONVcVYoRPCTa5YqcyUdX67PdLE05/rBCadCFmuTIVgL9FJVqnImyNTW8vcYrE+n6jEIwkbaovF9pHitgQ4x/CiWIoVltem3kJD53aaNJvshDfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=noGkcr5h; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="noGkcr5h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09A8BC113CC; Wed, 29 May 2024 19:56:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717012570; bh=TBklheaPOVSZbia8qZxB0VNyWBs0CAJRg+n/yZzg/ZY=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=noGkcr5hN4wDQz28tlzVzx00cMEJdSilyR6Spv9eSDHNzUO3dFU9tmRNlp34aZIX7 R0GVjymgCTfFqZGhTRDug+TW73N9jxD8sFQg1/WYFbXbu3Fxr5DLZpf6qcdx7zZN8p J+iqjNtOevuI//mE25WKPuEQy5ZlrxTEmGfS9K1+azTtl/LTgJezrdsnW2gpa3xreI mIsJpcW1aIjb7p4oGKOfp6gfP5YOofHbSWnkYgQdqQU/JThJY5ThbJ/rkFQTTF6+Bb VnuRGhb4eFaRlv2Z/ALoq7l7hY4Z8Z8uyqIrba+KCOlfZbrooyamG0ZsdBtbjJfIen d6Rj/DcZkLFkw== Message-ID: <20f4f283b9f842f3868363a3f078b2a4.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <9073a6bfb7791e492156331fa8a0ea87a7c7cef6.1716975021.git.geert+renesas@glider.be> References: <9073a6bfb7791e492156331fa8a0ea87a7c7cef6.1716975021.git.geert+renesas@glider.be> Subject: Re: [PATCH 2/3] clk: renesas: cpg-lib: Use DEFINE_SPINLOCK() for global spinlock From: Stephen Boyd Cc: Ye Bin , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, Geert Uytterhoeven To: Geert Uytterhoeven , Michael Turquette Date: Wed, 29 May 2024 12:56:07 -0700 User-Agent: alot/0.10 Quoting Geert Uytterhoeven (2024-05-29 02:35:09) > A global spinlock can be initialized automatically with > DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). >=20 > Suggested-by: Ye Bin > Signed-off-by: Geert Uytterhoeven > --- Shouldn't this be first so that the previous patch can use the initialized spinlock?