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

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

Merge "usb: phy: Keep regulators on in probe if EUD is enabled"

parents 4a558998 667a4a62
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 */
 */


#include <linux/module.h>
#include <linux/module.h>
@@ -799,6 +799,13 @@ static int msm_hsphy_probe(struct platform_device *pdev)


	msm_hsphy_create_debugfs(phy);
	msm_hsphy_create_debugfs(phy);


	/*
	 * EUD may be enable in boot loader and to keep EUD session alive across
	 * kernel boot till USB phy driver is initialized based on cable status,
	 * keep LDOs on here.
	 */
	if (phy->eud_enable_reg && readl_relaxed(phy->eud_enable_reg))
		msm_hsphy_enable_power(phy, true);
	return 0;
	return 0;


err_ret:
err_ret: