Thread (8 messages) 8 messages, 3 authors, 2026-03-06

Re: [PATCH v2 01/11] scsi: ufs: core: Introduce a new ufshcd vops negotiate_pwr_mode()

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2026-03-05 12:53:12
Also in: linux-arm-msm, linux-mediatek, linux-samsung-soc, linux-scsi, lkml

On 04/03/2026 14:53, Can Guo wrote:
quoted hunk ↗ jump to hunk
 {
 	int ret;
 
@@ -4747,6 +4745,22 @@ static int ufshcd_change_power_mode(struct ufs_hba *hba,
 	return ret;
 }
 
Missing kerneldoc.
+int ufshcd_change_power_mode(struct ufs_hba *hba,
+			     struct ufs_pa_layer_attr *pwr_mode)
+{
+	int ret;
+
+	ufshcd_vops_pwr_change_notify(hba, PRE_CHANGE, pwr_mode);
+
+	ret = ufshcd_dme_change_power_mode(hba, pwr_mode);
+
+	if (!ret)
+		ufshcd_vops_pwr_change_notify(hba, POST_CHANGE, pwr_mode);
+
+	return ret;
+}
+EXPORT_SYMBOL_GPL(ufshcd_change_power_mode);
+

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help