This patch adds support to parse pvtpll config from devicetree, and
change config through sip smc interface.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5f23b9eb1d358a95b690ca214e35927e74451af1
Merge made by the 'ours' strategy.
* commit 'f12596a9bae4983758c4a5ed3742e38598febdbc':
PCI: rockchip: dw: Adding a retry mechanism to the enumeration process
Change-Id: I29fbadeb545b9973bd6a957aec1cf74993e6a780
When there is a small probability of signal abnormality, try resetting
and enumerating again.
Change-Id: Id37950dc62a497dd1c4703c42de036ce50aaec68
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
When there is a small probability of signal abnormality, try resetting
and enumerating again.
Change-Id: Id37950dc62a497dd1c4703c42de036ce50aaec68
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
We can get the binding relationship between plane and vop from the standard
prop possible crtcs, so we remove the unused PLANE_MASK prop from vop.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2c68ed60447024f4f5f379fa39b28ae0da065eae
We can get the binding relationship between plane and vop from the standard
prop: possible_crtcs, so we remove the unused PLANE_MASK prop from vop.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2c68ed60447024f4f5f379fa39b28ae0da065eae
VOP aclk DVFS will adjust vop aclk to 750M when output resuoution is
bigger then 4k.
This reverts commit e16a4b0a15.
Change-Id: I197c8e03661bcfc2446fce7c90d331341fdd83cb
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
If the old plane state is invalid, no printing should be performed,
otherwise panic will occur.
Fixes: 2e409456c1 ("drm/rockchip: add dynamic debug for vop")
Change-Id: I0687f9231c49bc068322f555f95af96a214b049d
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Merge made by the 'ours' strategy.
* commit 'ffdcf653d8b0fa8afa98ee876dfc85be9b7660d2':
BACKPORT: tty: rpmsg: Fix race condition releasing tty port
UPSTREAM: tty: rpmsg: Define tty name via constant string literal
UPSTREAM: tty: rpmsg: Add pr_fmt() to prefix messages
UPSTREAM: tty: rpmsg: Use dev_err_probe() in ->probe()
UPSTREAM: tty: rpmsg: Unify variable used to keep an error code
UPSTREAM: tty: rpmsg: Assign returned id to a local variable
UPSTREAM: tty: add rpmsg driver
BACKPORT: rpmsg: core: add API to get MTU
Change-Id: If69a54b75f5a8f3fbef62bc2c5b8d650f757a453
Merge made by the 'ours' strategy.
* commit '955e34ae9961aac0faa77111a1991a107eb66ed3':
arm64: rk3308_linux_defconfig: sync from savedefconfig
Change-Id: Idfab9e17645f4b555a42820a977af586665eeb9b
* commit '786d0045885c9696d8c7af75d9d5bc97742ea8c1':
mfd: rkx110_x120: fix compile no previous prototype warning
misc: rockchip: pcie-rkep: Select PCIE_DW_DMATEST as default
PCI: rockchip: dw-dmatest: Bind the dma transmission code with the device
media: i2c: gc8034 add delay after power on
Change-Id: I3b22348d736ddb5c655311bfd45c9eb425566d39
Merge made by the 'ours' strategy.
* commit 'e0a3fc877881ace202d0e90fa876b25296a0b60f':
mfd: rkx110_x120: register 2 panel when attach 2 screen
Change-Id: I8d78863e429f1c8d3d42170984fb6d628451523a
Merge made by the 'ours' strategy.
* commit '0a70f80c917300162edc7a999ab9ce6fef16a793':
mfd: rkx110_x120: add pwm support
Change-Id: Ib41b8a19114c1a5748480d9f38881e2e4a4a0769
The tty_port struct is part of the rpmsg_tty_port structure.
The issue is that the rpmsg_tty_port structure is freed on
rpmsg_tty_remove while it is still referenced in the tty_struct.
Its release is not predictable due to workqueues.
For instance following ftrace shows that rpmsg_tty_close is called after
rpmsg_tty_release_cport:
nr_test.sh-389 [000] ..... 212.093752: rpmsg_tty_remove <-rpmsg_dev_
remove
cat-1191 [001] ..... 212.095697: tty_release <-__fput
nr_test.sh-389 [000] ..... 212.099166: rpmsg_tty_release_cport <-rpm
sg_tty_remove
cat-1191 [001] ..... 212.115352: rpmsg_tty_close <-tty_release
cat-1191 [001] ..... 212.115371: release_tty <-tty_release_str
As consequence, the port must be free only when user has released the TTY
interface.
This path :
- Introduce the .destruct port tty ops function to release the allocated
rpmsg_tty_port structure.
- Introduce the .hangup tty ops function to call tty_port_hangup.
- Manages the tty port refcounting to trig the .destruct port ops,
- Introduces the rpmsg_tty_cleanup function to ensure that the TTY is
removed before decreasing the port refcount.
Fixes: 7c0408d805 ("tty: add rpmsg driver")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20220104163545.34710-1-arnaud.pouliquen@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I5616481fa97807c954f03cd1dfdff206605b65d3
(cherry picked from commit db7f19c0aa)
[Jiahang: Resolving type conflict in drivers/tty/rpmsg_tty.c ]
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com>