diff options
author | Animesh Kishore <ankishore@nvidia.com> | 2011-09-23 15:05:18 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2011-09-26 10:48:34 -0700 |
commit | 944d343216efbc12ba78b4bbb8b52601847b6725 (patch) | |
tree | 975810a01dfd0b9d90685ca6b73ba39627083c66 /drivers | |
parent | a4e9243d34f6a1a7acb2d82b725a1d3200365897 (diff) |
video: tegra: dsi: Fix bit field width for dsi read
Increase the bit field width to 2, to accomodate all possible
status for LP read.
Change-Id: I3d3b06fb7daff4b97f1ce1e3acc4cb96f1208df1
Reviewed-on: http://git-master/r/54223
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/dc/dsi.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/video/tegra/dc/dsi.c b/drivers/video/tegra/dc/dsi.c index b49044fe7cac..c1a59c8e736b 100644 --- a/drivers/video/tegra/dc/dsi.c +++ b/drivers/video/tegra/dc/dsi.c @@ -87,8 +87,9 @@ struct dsi_status { unsigned clk_mode:2; unsigned clk_burst:2; + unsigned lp_op:2; + unsigned dc_stream:1; - unsigned lp_op:1; }; /* source of video data */ @@ -1339,7 +1340,8 @@ int tegra_dsi_write_data(struct tegra_dc *dc, switch_back_to_dc_mode = false; if ((dsi->status.init != DSI_MODULE_INIT) || - (dsi->status.lphs == DSI_LPHS_NOT_INIT)) { + (dsi->status.lphs == DSI_LPHS_NOT_INIT) || + (dsi->status.lp_op == DSI_LP_OP_NOT_INIT)) { err = -EPERM; goto fail; } @@ -1540,7 +1542,8 @@ int tegra_dsi_read_data(struct tegra_dc *dc, if ((dsi->status.init != DSI_MODULE_INIT) || (dsi->status.lphs == DSI_LPHS_NOT_INIT) || - (dsi->status.driven == DSI_DRIVEN_MODE_NOT_INIT)) { + (dsi->status.driven == DSI_DRIVEN_MODE_NOT_INIT)|| + (dsi->status.lp_op == DSI_LP_OP_NOT_INIT)) { err = -EPERM; goto fail; } |