Skip to content

Commit a962b54

Browse files
committed
Merge tag 'i2c-for-6.0-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang: "Add missing DT bindings for STM32 and a resource leak fix for DaVinci" * tag 'i2c-for-6.0-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: i2c: davinci: fix PM disable depth imbalance in davinci_i2c_probe dt-bindings: i2c: st,stm32-i2c: Document wakeup-source property dt-bindings: i2c: st,stm32-i2c: Document interrupt-names property
2 parents febae48 + e2062df commit a962b54

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ properties:
5757
- description: interrupt ID for I2C event
5858
- description: interrupt ID for I2C error
5959

60+
interrupt-names:
61+
items:
62+
- const: event
63+
- const: error
64+
6065
resets:
6166
maxItems: 1
6267

@@ -92,6 +97,8 @@ properties:
9297
- description: register offset within syscfg
9398
- description: register bitmask for FMP bit
9499

100+
wakeup-source: true
101+
95102
required:
96103
- compatible
97104
- reg

drivers/i2c/busses/i2c-davinci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
823823
r = pm_runtime_resume_and_get(dev->dev);
824824
if (r < 0) {
825825
dev_err(dev->dev, "failed to runtime_get device: %d\n", r);
826-
return r;
826+
goto err_pm;
827827
}
828828

829829
i2c_davinci_init(dev);
@@ -882,6 +882,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
882882
err_unuse_clocks:
883883
pm_runtime_dont_use_autosuspend(dev->dev);
884884
pm_runtime_put_sync(dev->dev);
885+
err_pm:
885886
pm_runtime_disable(dev->dev);
886887

887888
return r;

0 commit comments

Comments
 (0)