]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: altmodes/displayport: add irq_hpd to sysfs
authorRD Babiera <rdbabiera@google.com>
Mon, 23 Jun 2025 20:49:45 +0000 (20:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jun 2025 14:39:58 +0000 (15:39 +0100)
commit8b4f6fafed6cd9a36716dd4846f27cc543f52303
treecc1afba0aa93b7128de8a889010a56048fa21a7f
parent9962d0433a86c7d1222206dff1f8eafaab6faafa
usb: typec: altmodes/displayport: add irq_hpd to sysfs

Add irq_hpd sysfs node to displayport driver. This allows the userspace
to subscribe to irq events similar to how it can subscribe to changes in
hpd.

irq_hpd is read only and returns the number of irq events generated since
driver probe. pending_irq_hpd is added so that a sysfs_emit can be
generated if the HPD high event belonging to the same status message
is delayed until a successful configuration.

Signed-off-by: RD Babiera <rdbabiera@google.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250623204947.732915-2-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-driver-typec-displayport
drivers/usb/typec/altmodes/displayport.c