This reverts commit 3afdc6aaef.
This driver is unused since linux 4.4, drop it.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2f2260816aaf3637713b811c292673158ab4a981
The dp_out_en is config as take effect by vsync signal. When disable
the output, it will do some thing as follow:
1. clean dp_out_en bit in vop.
2. disable dp video stream;
3. disable dp link clk.
If it not wait clean dp_out_en bit take effect, the link clk may
disable before clean dp_out_en bit, which will cause dp fifo overflow
issue.
When enable the output, though it not has this issue, it's better to
wait set dp_out_en bit take effect to avoid the similar issue in the
future.
Change-Id: Ie088a0265e5bdef349cdd3e0dc3daebb6d9eeeff
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
The gpio hpd state will be mismatch the real state if the cable
plug before init the dp controller. So it need updage the gpio
hpd state when dp controller init.
Fixes: 601aff2337 ("drm/rockchip: dw-dp: optimize the logic to deal with hpd")
Change-Id: I6b7a3d88e2ef70e54ad9465859c1a55205f10c4f
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
According to the DP PHY CTS v1.2b 3.2.3 and 3.3.3 chapters, the
PreEmphasis Level Test Pattern(PLTPAT), which also was called
80-bit custom pattern, should be:
1111100000 1111100000 1111100000 1111100000
1111100000 1111100000 1111100000 1111100000
It is used to verify the HBR2 in "Non Pre-Emphasis Level Verification
Testing" and "Pre-Emphasis Level Verification and Maximum Pk-Pk
Differential Voltage Testing".
Without this patch, the PLTPAT pattern is incorrect.
Fixes: 304dbb104d ("drm/bridge: analogix_dp: Add DP Test Automation")
Change-Id: I4b00acd0a360a8ba3f3eaf32fb30e0a18a451f5c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
The io_width in diff cs should set the same value at the same time.
Change-Id: I2a872ba487bde9aa56f0a3490acbb526a1521475
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
This can lead to out of bounds writes since frames of this type were not
taken into account when calculating the size of the frames buffer in
uvc_parse_streaming.
CVE-2024-53104
Change-Id: I3dd74072f3b41bab05634f24cfaf8f35a6fae43f
Fixes: c0efd23292 ("V4L/DVB (8145a): USB Video Class driver")
Signed-off-by: Benoit Sevens <bsevens@google.com>
Cc: stable@vger.kernel.org
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit ecf2b43018da9579842c774b7f35dbe11b5c38dd)
Since the report buffer is used by all kinds of drivers in various ways, let's
zero-initialize it during allocation to make sure that it can't be ever used
to leak kernel memory via specially-crafted report.
CVE-2024-50302
Change-Id: I949eb045a8e7fdc0be118d2899d9d957395067f1
Fixes: 27ce405039 ("HID: fix data access in implement()")
Reported-by: Benoît Sevens <bsevens@google.com>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 177f25d1292c7e16e1199b39c85480f7f8815552)
This ERRATA affected the Cortex-A7 and present in r0p2, r0p3, r0p4, r0p5.
Make sure that ARM errata 814220 is selected by
RK3036/RK3126/RK3128/RK3228/RK3229/RV1103B/RV1106B/
RV1103/RV1106/RV1107/RV1108/RV1109/RV1126/RK3506.
Change-Id: I98685e57abcecc668e43197344f57973f1eeebaf
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
NV20 and NV30 is supported by DRM core, so it's unused now.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I87083c3aa232e416334bb83c2d965c860ddd0a9b