From: Marc Kleine-Budde <[email protected]> Date: Tue, 04 Jan 2011 11:54:42 +0100
> There's ioread() and get_unaligned(). Do we have a combination of this? No. And there will never be. Because it's never well defined whether it is safe to break up an I/O operation into two sub-operations, nor in what order those sub-operations can be done in. For example, just reading one byte of a two-byte register might clear the status bits in other byte if the two bytes are read in the wrong order. On some chips, avoiding losing information might be completely impossible. You have to do it by hand in your driver, because only you know what implementation will work correctly. _______________________________________________ Socketcan-core mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-core
