mirror of https://gitee.com/openkylin/linux.git
media: i.MX6: Fix MIPI CSI-2 LP-11 check
Bitmask for the MIPI CSI-2 data PHY status doesn't seem to be correct. Fix it. Signed-off-by: Krzysztof Ha?asa <khalasa@piap.pl> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Steve Longerbeam <steve_longerbeam@mentor.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
7b303d2cae
commit
9ea57316a5
|
@ -252,8 +252,8 @@ static int csi2_dphy_wait_stopstate(struct csi2_dev *csi2)
|
||||||
u32 mask, reg;
|
u32 mask, reg;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
mask = PHY_STOPSTATECLK |
|
mask = PHY_STOPSTATECLK | (((1 << csi2->bus.num_data_lanes) - 1) <<
|
||||||
((csi2->bus.num_data_lanes - 1) << PHY_STOPSTATEDATA_BIT);
|
PHY_STOPSTATEDATA_BIT);
|
||||||
|
|
||||||
ret = readl_poll_timeout(csi2->base + CSI2_PHY_STATE, reg,
|
ret = readl_poll_timeout(csi2->base + CSI2_PHY_STATE, reg,
|
||||||
(reg & mask) == mask, 0, 500000);
|
(reg & mask) == mask, 0, 500000);
|
||||||
|
|
Loading…
Reference in New Issue