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

Commit 20f5f00f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: tspp2: Reset TSPP2 core on device open"

parents 859e05ec b62c172f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#include <linux/msm_iommu_domains.h>
#include <mach/msm_bus.h>
#include <mach/msm_tspp2.h>
#include <linux/clk/msm-clk.h>

#define TSPP2_MODULUS_OP(val, mod)	((val) & ((mod) - 1))

@@ -2125,6 +2126,11 @@ int tspp2_device_open(u32 dev_id)
	if (rc)
		goto err_mutex_unlock;

	/* Reset TSPP2 core */
	clk_reset(device->tspp2_core_clk, CLK_RESET_ASSERT);
	udelay(10);
	clk_reset(device->tspp2_core_clk, CLK_RESET_DEASSERT);

	/* Start HW clocks before accessing registers */
	rc = tspp2_reg_clock_start(device);
	if (rc)