linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pci/pci-sysfs: Set pci interface in uppercase
@ 2014-08-27 12:57 Ricardo Ribalda Delgado
  2014-08-27 20:23 ` Greg KH
  2014-09-22 19:17 ` Bjorn Helgaas
  0 siblings, 2 replies; 10+ messages in thread
From: Ricardo Ribalda Delgado @ 2014-08-27 12:57 UTC (permalink / raw)
  To: gregkh, Bjorn Helgaas, linux-pci, linux-kernel; +Cc: Ricardo Ribalda Delgado

There is a missmatch between the way file2alias generates the modalias
and the way the pci driver generates it.

Some implementations of modprobe will fail to load the driver for a pci
device automatically when the pci interface is defined on the driver. As
one will be in uppercase and the other in lowercase.

Fortunatelly not many drivers define this.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
 drivers/pci/pci-sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 9ff0a90..76ef791 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -177,7 +177,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
 {
 	struct pci_dev *pci_dev = to_pci_dev(dev);
 
-	return sprintf(buf, "pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x\n",
+	return sprintf(buf, "pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02X\n",
 		       pci_dev->vendor, pci_dev->device,
 		       pci_dev->subsystem_vendor, pci_dev->subsystem_device,
 		       (u8)(pci_dev->class >> 16), (u8)(pci_dev->class >> 8),
-- 
2.1.0


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

end of thread, other threads:[~2014-09-22 19:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27 12:57 [PATCH] pci/pci-sysfs: Set pci interface in uppercase Ricardo Ribalda Delgado
2014-08-27 20:23 ` Greg KH
2014-08-27 20:51   ` Greg KH
2014-08-27 20:56     ` Ricardo Ribalda Delgado
2014-08-27 21:04       ` Greg KH
2014-08-27 21:10         ` Ricardo Ribalda Delgado
2014-08-27 23:41           ` Greg KH
2014-09-02 19:22     ` Ricardo Ribalda Delgado
2014-09-02 20:13       ` Bjorn Helgaas
2014-09-22 19:17 ` Bjorn Helgaas

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