Closed yaoengine closed 8 months ago
@yaoengine power_ctrl_logic.c is deprecated after kernel v5.15. There is an official INT3472 power control logic driver since v5.15.
@hao-yao I cannot get your idea.
Do you mean that I should not use the master branch? Since https://github.com/intel/ipu6-drivers/blob/master/drivers/media/i2c/power_ctrl_logic.c is here in your repo code in master.
And as it is deprecated, so how can I use it correctly? should I use iotg_ipu6 branch?
@yaoengine I can't get your idea either. Do you know what I mean by "deprecated after kernel v5.15"?
Please go to README and find this:
If your kernel < 5.15 or not set CONFIG_INTEL_SKL_INT3472, please set this CONFIG_POWER_CTRL_LOGIC=m
My question is I use master branch for the build. Should I change to iotg_ipu6 branch? I did not see the explaination of which branch should be used.
@yaoengine You should always use the "master" branch. Other branches are for some special customers.
However it's not an issue about "branch".
@yaoengine power_ctrl_logic.c is deprecated after kernel v5.15. There is an official INT3472 power control logic driver since v5.15.
That means you should use CONFIG_INTEL_SKL_INT3472 instead of CONFIG_POWER_CTRL_LOGIC after kernel v5.15. So don't touch power_ctrl_logic.c after v5.15 unless you know what you are doing.
OK, thanks, I got it.
But I cannot find set CONFIG_INTEL_SKL_INT3472 in master branch README. But found to enable CONFIG_INTEL_SKL_INT3472 in iotg_ipu6 branch README. I just follow all the things in master README and cannot pass the build, and follow iotg_ipu6 branch README, the build at least passed. So it make me confuse, which one to follow.
c. Check and enable kernel config list in below
Must be enabled:
CONFIG_VIDEO_INTEL_IPU6=m
CONFIG_INTEL_SKL_INT3472=m
CONFIG_INTEL_IPU6_ACPI=m
CONFIG_VIDEO_INTEL_IPU_SOC=y
CONFIG_VIDEO_INTEL_IPU_USE_PLATFORMDATA=y
I found INTEL_SKL_INT3472 should be enabled
finally in the Dependencies chapter of master branch README, I will try again the master branch.
Thanks!
get compile error
While check the code, found that power_ctrl_logic_remove() function is ‘int ()(struct acpi_device )’
and the function pointer is:
So is this repo not compatible with kernel 6.5.7?
Thanks!