linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 1/5] input/serio/i8042: Attach fwnode to serio i8042 kbd device
@ 2020-03-23 23:45 Rajat Jain
  2020-03-23 23:45 ` [PATCH RESEND 2/5] Input: atkbd: Expose function row physical map to userspace Rajat Jain
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Rajat Jain @ 2020-03-23 23:45 UTC (permalink / raw)
  To: Dmitry Torokhov, dtor, Rob Herring, Mark Rutland, Rajat Jain,
	Kate Stewart, Enrico Weigelt, Greg Kroah-Hartman,
	Thomas Gleixner, Allison Randal, Rafael J. Wysocki, Stephen Boyd,
	linux-input, devicetree, linux-kernel, furquan, dlaurie, bleung,
	zentaro, dbehr
  Cc: rajatxjain

Attach the firmware node to the serio i8042 kbd device so that device
properties can be passed from the firmware.

Signed-off-by: Rajat Jain <rajatja@google.com>
Change-Id: I36032f4bdee1dc52f26b57734068fd0ee7a6db0b
---
 drivers/input/serio/i8042-x86ia64io.h | 1 +
 drivers/input/serio/i8042.c           | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h
index dc974c288e880..ed9ec4310d976 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -927,6 +927,7 @@ static int i8042_pnp_kbd_probe(struct pnp_dev *dev, const struct pnp_device_id *
 	}
 	i8042_pnp_id_to_string(dev->id, i8042_kbd_firmware_id,
 			       sizeof(i8042_kbd_firmware_id));
+	i8042_kbd_fwnode = dev_fwnode(&dev->dev);
 
 	/* Keyboard ports are always supposed to be wakeup-enabled */
 	device_set_wakeup_enable(&dev->dev, true);
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 20ff2bed3917a..0dddf273afd94 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -21,6 +21,7 @@
 #include <linux/i8042.h>
 #include <linux/slab.h>
 #include <linux/suspend.h>
+#include <linux/property.h>
 
 #include <asm/io.h>
 
@@ -124,6 +125,7 @@ MODULE_PARM_DESC(unmask_kbd_data, "Unconditional enable (may reveal sensitive da
 static bool i8042_bypass_aux_irq_test;
 static char i8042_kbd_firmware_id[128];
 static char i8042_aux_firmware_id[128];
+static struct fwnode_handle *i8042_kbd_fwnode;
 
 #include "i8042.h"
 
@@ -1335,6 +1337,7 @@ static int __init i8042_create_kbd_port(void)
 	strlcpy(serio->phys, I8042_KBD_PHYS_DESC, sizeof(serio->phys));
 	strlcpy(serio->firmware_id, i8042_kbd_firmware_id,
 		sizeof(serio->firmware_id));
+	set_primary_fwnode(&serio->dev, i8042_kbd_fwnode);
 
 	port->serio = serio;
 	port->irq = I8042_KBD_IRQ;
-- 
2.25.1.696.g5e7596f4ac-goog


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

end of thread, other threads:[~2020-03-24 12:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 23:45 [PATCH RESEND 1/5] input/serio/i8042: Attach fwnode to serio i8042 kbd device Rajat Jain
2020-03-23 23:45 ` [PATCH RESEND 2/5] Input: atkbd: Expose function row physical map to userspace Rajat Jain
2020-03-23 23:45 ` [PATCH RESEND 3/5] dt-bindings: input/atkbd.txt: Add binding for "function-row-physmap" Rajat Jain
2020-03-23 23:45 ` [PATCH RESEND 4/5] Input: atkbd: Receive and use physcode->keycode mapping from FW Rajat Jain
2020-03-23 23:45 ` [PATCH RESEND 5/5] dt-bindings: input/atkbd.txt: Add binding info for "keymap" property Rajat Jain
2020-03-24 11:50 ` [PATCH RESEND 1/5] input/serio/i8042: Attach fwnode to serio i8042 kbd device Greg Kroah-Hartman
2020-03-24 12:20   ` Rajat Jain

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).