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

Commit 2966cf8c authored by Mao Jinlong's avatar Mao Jinlong
Browse files

coresight: Add spin_lock_init for funnel and replicator



Add spin_lock_init for funnel and replicator to avoid spinlock issue.

Change-Id: I6cb14bfd363e8d92070af2e0e99e60eaf45d923b
Signed-off-by: default avatarMao Jinlong <jinlmao@codeaurora.org>
parent 7855a48f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2011-2012,2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2012,2017, 2020, The Linux Foundation. All rights reserved.
 *
 * Description: CoreSight Funnel driver
 */
@@ -286,6 +286,8 @@ static int funnel_probe(struct device *dev, struct resource *res)

	dev_set_drvdata(dev, drvdata);

	spin_lock_init(&drvdata->spinlock);

	pdata = coresight_get_platform_data(dev);
	if (IS_ERR(pdata)) {
		ret = PTR_ERR(pdata);
+3 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2011-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2015, 2020, The Linux Foundation. All rights reserved.
 *
 * Description: CoreSight Replicator driver
 */
@@ -241,6 +241,8 @@ static int replicator_probe(struct device *dev, struct resource *res)

	dev_set_drvdata(dev, drvdata);

	spin_lock_init(&drvdata->spinlock);

	pdata = coresight_get_platform_data(dev);
	if (IS_ERR(pdata)) {
		ret = PTR_ERR(pdata);