diff options
author | Rui Salvaterra <rsalvaterra@gmail.com> | 2022-03-02 13:11:44 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-03-05 21:05:45 +0100 |
commit | 05ed7dc50d7fd0be3ea8d6bdf06227bdeae2e7a5 (patch) | |
tree | 68e66de94e62af2e06719bd8e6b56f88ce80993a /target/linux/at91/patches-5.10/155-media-atmel-properly-get-pm_runtime.patch | |
parent | ef4bf8b403205062ddb38ebe7b8c4951be346368 (diff) | |
download | upstream-05ed7dc50d7fd0be3ea8d6bdf06227bdeae2e7a5.tar.gz upstream-05ed7dc50d7fd0be3ea8d6bdf06227bdeae2e7a5.tar.bz2 upstream-05ed7dc50d7fd0be3ea8d6bdf06227bdeae2e7a5.zip |
kernel: bump 5.10 to 5.10.103
Patches automatically rebased.
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'target/linux/at91/patches-5.10/155-media-atmel-properly-get-pm_runtime.patch')
-rw-r--r-- | target/linux/at91/patches-5.10/155-media-atmel-properly-get-pm_runtime.patch | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/target/linux/at91/patches-5.10/155-media-atmel-properly-get-pm_runtime.patch b/target/linux/at91/patches-5.10/155-media-atmel-properly-get-pm_runtime.patch index f8e7a24ce6..58f90db46d 100644 --- a/target/linux/at91/patches-5.10/155-media-atmel-properly-get-pm_runtime.patch +++ b/target/linux/at91/patches-5.10/155-media-atmel-properly-get-pm_runtime.patch @@ -25,11 +25,9 @@ Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> drivers/media/platform/atmel/atmel-isi.c | 19 +++++++++--- 2 files changed, 38 insertions(+), 11 deletions(-) -diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-isc-base.c -index fe3ec8d0eaee..ce8e1351fa53 100644 --- a/drivers/media/platform/atmel/atmel-isc-base.c +++ b/drivers/media/platform/atmel/atmel-isc-base.c -@@ -294,9 +294,13 @@ static int isc_wait_clk_stable(struct clk_hw *hw) +@@ -294,9 +294,13 @@ static int isc_wait_clk_stable(struct cl static int isc_clk_prepare(struct clk_hw *hw) { struct isc_clk *isc_clk = to_isc_clk(hw); @@ -45,7 +43,7 @@ index fe3ec8d0eaee..ce8e1351fa53 100644 return isc_wait_clk_stable(hw); } -@@ -353,9 +357,13 @@ static int isc_clk_is_enabled(struct clk_hw *hw) +@@ -353,9 +357,13 @@ static int isc_clk_is_enabled(struct clk { struct isc_clk *isc_clk = to_isc_clk(hw); u32 status; @@ -61,7 +59,7 @@ index fe3ec8d0eaee..ce8e1351fa53 100644 regmap_read(isc_clk->regmap, ISC_CLKSR, &status); -@@ -807,7 +815,12 @@ static int isc_start_streaming(struct vb2_queue *vq, unsigned int count) +@@ -807,7 +815,12 @@ static int isc_start_streaming(struct vb goto err_start_stream; } @@ -75,7 +73,7 @@ index fe3ec8d0eaee..ce8e1351fa53 100644 ret = isc_configure(isc); if (unlikely(ret)) -@@ -838,7 +851,7 @@ static int isc_start_streaming(struct vb2_queue *vq, unsigned int count) +@@ -838,7 +851,7 @@ static int isc_start_streaming(struct vb err_configure: pm_runtime_put_sync(isc->dev); @@ -84,7 +82,7 @@ index fe3ec8d0eaee..ce8e1351fa53 100644 v4l2_subdev_call(isc->current_subdev->sd, video, s_stream, 0); err_start_stream: -@@ -1809,6 +1822,7 @@ static void isc_awb_work(struct work_struct *w) +@@ -1809,6 +1822,7 @@ static void isc_awb_work(struct work_str u32 baysel; unsigned long flags; u32 min, max; @@ -92,7 +90,7 @@ index fe3ec8d0eaee..ce8e1351fa53 100644 /* streaming is not active anymore */ if (isc->stop) -@@ -1831,7 +1845,9 @@ static void isc_awb_work(struct work_struct *w) +@@ -1831,7 +1845,9 @@ static void isc_awb_work(struct work_str ctrls->hist_id = hist_id; baysel = isc->config.sd_format->cfa_baycfg << ISC_HIS_CFG_BAYSEL_SHIFT; @@ -103,11 +101,9 @@ index fe3ec8d0eaee..ce8e1351fa53 100644 /* * only update if we have all the required histograms and controls -diff --git a/drivers/media/platform/atmel/atmel-isi.c b/drivers/media/platform/atmel/atmel-isi.c -index d74aa73f26be..4ac5b7c19d0c 100644 --- a/drivers/media/platform/atmel/atmel-isi.c +++ b/drivers/media/platform/atmel/atmel-isi.c -@@ -423,7 +423,9 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count) +@@ -423,7 +423,9 @@ static int start_streaming(struct vb2_qu struct frame_buffer *buf, *node; int ret; @@ -118,7 +114,7 @@ index d74aa73f26be..4ac5b7c19d0c 100644 /* Enable stream on the sub device */ ret = v4l2_subdev_call(isi->entity.subdev, video, s_stream, 1); -@@ -783,9 +785,10 @@ static int isi_enum_frameintervals(struct file *file, void *fh, +@@ -783,9 +785,10 @@ static int isi_enum_frameintervals(struc return 0; } @@ -130,7 +126,7 @@ index d74aa73f26be..4ac5b7c19d0c 100644 /* set bus param for ISI */ if (isi->pdata.hsync_act_low) -@@ -802,12 +805,16 @@ static void isi_camera_set_bus_param(struct atmel_isi *isi) +@@ -802,12 +805,16 @@ static void isi_camera_set_bus_param(str cfg1 |= ISI_CFG1_THMASK_BEATS_16; /* Enable PM and peripheral clock before operate isi registers */ @@ -148,7 +144,7 @@ index d74aa73f26be..4ac5b7c19d0c 100644 } /* -----------------------------------------------------------------------*/ -@@ -1086,7 +1093,11 @@ static int isi_graph_notify_complete(struct v4l2_async_notifier *notifier) +@@ -1086,7 +1093,11 @@ static int isi_graph_notify_complete(str dev_err(isi->dev, "No supported mediabus format found\n"); return ret; } @@ -161,6 +157,3 @@ index d74aa73f26be..4ac5b7c19d0c 100644 ret = isi_set_default_fmt(isi); if (ret) { --- -2.32.0 - |