When call pm_runtime_get_sync(), the runtime callback will change clock
source to normal pll, but now pm_runtime_get_sync() is called in a delay
work and the wakelock seems to be invalid on linux system,
so when suspend the pm_runtime_get_sync() may not be called.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I0a951b455c10158ca63d747e35e9001cdbdde91c
1. Fixup misc_register fail
2. Close power always on
3. Move timer init after register success
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I4b7753b6e6fe5f7c1dc3a8b4591ea7ccce690421
Powergood integrated on npor is an interrupt signal that triggers
an interrupt when a specific level value is detected.
Do some software protection for the system when the interrupt is
triggered.
Change-Id: I928c05e9dd7c7ac76af54135c7ea73d377c22807
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Modify SENSOR_CALIBRATION_ID from 13 to 14 and add
SENSOR_CALIBRATION_ID.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id10be9960c1d7015edebaa7ccf646d8f16cf1d15
Most of the sdio devices need a simple pwrseq that is referred by
mmc-pwrseq, otherwise the mmc host will be probed as -EPROBE_DEFER
result.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I2db654076563d49ddf52d91342fff93d39b218e0
drivers/crypto/rockchip/rk_crypto_v2_pka.c:615:6: warning: no previous prototype for rk_pka_set_crypto_base [-Wmissing-prototypes]
drivers/crypto/rockchip/rk_crypto_v2_pka.c:629:5: warning: no previous prototype for rk_pka_expt_mod [-Wmissing-prototypes]
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifd4335f6355ca173e391851bca536cb63ee7d5f5
When DP output in Tyep-C interface, HPD and HPD IRQ info are
send by PD message, and transfer to phy by mux set callback
function. The usbdp phy need tell the DP controller not only
the HPD info, but also HPD IRQ info.
According to DP Standard 1.4a 3.3 section, the HPD IRQ pulse
width should be in the range from 0.5 ms to 1 ms, setting
the low level time between 750 us nad 800 us to satisfied
the specification.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ie6d6d0537e6633e6e5f12119ceafc4109e32e74e
The inno usb2 phy binding specifies the clock "phyclk",
however, some Rockchip SoCs (e.g. RV1106/RV1103) have
more than one clock, so this patch reworks the reading
of the clks from the dts to use devm_clk_bulk_get_all()
will fetch all the clocks specified in the dts together.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I07b262e184ee043866b233314c5279f17845b9a4
Due to link order, dma_debug_init is called before debugfs has a chance
to initialize (via debugfs_init which also happens in the core initcall
stage), so the directories for dma-debug are never created.
Decouple dma_debug_fs_init from dma_debug_init and defer its init until
core_initcall_sync (after debugfs has been initialized) while letting
dma-debug initialization occur as soon as possible to catch any early
mappings, as suggested in [1].
[1] https://lore.kernel.org/linux-iommu/YIgGa6yF%2Fadg8OSN@kroah.com/
Change-Id: I615389d4c630cd4fa7482c99f4faef1e3bb87b3c
Fixes: 15b28bbcd5 ("dma-debug: move initialization to common code")
Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 173735c346)