Skip to content

Commit f632a81

Browse files
committed
Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core and debugfs updates from Greg KH: "Here is the "big" driver core and debugfs changes for 5.3-rc1 It's a lot of different patches, all across the tree due to some api changes and lots of debugfs cleanups. Other than the debugfs cleanups, in this set of changes we have: - bus iteration function cleanups - scripts/get_abi.pl tool to display and parse Documentation/ABI entries in a simple way - cleanups to Documenatation/ABI/ entries to make them parse easier due to typos and other minor things - default_attrs use for some ktype users - driver model documentation file conversions to .rst - compressed firmware file loading - deferred probe fixes All of these have been in linux-next for a while, with a bunch of merge issues that Stephen has been patient with me for" * tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (102 commits) debugfs: make error message a bit more verbose orangefs: fix build warning from debugfs cleanup patch ubifs: fix build warning after debugfs cleanup patch driver: core: Allow subsystems to continue deferring probe drivers: base: cacheinfo: Ensure cpu hotplug work is done before Intel RDT arch_topology: Remove error messages on out-of-memory conditions lib: notifier-error-inject: no need to check return value of debugfs_create functions swiotlb: no need to check return value of debugfs_create functions ceph: no need to check return value of debugfs_create functions sunrpc: no need to check return value of debugfs_create functions ubifs: no need to check return value of debugfs_create functions orangefs: no need to check return value of debugfs_create functions nfsd: no need to check return value of debugfs_create functions lib: 842: no need to check return value of debugfs_create functions debugfs: provide pr_fmt() macro debugfs: log errors when something goes wrong drivers: s390/cio: Fix compilation warning about const qualifiers drivers: Add generic helper to match by of_node driver_find_device: Unify the match function with class_find_device() bus_find_device: Unify the match callback with class_find_device ...
2 parents ef8f3d4 + c33d442 commit f632a81

File tree

201 files changed

+1939
-2114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+1939
-2114
lines changed

Documentation/ABI/obsolete/sysfs-driver-hid-roccat-pyra

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description: It is possible to switch the cpi setting of the mouse with the
55
press of a button.
66
When read, this file returns the raw number of the actual cpi
77
setting reported by the mouse. This number has to be further
8-
processed to receive the real dpi value.
8+
processed to receive the real dpi value:
99

1010
VALUE DPI
1111
1 400

Documentation/ABI/stable/sysfs-driver-mlxreg-io

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
2-
asic_health
1+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/asic_health
32

43
Date: June 2018
54
KernelVersion: 4.19
@@ -9,9 +8,8 @@ Description: This file shows ASIC health status. The possible values are:
98

109
The files are read only.
1110

12-
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
13-
cpld1_version
14-
cpld2_version
11+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version
12+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version
1513
Date: June 2018
1614
KernelVersion: 4.19
1715
Contact: Vadim Pasternak <vadimpmellanox.com>
@@ -20,8 +18,7 @@ Description: These files show with which CPLD versions have been burned
2018

2119
The files are read only.
2220

23-
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
24-
fan_dir
21+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/fan_dir
2522

2623
Date: December 2018
2724
KernelVersion: 5.0
@@ -32,8 +29,7 @@ Description: This file shows the system fans direction:
3229

3330
The files are read only.
3431

35-
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
36-
jtag_enable
32+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable
3733

3834
Date: November 2018
3935
KernelVersion: 5.0
@@ -43,8 +39,7 @@ Description: These files show with which CPLD versions have been burned
4339

4440
The files are read only.
4541

46-
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
47-
jtag_enable
42+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable
4843

4944
Date: November 2018
5045
KernelVersion: 5.0
@@ -87,16 +82,15 @@ Description: These files allow asserting system power cycling, switching
8782

8883
The files are write only.
8984

90-
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
91-
reset_aux_pwr_or_ref
92-
reset_asic_thermal
93-
reset_hotswap_or_halt
94-
reset_hotswap_or_wd
95-
reset_fw_reset
96-
reset_long_pb
97-
reset_main_pwr_fail
98-
reset_short_pb
99-
reset_sw_reset
85+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_aux_pwr_or_ref
86+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_asic_thermal
87+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_halt
88+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_hotswap_or_wd
89+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_fw_reset
90+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_long_pb
91+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_main_pwr_fail
92+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_short_pb
93+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_sw_reset
10094
Date: June 2018
10195
KernelVersion: 4.19
10296
Contact: Vadim Pasternak <vadimpmellanox.com>
@@ -110,11 +104,10 @@ Description: These files show the system reset cause, as following: power
110104

111105
The files are read only.
112106

113-
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/
114-
reset_comex_pwr_fail
115-
reset_from_comex
116-
reset_system
117-
reset_voltmon_upgrade_fail
107+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_comex_pwr_fail
108+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_from_comex
109+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_system
110+
What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/reset_voltmon_upgrade_fail
118111

119112
Date: November 2018
120113
KernelVersion: 5.0

Documentation/ABI/testing/pstore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Where: /sys/fs/pstore/... (or /dev/pstore/...)
1+
What: /sys/fs/pstore/... (or /dev/pstore/...)
22
Date: March 2011
3-
Kernel Version: 2.6.39
3+
KernelVersion: 2.6.39
44
55
Description: Generic interface to platform dependent persistent storage.
66

Documentation/ABI/testing/sysfs-bus-event_source-devices-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Where: /sys/bus/event_source/devices/<dev>/format
1+
What: /sys/bus/event_source/devices/<dev>/format
22
Date: January 2012
3-
Kernel Version: 3.3
3+
KernelVersion: 3.3
44
Contact: Jiri Olsa <[email protected]>
55
Description:
66
Attribute group to describe the magic bits that go into

Documentation/ABI/testing/sysfs-bus-i2c-devices-hm6352

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
Where: /sys/bus/i2c/devices/.../heading0_input
1+
What: /sys/bus/i2c/devices/.../heading0_input
22
Date: April 2010
3-
Kernel Version: 2.6.36?
3+
KernelVersion: 2.6.36?
44
55
Description: Reports the current heading from the compass as a floating
66
point value in degrees.
77

8-
Where: /sys/bus/i2c/devices/.../power_state
8+
What: /sys/bus/i2c/devices/.../power_state
99
Date: April 2010
10-
Kernel Version: 2.6.36?
10+
KernelVersion: 2.6.36?
1111
1212
Description: Sets the power state of the device. 0 sets the device into
1313
sleep mode, 1 wakes it up.
1414

15-
Where: /sys/bus/i2c/devices/.../calibration
15+
What: /sys/bus/i2c/devices/.../calibration
1616
Date: April 2010
17-
Kernel Version: 2.6.36?
17+
KernelVersion: 2.6.36?
1818
1919
Description: Sets the calibration on or off (1 = on, 0 = off). See the
2020
chip data sheet.

Documentation/ABI/testing/sysfs-bus-iio-distance-srf08

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
What /sys/bus/iio/devices/iio:deviceX/sensor_sensitivity
1+
What: /sys/bus/iio/devices/iio:deviceX/sensor_sensitivity
22
Date: January 2017
33
KernelVersion: 4.11
44
55
Description:
66
Show or set the gain boost of the amp, from 0-31 range.
77
default 31
88

9-
What /sys/bus/iio/devices/iio:deviceX/sensor_max_range
9+
What: /sys/bus/iio/devices/iio:deviceX/sensor_max_range
1010
Date: January 2017
1111
KernelVersion: 4.11
1212

Documentation/ABI/testing/sysfs-bus-iio-proximity-as3935

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
What /sys/bus/iio/devices/iio:deviceX/in_proximity_input
1+
What: /sys/bus/iio/devices/iio:deviceX/in_proximity_input
22
Date: March 2014
33
KernelVersion: 3.15
44
Contact: Matt Ranostay <[email protected]>
55
Description:
66
Get the current distance in meters of storm (1km steps)
77
1000-40000 = distance in meters
88

9-
What /sys/bus/iio/devices/iio:deviceX/sensor_sensitivity
9+
What: /sys/bus/iio/devices/iio:deviceX/sensor_sensitivity
1010
Date: March 2014
1111
KernelVersion: 3.15
1212
Contact: Matt Ranostay <[email protected]>

Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ errors may be "seen" / reported by the link partner and not the
99
problematic endpoint itself (which may report all counters as 0 as it never
1010
saw any problems).
1111

12-
Where: /sys/bus/pci/devices/<dev>/aer_dev_correctable
12+
What: /sys/bus/pci/devices/<dev>/aer_dev_correctable
1313
Date: July 2018
14-
Kernel Version: 4.19.0
14+
KernelVersion: 4.19.0
1515
1616
Description: List of correctable errors seen and reported by this
1717
PCI device using ERR_COR. Note that since multiple errors may
@@ -31,9 +31,9 @@ Header Log Overflow 0
3131
TOTAL_ERR_COR 2
3232
-------------------------------------------------------------------------
3333

34-
Where: /sys/bus/pci/devices/<dev>/aer_dev_fatal
34+
What: /sys/bus/pci/devices/<dev>/aer_dev_fatal
3535
Date: July 2018
36-
Kernel Version: 4.19.0
36+
KernelVersion: 4.19.0
3737
3838
Description: List of uncorrectable fatal errors seen and reported by this
3939
PCI device using ERR_FATAL. Note that since multiple errors may
@@ -62,9 +62,9 @@ TLP Prefix Blocked Error 0
6262
TOTAL_ERR_FATAL 0
6363
-------------------------------------------------------------------------
6464

65-
Where: /sys/bus/pci/devices/<dev>/aer_dev_nonfatal
65+
What: /sys/bus/pci/devices/<dev>/aer_dev_nonfatal
6666
Date: July 2018
67-
Kernel Version: 4.19.0
67+
KernelVersion: 4.19.0
6868
6969
Description: List of uncorrectable nonfatal errors seen and reported by this
7070
PCI device using ERR_NONFATAL. Note that since multiple errors
@@ -103,20 +103,20 @@ collectors) that are AER capable. These indicate the number of error messages as
103103
device, so these counters include them and are thus cumulative of all the error
104104
messages on the PCI hierarchy originating at that root port.
105105

106-
Where: /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_cor
106+
What: /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_cor
107107
Date: July 2018
108-
Kernel Version: 4.19.0
108+
KernelVersion: 4.19.0
109109
110110
Description: Total number of ERR_COR messages reported to rootport.
111111

112-
Where: /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_fatal
112+
What: /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_fatal
113113
Date: July 2018
114-
Kernel Version: 4.19.0
114+
KernelVersion: 4.19.0
115115
116116
Description: Total number of ERR_FATAL messages reported to rootport.
117117

118-
Where: /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_nonfatal
118+
What: /sys/bus/pci/devices/<dev>/aer_stats/aer_rootport_total_err_nonfatal
119119
Date: July 2018
120-
Kernel Version: 4.19.0
120+
KernelVersion: 4.19.0
121121
122122
Description: Total number of ERR_NONFATAL messages reported to rootport.

Documentation/ABI/testing/sysfs-bus-pci-devices-cciss

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/model
1+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/model
22
Date: March 2009
3-
Kernel Version: 2.6.30
3+
KernelVersion: 2.6.30
44
55
Description: Displays the SCSI INQUIRY page 0 model for logical drive
66
Y of controller X.
77

8-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/rev
8+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/rev
99
Date: March 2009
10-
Kernel Version: 2.6.30
10+
KernelVersion: 2.6.30
1111
1212
Description: Displays the SCSI INQUIRY page 0 revision for logical
1313
drive Y of controller X.
1414

15-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/unique_id
15+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/unique_id
1616
Date: March 2009
17-
Kernel Version: 2.6.30
17+
KernelVersion: 2.6.30
1818
1919
Description: Displays the SCSI INQUIRY page 83 serial number for logical
2020
drive Y of controller X.
2121

22-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/vendor
22+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/vendor
2323
Date: March 2009
24-
Kernel Version: 2.6.30
24+
KernelVersion: 2.6.30
2525
2626
Description: Displays the SCSI INQUIRY page 0 vendor for logical drive
2727
Y of controller X.
2828

29-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/block:cciss!cXdY
29+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/block:cciss!cXdY
3030
Date: March 2009
31-
Kernel Version: 2.6.30
31+
KernelVersion: 2.6.30
3232
3333
Description: A symbolic link to /sys/block/cciss!cXdY
3434

35-
Where: /sys/bus/pci/devices/<dev>/ccissX/rescan
35+
What: /sys/bus/pci/devices/<dev>/ccissX/rescan
3636
Date: August 2009
37-
Kernel Version: 2.6.31
37+
KernelVersion: 2.6.31
3838
3939
Description: Kicks of a rescan of the controller to discover logical
4040
drive topology changes.
4141

42-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/lunid
42+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/lunid
4343
Date: August 2009
44-
Kernel Version: 2.6.31
44+
KernelVersion: 2.6.31
4545
4646
Description: Displays the 8-byte LUN ID used to address logical
4747
drive Y of controller X.
4848

49-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/raid_level
49+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/raid_level
5050
Date: August 2009
51-
Kernel Version: 2.6.31
51+
KernelVersion: 2.6.31
5252
5353
Description: Displays the RAID level of logical drive Y of
5454
controller X.
5555

56-
Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/usage_count
56+
What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/usage_count
5757
Date: August 2009
58-
Kernel Version: 2.6.31
58+
KernelVersion: 2.6.31
5959
6060
Description: Displays the usage count (number of opens) of logical drive Y
6161
of controller X.
6262

63-
Where: /sys/bus/pci/devices/<dev>/ccissX/resettable
63+
What: /sys/bus/pci/devices/<dev>/ccissX/resettable
6464
Date: February 2011
65-
Kernel Version: 2.6.38
65+
KernelVersion: 2.6.38
6666
6767
Description: Value of 1 indicates the controller can honor the reset_devices
6868
kernel parameter. Value of 0 indicates reset_devices cannot be
@@ -71,9 +71,9 @@ Description: Value of 1 indicates the controller can honor the reset_devices
7171
a dump device, as kdump requires resetting the device in order
7272
to work reliably.
7373

74-
Where: /sys/bus/pci/devices/<dev>/ccissX/transport_mode
74+
What: /sys/bus/pci/devices/<dev>/ccissX/transport_mode
7575
Date: July 2011
76-
Kernel Version: 3.0
76+
KernelVersion: 3.0
7777
7878
Description: Value of "simple" indicates that the controller has been placed
7979
in "simple mode". Value of "performant" indicates that the

Documentation/ABI/testing/sysfs-bus-usb-devices-usbsevseg

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
Where: /sys/bus/usb/.../powered
1+
What: /sys/bus/usb/.../powered
22
Date: August 2008
3-
Kernel Version: 2.6.26
3+
KernelVersion: 2.6.26
44
Contact: Harrison Metzger <[email protected]>
55
Description: Controls whether the device's display will powered.
66
A value of 0 is off and a non-zero value is on.
77

8-
Where: /sys/bus/usb/.../mode_msb
9-
Where: /sys/bus/usb/.../mode_lsb
8+
What: /sys/bus/usb/.../mode_msb
9+
What: /sys/bus/usb/.../mode_lsb
1010
Date: August 2008
11-
Kernel Version: 2.6.26
11+
KernelVersion: 2.6.26
1212
Contact: Harrison Metzger <[email protected]>
1313
Description: Controls the devices display mode.
1414
For a 6 character display the values are
1515
MSB 0x06; LSB 0x3F, and
1616
for an 8 character display the values are
1717
MSB 0x08; LSB 0xFF.
1818

19-
Where: /sys/bus/usb/.../textmode
19+
What: /sys/bus/usb/.../textmode
2020
Date: August 2008
21-
Kernel Version: 2.6.26
21+
KernelVersion: 2.6.26
2222
Contact: Harrison Metzger <[email protected]>
2323
Description: Controls the way the device interprets its text buffer.
2424
raw: each character controls its segment manually
2525
hex: each character is between 0-15
2626
ascii: each character is between '0'-'9' and 'A'-'F'.
2727

28-
Where: /sys/bus/usb/.../text
28+
What: /sys/bus/usb/.../text
2929
Date: August 2008
30-
Kernel Version: 2.6.26
30+
KernelVersion: 2.6.26
3131
Contact: Harrison Metzger <[email protected]>
3232
Description: The text (or data) for the device to display
3333

34-
Where: /sys/bus/usb/.../decimals
34+
What: /sys/bus/usb/.../decimals
3535
Date: August 2008
36-
Kernel Version: 2.6.26
36+
KernelVersion: 2.6.26
3737
Contact: Harrison Metzger <[email protected]>
3838
Description: Controls the decimal places on the device.
3939
To set the nth decimal place, give this field

0 commit comments

Comments
 (0)