[PATCH 2.6] I2C: New hardware monitor driver: adm9240 (2nd try)

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

 



Hi Grant,

> >	reg = adm9240_read_value(client, ADM9240_REG_CONFIG);
> >	adm9240_write_value(client, ADM9240_REG_CONFIG,
> >		(reg | 0x01) & 0x7f);
>
> That would fail to start the measurement cycle (...)

How that? Bit 0 will be set to 1, which starts the measurement cycle,
exactly like your previous code did.

> and leave user-space able to assert a hardware interrupt signal,

I don't understand. What do you mean exactly?

> (...) plus it writes zero to bit 7 for what reason?

Because writing 1 instead would reset the chip, and you don't want to do
that, do you?

Thanks,
--
Jean Delvare



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

  Powered by Linux