Commit Graph

1262019 Commits

Author SHA1 Message Date
Tao Huang
1f14e29ea8 Merge commit '2688d7f9259151ac782d92bece2458eb998aa829'
* commit '2688d7f9259151ac782d92bece2458eb998aa829':
  media: i2c: add ar2020 sensor driver
  watchdog: dw_wdt: fix array out-of-bounds in theory
  mfd: rkx110_x120: add irq support
  drm/rockchip: vop2: fix overlapping_copy

Change-Id: I50059e725ec7b7efc4e0437e85f9622ba9c97fb9

Conflicts:
	drivers/media/i2c/Kconfig
	drivers/media/i2c/Makefile
2023-11-22 17:40:00 +08:00
Tao Huang
13d0dc4f31 Merge commit 'eeaca8874ba3e1b1050851af26a343240a41dd84'
Merge made by the 'ours' strategy.

* commit 'eeaca8874ba3e1b1050851af26a343240a41dd84':
  mtd: spi-nor-ids: support PY25Q128LA

Change-Id: I28b3d789c1a3d7249799c91f8de59e20bd55d931
2023-11-22 17:35:08 +08:00
Jon Lin
0faf330c2d mtd: spi-nor-ids: support PY25Q128LA
Change-Id: I5b92a866871b5635963510f46d3ba822d66964a2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-11-22 17:33:03 +08:00
Tao Huang
3aba50695b Merge commit '7f0033da72d88ee351d2e0fc798c8912aa27a6e4'
* commit '7f0033da72d88ee351d2e0fc798c8912aa27a6e4':
  drm/rockchip: vvop: fix a potential race condition when vvop_disable_vblank
  drm/rockchip: vop2: Fix possible_crtcs error for cursor plane
  media: i2c: maxim2c: driver version v2.00.01
  drm/rockchip: vvop: add support to multiple CRTCs
  drm/rockchip: dw-dp: fix warning Using an uninitialized value mode.head when calling drm_mode_copy
  ARM: rockchip: rv1106: delete RV1106_GPIO0_A1_LOWPOWER
  media: rockchip: vicap: fixes error when register multi dev
  ARM: rockchip: rv1106: pull up gpio0_a4 for lower power
  drm/rockchip/rk628: combtxphy: ref_clk should not be zero
  drm/rockchip: dw_hdmi: Fix warning `Using an uninitialized value mode.head when calling drm_mode_copy`
  crypto: rockchip: Fixed a warning found by static code scanner
  drm/rockchip: vop: init mcu_frame_st as 0 in vop_mcu_mode()

Change-Id: If2ba1d4430f861070e583ce605a71061e4d76473
2023-11-22 17:29:32 +08:00
Tao Huang
4ed3c62e01 Merge commit '6e890ef6f64eef3a85f617e49a60c973df4a7346'
* commit '6e890ef6f64eef3a85f617e49a60c973df4a7346':
  rtc: rk630: add rtc for rk630
  mfd: rk630: add rtc regmap and irq
  mfd: rk630: Set phy clock from ref clock
  mfd: rk630: Add rk630 ref clk

Change-Id: Ibe62c780b30b34810d7c54d501b9cd925505fb94

Conflicts:
	drivers/rtc/Kconfig
2023-11-22 17:24:34 +08:00
Tao Huang
3a04a0e312 Merge commit 'df698fe006e7c20c17e6dd3c3a042da6f8bd0660'
Merge made by the 'ours' strategy.

* commit 'df698fe006e7c20c17e6dd3c3a042da6f8bd0660':
  clk: rockchip: avoid division by zero

Change-Id: Id8e76699a5c2cf216eaa0d54b4a0397f23403e2a
2023-11-22 17:23:22 +08:00
Elaine Zhang
173b944491 clk: rockchip: avoid division by zero
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ie28c61d3907d80c3d12087dea59a9567e183012d
2023-11-22 17:14:07 +08:00
Tao Huang
86f733a6c3 Merge commit 'bc3739735df8cf89c0ba4acb433ea8ec7392124f'
* commit 'bc3739735df8cf89c0ba4acb433ea8ec7392124f':
  media: i2c: add sc4336p driver

Change-Id: Ie99cb4322bded3a963bef2c4206fac7c10950ab2
2023-11-22 17:11:45 +08:00
Tao Huang
ca7450a6d2 Merge commit 'c95ecab515064933a8186fadac06a0100e94cef0'
Merge made by the 'ours' strategy.

* commit 'c95ecab515064933a8186fadac06a0100e94cef0':
  mmc: add timeout for write data and reset while recovery

Change-Id: Icb8f2a6fa38d6dba0347069ccd766f085b3e2afb
2023-11-22 17:08:16 +08:00
Yifeng Zhao
645f6c421d mmc: add timeout for write data and reset while recovery
Some problematic TF cards may stop at busy state during
the data writing process, and the mmc controller needs
to add a timeout processing.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I11b75910f99eb040fa364990049f5cfe74fccfbf
2023-11-22 10:08:38 +08:00
Tao Huang
bfb6e6cbd5 Merge commit 'c252d35d35d09a9be3b0fb9b216304f641d1e83e'
* commit 'c252d35d35d09a9be3b0fb9b216304f641d1e83e':
  media: rockchip: vicap restore sequence of sof after resume
  media: i2c: imx577: fix exp_def because exp must less than (vts - 22)

Change-Id: I6ad49593319eff382f6dcca794137400e46aceb3
2023-11-21 18:03:27 +08:00
Tao Huang
59a5456ff0 Merge commit '4997ee78fe6800c5b4935efa50c8dcf242232297'
Merge made by the 'ours' strategy.

* commit '4997ee78fe6800c5b4935efa50c8dcf242232297':
  arm64: rockchip_linux_defconfig: Enable CONFIG_ARM64_USE_LSE_ATOMICS

Change-Id: I514ab0d412441623f73aaaa87dc66baf749a9221
2023-11-21 17:54:29 +08:00
Tao Huang
2a995f7160 arm64: rockchip_linux_defconfig: Enable CONFIG_ARM64_USE_LSE_ATOMICS
CONFIG_ARM64_USE_LSE_ATOMICS is depends on CONFIG_JUMP_LABEL and
default y. So we should enable CONFIG_JUMP_LABEL.

Now we can use LSE to replace LL/SC on Cortex-A55/A76 for better performance.

Before:
    text	    data	    bss	     dec	    hex	filename
25991593	10672971	 648872	37313436	2395b9c	vmlinux

After:
    text	    data	    bss	     dec	    hex	filename
26620453	11072195	 649976	38342624	2490fe0	vmlinux

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2900ff6f2fd8dae9f8afb0fc2da72c83de8ff63e
2023-11-21 17:30:55 +08:00
Tao Huang
302e1ca830 Merge commit '1d795ddee4f73b2739410f99c22280b00f452187'
* commit '1d795ddee4f73b2739410f99c22280b00f452187':
  soc: rockchip: cpuinfo: optimize error log
  rtc: rockchip: fix the rtc suspend crash
  soc: rockchip: fiq debugger: check "target_cpu" before switch cpu
  clk/rockchip/regmap: rate should not be zero
  mmc: dw_mmc: Fix DM 4GB TF card write data errors in RV1106
  arm64: rk3308_linux_defconfig: enable Rockchip RPMsg
  media: i2c: imx577: fix exposure control range according to datasheet
  arm64: configs: rockchip_linux: change RPMSG config to RPMSG_MBOX

Change-Id: I77072f12b7734da6c0212a715633fee3ee574f65
2023-11-21 16:05:41 +08:00
Tao Huang
06f60be82f Merge commit 'bcbcebd833f6a37c224b53028baeaa39f86564f3'
Merge made by the 'ours' strategy.

* commit 'bcbcebd833f6a37c224b53028baeaa39f86564f3':
  soc: rockchip: opp_select: implement rockchip_uninit_opp_table()

Change-Id: I92b5978c9a817d3ce00e9e9fc8f0d12bf96e2055
2023-11-21 16:04:21 +08:00
Tao Huang
634dc4ae6c Merge commit '6de3d51dcdf7e19c1484ac967943387e0621b4a5'
* commit '6de3d51dcdf7e19c1484ac967943387e0621b4a5':
  soc: rockchip: debug: don't enable Serror when panic
  pstore/ram: don't register boot_log to minidump when it is off
  power: supply: rk816/rk817/rk818 battery: avoid division by zero
  video: rockchip: rga3: fix iommu device sync cache causing crash
  video: rockchip: rga3: fix the error report of Coverity
  soc: rockchip: rockchip_system_monitor: simplify include
  media: uvcvideo: set system status to performance when stream on
  ARM: configs: rv1106-wakeup.config: fix some sleep to slow down the process
  clk: rockchip: rk3562: Fix clk_uart3_frac parent clk
  media: i2c: maxim4c: driver version v2.05.00
  media: i2c: sc230ai support master&slaver mode
  media: rockchip: isp: add isp dgain for tb mem head
  media: rockchip: isp: support for param run double

Change-Id: Ic11982e6ac7486b309860f7d7c4c746c9edfc76e
2023-11-21 14:39:36 +08:00
Tao Huang
46a15c58e5 Merge commit 'e201a6c59def9fca39f85e1d7c521a041fb492e8'
Merge made by the 'ours' strategy.

* commit 'e201a6c59def9fca39f85e1d7c521a041fb492e8': (5598 commits)
  regulator: core: Ensure debugfs is fully initialized
  BACKPORT: firmware_loader: Abort all upcoming firmware load request once reboot triggered
  UPSTREAM: firmware_loader: Refactor kill_pending_fw_fallback_reqs()
  ANDROID: GKI: Update symbols to symbol list
  ANDROID: Add Interrupt Hook for madvise Compression
  UPSTREAM: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
  BACKPORT: ravb: Fix use-after-free issue in ravb_tx_timeout_work()
  UPSTREAM: ravb: Fix up dma_free_coherent() call in ravb_remove()
  Revert "netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp"
  Revert "net: bridge: use DEV_STATS_INC()"
  Revert "configfs: fix a race in configfs_lookup()"
  UPSTREAM: netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
  UPSTREAM: net: xfrm: Fix xfrm_address_filter OOB read
  UPSTREAM: igb: set max size RX buffer when store bad packet is enabled
  UPSTREAM: netfilter: nfnetlink_osf: avoid OOB read
  ANDROID: abi_gki_aarch64_qcom: Add wait_for_device_probe symbol
  UPSTREAM: netfilter: xt_sctp: validate the flag_info count
  UPSTREAM: netfilter: xt_u32: validate user space input
  UPSTREAM: net/sched: Retire rsvp classifier
  UPSTREAM: ipv4: fix null-deref in ipv4_link_failure
  ...

Change-Id: I6477f34553d9a65678f1e87fcfcb517ea2f93b75
2023-11-21 14:33:28 +08:00
Tao Huang
a11cf7949a Merge commit 'c575feaee97f3c3f0d29ec8e5e4948e08f56cd61'
* commit 'c575feaee97f3c3f0d29ec8e5e4948e08f56cd61':
  Revert "usb: typec: typec_port_register_altmodes() depends on CONFIG_NO_GKI"
  media: i2c: os02k10: fix setting exposure error
  media: i2c: dw9800w: add ioctl set max logical pos
  video: rockchip: rga3: prevent calling mmget()/mmput() in spin_lock
  video: rockchip: rga3: refining time-consuming logs
  video: rockchip: rga3: destroy internal_buffer when user exits
  video: rockchip: rga3: signaled fecne after request commit failed
  UPSTREAM: mmc: dw_mmc: Fix potential null pointer risk
  drm/rockchip: rk628: vrefresh should not be zero
  phy/rockchip: inno-dsidphy: fref and _prediv should not be zero
  drm/rockchip: dsi2: sys_clk and pixel_clk should not be zero
  drm/rockchip: dsi: the bpp should not be zero
  media: rockchip: isp: fix build warning
  soc: rockchip: rk_dmabuf_procfs: check return value of platform_device_register_full()

Change-Id: I82396eff6f509f835cf56a36c87ed76394339549
2023-11-16 15:58:06 +08:00
Tao Huang
ee62f01508 Merge commit '2182c42cb8df4d11eff3812a7ce10ea1bbba2e8d'
* commit '2182c42cb8df4d11eff3812a7ce10ea1bbba2e8d':
  media: i2c: add Maxim Dual GMSL2/GMSL1 to CSI-2 Deserializer driver.
  media: i2c: sc200ai: get camera param from cam-tb-setup

Change-Id: Ieea0e5189859c2365195a5f94a9a394dfc6e20b4

Conflicts:
	drivers/media/i2c/Makefile
2023-11-16 15:57:37 +08:00
Zhen Chen
b72fff5ed8 MALI: rockchip: upgrade bifrost DDK to g21p0-01eac0, from g18p0-01eac0
"/sys/kernel/tracing/events/power/gpu_work_period/*" required by Android 14.0 is implemented.

NOTE:
For RK3588, the mali_csffw.bin used with this driver MUST be from DDK g21p0-01eac0 correspondingly.

Change-Id: Ifab61806a6a350ba53c5dc0296d20628c28d633a
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-11-16 14:18:32 +08:00
Zefa Chen
2688d7f925 media: i2c: add ar2020 sensor driver
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I16a53fa473d82ac377c31fadb3cc55898825428f
2023-11-15 18:45:36 +08:00
Simon Xue
e8cea8fe67 watchdog: dw_wdt: fix array out-of-bounds in theory
Change-Id: Ie11b60cf79b4c988af1ca7939334cbb742582247
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2023-11-15 18:44:21 +08:00
Zhang Yubing
077c5b13fa mfd: rkx110_x120: add irq support
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ibb8316211ef67ffe9ee9a0dcfa391ecfae0af9d0
2023-11-15 18:17:57 +08:00
Andy Yan
5498c2a4d2 drm/rockchip: vop2: fix overlapping_copy
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Icbae6c1dd5ad0b3c580c73b8776272d364473501
2023-11-15 18:11:05 +08:00
Jon Lin
eeaca8874b mtd: spi-nor-ids: support PY25Q128LA
Change-Id: I5b92a866871b5635963510f46d3ba822d66964a2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-11-15 17:58:35 +08:00
Andy Yan
7f0033da72 drm/rockchip: vvop: fix a potential race condition when vvop_disable_vblank
A very similar case on amdgpu_vkms:
commit 826c1e923b ("drm/amdgpu/vkms: relax timer deactivation by
hrtimer_try_to_cancel")

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I0692cd2c4ad3e3f090c0df040537995f99c2fcff
2023-11-15 16:33:51 +08:00
Sandy Huang
f15552775d drm/rockchip: vop2: Fix possible_crtcs error for cursor plane
Before this commit, because the crtc is not initialized yet, if use the drm_crtc_mask(crtc) at
vop2_cursor_plane_init(), the cursor plane possible_crtcs will always be 1 for vp0.

After this commit, the plane possible_crtcs will be:
if (disable_win_move && vop2)
	possible_crtcs = BIT(registered_num_crtcs);
else if (vop3)
	possible_crtcs = win->possible_crtcs from reg_data;
else
	possible_crtcs =(1 << vop2_data->nr_vps) - 1;//all crtc

Fixes: 1a6b7e170f1e ("drm/rockchip: vop3: add support rk3528")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7d23aab328962c1a77f6d0c11c5f81731bdceb80
2023-11-15 15:33:03 +08:00
Cai Wenzhong
f89c0e66e0 media: i2c: maxim2c: driver version v2.00.01
1. MIPI TXPHY add tunnel mode support.
2. MIPI TXPHY mode only support 2x4Lanes and 2x2Lanes.

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I33d5ff240c9f85319f757c3cc2ba7d067ce69aae
2023-11-15 15:28:11 +08:00
Damon Ding
4b18a69d88 drm/rockchip: vvop: add support to multiple CRTCs
1.Add crtc property IS_VIRTUAL and SOC_ID. HWC needs
  property IS_VIRTUAL to identify the virtual crtc,
  and the property SOC_ID to confirm the platform.
2.Add support for resolutions:
  1280x720   720x1280
  1920x1080  1080x1920
  2560x1440  1440x2560
  3840x2160  2160x3840
  4096x2160  2160x4096
  with frame rate 30/60/90/120/144.
3.Fix the process of releasing resources in vvop_unbind().

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I5cbd8ce4cb0d55023fb36426ff3a79bf0ae25080
2023-11-15 15:22:49 +08:00
Andy Yan
ffba59e3bb drm/rockchip: dw-dp: fix warning Using an uninitialized value mode.head when calling drm_mode_copy
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Id522eb77d8585a9a33702d820f37b4a5d2e10b38
2023-11-15 14:45:03 +08:00
XiaoDong Huang
d3660dc13f ARM: rockchip: rv1106: delete RV1106_GPIO0_A1_LOWPOWER
Always make GPIO0_A1 low-power when system sleep.

Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I487aa4a5d0fa239a693b784d98ab53e9414c63db
2023-11-15 14:36:55 +08:00
Zefa Chen
8c9e65da11 media: rockchip: vicap: fixes error when register multi dev
Fixes: 6a556c2b9e ("media: rockchip: vicap: resume/suspend with rtt")
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I202d2eb9065f4b2e3ca181f16945224afa6b832c
2023-11-15 14:36:09 +08:00
XiaoDong Huang
856ca3fcd3 ARM: rockchip: rv1106: pull up gpio0_a4 for lower power
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ia38833a0ac8396a3cc93f4090c2c3eb75ef5db15
2023-11-14 15:02:15 +08:00
Guochun Huang
d090ed8f63 drm/rockchip/rk628: combtxphy: ref_clk should not be zero
Change-Id: I395d721b2ab833fee6dfbdb53c6fc923f733a3d1
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-11-14 12:19:48 +08:00
Algea Cao
c952ca6f8c drm/rockchip: dw_hdmi: Fix warning Using an uninitialized value mode.head when calling drm_mode_copy
Change-Id: I8fb0e887160c96b9b8142700b1ba2aeecac7a6bc
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2023-11-14 12:18:41 +08:00
Lin Jinhan
a1653e50d1 crypto: rockchip: Fixed a warning found by static code scanner
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I95055ed3d767719b9b2088330f3e5646491b6894
2023-11-14 12:17:50 +08:00
Damon Ding
7b2a1c8a6b drm/rockchip: vop: init mcu_frame_st as 0 in vop_mcu_mode()
If mcu_hold_mode is 1, set 1 to mcu_frame_st will
refresh one frame from ddr. So mcu_frame_st is needed
to be initialized as 0.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I75d755826dbbdd229da3c3db15d4682dc2bd13a0
2023-11-14 12:16:13 +08:00
Elaine Zhang
6e890ef6f6 rtc: rk630: add rtc for rk630
Change-Id: I36bfe7ba7c4876d9030b065f26b1e99fefc738b9
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2023-11-14 12:10:52 +08:00
Elaine Zhang
84f3edadb7 mfd: rk630: add rtc regmap and irq
Change-Id: Ia21198d9806e697c6383ed7211959a3a3c6e38d9
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2023-11-14 12:10:47 +08:00
David Wu
7c99cc64ec mfd: rk630: Set phy clock from ref clock
The phy clock is the same as the input clock of rk630, so
use this clock for configuration.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ie5c0e58958a1fdd9e264d861295d64e4ccb483cb
2023-11-14 11:26:12 +08:00
Algea Cao
9cab28b37f mfd: rk630: Add rk630 ref clk
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ie3ad8834ab5d0f25eeb8bdf52445f726192c0161
2023-11-14 11:26:12 +08:00
Elaine Zhang
df698fe006 clk: rockchip: avoid division by zero
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ie28c61d3907d80c3d12087dea59a9567e183012d
2023-11-14 11:14:24 +08:00
Su Yuefu
bc3739735d media: i2c: add sc4336p driver
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: Ib7d7b41a79dba49ea73137149590527e3347d1a6
2023-11-14 11:06:39 +08:00
Yifeng Zhao
c95ecab515 mmc: add timeout for write data and reset while recovery
Some problematic TF cards may stop at busy state during
the data writing process, and the mmc controller needs
to add a timeout processing.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I11b75910f99eb040fa364990049f5cfe74fccfbf
2023-11-14 11:03:25 +08:00
Zefa Chen
c252d35d35 media: rockchip: vicap restore sequence of sof after resume
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I58723bd60429a5fa77982602514689c32e08d25f
2023-11-14 11:01:53 +08:00
Jianwei Fan
9e5b5dff61 media: i2c: imx577: fix exp_def because exp must less than (vts - 22)
fix commit "9625dd4e2af2"
(media: i2c: imx577: fix exposure control range according to datasheet)

Change-Id: Ie0e02b553599ed969dee496767c57ebac244bce1
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-11-14 11:00:54 +08:00
Zefa Chen
6a55166690 media: rockchip: vicap always notifier sditf to isp when work with GKI
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4f466abaad2350eed7da039baec7440c82689afb
2023-11-14 10:30:31 +08:00
Tao Huang
4997ee78fe arm64: rockchip_linux_defconfig: Enable CONFIG_ARM64_USE_LSE_ATOMICS
CONFIG_ARM64_USE_LSE_ATOMICS is depends on CONFIG_JUMP_LABEL and
default y. So we should enable CONFIG_JUMP_LABEL.

Now we can use LSE to replace LL/SC on Cortex-A55/A76 for better performance.

Before:
    text	    data	    bss	     dec	    hex	filename
24693888	10091965	 541616	35327469	21b0ded	vmlinux

After:
    text	    data	    bss	     dec	    hex	filename
25114676	10943949	 542776	36601401	22e7e39	vmlinux

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2900ff6f2fd8dae9f8afb0fc2da72c83de8ff63e
2023-11-13 19:27:55 +08:00
Liang Chen
1d795ddee4 soc: rockchip: cpuinfo: optimize error log
Do not output error when return -EPROBE_DEFER.

Change-Id: I94a9e0349a69ce76ee939bc29d2862cd4f20c1e9
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-11-13 18:12:11 +08:00
Elaine Zhang
1aef70a303 rtc: rockchip: fix the rtc suspend crash
In some special products, after rtc probe, The system quickly goes to
sleep before the calibration function of delay_work is executed. In rtc
suspend will clamp rtc. In the off process, if delay_work is executed,
the system will crash.
Added calibration judgments to turn off delay_work when rtc suspend.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ib212eabd18c27ddeff5c50e5b8ac0444a2cafc23
2023-11-13 18:07:42 +08:00