linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: qcom_rpm: write fw_version to CTRL_REG
@ 2018-11-14 22:42 Jonathan Marek
  2018-11-15  8:31 ` Lee Jones
  2018-11-19 19:53 ` [PATCH v2] " Jonathan Marek
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Marek @ 2018-11-14 22:42 UTC (permalink / raw)
  To: bjorn.andersson; +Cc: Lee Jones, open list

downstream driver does this, and it is required on msm8060 (hp touchpad)

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
---
 drivers/mfd/qcom_rpm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mfd/qcom_rpm.c b/drivers/mfd/qcom_rpm.c
index 52fafea06067..8d420c37b2a6 100644
--- a/drivers/mfd/qcom_rpm.c
+++ b/drivers/mfd/qcom_rpm.c
@@ -638,6 +638,10 @@ static int qcom_rpm_probe(struct platform_device *pdev)
 		return -EFAULT;
 	}
 
+	writel(fw_version[0], RPM_CTRL_REG(rpm, 0));
+	writel(fw_version[1], RPM_CTRL_REG(rpm, 1));
+	writel(fw_version[2], RPM_CTRL_REG(rpm, 2));
+
 	dev_info(&pdev->dev, "RPM firmware %u.%u.%u\n", fw_version[0],
 							fw_version[1],
 							fw_version[2]);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-27 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-14 22:42 [PATCH] mfd: qcom_rpm: write fw_version to CTRL_REG Jonathan Marek
2018-11-15  8:31 ` Lee Jones
2018-11-19 19:53 ` [PATCH v2] " Jonathan Marek
2018-11-27 13:03   ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).