If not sync regcache when dsm resume, the dsm card occur error
since the value in cache is same with what we set. So that the
value will not sync to dsm registers.
error log:
aplay: pcm_write:2178: write error: Input/output error
rockchip-sai 2a640000.sai: Failed to clear 1
Change-Id: Ia6318dedf12ae696cf05ae59055427932b1638ea
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
vp->mask must initialize correctly, otherwise after suspend and
resume, the software state[vp->mask] maybe different with hardware
state and lead to close win error or timeout.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Icc605878b6ac74b24dde44f7933bc761ccdcd526
Because I2STX_CKE has been set to disable in rk817_codec_shutdown,
then I2STX_CKE_EN should be set when recording.
Change-Id: If1201ad12e33dca21eb443bd32750a73c1fa9f67
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Some devices like FPGA or AI cards need a long period of time
after powering up and releasing #PERST. This is due to the slow
firmware loading process happened inside the devices. Without this
support, link will be failed during the limitation.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I01ecb64ca1b1a1917eb5434c374517387ab11ffc
implicit declaration of function ‘random_ether_addr’
Change-Id: Ibf8c391b43f25b638062686a5e4f396bf79223f0
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
According to the LFPS Tx Low Power/LFPS Rx Detect Threshold [1],
the device under test(DUT) must not respond if LFPS below the
minimum LFPS Rx Detect Threshold 100mV. Test fail on Rockchip
platforms, because the default LFPS detect threshold is set to
65mV.
The usbdp phy LFPS detect threshold voltage could be set to
30mV ~ 140mV, and since there could be 10-20% PVT variation,
we set LFPS detect threshold voltage to 110mV.
[1] https://compliance.usb.org/resources/LFPS_Rx_Tx_Low_Power_Compliance_Update_Rev5.pdf
Change-Id: Idf17df242090027b3b8eb731423a1aa536ed8c09
Signed-off-by: William Wu <william.wu@rock-chips.com>
Add ->remove() support is to meet the requirement of modular
use and test unbind/bind process massively in case we change
the probe() process.
Change-Id: I6267e7e1b55575069179150a10fdfb7b4da5ae52
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
device_init_wakeup is used for PD driver to leave power-domain
opened during suspend. This feature was originally designed for
Wi-Fi. Check Wi-Fi's power to see if we need to remove wakeup
support before into suspend.
Change-Id: I468157b1d5f9775e3c961d1d059b167c0bb95395
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Currently, the PCIe pd is in unsupported state which fails to power
down it even if not devices attached.This patch is required when the pcie
controller sits on a bus with its own power domain and clocks which are
controlled via a bus driver like simple pm bus.
Change-Id: Ic0fbaec82a25b92e9b874aa3003f0b18451985a6
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Becuase recovery kernel needs initramfs and much smaller than
normal boot kernel, to split them to save disk size and memory usage.
The rk3502-recovery.config and rk3502-robot.config are both based on
rk3506_defconfig.
Change-Id: Id236fe486037aaa958d51ad0a0f5ac84ccaec8fa
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
The func can be replaced by drm_gem_mmap_obj().
Change-Id: I8a0687ee6f6df70129b8978e993d22158c2c3d64
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
The rockchip_gem_mmap_buf() will call .mmap() of struct
drm_gem_object_funcs twice;
One is:
rockchip_gem_mmap_buf() -> drm_gem_mmap_obj() ->
rockchip_gem_object_funcs.mmap() -> rockchip_drm_gem_object_mmap()
The other is:
rockchip_gem_mmap_buf()-> rockchip_drm_gem_object_mmap()
This will cause the -EBUSY return of vm_map_pages() ultimately.
Change-Id: I3de9eb23f81afa437087e2276d16dd8fb4c003d6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Fix build error for !CEC_CORE:
drivers/media/i2c/rk628/rk628_hdmirx.c:1235:17: error: implicit declaration of function 'cec_transmit_attempt_done' [-Werror=implicit-function-declaration]
drivers/media/i2c/rk628/rk628_hdmirx.c:1239:17: error: implicit declaration of function 'cec_received_msg' [-Werror=implicit-function-declaration]
drivers/media/i2c/rk628/rk628_hdmirx.c:1252:9: error: implicit declaration of function 'cec_queue_pin_hpd_event' [-Werror=implicit-function-declaration]
drivers/media/i2c/rk628/rk628_hdmirx.c:1284:21: error: implicit declaration of function 'cec_allocate_adapter'; did you mean 'cec_delete_adapter'? [-Werror=implicit-function-declaration]
drivers/media/i2c/rk628/rk628_hdmirx.c:1284:19: error: assignment to 'struct cec_adapter *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib395ed380926d93121ba233b1ce5ce273024de36
drivers/spi/spi-rockchip-flexbus-spi.c:367:12: error: 'rk_flexbus_spi_resume' defined but not used [-Werror=unused-function]
Change-Id: I1a8cf00bc51260501847f9797001bf4e10243240
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
drivers/input/touchscreen/parade/pt_core.c:10591:28: error: 'pt_core_rt_suspend' undeclared here (not in a function)
drivers/input/touchscreen/parade/pt_core.c:10591:48: error: 'pt_core_rt_resume' undeclared here (not in a function)
drivers/input/touchscreen/parade/pt_core.c:17046:28: error: 'pt_core_ebc_resume' undeclared (first use in this function)
drivers/input/touchscreen/parade/pt_core.c:17047:29: error: 'pt_core_ebc_suspend' undeclared (first use in this function); did you mean 'pt_early_suspend'?
Change-Id: Id9594b26941f80d16d13195cf0d8c0e9d5187f9b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>