Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: qcom: camss: Fix invalid clock enable bit disjunction

define CSIPHY_3PH_CMN_CSI_COMMON_CTRL5_CLK_ENABLE BIT(7)

disjunction for gen2 ? BIT(7) : is a nop we are setting the same bit
either way.

Fixes: 4abb21309fda ("media: camss: csiphy: Move to hardcode CSI Clock Lane number")
Cc: stable@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Bryan O'Donoghue and committed by
Hans Verkuil
d8f7e1a6 b6e1bdca

+1 -1
+1 -1
drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c
··· 476 476 477 477 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); 478 478 479 - val = is_gen2 ? BIT(7) : CSIPHY_3PH_CMN_CSI_COMMON_CTRL5_CLK_ENABLE; 479 + val = CSIPHY_3PH_CMN_CSI_COMMON_CTRL5_CLK_ENABLE; 480 480 for (i = 0; i < c->num_data; i++) 481 481 val |= BIT(c->data[i].pos * 2); 482 482