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

Commit 3089b337 authored by Lina Iyer's avatar Lina Iyer
Browse files

drivers: qcom: rpmh-rsc: save drv* for debug



Save RSC controller drv* in local static store for ease of debug.

Change-Id: I1bb4da816ee5887ec895353f4e3d24008c3b1c41
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 13174698
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -67,6 +67,8 @@
#define RSC_PDC_DATA_OFFSET		0x08

bool rpmh_standalone;
static struct rsc_drv *__rsc_drv[2];
static int __rsc_count;

static u32 read_tcs_reg(struct rsc_drv *drv, int reg, int tcs_id, int cmd_id)
{
@@ -869,6 +871,7 @@ static int rpmh_rsc_probe(struct platform_device *pdev)
	INIT_LIST_HEAD(&drv->client.batch_cache);

	dev_set_drvdata(&pdev->dev, drv);
	__rsc_drv[__rsc_count++] = drv;

	return devm_of_platform_populate(&pdev->dev);
}