Re: [PATCH] i2c: skip address detection if provided in board_info

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

 



>
>> So I still prefer the option of adding a flag, and leave the choice for
>> platform code whether to do the detect. If you agree, I would make a
>> cleaner patch.
>
>And I prefer that you set the class flag value in the platform data and
>have your i2c adapter driver read it. This is already supported and
>should work very fine without any change to i2c-core. I see no point in
>adding a global flag when we already have a much finer-grained setting
>available.
I agree that assigning the class code to adapter will solve our problem
but I do have a question/concern.

What if you have mixed devices under one adapter with some prefer to
have detect funtion some not. Then all detect functions will be ignored
if i2c adpater class code is 0. The granularity of information provided by
our FW is per i2c device.

Seems we have three cases:
1. adaptor class = 0, no detect
2. adaptor class !=0, FW provide address via board info, no detect
3. adaptor class !=0, no FW board info, do detect by default, but should
allow platform code override

I would think we need a global flag for case #3.

Thanks,

Jacob
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux