From mboxrd@z Thu Jan 1 00:00:00 1970 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 116102DECCB for ; Wed, 7 Jan 2026 11:28:39 +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=1767785320; cv=none; b=mJ3XAtjHtr4rfEbfUPzt2PJN1kjIQ384+m1V7iUBlf2RY/ib+FjyBD0ju0h8O4WS+ak6ApijvNYwcrk9sgD95xsFhXfYToBzT+Vu4CWQGl2zCMvIHUTyyeAvJXYADbNXTHRDaYtk/wj9Aoem66M3/Pm3cOnp128yuBpoBtqtad4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767785320; c=relaxed/simple; bh=C/qpIAbYKMQYGtVSfTJGcDxiyuRs1hXYJK4NPjgQNhc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Hkr1nEgQ0ZkD7HAHZXwCXav23AdSHl0sny9hx/bAwG1WfpMFdRqevSXNs4mMoD57NapUKqe8WjaW6RSUkgKbM7xHI6S5EV4GKW3YKjZCjyA4wAYkVzu6WeYmnh+KBfUMDyXuSJNKFCORwvYH/Itm0kcMpScAn9hrskqcsve/RF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=smAzcjGi; 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="smAzcjGi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 790F0C4CEF7; Wed, 7 Jan 2026 11:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767785319; bh=C/qpIAbYKMQYGtVSfTJGcDxiyuRs1hXYJK4NPjgQNhc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=smAzcjGidZBPSR+Jy1Uk/9y7njcamc8fEsV5c0LRKNVMIty9SomBsLkgOMqEWeg0a jSKCYyb1fHQ0UjT2fbP2LnbxTAYEFk538z5USVlQU8w0fBSqQeXEo/nqbc+nlpdM/Q gMtZLJCO5RrAli7tKoh8FVNmxQXzKsXWsmrDu+mxRAWLGD2bP7P7MxOUCy3Ev27LVw glwkvkZfjz5Vr6vfNMCcBbF/40DGm1BYhTcrOJxNZvWa8OL84FuZzbQ2LrQe2qOXx1 8zYnES4cvl+Xd44+8CenfPzBgov+r+whRmQH8FWgdTkztQ+3gJf0be5Vrr5PmHnfI8 1ShAdZnvs/DEg== Date: Wed, 7 Jan 2026 11:28:34 +0000 From: Mark Brown To: Yu-Chun Lin Cc: gregkh@linuxfoundation.org, rafael@kernel.org, dakr@kernel.org, baolin.wang@linux.alibaba.com, cylee12@realtek.com, linux-kernel@vger.kernel.org, james.tai@realtek.com, cy.huang@realtek.com, stanley_chang@realtek.com Subject: Re: [PATCH v2] regmap: Fix race condition in hwspinlock irqsave routine Message-ID: <96e4fa72-b9cf-4c7c-9485-a95f4903cdb6@sirena.org.uk> References: <20260107032610.13166-1-eleanor.lin@realtek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0dOaP+Wzmm8mdrvU" Content-Disposition: inline In-Reply-To: <20260107032610.13166-1-eleanor.lin@realtek.com> X-Cookie: Is there life before breakfast? --0dOaP+Wzmm8mdrvU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 07, 2026 at 11:26:10AM +0800, Yu-Chun Lin wrote: > v2: > - Initialize 'flags' to 0. This fixes a -Werror build failure when > CONFIG_HWSPINLOCK is disabled, as the stub function in that case does > not initialize the pointer. > { > struct regmap *map =3D __map; > + unsigned long flags; > =20 > hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX, > - &map->spinlock_flags); > + &flags); > + map->spinlock_flags =3D flags; I'm not seeing that initialisation in the actual patch? --0dOaP+Wzmm8mdrvU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmleQ2EACgkQJNaLcl1U h9DzMwf/Z8ks9rIrKv5gHRFkfEYBy7fhs83yteF6EM1BdjRDvj5vW8MjpFTi0y2x xMg+uDbHX8gv7W8KUdeIheYTiGmJFPokYjNMenVqL180U3SvhH/Ofph/mdIyJRKr XxN+GbCsAdK4o/YK/kg1g3QMrD7E5xi8pf6yJN7lwXakYxwYvG9PdN/MONfpdUx8 jk1iEFDhZtjPb6Or2l6WAYY+iTALYc+oGpQfJTLTj3x6vwz2RSZRN+ONePUpjG4v DhSzE6gHIlcwXTtn97WGn27lDG4T2+smE+Y5phkhBe87lDwy8MtTNJ9Ysym5wtNj G1luf4FFENhuy67INB6RYWSrpoYljw== =mekj -----END PGP SIGNATURE----- --0dOaP+Wzmm8mdrvU--