Re: dtschema: i2c: messy situation about timeouts

Wolfram Sang <[email protected]>
Newsgroups org.kernel.vger.devicetree-spec,org.kernel.vger.linux-i2c
Message-ID <Zdz_ytwYd7A2sGsP@shikoro>
Hi Rob,

> > - "i2c-scl-clk-low-timeout-us"
> >
> > The description says "Number of microseconds the clock line needs to be
> > pulled down in order to force a waiting state." What does "forcing a
> > waiting state" mean here? I don't understand this description.
> 
> Does the commit msg or PR help?:
> https://github.com/devicetree-org/dt-schema/pull/103

I checked it beforehand. Sadly, it didn't help me.

> > It is used in the i2c-mpc driver. The use case is simply to put it into
> > the 'struct i2c_adapter.timeout' member. That timeout is used to
> > determine if a transfer failed. So, to me, "i2c-transfer-timeout-us"
> > makes a lot more sense to use here.
> >
> > Suggestion: let's remove this binding and conver i2c-mpc to
> > "i2c-transfer-timeout-us". Yes, not nice to have two deprecated
> > bindings, but things happened.
> 
> Maybe the core code should read it instead?

That's an interesting idea. I'll try to implement this tomorrow.

> I think we should mark as deprecated rather than remove unless we can
> just remove the properties from the kernel. The reason being that

You are right. I should have said "depreacte" instead of remove here.

All the best,

   Wolfram
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmXc/8YACgkQFA3kzBSg
KbaRWRAAsBO28jn8Qm65w+u9xT/M/D+M8hiSbM30Y1+MSLuGyLW7P/F5YZ95KKiH
kTwoa51LoL2v0uN9hdUz3Uf7NOfdOhbJuP3mjdv/XrcmRjRH/kdNqGY5DpARpLO8
QDdtnvqfqzS7YD5kK8CajXS89T2MirmBwMevWJkW1rAIJYT4V35QiJpajspLsmbb
+x0jRHODJwKeD5+9rko4zP3TmtfdWVBRuxs5SR8PfsBA0of6XrIqQ5Cy0kqiK03R
MUAKKjrfY29L6/VaaEyMNi8AuAReDTOnfZz2PsA0y2gKSCXls8W8vnewgbvnZ5M+
PhxhrcnQtZhwEZTJfM3Mt7D6AgaQQhVNzKtHX33MOozu2xmrld6LWrENAQYfERCK
se1cx9AnlyR1aJrQo0Vk7XHnYR850cuU9jeVh0hNO3pwCwHgIta2oi0hsV2Mc7EU
dSyyujwsESDYPiezaiyAal6e8MjzkdnePygGZKdFCsiIdu8TjayJTn5Uo3Vmg5Ti
JRbjgY+uOxcpgPMxTuNsDHuXduBWKpHTJC3aB2j3Ho5h3QnHNgWYqqbnEbswHN/I
dlXx0nubxxn5AvpGOFhHs2Z5sB0Ry+7ZQPDQZVAUZlClWi+2V+LV2yFreQHV1l/1
Z5QakbwAcN0yLl+pNqABhiRMlvzIv2/oD1q3HD/OHdp//2b3Nfo=
=amoX
-----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.