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:
Krzysztof Hałasa 2017-10-17 02:12:25 -04:00 committed by Mauro Carvalho Chehab
parent 7b303d2cae
commit 9ea57316a5
1 changed files with 2 additions and 2 deletions

View File

@ -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);