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 <pratikp@codeaurora.org>
This commit is contained in:
parent
2473dd7dc3
commit
5564253183
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue