From 5564253183966d5e15441917ded36205a8635e43 Mon Sep 17 00:00:00 2001 From: Pratik Patel Date: Wed, 15 Apr 2015 12:11:09 -0700 Subject: [PATCH] coresight: disable spmi handshake while enabling qpdi SPMI handshake configuration was added on newer chips but isn't quite supported. Ensure it remains disabled while enabling or disabling qpdi feature to avoid side effects on qpdi functionality. Change-Id: I222ec1c42b483208ac640a9039b6eb042a6bae79 Signed-off-by: Pratik Patel --- drivers/coresight/coresight-qpdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/coresight/coresight-qpdi.c b/drivers/coresight/coresight-qpdi.c index 6636aaf92192..9ace44922fdf 100644 --- a/drivers/coresight/coresight-qpdi.c +++ b/drivers/coresight/coresight-qpdi.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -127,7 +127,7 @@ static int qpdi_enable(struct qpdi_drvdata *drvdata) if (ret) goto err; - qpdi_writel(drvdata, 0, QPDI_DISABLE_CFG); + qpdi_writel(drvdata, 0x2, QPDI_DISABLE_CFG); drvdata->enable = true; dev_info(drvdata->dev, "qpdi enabled\n"); @@ -159,7 +159,7 @@ static void qpdi_disable(struct qpdi_drvdata *drvdata) return; } - qpdi_writel(drvdata, 1, QPDI_DISABLE_CFG); + qpdi_writel(drvdata, 0x3, QPDI_DISABLE_CFG); __qpdi_disable(drvdata);