Re: [PATCH v3 12/12] rtc: rzn1: Add support for Renesas RZ/T2H and RZ/N2H SoCs

Wolfram Sang <[email protected]>
Newsgroups dev.linux.lists.sashiko-reviews,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-rtc
Message-ID <aoRB8CrV7ECOG33Y@ninjato>
> Should we add match data to this compatible string to identify the variant
> and explicitly reject probe with -EOPNOTSUPP if the clock configuration
> would require the unsupported SUBU mode?

Correct. Matches also my notes which say that this code

445                 if (rate != 32768)
446                         scmp_val = RZN1_RTC_CTL0_SLSB_SCMP;

is wrong when we have a variant which has no SUBU support. Because in
that case, we need to enable SCMP even for 32768Hz.

So, yes, it is needed to mark which variant has SUBU (RZ/N1 only, likely
forever) and bail out if no SUBU and no 'xtal'. The above code needs to
check SUBU support, too.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmqEQfAACgkQFA3kzBSg
KbasZxAAh+UdvDISQDbAVdcFM1MRSX2vJGNj7lp0i83uMUWWY2j1jmvZFA6PNjK/
P+QY1G7iHhU8Bv/xyTaYOuZFhucgjUKBJbf5Au5L3VUuGCiEB6g3Jk8doU2j4NXr
TTJTAofOW5gDWLJNP5fFBACEp/STZxB9hr1wEz5sIJw/QTLAvDSVvkL2U5al24LQ
lBDG10itHZjmMsdKnUcEEVXL8J3Gv/ZZPCJYrXwVfxxAOoxj5e5Wn5b6NWMfA5IV
c0yTaUADCllXVk0D5HPGI2bAPx5DeLJSXsyghyYmK6sgLU2xHayJ7nlBz43XkKSt
kc+1ahOuStTQ1B6CmMXlMAIwORoTtR/34HLCd6nTLd6sL7zOy40BFtJJsZM3gvhC
5Prwj/3sl95hadnxz0TFyemhxxnQfL+dUSSO2EpmlZDXduggo1YfsgUFO9xr4q3l
BFelACcCjMSZpEO5L0CcviAqD5y/c7IK/9YdKehc72d1c0Mo6U8VkRdgVzAYPfCI
UUKuRXJlKBBIOaR8QXO5mpZhkkpscmlQdTAQDUS9/sagEVDQcoBZfO0LxcpfOsmI
JrX5sd6VC8A2/v5i9Bbe09u28nQLo8x8IJHNbI/pXsUQJRMQPfbVd5rvJVdimYCX
EV+Ok4UoTxTACBDh19+ii/gUIfr4gww/0BCO7FxikBdBeL6grLg=
=4UQo
-----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.