Re: [PATCH] i2c-tools: i2ctransfer: Set I2C adapter timeout using I2C_TIMEOUT ioctl
Wolfram Sang <[email protected]> Wed, 22 Jul 2026 09:56:24 +0200
| Newsgroups | org.kernel.vger.linux-i2c |
|---|---|
| Message-ID | <amB3qFSwbeDZ5l7Q@shikoro> |
> Why userspace need to decide and set the timeout values for adapter ? > Adapter knows the transfer frequency and transfer data length, it can be > calculated by core layer itself and can set. Freq and data length are not enough for timeout calculation. It is also board specific (e.g. capacitance) and environment specific (surrounding noise). It can be argued to modify it from userspace. Unclear how much that is used in practice, though. > Retrials can be fixed and hard coded for everyone. I don't think we can remove the interface because of the "don't break userspace" rule.
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmpgd6MACgkQFA3kzBSg KbbmDQ//YV29lovlQ/xGMqoZdsn6gxFRjGuE1JYGno8HetY++zBP9Ixut4QGu4E2 eT8guoIjxCW2myd0yjXOwnzlEC2AVyAbbtPvmgFu6gvFk3uppYCpAs55kIHUqSUv c0aBSolLaZqoKxhBDCZnZ59HtrcABd6q4ZydARL9Nx3iUSb61pF2QUhkQUSmcJ/f D4KoAQX5xNVDgHhPf8BKj9GtJj4T7KGJhDy4vRzPOClYBCpoIO5HVxjZ7Iu30oc8 c4tZAoYnVlWS/snQGb1W7Pt9tCl3c4WDP32jX4v5ctEHEPPY/pHo0EMLkPwRBG2M Mb3q4/B6NohtPrbPzc42qosrQjQjCotU+NL67A/UtIJkusGb71XNJldROKaoX2dn fH/MakrI5aXbvsm6RYGa3+qHViET4w0RkCuEs4FS67YTK/cv2CNbS02X1YWnX8kU eeODoxbnisuClYjQfqegagddkTXDb/fWcAQ4KbZXsf4dll2pgCxO+FW4HmSCKyVl dYV251h1aUpbrdlhSrBmPJT/B/xzq0XD/07bsWkUGiPr3FAWENTGW1vwZkhXEGBr o+sKtg68LRhJPP4W3ow0eW8j7FOIqwxfW751RLiVQkFcjLBQfaIBeD+irFn8dTL4 H0/Aj3csTRnza2sQVQ3/Obfj0CiLlJN+FrzO9As0eRi8qLnRlAo= =8P7C -----END PGP SIGNATURE-----