Skip to content

Commit

Permalink
Merge pull request #4513 from plbossart/merge/sound-upstream-20230808
Browse files Browse the repository at this point in the history
Merge/sound upstream 20230808
  • Loading branch information
plbossart authored Aug 10, 2023
2 parents 08264cb + 04cb09d commit 0afe6af
Show file tree
Hide file tree
Showing 334 changed files with 5,387 additions and 1,716 deletions.
15 changes: 13 additions & 2 deletions Documentation/ABI/testing/sysfs-bus-cxl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ Description:
whether it resides in persistent capacity, volatile capacity,
or the LSA, is made permanently unavailable by whatever means
is appropriate for the media type. This functionality requires
the device to be not be actively decoding any HPA ranges.
the device to be disabled, that is, not actively decoding any
HPA ranges. This permits avoiding explicit global CPU cache
management, relying instead for it to be done when a region
transitions between software programmed and hardware committed
states. If this file is not present, then there is no hardware
support for the operation.


What /sys/bus/cxl/devices/memX/security/erase
Expand All @@ -92,7 +97,13 @@ Contact: linux-cxl@vger.kernel.org
Description:
(WO) Write a boolean 'true' string value to this attribute to
secure erase user data by changing the media encryption keys for
all user data areas of the device.
all user data areas of the device. This functionality requires
the device to be disabled, that is, not actively decoding any
HPA ranges. This permits avoiding explicit global CPU cache
management, relying instead for it to be done when a region
transitions between software programmed and hardware committed
states. If this file is not present, then there is no hardware
support for the operation.


What: /sys/bus/cxl/devices/memX/firmware/
Expand Down
6 changes: 6 additions & 0 deletions Documentation/admin-guide/kdump/vmcoreinfo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -624,3 +624,9 @@ Used to get the correct ranges:
* VMALLOC_START ~ VMALLOC_END : vmalloc() / ioremap() space.
* VMEMMAP_START ~ VMEMMAP_END : vmemmap space, used for struct page array.
* KERNEL_LINK_ADDR : start address of Kernel link and BPF

va_kernel_pa_offset
-------------------

Indicates the offset between the kernel virtual and physical mappings.
Used to translate virtual to physical addresses.
7 changes: 1 addition & 6 deletions Documentation/devicetree/bindings/net/mediatek,net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ allOf:
patternProperties:
"^mac@[0-1]$":
type: object
additionalProperties: false
unevaluatedProperties: false
allOf:
- $ref: ethernet-controller.yaml#
description:
Expand All @@ -305,14 +305,9 @@ patternProperties:
reg:
maxItems: 1

phy-handle: true

phy-mode: true

required:
- reg
- compatible
- phy-handle

required:
- compatible
Expand Down
10 changes: 8 additions & 2 deletions Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,18 @@ properties:
$ref: /schemas/types.yaml#/definitions/phandle

tx_delay:
description: Delay value for TXD timing. Range value is 0~0x7F, 0x30 as default.
description: Delay value for TXD timing.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 0x7F
default: 0x30

rx_delay:
description: Delay value for RXD timing. Range value is 0~0x7F, 0x10 as default.
description: Delay value for RXD timing.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 0x7F
default: 0x10

phy-supply:
description: PHY regulator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ properties:
- enum:
- atmel,at91rm9200-usart
- atmel,at91sam9260-usart
- microchip,sam9x60-usart
- items:
- const: atmel,at91rm9200-dbgu
- const: atmel,at91rm9200-usart
- items:
- const: atmel,at91sam9260-dbgu
- const: atmel,at91sam9260-usart
- items:
- const: microchip,sam9x60-usart
- const: atmel,at91sam9260-usart
- items:
- const: microchip,sam9x60-dbgu
- const: microchip,sam9x60-usart
Expand Down
4 changes: 3 additions & 1 deletion Documentation/devicetree/bindings/sound/awinic,aw88395.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ allOf:

properties:
compatible:
const: awinic,aw88395
enum:
- awinic,aw88395
- awinic,aw88261

reg:
maxItems: 1
Expand Down
44 changes: 0 additions & 44 deletions Documentation/devicetree/bindings/sound/max9892x.txt

This file was deleted.

98 changes: 98 additions & 0 deletions Documentation/devicetree/bindings/sound/maxim,max98925.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/maxim,max98925.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Maxim Integrated MAX98925/MAX98926/MAX98927 speaker amplifier

maintainers:
- Ryan Lee <ryans.lee@maximintegrated.com>

properties:
compatible:
enum:
- maxim,max98925
- maxim,max98926
- maxim,max98927

reg:
maxItems: 1

reset-gpios:
maxItems: 1

'#sound-dai-cells':
const: 0

vmon-slot-no:
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 30
default: 0
description:
Slot number used to send voltage information or in inteleave mode this
will be used as interleave slot.

imon-slot-no:
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 30
default: 0
description:
Slot number used to send current information.

maxim,interleave-mode:
type: boolean
description:
When using two MAX9892X in a system it is possible to create ADC data
that will overflow the frame size. When enabled, the Digital Audio
Interleave mode provides a means to output VMON and IMON data from two
devices on a single DOUT line when running smaller frames sizes such as
32 BCLKS per LRCLK or 48 BCLKS per LRCLK.

required:
- compatible
- reg

allOf:
- $ref: dai-common.yaml#
- if:
properties:
compatible:
contains:
enum:
- maxim,max98927
then:
properties:
vmon-slot-no:
minimum: 0
maximum: 15

imon-slot-no:
minimum: 0
maximum: 15

additionalProperties: false

examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
#include <dt-bindings/gpio/gpio.h>
audio-codec@3a {
compatible = "maxim,max98927";
reg = <0x3a>;
#sound-dai-cells = <0>;
pinctrl-0 = <&speaker_default>;
pinctrl-names = "default";
reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;
vmon-slot-no = <1>;
imon-slot-no = <0>;
};
};
20 changes: 20 additions & 0 deletions Documentation/devicetree/bindings/sound/wlf,wm8960.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ properties:
'#sound-dai-cells':
const: 0

AVDD-supply:
description: Analogue supply.

DBVDD-supply:
description: Digital Buffer Supply.

DCVDD-supply:
description: Digital Core Supply.

SPKVDD1-supply:
description: Supply for speaker drivers 1.

SPKVDD2-supply:
description: Supply for speaker drivers 2.

wlf,capless:
type: boolean
description:
Expand Down Expand Up @@ -84,5 +99,10 @@ examples:
wlf,hp-cfg = <3 2 3>;
wlf,gpio-cfg = <1 3>;
wlf,shared-lrclk;
DCVDD-supply = <&reg_audio>;
DBVDD-supply = <&reg_audio>;
AVDD-supply = <&reg_audio>;
SPKVDD1-supply = <&reg_audio>;
SPKVDD2-supply = <&reg_audio>;
};
};
5 changes: 2 additions & 3 deletions Documentation/filesystems/locking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,8 @@ mutex or just to use i_size_read() instead.
Note: this does not protect the file->f_pos against concurrent modifications
since this is something the userspace has to take care about.

->iterate() is called with i_rwsem exclusive.

->iterate_shared() is called with i_rwsem at least shared.
->iterate_shared() is called with i_rwsem held for reading, and with the
file f_pos_lock held exclusively

->fasync() is responsible for maintaining the FASYNC bit in filp->f_flags.
Most instances call fasync_helper(), which does that maintenance, so it's
Expand Down
25 changes: 10 additions & 15 deletions Documentation/filesystems/porting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ vfs_readdir() is gone; switch to iterate_dir() instead

**mandatory**

->readdir() is gone now; switch to ->iterate()
->readdir() is gone now; switch to ->iterate_shared()

**mandatory**

Expand Down Expand Up @@ -693,24 +693,19 @@ parallel now.

---

**recommended**
**mandatory**

->iterate_shared() is added; it's a parallel variant of ->iterate().
->iterate_shared() is added.
Exclusion on struct file level is still provided (as well as that
between it and lseek on the same struct file), but if your directory
has been opened several times, you can get these called in parallel.
Exclusion between that method and all directory-modifying ones is
still provided, of course.

Often enough ->iterate() can serve as ->iterate_shared() without any
changes - it is a read-only operation, after all. If you have any
per-inode or per-dentry in-core data structures modified by ->iterate(),
you might need something to serialize the access to them. If you
do dcache pre-seeding, you'll need to switch to d_alloc_parallel() for
that; look for in-tree examples.

Old method is only used if the new one is absent; eventually it will
be removed. Switch while you still can; the old one won't stay.
If you have any per-inode or per-dentry in-core data structures modified
by ->iterate_shared(), you might need something to serialize the access
to them. If you do dcache pre-seeding, you'll need to switch to
d_alloc_parallel() for that; look for in-tree examples.

---

Expand Down Expand Up @@ -930,9 +925,9 @@ should be done by looking at FMODE_LSEEK in file->f_mode.
filldir_t (readdir callbacks) calling conventions have changed. Instead of
returning 0 or -E... it returns bool now. false means "no more" (as -E... used
to) and true - "keep going" (as 0 in old calling conventions). Rationale:
callers never looked at specific -E... values anyway. ->iterate() and
->iterate_shared() instance require no changes at all, all filldir_t ones in
the tree converted.
callers never looked at specific -E... values anyway. -> iterate_shared()
instances require no changes at all, all filldir_t ones in the tree
converted.

---

Expand Down
Loading

0 comments on commit 0afe6af

Please sign in to comment.