From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f171.google.com ([209.85.223.171]:42558 "EHLO mail-ie0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754414AbaIVTRS (ORCPT ); Mon, 22 Sep 2014 15:17:18 -0400 Received: by mail-ie0-f171.google.com with SMTP id rd18so3277638iec.2 for ; Mon, 22 Sep 2014 12:17:17 -0700 (PDT) Date: Mon, 22 Sep 2014 13:17:14 -0600 From: Bjorn Helgaas To: Ricardo Ribalda Delgado Cc: gregkh@linuxfoundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pci/pci-sysfs: Set pci interface in uppercase Message-ID: <20140922191714.GC1880@google.com> References: <1409144277-23379-1-git-send-email-ricardo.ribalda@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1409144277-23379-1-git-send-email-ricardo.ribalda@gmail.com> Sender: linux-pci-owner@vger.kernel.org List-ID: On Wed, Aug 27, 2014 at 02:57:57PM +0200, Ricardo Ribalda Delgado wrote: > 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 Applied to pci/enumeration for v3.18, with Greg's ack and marked for stable. > --- > 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 >