[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-pci
Subject: pcibios_add_platform_entries usage
From: Sebastian Ott <sebott () linux ! vnet ! ibm ! com>
Date: 2014-03-28 18:41:09
Message-ID: alpine.LFD.2.11.1403281931410.1516 () denkbrett
[Download RAW message or body]
Hello Bjorn,
for pci on s390 we currently use pcibios_add_platform_entries to add
some arch specific attributes to pdevs. This has 2 downsides - it will
race with userspace which is triggered by udev events and expecting
these attributes (but that's a theoretical issue). More important to
me is that one cannot use attribute_groups with this. Both issues could
be addressed by using pdev->dev.groups and let the driver core handle
attribute creation.
So would it be ok if we set pdev->dev.groups in pcibios_add_device?
(It should be since it's not used by pci common code which uses bus_type,
dev_type, and class groups).
Regards,
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic