提交 9ea57316 编写于 作者: K Krzysztof Hałasa 提交者: Mauro Carvalho Chehab

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: NKrzysztof Ha?asa <khalasa@piap.pl>
Reviewed-by: NPhilipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: NSteve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 7b303d2c
......@@ -252,8 +252,8 @@ static int csi2_dphy_wait_stopstate(struct csi2_dev *csi2)
u32 mask, reg;
int ret;
mask = PHY_STOPSTATECLK |
((csi2->bus.num_data_lanes - 1) << PHY_STOPSTATEDATA_BIT);
mask = PHY_STOPSTATECLK | (((1 << csi2->bus.num_data_lanes) - 1) <<
PHY_STOPSTATEDATA_BIT);
ret = readl_poll_timeout(csi2->base + CSI2_PHY_STATE, reg,
(reg & mask) == mask, 0, 500000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册