enable multiple raw sensor link to isp depend on config MULTI_SENSOR_LINK_TO_ISP
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I52a0ca4f1c6cb26a43c95b5d3a41df2b4f351ad4
As described in:
https://patchwork.freedesktop.org/patch/msgid/20190228210939.83386-2-sean@poorly.run
From the driver's perspective, this works like a regular disable/enable
cycle. The driver need only check the 'psr_transition' state in
connector_state and keep the panel turned on when in .disable(), while
everything else will cycle off as normal. If drivers want more control,
they can use the psr_transition state to enter a low-power state to
minimize PSR exit time.
While this carries the PSR moniker, it is not specific to the
DisplayPort technology. This can be used for power savings
with other types of self refresh, such as MIPI command mode.
Change-Id: I80799c7f1356645e50dae98159591dde6aa5abff
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
if the mode of the PHY is not set in .loader_protect helper,
when entering sleep mode for the first time bring up with
display logo, the PHY will not be able to shut down completely
and accurately because it does not know in which mode it is
operating, resulting in some power consumption.
Change-Id: If5606c24fd2a542936cdb2f1c3d4e380d6c3889a
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Usperspace not commit new frame for long time will triggle
driver enter psr mode, If userspace directly close display
at next time and without any new frame commit, driver will
not exit psr, at this case we need to recover aclk here
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I4bf78c5fa12ca7fa557d8e82d92427b0f849f2eb
At RK356X/RK3588/RK3562/RK3528 linear 10bit yuv format actual_w should
align as 4 pixel, from RK3576 linear 10bit yuv format actual_w should
align as 2 pixel.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I719f59574442628f2ed2410d6ca20194cf6f580d
1.add rk waveform type for regal mode
2.do glr16 same as gld16
Type: Function
Redmine ID: #N/A
Associated modifications: N/A
Test: N/A
Change-Id: I5cc2fc6c48d8a9b10cea63895c1980c75ed3efed
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Reset the enc core will clear the reference info of the dual-core
parallel encoding, which will cause parallel enc err.
So use another way to workaround.
Change-Id: I3ef8ae3397687929c529b40f21cb34ea3d1c327f
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Fixes: d420d65bec ("drm/rockchip: dsi2: optimize drive probe process")
rockchip drm will Registers a new aggregate driver consisting of the
components added to @match by calling one of the component_match_add()
functions. Once all components in @match are available, it will be assembled
by calling &component_master_ops.bind(rockchip_drm_ops.rockchip_drm_bind)
from @ops.
if the dsi->slave is not added into component, the binding status of
the device under the display subsystem becomes abnormal as follows:
cat /sys/kernel/debug/device_component/display-subsystem
aggregate_device name status
-------------------------------------------------------------
display-subsystem not bound
device name status
-------------------------------------------------------------
fdd90000.vop not bound
fde20000.dsi not bound
(unknown) not registered
Change-Id: I5739f06b4ef65f0b8de8f3394f4e811abe31a22c
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
commit f342de4e2f33e0e39165d8639387aa6c19dff660 upstream.
This reverts commit e0abdadcc6.
core.c:nf_hook_slow assumes that the upper 16 bits of NF_DROP
verdicts contain a valid errno, i.e. -EPERM, -EHOSTUNREACH or similar,
or 0.
Due to the reverted commit, its possible to provide a positive
value, e.g. NF_ACCEPT (1), which results in use-after-free.
Its not clear to me why this commit was made.
NF_QUEUE is not used by nftables; "queue" rules in nftables
will result in use of "nft_queue" expression.
If we later need to allow specifiying errno values from userspace
(do not know why), this has to call NF_DROP_GETERR and check that
"err <= 0" holds true.
Bug: 323034288
Fixes: e0abdadcc6 ("netfilter: nf_tables: accept QUEUE/DROP verdict parameters")
Cc: stable@vger.kernel.org
Reported-by: Notselwyn <notselwyn@pwning.tech>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 8e34430e33)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ie6c699cea6f92cd4a7642f196d5f5cbffe268a6d
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Since the number of hwlocks on some Rockchip SoC is not 64, we
need to configure the actual numbers with "rockchip,hwlock-num-locks"
property in DT.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ibb641b010a0431ebcb5c00e9a60d12d584fb6efa
Set number of hwlocks with the "rockchip,hwlock-num-locks" property,
it indicates that the number of hwlocks provided by this device.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ifc3f64fff942481ba98da095af0e1697803270d7
When the bridge code does not abstract a connector, and the bridge
has connection status detection, the dsi abstract connector adds
"DRM_CONNECTOR_POLL_CONNECT" and "DRM_CONNECTOR_POLL_DISCONNECT"
flags for interface plugging and unplugging detection.
Type: Function
Redmine ID: N/A
Associated modifications: N/A
Test: N/A
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I58dcb9ade2846c73f489b0ebc9bf65947d7b6352