Commit Graph

1279963 Commits

Author SHA1 Message Date
Tao Huang
f3bd9974c1 net: rfkill: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1b354ef90bd36bf277e87d965b45d3d42c77d05e
2025-01-21 10:54:47 +08:00
Tao Huang
7210458427 rtc: rk630: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6a2b409cd432ba493bea69e760acfa39783ad670
2025-01-21 10:54:47 +08:00
Tao Huang
e51e8b7ffa rtc: rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I56a77a9b972b3701c833c76babc554ee792d1f2f
2025-01-21 10:54:47 +08:00
Tao Huang
66ba7d48d8 soc: rockchip: power-domain: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3dce33c4e226d68bdf0566d63dcfd008c238c5e4
2025-01-21 10:54:47 +08:00
Tao Huang
9d7e3d15b9 rpmsg: rockchip: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I998b95a178aae548cf627e094bf8baa52249c9b3
2025-01-21 10:54:47 +08:00
Tao Huang
847bf612e0 scsi: ufs: rockchip: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibdb599ef5f0f66cc0d910ddeca873d41e46ed3bc
2025-01-21 10:43:06 +08:00
Zhibin Huang
093fb7f0ce misc: rk628: Fix probability of WARNING when sleeping
The warning log is as follows:

[ 2548.269614][ T7373] workqueue: WQ_MEM_RECLAIM rk628-monitor-wq:rk628_display_work is flushing !WQ_MEM_RECLAIM events:rk628_hdmirx_delayed_work_audio
[ 2548.269661][ T7373] WARNING: CPU: 3 PID: 7373 at kernel/workqueue.c:2652 check_flush_dependency+0x11c/0x124
[ 2548.269696][ T7373] Modules linked in: wlan_mt7663_usb rtl8367vb btmtk_usb_unify
[ 2548.269727][ T7373] CPU: 3 PID: 7373 Comm: kworker/u16:4 Not tainted 6.1.75 #3
[ 2548.269741][ T7373] Hardware name: LANGO RK3576 V10 Board (DT)
[ 2548.269754][ T7373] Workqueue: rk628-monitor-wq rk628_display_work
[ 2548.269768][ T7373] pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 2548.269783][ T7373] pc : check_flush_dependency+0x11c/0x124
[ 2548.269796][ T7373] lr : check_flush_dependency+0x11c/0x124
[ 2548.269808][ T7373] sp : ffffffc0134dbbb0
[ 2548.269816][ T7373] x29: ffffffc0134dbbb0 x28: ffffff80c2a31108 x27: ffffffc008079110
[ 2548.269831][ T7373] x26: ffffffc0134dbc98 x25: ffffff8093d0c9c0 x24: ffffff8092141e80
[ 2548.269847][ T7373] x23: ffffff81f6d88d00 x22: ffffff8092141e80 x21: ffffff807cc366c0
[ 2548.269861][ T7373] x20: ffffff80c0008600 x19: ffffffc008a036ec x18: ffffffc00f3e3050
[ 2548.269876][ T7373] x17: 0000000000000069 x16: ffffffffffffffff x15: 0000000000000004
[ 2548.269891][ T7373] x14: ffffffc009fdd720 x13: 0000000000000a9e x12: 0000000000000003
[ 2548.269906][ T7373] x11: 0000000000000000 x10: 0000000000000027 x9 : 7313130eec8ea700
[ 2548.269920][ T7373] x8 : 7313130eec8ea700 x7 : 7f7f7f7f7f7f7f7f x6 : fefefefeff6e6863
[ 2548.269934][ T7373] x5 : 000000000000001c x4 : 0000000000000018 x3 : 0000000000000000
[ 2548.269948][ T7373] x2 : 0000000000000000 x1 : ffffffc0134db950 x0 : 0000000000000080
[ 2548.269964][ T7373] Call trace:
[ 2548.269973][ T7373]  check_flush_dependency+0x11c/0x124
[ 2548.269987][ T7373]  __flush_work+0xc8/0x2ac
[ 2548.270000][ T7373]  __cancel_work_timer+0x128/0x1c8
[ 2548.270012][ T7373]  cancel_delayed_work_sync+0x14/0x24
[ 2548.270025][ T7373]  rk628_hdmirx_disable+0x40/0xc0
[ 2548.270038][ T7373]  rk628_display_disable+0x54/0xbc
[ 2548.270048][ T7373]  rk628_display_work+0x7c/0xd8
[ 2548.270057][ T7373]  process_one_work+0x1a8/0x3b8
[ 2548.270071][ T7373]  worker_thread+0x25c/0x430
[ 2548.270083][ T7373]  kthread+0xec/0x1b8
[ 2548.270101][ T7373]  ret_from_fork+0x10/0x20
[ 2548.270116][ T7373]
...

Type: Fix
Redmine ID: #526169
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I2d3a3be7e4696ccb2773e66d11e25ce49191e952
2025-01-21 02:40:32 +00:00
Damon Ding
52f4ac49f4 misc: rk628: add support for pwm
In addition, add pwm debugfs file to dump regs:

cat /sys/kernel/debug/rk628/2-0050/pwm_regs

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I80ae8e40562d7593f1a2183ea73e29de798495f4
2025-01-21 02:08:38 +00:00
Zhibin Huang
95a90239c1 misc: rk628: combtxphy: enabling ssc is required for frac_div
Type: Fix
Redmine ID: #525257
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ic107c98c9b9a587699b352358715dfed59e97085
2025-01-20 09:42:11 +00:00
Miquel Raynal
6f42afbf70 UPSTREAM: mtd: Clean refcounting with MTD_PARTITIONED_MASTER
The logic is way too convoluted, let's clean the kref_get/put section to
clarify what this block does when using CONFIG_MTD_PARTITIONED_MASTER:
- Iterate through all the parent mtd devices
- Grab a reference over them all but the master
- Only grab the master whith CONFIG_MTD_PARTITIONED_MASTER
Same logic must apply in the put path, otherwise it would be broken.

Cc: Tomas Winkler <tomas.winkler@intel.com>
Cc: Alexander Usyskin <alexander.usyskin@intel.com>
Cc: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Fixes: 19bfa9ebebb5 ("mtd: use refcount to prevent corruption")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://lore.kernel.org/linux-mtd/20230731090903.770277-1-miquel.raynal@bootlin.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 264725e35fbc3b67e053a405e022393a6017e6da)
Change-Id: Iff8dd692dda07361a1c4bc9db73908dfd8256419
2025-01-20 09:04:43 +00:00
Alexander Usyskin
6c3662a2c5 UPSTREAM: mtd: call external _get and _put in right order
MTD provider provides mtd_info object to mtd subsystem.
With kref patch the mtd_info object can be alive after
provider released mtd device.
Fix calling order in _get and _put functions to allow
mtd provider to safely alloc and release mtd object.

Execute:
1) call external _get
2) get_module
3) add internal kref
in the get function and opposite order in the put one.

The _put_device callback should be the last in put
as the master struct memory may be freed in this callback.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230620131905.648089-3-alexander.usyskin@intel.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 79c4a56250216991f1d965ee26dcd273376e4e91)
Change-Id: I12b1b5f3ac0bcc432cee429c5c56a057e0a2e589
2025-01-20 09:04:43 +00:00
Alexander Usyskin
1cc0c0baa3 UPSTREAM: mtd: fix use-after-free in mtd release
I case of partition device_unregister() in mtd_device_release()
calls mtd_release() which frees mtd_info structure for partition.
All code after device_unregister in mtd_device_release thus
uses already freed memory.

Move part of code to mtd_release() and restict mtd->dev cleanup
to non-partion object.
For partition object such cleanup have no sense as partition
mtd_info is removed.

Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Fixes: 19bfa9ebebb5 ("mtd: use refcount to prevent corruption")
Reviewed-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230731115836.542747-1-alexander.usyskin@intel.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit e9714c22c1a8238a85d069b1517941fc723312f7)
Change-Id: Ie124021921b2f5efcb131b5c4860e19efaf5228a
2025-01-20 09:04:43 +00:00
Tomas Winkler
b088c5c203 UPSTREAM: mtd: use refcount to prevent corruption
When underlying device is removed mtd core will crash
in case user space is holding open handle.
Need to use proper refcounting so device is release
only when has no users.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230620131905.648089-2-alexander.usyskin@intel.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 19bfa9ebebb5ec0695def57eb1d80de7e9cab369)
Change-Id: I95b670fa24e6411867cfa517560802e58a183ef8
2025-01-20 09:04:43 +00:00
Zhibin Huang
e18437f0e8 misc: rk628: bt1120: modify bt1120 decoder dclk delay
Modify bt1120 decoder dclk delay to improve compatibility
with SI tested configurations, refer to redmine #525199
for specific details.

Type: Fix
Redmine ID: #525199
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I1a288f9d56667899537b650d2a36dcc298095a6a
2025-01-20 07:55:36 +00:00
Damon Ding
0e51e09b71 drm/bridge: analogix_dp: modify the log related to the check of hpd status
The disconnected status is not actually a failure, so it is more
reasonable to remove 'failed' and use dev_dbg() instead of dev_err().

Change-Id: I6c2fea479b45e6c61ce460d364efe8f3053465e2
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 06:13:39 +00:00
Damon Ding
61fc6ee91f ARM: dts: rockchip: rk3506g-iotest: add wave clk_pwm_rc mode for pwm test
Change-Id: I20a2719e79fc978e42d42d119de0429f5bcc6458
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 11:22:23 +08:00
Damon Ding
7fe6e5c902 pwm: rockchip-test: set the default configurations for clk_src and mem_clk_src
In addition, adjust the initialization order of struct
rockchip_pwm_wave_config members to correspond with their
declaration order within the struct.

Change-Id: I869f1a670f23f726b2fd983af364d3bdd6a9f321
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 11:17:19 +08:00
Jon Lin
ef369922f4 spi: rockchip_slave: Remove redundant dma_map behavior
The driver itself has implemented DMA buffer, and does not require
the map/unmap behavior of the spi framework.

Change-Id: I00abd65233bf5b3112337c8da623bc8afe586bb6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-01-20 02:40:50 +00:00
Damon Ding
a16c42163b pwm: rockchip: use existing enum definitions for width_mode and updata_mode settings
Change-Id: I3a1957e96b3f695849e6afffd3348a4a80635ad9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 02:39:57 +00:00
Damon Ding
a3b5a02391 pwm: rockchip: add support to select clk_src and mem_clk_src for wave generator mode
In wave generator mode, the clk_src is used as dclk to generate the
wave, and the mem_clk_src is used to write/read the wave table.

Change-Id: I7d1948a5bb11715ac632c424ef01d6022d15899b
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 02:39:57 +00:00
Joseph Chen
c790e2f91a regulator: rk801: Fix ramp_delay value error
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id35502968d0c3bf2b9a15b1008c2bc47e3ba8bcb
2025-01-20 02:31:42 +00:00
Elaine Zhang
9f8868d7b3 arm64: dts: rockchip: rk3576: remove dma for can
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I4bb0152a2742fa9ca7cc2d7330f4f4200d4672e6
2025-01-17 04:32:00 +00:00
Jianwei Fan
8da0472f8c arm64: dts: rockchip: rk3588-vehicle-evb: image reverse move xvclk to sensor
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I54a50c63fa1c3ef062eaba6098d7fe2e4a310698
2025-01-17 04:29:54 +00:00
Jianwei Fan
4a555cd7f1 arm64: dts: rockchip: rk3576-evb1: image reverse move xvclk to sensor node
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Id6873da7d8da262ff138beb560eb608c2c6baf0a
2025-01-17 12:28:50 +08:00
Jianwei Fan
76f1a34c4e video: rockchip: vehicle: move xvclk ctrl to generic sensor
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: If2b0e2e9ace5ef1835807471d8488e05cd2b8652
2025-01-17 11:50:44 +08:00