Re: [PATCH v7 1/2] i2c: algo: bit: Allow to skip bit test
Wolfram Sang <[email protected]>
| Newsgroups | org.kernel.vger.linux-i2c,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <alfuMKlJqXD-YEMb@ninjato> |
On Tue, Jul 14, 2026 at 06:29:14PM +0200, Markus Stockhausen wrote: > An I2C bus can make use of shared resources. E.g. two GPIO based buses > that share a single SCL line. To synchronize access to the bus the driver > might use locking with the help of i2c_lock_operations(). While this > works for normal transfers it is not available during initialization. > > Especially if i2c-algo-bit module is loaded with parameter bit_test > it will issue some basic sanity checks that will access the bus without > locking. This might interfere badly with concurrent transfers. Even > if these are well synchronized via locks. > > Allow the consumer of an algorithm to override if the bit_test is allowed > or not. For this add a new boolean attribute named skip_bit_test to > i2c_algo_bit_data. If set the test is not run. > > Signed-off-by: Markus Stockhausen <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Tested-by: Wolfram Sang <[email protected]>
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmpX7iwACgkQFA3kzBSg KbYB0hAAk/GR1vDzxCyAXQtaN9S5KYGxgV0RQg8ySrf/o4bsqKCFtoPcMlgdpeGR amdOmQXmt99avgueWGuvModfr+jTPZ8rcRbDdOfwfkQufCMsFN1JG1tAmHhB1mwG BWtVcldSJ9Mz5cQZvke8w1G/WqxRPhvH7DguNpnLiD0WG/O/W0/ECJGCq2dUnNY9 jxJ5y4IF1E+QVmp6F2ySMrFLZKAIpI1M3q72rvKSZdu3rzVD6JeBkiP1Ss6QmapJ qr5Ncw4tRbmD2VJmTIpF0V7WJ5dOSbnaM9pemBWBtQrbyMQR1O+ysB74YNahTm4P /Et6huUtSwOunZP6/LiVIueEJVk9+5+A0jgEJpaKEpOKrHjunjQYb5Laaqu43s/e VIwNaBzddIggFRbDxF9EGYElrgQJqO6oPMb6IibXOOoHQzThyjlUUuDtIwsPkU08 oT++K9HaDL4xbzkRJIg3FUtsEMGBCaoItWQLkBvGOncIW0P0u1M0c5AMA2hGWLZm eoZ8/jk2bHRWYLjWNp3QL3Msa7FU8yMdmHr3sB9YjOPjkJ9Qwpk6g9fkboeIg/0Z 6pp58pHEnd/lz19OFkBoOrsWn0Gy2K4qA94KteE1mdzaM/uOu58hECIeaH1oAPja Wc1F5ih1a4lz90HbTNFi994Zd1Hf4YHej9niVa0ssq3dAPaBmWw= =bj6/ -----END PGP SIGNATURE-----