mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
t23x:tpg:[WAR] Disable gain control to avoid insmod fail.
Disable gain control during tpg probe for t23x to avoid insmod fail due to "NULL VI channel" when "tpg_gain_ctrl" is enabled. Bug 3695458 Change-Id: I15c035eaa2f187b927dc114e88959378f9e52a61 Signed-off-by: Praveen AC <pac@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2828420 (cherry picked from commit 06e543de3c238326bce4e3911129e60ec2be0880) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3130692 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Shubham Chandra <shubhamc@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c08f277de5
commit
e4e94d02c1
@@ -297,7 +297,7 @@ static int __init tpg_probe_t19x(void)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
mc_csi->get_tpg_settings = get_tpg_settings_t23x;
|
mc_csi->get_tpg_settings = get_tpg_settings_t23x;
|
||||||
mc_csi->tpg_gain_ctrl = true;
|
mc_csi->tpg_gain_ctrl = false;
|
||||||
mc_csi->tpg_emb_data_config = emb_data;
|
mc_csi->tpg_emb_data_config = emb_data;
|
||||||
|
|
||||||
dev_info(mc_csi->dev, "%s\n", __func__);
|
dev_info(mc_csi->dev, "%s\n", __func__);
|
||||||
@@ -310,7 +310,7 @@ static int __init tpg_probe_t19x(void)
|
|||||||
|
|
||||||
mc_csi->tpg_frmfmt_table_size = table_size;
|
mc_csi->tpg_frmfmt_table_size = table_size;
|
||||||
memcpy(frmfmt_table, tegra19x_csi_tpg_frmfmt,
|
memcpy(frmfmt_table, tegra19x_csi_tpg_frmfmt,
|
||||||
table_size * sizeof(struct tpg_frmfmt));
|
table_size * sizeof(struct tpg_frmfmt));
|
||||||
|
|
||||||
if (override_frmfmt) {
|
if (override_frmfmt) {
|
||||||
for (i = 0; i < table_size; i++)
|
for (i = 0; i < table_size; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user