Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 300d866b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Fix possible unclocked register access to AHIT in probe path"

parents 44496944 e2f06627
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 *
 * This code is based on drivers/scsi/ufs/ufshcd.c
 * Copyright (C) 2011-2013 Samsung India Software Operations
 * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
 *
 * Authors:
 *	Santosh Yaraganavi <santosh.sy@samsung.com>
@@ -9104,6 +9104,12 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)

	ufshcd_wb_config(hba);

	/*
	 * Enable auto hibern8 if supported, after full host and
	 * device initialization.
	 */
	ufshcd_set_auto_hibern8_timer(hba);

	/*
	 * If we are in error handling context or in power management callbacks
	 * context, no need to scan the host
@@ -9142,12 +9148,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
		pm_runtime_put_sync(hba->dev);
	}

	/*
	 * Enable auto hibern8 if supported, after full host and
	 * device initialization.
	 */
	ufshcd_set_auto_hibern8_timer(hba);

out:
	if (ret) {
		ufshcd_set_ufs_dev_poweroff(hba);