Use IS_ERR() instead of checking for a NULL pointer when calling for
drm_atomic_helper_duplicate_state() failures.
drm_atomic_helper_duplicate_state() return an ERR_PTR()-encoded error
code on failure.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I95388698239a7e1bd2bfbedd2bd921bbf52372f0
hdmi_sound compatible to rockchip,hdmi for jack function
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
Change-Id: Ib54304cfed2ad8fe5b6c87a559a827a56b82a4c2
RK809 compatible to rockchip,multicodecs-card for jack function
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
Change-Id: Ia430978a4239dc072f92d5de514285035e1159f7
Current policy:
If there are two pending config done vp, and one of them is
at critical time zone, wait for the one which has long time
to vsync.
This may lead a very long wait, for example: VP0 is 3840 x 2160,
VP2 is 1920 x 1080, they are all have pending cfg done bits,
and the vcnt of VP0 is 1367, the vcnt of VP2 is 995, VP2 is
at the critical time zone, we will wait VP0 vsync(almost half frame time)
according to this policy. This lead a very long wait.
The new policy:
If there are two pending config done vp, and one of them is
at critical time zone, compare the left vcnt time of the
two vp:
if (first_vp_left_time > second_vp_left_time) {
if ((first_vp_left_time - second_vp_left_time) > first_vp_safe_time)
wait_vp = second_done_vp;
else
wait_vp = first_done_vp;
} else {
if ((second_vp_left_time - first_vp_left_time) > second_vp_safe_time)
wait_vp = first_done_vp;
else
wait_vp = second_done_vp;
}
Change-Id: I7154ad716841c6c28947ddfecc845c7271cc507a
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_common.c:7852:50: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
DHD_ERROR(("fw->size = %d, *length = %d\n", fw->size, *length));
~~ ^~~~~~~~
%lu
Fixes: 6513b9fbdd ("net: wireless: update bcmdhd driver to 101.10.361.20")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia2cce87e3392174f8a6165494e1c7962ae07bd93
color_key is passed by atomic_set_property with a uint64_t val.
Change-Id: Idc66dc1632f3c00f353d05016aa79f362506fef5
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
The normal hardware has not changed, and the rx delayline does not need
to be changed, but the value is different if the realteak PHY driver is
turned on by default.
[root@buildroot:/]# echo 1000 > ./sys/devices/platform/fe300000.ethernet/phy_lb_
scan
rx_delay = 0x23
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: If42019a8c17b24d6df72a30f4f7377e5f6feafe0
1) add hub_reset signal for V14 boards
As the previous version boards, USB3.0 hub has stability problems.
In order to solve this issue, The reset pin of USB3.0 hub is controlled
by GPIO and reset USB3.0 hub through software on v14 board.
2) fix the order for hdmi_sound
3) enable i2s1
The i2s1 is used by rk809 codec.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I2a1ccba30705f83884b8284d418dd0cb6cb481fc
some product will use gpio to instead of TE, so we add soft TE for all vp.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Idb2d8b6a63c17308519761ae986f853b2baf0bc4
Providing a interface for hdcp controller to load key.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I205c54e2ce1abc394761fc49724b76b25b2947bf
In order to make GKI work.
Fixes: 365ee62df1 ("PCI: rockchip: Add ACPI support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I46a696b5e69c858d660eab975bd24431f149c303
The sg_phys() always return the physical address of a scattergather, but
the sg_dma_address() return the iova address, for a device without iommu
that is a bad address.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I83641c6af324bbaca3d27ea14de41cfca729e258
Tuing pre-emphasis and turn off differential receiver in suspend mode
for rk3326s and px30s SoCs.
Fix some pc can not recognize the device when using 5m cable, so tuning
usb phy squelch trigger point configure to 100mv for px30s.
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: Ida216e8951c1f1dad19fa3ff4c31ede6a53b3458