From: Martin K. Petersen Date: Tue, 25 Feb 2025 00:24:14 +0000 (-0500) Subject: Merge patch series "Initial support for RK3576 UFS controller" X-Git-Tag: v6.15-rc1~164^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adc4fb9c814b5d5cc6021022900fd5eb0b3c8165;p=thirdparty%2Fkernel%2Fstable.git Merge patch series "Initial support for RK3576 UFS controller" Shawn Lin says: This patchset adds initial UFS controller supprt for RK3576 SoC. Patch 1 is the dt-bindings. Patch 2-4 deal with rpm and spm support in advanced suggested by Ulf. Patch 5 exports two new APIs for host driver. Patch 6 and 7 are the host driver and dtsi support. Link: https://lore.kernel.org/r/1738736156-119203-1-git-send-email-shawn.lin@rock-chips.com Signed-off-by: Martin K. Petersen --- adc4fb9c814b5d5cc6021022900fd5eb0b3c8165 diff --cc drivers/ufs/core/ufshcd.c index d9bdac9dc34fe,40b28c61ef756..4e1e214fc5a25 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@@ -6246,13 -6201,8 +6233,13 @@@ static void ufshcd_exception_event_hand ufshcd_bkops_exception_event_handler(hba); if (status & hba->ee_drv_mask & MASK_EE_URGENT_TEMP) - ufshcd_temp_exception_event_handler(hba, status); + ufs_hwmon_notify_event(hba, status & MASK_EE_URGENT_TEMP); + if (status & hba->ee_drv_mask & MASK_EE_HEALTH_CRITICAL) { + hba->critical_health_count++; + sysfs_notify(&hba->dev->kobj, NULL, "critical_health"); + } + ufs_debugfs_exception_event(hba, status); } @@@ -9202,10 -9147,10 +9189,10 @@@ out if (!IS_ERR_OR_NULL(clki->clk) && clki->enabled) clk_disable_unprepare(clki->clk); } - } else if (!ret && on) { + } else if (!ret && on && hba->clk_gating.is_initialized) { scoped_guard(spinlock_irqsave, &hba->clk_gating.lock) hba->clk_gating.state = CLKS_ON; - trace_ufshcd_clk_gating(dev_name(hba->dev), + trace_ufshcd_clk_gating(hba, hba->clk_gating.state); }