[PATCH] sensors-detect: Check for 1-register-only device (testers wanted)

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

 



Jean Delvare wrote:
> Hi Hans,
> 
> On Fri, 09 May 2008 07:03:19 +0200, Hans de Goede wrote:
>> Perhaps it would be an idea to try to do an i2c (*) read transfer of more then 
>> 1 byte, it would be interesting to see how this specific 1 register device 
>> responds to this, maybe it will stop acking after the first byte is transfered 
>> because it has only one byte to send.
> 
> In master-receiver, slave-transmitter mode, it's the master who sets
> the ack bit, depending on whether it will ask for more bytes after that
> one (ack) or not (nack). The slave doesn't have its say. All the slave
> can do is send zero or maybe random bytes if it doesn't have data to
> send.

You're right, I didn't think about that.

Regards,

Hans





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

  Powered by Linux