aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-19 14:47:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-19 14:47:34 +0200
commit0a14df15052597de57e551eb38172dba9eb425d8 (patch)
tree1897a6667a038541f1891891ac68000a1a2804c6
parent572d0e278d7804a37234f2ad469bf25ee16f7e80 (diff)
downloadpatches-0a14df15052597de57e551eb38172dba9eb425d8.tar.gz
add metadata to pci_groups.patch so we can send it off!
-rw-r--r--pci_groups.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/pci_groups.patch b/pci_groups.patch
index e1fea044991a37..17ae49a93bd7b6 100644
--- a/pci_groups.patch
+++ b/pci_groups.patch
@@ -1,3 +1,30 @@
+From foo@baz Wed Jul 19 14:37:29 CEST 2017
+Date: Wed, 19 Jul 2017 14:37:29 +0200
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: PCI/IB: add support for pci driver attribute groups
+
+Some drivers (specifically the nes IB driver), want to create a lot of
+sysfs driver attributes. Instead of open-coding the creation and
+removal of these files (and getting it wrong btw), it's a better idea to
+let the driver core handle all of this logic for us.
+
+So add a new field to the pci driver structure, **groups, that allows
+pci drivers to specify an attribute group list it wishes to have created
+when it is registered with the driver core.
+
+Big bonus is now the driver doesn't race with userspace when the sysfs
+files are created vs. when the kobject is announced, so any script/tool
+that actually wanted to use these files will not have to poll waiting
+for them to show up.
+
+Cc: Faisal Latif <faisal.latif@intel.com>
+Cc: Doug Ledford <dledford@redhat.com>
+Cc: Sean Hefty <sean.hefty@intel.com>
+Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
+Cc: Bjorn Helgaas <bhelgaas@google.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
---
drivers/infiniband/hw/nes/nes.c | 69 +++++++++++++---------------------------
drivers/pci/pci-driver.c | 1