Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1503445

[PATCH v4 2/7] Input: synaptics-rmi4 - add a couple of debug lines

From Nick Dyer <nick@shmanahar.org>
Newsgroups linux.kernel
Subject [PATCH v4 2/7] Input: synaptics-rmi4 - add a couple of debug lines
Date 2016-10-19 01:30 +0200
Message-ID <stLZv-Db-17@gated-at.bofh.it> (permalink)
References <stLZv-Db-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Nick Dyer <nick@shmanahar.org>
---
 drivers/input/rmi4/rmi_bus.c    | 3 +++
 drivers/input/rmi4/rmi_driver.c | 1 +
 2 files changed, 4 insertions(+)

diff --git a/drivers/input/rmi4/rmi_bus.c b/drivers/input/rmi4/rmi_bus.c
index ef8c747..3c6a1b5 100644
--- a/drivers/input/rmi4/rmi_bus.c
+++ b/drivers/input/rmi4/rmi_bus.c
@@ -230,6 +230,9 @@ int rmi_register_function(struct rmi_function *fn)
 
 void rmi_unregister_function(struct rmi_function *fn)
 {
+	rmi_dbg(RMI_DEBUG_CORE, &fn->dev, "Unregistering F%02X.\n",
+			fn->fd.function_number);
+
 	device_del(&fn->dev);
 	of_node_put(fn->dev.of_node);
 	put_device(&fn->dev);
diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
index 63c9e22..adb3ee8 100644
--- a/drivers/input/rmi4/rmi_driver.c
+++ b/drivers/input/rmi4/rmi_driver.c
@@ -722,6 +722,7 @@ static int rmi_initial_reset(struct rmi_device *rmi_dev,
 			return RMI_SCAN_DONE;
 		}
 
+		rmi_dbg(RMI_DEBUG_CORE, &rmi_dev->dev, "Sending reset\n");
 		error = rmi_write_block(rmi_dev, cmd_addr, &cmd_buf, 1);
 		if (error) {
 			dev_err(&rmi_dev->dev,
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 1/7] Input: synaptics-rmi4 - factor out functions from probe Nick Dyer <nick@shmanahar.org> - 2016-10-19 01:30 +0200
  [PATCH v4 6/7] Input: synaptics-rmi4 - add sysfs interfaces for hardware IDs Nick Dyer <nick@shmanahar.org> - 2016-10-19 01:30 +0200
  [PATCH v4 2/7] Input: synaptics-rmi4 - add a couple of debug lines Nick Dyer <nick@shmanahar.org> - 2016-10-19 01:30 +0200
  [PATCH v4 5/7] Input: synaptics-rmi4 - add sysfs attribute update_fw_status Nick Dyer <nick@shmanahar.org> - 2016-10-19 01:30 +0200
  [PATCH v4 7/7] Input: synaptics-rmi4 - add package_id sysfs attribute Nick Dyer <nick@shmanahar.org> - 2016-10-19 01:30 +0200

csiph-web