Commit 1785d116 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull char/misc driver updates from Greg KH:
 "Here is the large set of char and misc and other driver subsystem
  patches for 5.9-rc1. Lots of new driver submissions in here, and
  cleanups and features for existing drivers.

  Highlights are:
   - habanalabs driver updates
   - coresight driver updates
   - nvmem driver updates
   - huge number of "W=1" build warning cleanups from Lee Jones
   - dyndbg updates
   - virtbox driver fixes and updates
   - soundwire driver updates
   - mei driver updates
   - phy driver updates
   - fpga driver updates
   - lots of smaller individual misc/char driver cleanups and fixes

  Full details are in the shortlog.

  All of these have been in linux-next with no reported issues"

* tag 'char-misc-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (322 commits)
  habanalabs: remove unused but set variable 'ctx_asid'
  nvmem: qcom-spmi-sdam: Enable multiple devices
  dt-bindings: nvmem: SID: add binding for A100's SID controller
  nvmem: update Kconfig description
  nvmem: qfprom: Add fuse blowing support
  dt-bindings: nvmem: Add properties needed for blowing fuses
  dt-bindings: nvmem: qfprom: Convert to yaml
  nvmem: qfprom: use NVMEM_DEVID_AUTO for multiple instances
  nvmem: core: add support to auto devid
  nvmem: core: Add nvmem_cell_read_u8()
  nvmem: core: Grammar fixes for help text
  nvmem: sc27xx: add sc2730 efuse support
  nvmem: Enforce nvmem stride in the sysfs interface
  MAINTAINERS: Add git tree for NVMEM FRAMEWORK
  nvmem: sprd: Fix return value of sprd_efuse_probe()
  drivers: android: Fix the SPDX comment style
  drivers: android: Fix a variable declaration coding style issue
  drivers: android: Remove braces for a single statement if-else block
  drivers: android: Remove the use of else after return
  drivers: android: Fix a variable declaration coding style issue
  ...
parents 060a72a2 22362aa3
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -90,3 +90,16 @@ Description: Display trc status register content
		The ME FW writes Glitch Detection HW (TRC)
		The ME FW writes Glitch Detection HW (TRC)
		status information into trc status register
		status information into trc status register
		for BIOS and OS to monitor fw health.
		for BIOS and OS to monitor fw health.

What:		/sys/class/mei/meiN/kind
Date:		Jul 2020
KernelVersion:	5.8
Contact:	Tomas Winkler <tomas.winkler@intel.com>
Description:	Display kind of the device

		Generic devices are marked as "mei"
		while special purpose have their own
		names.
		Available options:
		- mei:  generic mei device.
		- itouch:  itouch (ipts) mei device.
+36 −0
Original line number Original line Diff line number Diff line
@@ -126,3 +126,39 @@ Description:
			1	no action
			1	no action
			0	firmware record the notify code defined
			0	firmware record the notify code defined
				in b[15:0].
				in b[15:0].

What:		/sys/devices/platform/stratix10-rsu.0/dcmf0
Date:		June 2020
KernelVersion:	5.8
Contact:	Richard Gong <richard.gong@linux.intel.com>
Description:
		(RO) Decision firmware copy 0 version information.

What:		/sys/devices/platform/stratix10-rsu.0/dcmf1
Date:		June 2020
KernelVersion:	5.8
Contact:	Richard Gong <richard.gong@linux.intel.com>
Description:
		(RO) Decision firmware copy 1 version information.

What:		/sys/devices/platform/stratix10-rsu.0/dcmf2
Date:		June 2020
KernelVersion:	5.8
Contact:	Richard Gong <richard.gong@linux.intel.com>
Description:
		(RO) Decision firmware copy 2 version information.

What:		/sys/devices/platform/stratix10-rsu.0/dcmf3
Date:		June 2020
KernelVersion:	5.8
Contact:	Richard Gong <richard.gong@linux.intel.com>
Description:
		(RO) Decision firmware copy 3 version information.

What:		/sys/devices/platform/stratix10-rsu.0/max_retry
Date:		June 2020
KernelVersion:	5.8
Contact:	Richard Gong <richard.gong@linux.intel.com>
Description:
		(RO) max retry parameter is stored in the firmware
		decision IO section, as a byte located at offset 0x18c.
+17 −12
Original line number Original line Diff line number Diff line
@@ -70,10 +70,10 @@ statements via::


  nullarbor:~ # cat <debugfs>/dynamic_debug/control
  nullarbor:~ # cat <debugfs>/dynamic_debug/control
  # filename:lineno [module]function flags format
  # filename:lineno [module]function flags format
  /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:323 [svcxprt_rdma]svc_rdma_cleanup =_ "SVCRDMA Module Removed, deregister RPC RDMA transport\012"
  net/sunrpc/svc_rdma.c:323 [svcxprt_rdma]svc_rdma_cleanup =_ "SVCRDMA Module Removed, deregister RPC RDMA transport\012"
  /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:341 [svcxprt_rdma]svc_rdma_init =_ "\011max_inline       : %d\012"
  net/sunrpc/svc_rdma.c:341 [svcxprt_rdma]svc_rdma_init =_ "\011max_inline       : %d\012"
  /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:340 [svcxprt_rdma]svc_rdma_init =_ "\011sq_depth         : %d\012"
  net/sunrpc/svc_rdma.c:340 [svcxprt_rdma]svc_rdma_init =_ "\011sq_depth         : %d\012"
  /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svc_rdma.c:338 [svcxprt_rdma]svc_rdma_init =_ "\011max_requests     : %d\012"
  net/sunrpc/svc_rdma.c:338 [svcxprt_rdma]svc_rdma_init =_ "\011max_requests     : %d\012"
  ...
  ...




@@ -93,7 +93,7 @@ the debug statement callsites with any non-default flags::


  nullarbor:~ # awk '$3 != "=_"' <debugfs>/dynamic_debug/control
  nullarbor:~ # awk '$3 != "=_"' <debugfs>/dynamic_debug/control
  # filename:lineno [module]function flags format
  # filename:lineno [module]function flags format
  /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svcsock.c:1603 [sunrpc]svc_send p "svc_process: st_sendto returned %d\012"
  net/sunrpc/svcsock.c:1603 [sunrpc]svc_send p "svc_process: st_sendto returned %d\012"


Command Language Reference
Command Language Reference
==========================
==========================
@@ -156,6 +156,7 @@ against. Possible keywords are:::
  ``line-range`` cannot contain space, e.g.
  ``line-range`` cannot contain space, e.g.
  "1-30" is valid range but "1 - 30" is not.
  "1-30" is valid range but "1 - 30" is not.


  ``module=foo`` combined keyword=value form is interchangably accepted


The meanings of each keyword are:
The meanings of each keyword are:


@@ -164,15 +165,18 @@ func
    of each callsite.  Example::
    of each callsite.  Example::


	func svc_tcp_accept
	func svc_tcp_accept
	func *recv*		# in rfcomm, bluetooth, ping, tcp


file
file
    The given string is compared against either the full pathname, the
    The given string is compared against either the src-root relative
    src-root relative pathname, or the basename of the source file of
    pathname, or the basename of the source file of each callsite.
    each callsite.  Examples::
    Examples::


	file svcsock.c
	file svcsock.c
	file kernel/freezer.c
	file kernel/freezer.c	# ie column 1 of control file
	file /usr/src/packages/BUILD/sgi-enhancednfs-1.4/default/net/sunrpc/svcsock.c
	file drivers/usb/*	# all callsites under it
	file inode.c:start_*	# parse :tail as a func (above)
	file inode.c:1-100	# parse :tail as a line-range (above)


module
module
    The given string is compared against the module name
    The given string is compared against the module name
@@ -182,6 +186,7 @@ module


	module sunrpc
	module sunrpc
	module nfsd
	module nfsd
	module drm*	# both drm, drm_kms_helper


format
format
    The given string is searched for in the dynamic debug format
    The given string is searched for in the dynamic debug format
@@ -251,8 +256,8 @@ the syntax described above, but must not exceed 1023 characters. Your
bootloader may impose lower limits.
bootloader may impose lower limits.


These ``dyndbg`` params are processed just after the ddebug tables are
These ``dyndbg`` params are processed just after the ddebug tables are
processed, as part of the arch_initcall.  Thus you can enable debug
processed, as part of the early_initcall.  Thus you can enable debug
messages in all code run after this arch_initcall via this boot
messages in all code run after this early_initcall via this boot
parameter.
parameter.


On an x86 system for example ACPI enablement is a subsys_initcall and::
On an x86 system for example ACPI enablement is a subsys_initcall and::
+13 −0
Original line number Original line Diff line number Diff line
@@ -108,6 +108,13 @@ its hardware characteristcs.
	* arm,cp14: must be present if the system accesses ETM/PTM management
	* arm,cp14: must be present if the system accesses ETM/PTM management
	  registers via co-processor 14.
	  registers via co-processor 14.


	* qcom,skip-power-up: boolean. Indicates that an implementation can
	  skip powering up the trace unit. TRCPDCR.PU does not have to be set
	  on Qualcomm Technologies Inc. systems since ETMs are in the same power
	  domain as their CPU cores. This property is required to identify such
	  systems with hardware errata where the CPU watchdog counter is stopped
	  when TRCPDCR.PU is set.

* Optional property for TMC:
* Optional property for TMC:


	* arm,buffer-size: size of contiguous buffer space for TMC ETR
	* arm,buffer-size: size of contiguous buffer space for TMC ETR
@@ -121,6 +128,12 @@ its hardware characteristcs.
	* interrupts : Exactly one SPI may be listed for reporting the address
	* interrupts : Exactly one SPI may be listed for reporting the address
	  error
	  error


* Optional property for configurable replicators:

	* qcom,replicator-loses-context: boolean. Indicates that the replicator
	  will lose register context when AMBA clock is removed which is observed
	  in some replicator designs.

Graph bindings for Coresight
Graph bindings for Coresight
-------------------------------
-------------------------------


+12 −4
Original line number Original line Diff line number Diff line
Xilinx Slave Serial SPI FPGA Manager
Xilinx Slave Serial SPI FPGA Manager


Xilinx Spartan-6 FPGAs support a method of loading the bitstream over
Xilinx Spartan-6 and 7 Series FPGAs support a method of loading the
what is referred to as "slave serial" interface.
bitstream over what is referred to as "slave serial" interface.
The slave serial link is not technically SPI, and might require extra
The slave serial link is not technically SPI, and might require extra
circuits in order to play nicely with other SPI slaves on the same bus.
circuits in order to play nicely with other SPI slaves on the same bus.


See https://www.xilinx.com/support/documentation/user_guides/ug380.pdf
See:
- https://www.xilinx.com/support/documentation/user_guides/ug380.pdf
- https://www.xilinx.com/support/documentation/user_guides/ug470_7Series_Config.pdf
- https://www.xilinx.com/support/documentation/application_notes/xapp583-fpga-configuration.pdf


Required properties:
Required properties:
- compatible: should contain "xlnx,fpga-slave-serial"
- compatible: should contain "xlnx,fpga-slave-serial"
@@ -13,6 +16,10 @@ Required properties:
- prog_b-gpios: config pin (referred to as PROGRAM_B in the manual)
- prog_b-gpios: config pin (referred to as PROGRAM_B in the manual)
- done-gpios: config status pin (referred to as DONE in the manual)
- done-gpios: config status pin (referred to as DONE in the manual)


Optional properties:
- init-b-gpios: initialization status and configuration error pin
                (referred to as INIT_B in the manual)

Example for full FPGA configuration:
Example for full FPGA configuration:


	fpga-region0 {
	fpga-region0 {
@@ -37,7 +44,8 @@ Example for full FPGA configuration:
			spi-max-frequency = <60000000>;
			spi-max-frequency = <60000000>;
			spi-cpha;
			spi-cpha;
			reg = <0>;
			reg = <0>;
			done-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
			prog_b-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
			prog_b-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
			init-b-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
			done-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
		};
		};
	};
	};
Loading