diff options
| author | 2026-09-15 15:49:52 +0200 | |
|---|---|---|
| committer | 2026-10-03 10:43:50 +0200 | |
| commit | 17cd5e026a6e806b811f915b8e02a8b9d14f6f41 (patch) | |
| tree | 67c5be0d65fc2e9ed9eacfc6fc828e54dd6561e7 /scripts/Makefile.thinlto | |
| parent | phy: rockchip: usbdp: Fix devm_clk_bulk_get_all check (diff) | |
phy: rockchip: usbdp: Handle missing clock-names DT property gracefully
The rk_udphy_clk_init() function would currently try to do a strncmp for
a NULL pointer, if DT specifies 'clocks' property, but no 'clock-names'
property. Fix this by making sure the clock has an id string set.
Note that DT binding requires setting clock-names, so this is only a
problem when booting a non-compliant device tree.
Fixes: 2f70bbddeb45 ("phy: rockchip: add usbdp combo phy driver")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/message/20260619154349.071321F000E9%40smtp.kernel.org
Tested-by: Igor Paunovic <royalnet026@gmail.com> # Orange Pi 5 Plus
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20260915-rockchip-usbdp-cleanup-v15-5-80e2c11d1ce8@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
