lkml.org 
[lkml]   [2013]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [char-misc-next 2/3] mei: adding sysfs fw_status attribute
On Mon, Jul 29, 2013 at 11:08:52PM +0000, Winkler, Tomas wrote:
> How do I add new device specific sysfs in non-race way if my entry
> point is the pci probe function.

You do it in the device creation for the device you add below the PCI
device in sysfs, by setting the groups field in the device.

You don't create files in the sysfs directory for the PCI device itself,
those are owned by the PCI bus core.

This is why you are your own "bus" here, use it :)

If you still have questions, how about we take it to code, post what you
have, and I'll see what needs to be changed.

hope this helps,

greg k-h


\
 
 \ /
  Last update: 2013-07-30 01:41    [W:0.898 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site