Re: [PATCH v4 08/15] rtc: rzn1: Use pm_runtime_put_sync() in rzn1_rtc_disable_hardware()

Wolfram Sang <[email protected]>
Newsgroups org.kernel.vger.linux-rtc,dev.linux.lists.sashiko-reviews,org.kernel.vger.linux-devicetree
Message-ID <aoWqqoOpIukOZBFo@shikoro>
> [Severity: Medium]
> This is a pre-existing issue, but while reviewing this file I noticed a
> potential race condition in rzn1_rtc_set_alarm() that could lead to
> spurious hardware interrupts and lockless torn reads of rtc->tm_alarm.

Same issue as before? Just disable the irq before updating the regs?
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmqFqqoACgkQFA3kzBSg
KbZnOg//R1v4bAq1nbKDMh1INq85KL1uNIv3S2OjQUCDg7i9Y6t1mOzDfpTHZOJ1
BIkOsoyuzUCebWloy9VVQXSKEyWpjkODRMydv2wnXWBwpBDQc97vRp8zpZ1CqW9o
HDbGelsEVSY+8W1Euz+wPHEI8yqXvR+t9cUmJsh1Clz9QyqQNXGYXXIFC4b716e2
E6zzOPAZVP+hdaqH80s7WWGxqAfXCC51EuA5MU1sgMwuI4jsK1/HVmyqZmNd8INf
fZxlwWO9le6E1C5IxJuU7yekTtxBWnRmuNUtfRZBpEUph3nTqd2KdBcwrfXL3J1b
9O1M8lNdZPZf2p97H0Bkc3Tn+jymg+IIudfXupZo5QE6BntePFwypWNAONXgIsgQ
lM3Hk6fH0dS7g+EipsZ2NXth6IBTlsxfWx1dMUV7YXr81OjwWeg4ai9I8M9GanN9
vJu1bc03YLhKUoFjuu0JmlHEOaYJjHFCmQj/3YjZJ9g6IbXG3kAiobfxRlUnVPdM
wlKN3q3OxYOsbZl7ylDRJf8PuLGQz19mdHZVvq/2Y2rmHkfnXfWQqRsaYjd2RYUL
I7J9dXXooOJP7QwmitrHiVnYW3f97bH7r+hF5/oPBXxqdtFPlVOgFzAhIVJoQ5+R
50pBvvNcDFJQujbsgKShNdtA2YguDWdg+MigIg3vFk49rYqA7r8=
=rn9y
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.