Skip to content

Commit

Permalink
Revert "Ported from the old driver the code reponsible for selective …
Browse files Browse the repository at this point in the history
…shutting down of data lanes."

This reverts commit 5daec9c.
  • Loading branch information
wzab committed Feb 6, 2020
1 parent c04a380 commit 2dc905d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/staging/media/rkisp1/rkisp1-isp.c
Expand Up @@ -416,8 +416,6 @@ static int rkisp1_config_mipi(struct rkisp1_device *rkisp1)
{
const struct rkisp1_isp_mbus_info *sink_fmt = rkisp1->isp.sink_fmt;
unsigned int lanes;
unsigned int shutdown_lanes;
int i;
u32 mipi_ctrl;

/*
Expand All @@ -441,12 +439,8 @@ static int rkisp1_config_mipi(struct rkisp1_device *rkisp1)
return -EINVAL;
}

shutdown_lanes = 0x00;
for (i = 0; i < lanes; i++)
shutdown_lanes |= (1 << i);

mipi_ctrl = RKISP1_CIF_MIPI_CTRL_NUM_LANES(lanes - 1) |
RKISP1_CIF_MIPI_CTRL_SHUTDOWNLANES(shutdown_lanes) |
RKISP1_CIF_MIPI_CTRL_SHUTDOWNLANES(0xf) |
RKISP1_CIF_MIPI_CTRL_ERR_SOT_SYNC_HS_SKIP |
RKISP1_CIF_MIPI_CTRL_CLOCKLANE_ENA;

Expand Down

0 comments on commit 2dc905d

Please sign in to comment.