read()ing an i2c node results in errno=ENOSYS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jean, David:

* Jean Delvare <khali at linux-fr.org> [2005-09-18 09:22:53 +0200]:
> Note that a client chip can only support one of the two kinds of block
> reads at any register address ("command byte" in the SMBus
> specification), as there is no way to distinguish between both commands
> from the client's point of view. It's up to the master (PC) to use the
> correct one depending on what the client implements.

Actually: SMBus read byte data, SMBus read word data, and SMBus block read
*all* have the same setup:

	S Addr Wr [A] Comm [A] S Addr Rd [A] (...)

As Jean mentions: you'll need to decide how your slave device responds on
each register address (comm), and then program the master accordingly.

Regards,

-- 
Mark M. Hoffman
mhoffman at lightlink.com





[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux