Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'hwlock-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux

Pull hwspinlock updates from Bjorn Andersson:
"This updates the sun6i DT binding to allow (and require) #hwlock-cells
and makes use of device_match_of_node() to slight clean up the
condition in of_hwspin_lock_get_id()"

* tag 'hwlock-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux:
dt-bindings: hwlock: sun6i: Add #hwlock-cells to example
dt-bindings: hwlock: sun6i: Add missing #hwlock-cells
hwspinlock: Use device_match_of_node()

+6 -1
+5
Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
··· 26 26 resets: 27 27 maxItems: 1 28 28 29 + '#hwlock-cells': 30 + const: 1 31 + 29 32 required: 30 33 - compatible 31 34 - reg 32 35 - clocks 33 36 - resets 37 + - "#hwlock-cells" 34 38 35 39 additionalProperties: false 36 40 ··· 48 44 reg = <0x01c18000 0x1000>; 49 45 clocks = <&ccu CLK_BUS_SPINLOCK>; 50 46 resets = <&ccu RST_BUS_SPINLOCK>; 47 + #hwlock-cells = <1>; 51 48 }; 52 49 ...
+1 -1
drivers/hwspinlock/hwspinlock_core.c
··· 367 367 continue; 368 368 } 369 369 370 - if (hwlock->bank->dev->of_node == args.np) { 370 + if (device_match_of_node(hwlock->bank->dev, args.np)) { 371 371 ret = 0; 372 372 break; 373 373 }