Bug #1807: sensors with kernel 2.4, but not with kernel 2.6

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

 



Quoting myself:

> I don't think your analysis is correct. My feeling is that *_detect
> functions found in the client drivers should NOT return non-zero values
> on "misdetections". A misdetection is not an error per se, and
> obviously the i2c_detect function was written with that in mind. So I
> believe that the asb100 driver, not i2c_detect, would need to be fixed.

Just found the confirmation in Documentation/i2c/writing-clients:

"The detect client function
--------------------------

The detect client function is called by i2c_probe or i2c_detect.
(...)
This function should only return an error (any value != 0) if there is
some reason why no more detection should be done anymore. If the
detection just fails for this address, return 0."

So we are simply not doing the correct thing in various clients.

Thanks,
Jean



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

  Powered by Linux