![]() Some of the device files are required to be user accessible for PSM while most should remain accessible only by root. Add a parameter to hfi1_cdev_init which controls if the user should have access to this device which places it in a different class with the appropriate devnode callback. In addition set the devnode call back for the existing class to be a bit more explicit for those permissions. Finally remove the unnecessary null check before class_destroy Tested-by: Donald Dutile <ddutile@redhat.com> Signed-off-by: Haralanov, Mitko (mitko.haralanov@intel.com) Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com> |
||
---|---|---|
.. | ||
chip.c | ||
chip.h | ||
chip_registers.h | ||
common.h | ||
cq.c | ||
debugfs.c | ||
debugfs.h | ||
device.c | ||
device.h | ||
diag.c | ||
dma.c | ||
driver.c | ||
eprom.c | ||
eprom.h | ||
file_ops.c | ||
firmware.c | ||
hfi.h | ||
init.c | ||
intr.c | ||
iowait.h | ||
Kconfig | ||
keys.c | ||
mad.c | ||
mad.h | ||
Makefile | ||
mmap.c | ||
mr.c | ||
opa_compat.h | ||
pcie.c | ||
pio.c | ||
pio.h | ||
pio_copy.c | ||
platform_config.h | ||
qp.c | ||
qp.h | ||
qsfp.c | ||
qsfp.h | ||
rc.c | ||
ruc.c | ||
sdma.c | ||
sdma.h | ||
srq.c | ||
sysfs.c | ||
TODO | ||
trace.c | ||
trace.h | ||
twsi.c | ||
twsi.h | ||
uc.c | ||
ud.c | ||
user_pages.c | ||
user_sdma.c | ||
user_sdma.h | ||
verbs.c | ||
verbs.h | ||
verbs_mcast.c |