WSL2-Linux-Kernel/drivers/media/platform
Suresh Udipi 31a5bdbe4a media: rcar-csi2: Optimize the selection PHTW register
commit 549cc89cd0 upstream.

PHTW register is selected based on default bit rate from Table[1].
for the bit rates less than or equal to 250. Currently first
value of default bit rate which is greater than or equal to
the caculated mbps is selected. This selection can be further
improved by selecting the default bit rate which is nearest to
the calculated value.

[1] specs r19uh0105ej0200-r-car-3rd-generation.pdf [Table 25.12]

Fixes: 769afd212b ("media: rcar-csi2: add Renesas R-Car MIPI CSI-2 receiver driver")
Signed-off-by: Suresh Udipi <sudipi@jp.adit-jv.com>
Signed-off-by: Michael Rodin <mrodin@de.adit-jv.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 11:05:19 +01:00
..
allegro-dvt media: allegro: ignore interrupt if mailbox is not initialized 2021-11-18 19:16:17 +01:00
am437x media: am437x: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
atmel media: atmel: fix the ispck initialization 2021-11-18 19:16:29 +01:00
cadence media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
coda media: coda/imx-vdoa: Handle dma_set_coherent_mask error codes 2022-01-27 11:03:37 +01:00
davinci media: drivers/media/platform/davinci/vpfe_capture.c : fix typo Proabably > Probably 2021-07-12 09:16:34 +02:00
exynos-gsc media: exynos-gsc: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:34 +02:00
exynos4-is media: exynos4-is: use DEVICE_ATTR_RW() helper macro 2021-08-04 14:43:50 +02:00
imx-jpeg media: imx-jpeg: Fix the error handling path of 'mxc_jpeg_probe()' 2021-11-18 19:16:28 +01:00
marvell-ccic media: drivers/media/platform/marvell-ccic/mcam-core.c : fix typo 'gettig' > 'getting' 2021-07-12 09:16:37 +02:00
meson/ge2d media: meson-ge2d: Fix rotation parameter changes detection in 'ge2d_s_ctrl()' 2021-11-18 19:16:27 +01:00
mtk-jpeg media: mtk-jpeg: use pm_runtime_resume_and_get() 2021-05-19 09:51:42 +02:00
mtk-mdp media: mdk-mdp: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
mtk-vcodec media: mtk-vcodec: call v4l2_m2m_ctx_release first when file is released 2022-01-27 11:03:20 +01:00
mtk-vpu media: mtk-vpu: Fix a resource leak in the error handling path of 'mtk_vpu_probe()' 2021-11-18 19:16:28 +01:00
omap media: videobuf2: Move frame_vector into media subsystem 2021-01-12 14:15:31 +01:00
omap3isp media: omap3isp: Fix missing unlock in isp_subdev_notifier_complete() 2021-08-04 14:43:50 +02:00
qcom media: venus: avoid calling core_clk_setrate() concurrently during concurrent video sessions 2022-01-27 11:04:32 +01:00
rcar-vin media: rcar-csi2: Optimize the selection PHTW register 2022-01-27 11:05:19 +01:00
rockchip media: rockchip: rkisp1: use device name for debugfs subdir name 2022-01-27 11:04:42 +01:00
s3c-camif media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
s5p-g2d media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx 2021-06-17 10:21:51 +02:00
s5p-jpeg media: s5p-jpeg: rename JPEG marker constants to prevent build warnings 2021-09-07 07:57:59 +02:00
s5p-mfc media: s5p-mfc: Add checking to s5p_mfc_probe(). 2021-11-18 19:16:12 +01:00
sti media: sti: don't copy past the size 2021-07-12 09:16:31 +02:00
stm32 media: stm32: Potential NULL pointer dereference in dcmi_irq_thread() 2021-11-18 19:16:12 +01:00
sunxi media: sun6i-csi: Allow the video device to be open multiple times 2021-11-18 19:16:28 +01:00
ti-vpe media: ti-vpe: cal: fix indexing of cal->ctx[] in cal_probe() 2021-07-22 14:01:55 +02:00
vsp1 media: v4l2-subdev: fix some NULL vs IS_ERR() checks 2021-07-22 14:01:54 +02:00
xilinx media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
Kconfig qcom_scm: hide Kconfig symbol 2021-10-07 16:51:57 +02:00
Makefile media: atmel: atmel-isc: add microchip-xisc driver 2021-06-08 15:46:31 +02:00
aspeed-video.c media: aspeed: Update signal status immediately to ensure sane hw state 2022-01-27 11:03:10 +01:00
fsl-viu.c media: use getter/setter functions 2021-03-11 11:59:42 +01:00
imx-pxp.c media: imx-pxp: Initialize the spinlock prior to using it 2022-01-27 11:03:19 +01:00
imx-pxp.h
m2m-deinterlace.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
mx2_emmaprp.c media: mx2_emmaprp: Fix memleak in emmaprp_probe 2020-09-26 10:15:39 +02:00
pxa_camera.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
rcar-fcp.c media: rcar-fcp: use pm_runtime_resume_and_get() 2021-05-20 16:02:36 +02:00
rcar_drif.c Revert "media: rcar_drif: fix a memory disclosure" 2021-05-13 17:29:55 +02:00
rcar_fdp1.c media: rcar_fdp1: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:33 +02:00
rcar_jpu.c media: drivers/media/platform/Rcar_jpu.c : fix typo issues 2021-06-02 14:06:51 +02:00
renesas-ceu.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
sh_vou.c media: sh_vou: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:34 +02:00
via-camera.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
via-camera.h
video-mux.c media: video-mux: Skip dangling endpoints 2021-06-28 15:17:42 +02:00