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 'i2c-for-6.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux

Pull i2c fixes from Wolfram Sang:

- PM cleanup after all prerequisites are merged with rc1

- usbio: missing addition after all dependencies are in

- slimpro: DT binding schema conversion

* tag 'i2c-for-6.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
dt-bindings: i2c: Convert apm,xgene-slimpro-i2c to DT schema
i2c: usbio: Add ACPI device-id for MTL-CVF devices
i2c: Remove redundant pm_runtime_mark_last_busy() calls

+37 -56
+36
Documentation/devicetree/bindings/i2c/apm,xgene-slimpro-i2c.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/i2c/apm,xgene-slimpro-i2c.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: APM X-Gene SLIMpro Mailbox I2C 8 + 9 + maintainers: 10 + - Khuong Dinh <khuong@os.amperecomputing.com> 11 + 12 + description: 13 + An I2C controller accessed over the "SLIMpro" mailbox. 14 + 15 + allOf: 16 + - $ref: /schemas/i2c/i2c-controller.yaml# 17 + 18 + properties: 19 + compatible: 20 + const: apm,xgene-slimpro-i2c 21 + 22 + mboxes: 23 + maxItems: 1 24 + 25 + required: 26 + - compatible 27 + - mboxes 28 + 29 + unevaluatedProperties: false 30 + 31 + examples: 32 + - | 33 + i2c { 34 + compatible = "apm,xgene-slimpro-i2c"; 35 + mboxes = <&mailbox 0>; 36 + };
-15
Documentation/devicetree/bindings/i2c/i2c-xgene-slimpro.txt
··· 1 - APM X-Gene SLIMpro Mailbox I2C Driver 2 - 3 - An I2C controller accessed over the "SLIMpro" mailbox. 4 - 5 - Required properties : 6 - 7 - - compatible : should be "apm,xgene-slimpro-i2c" 8 - - mboxes : use the label reference for the mailbox as the first parameter. 9 - The second parameter is the channel number. 10 - 11 - Example : 12 - i2cslimpro { 13 - compatible = "apm,xgene-slimpro-i2c"; 14 - mboxes = <&mailbox 0>; 15 - };
-1
drivers/i2c/busses/i2c-amd-mp2.h
··· 207 207 208 208 static inline void amd_mp2_pm_runtime_put(struct amd_mp2_dev *mp2_dev) 209 209 { 210 - pm_runtime_mark_last_busy(&mp2_dev->pci_dev->dev); 211 210 pm_runtime_put_autosuspend(&mp2_dev->pci_dev->dev); 212 211 } 213 212
-1
drivers/i2c/busses/i2c-at91-core.c
··· 313 313 return ret; 314 314 } 315 315 316 - pm_runtime_mark_last_busy(dev); 317 316 pm_request_autosuspend(dev); 318 317 319 318 at91_init_twi_bus(twi_dev);
-1
drivers/i2c/busses/i2c-at91-master.c
··· 717 717 718 718 ret = (ret < 0) ? ret : num; 719 719 out: 720 - pm_runtime_mark_last_busy(dev->dev); 721 720 pm_runtime_put_autosuspend(dev->dev); 722 721 723 722 return ret;
-1
drivers/i2c/busses/i2c-cadence.c
··· 1128 1128 cdns_i2c_set_mode(CDNS_I2C_MODE_SLAVE, id); 1129 1129 #endif 1130 1130 1131 - pm_runtime_mark_last_busy(id->dev); 1132 1131 pm_runtime_put_autosuspend(id->dev); 1133 1132 return ret; 1134 1133 }
-2
drivers/i2c/busses/i2c-davinci.c
··· 543 543 ret = num; 544 544 545 545 out: 546 - pm_runtime_mark_last_busy(dev->dev); 547 546 pm_runtime_put_autosuspend(dev->dev); 548 547 549 548 return ret; ··· 820 821 if (r) 821 822 goto err_unuse_clocks; 822 823 823 - pm_runtime_mark_last_busy(dev->dev); 824 824 pm_runtime_put_autosuspend(dev->dev); 825 825 826 826 return 0;
-1
drivers/i2c/busses/i2c-designware-master.c
··· 901 901 i2c_dw_release_lock(dev); 902 902 903 903 done_nolock: 904 - pm_runtime_mark_last_busy(dev->dev); 905 904 pm_runtime_put_autosuspend(dev->dev); 906 905 907 906 return ret;
-1
drivers/i2c/busses/i2c-hix5hd2.c
··· 373 373 ret = num; 374 374 375 375 out: 376 - pm_runtime_mark_last_busy(priv->dev); 377 376 pm_runtime_put_autosuspend(priv->dev); 378 377 return ret; 379 378 }
-1
drivers/i2c/busses/i2c-i801.c
··· 930 930 */ 931 931 iowrite8(SMBHSTSTS_INUSE_STS | STATUS_FLAGS, SMBHSTSTS(priv)); 932 932 933 - pm_runtime_mark_last_busy(&priv->pci_dev->dev); 934 933 pm_runtime_put_autosuspend(&priv->pci_dev->dev); 935 934 return ret; 936 935 }
-3
drivers/i2c/busses/i2c-img-scb.c
··· 1131 1131 break; 1132 1132 } 1133 1133 1134 - pm_runtime_mark_last_busy(adap->dev.parent); 1135 1134 pm_runtime_put_autosuspend(adap->dev.parent); 1136 1135 1137 1136 return i2c->msg_status ? i2c->msg_status : num; ··· 1164 1165 "Unknown hardware revision (%d.%d.%d.%d)\n", 1165 1166 (rev >> 24) & 0xff, (rev >> 16) & 0xff, 1166 1167 (rev >> 8) & 0xff, rev & 0xff); 1167 - pm_runtime_mark_last_busy(i2c->adap.dev.parent); 1168 1168 pm_runtime_put_autosuspend(i2c->adap.dev.parent); 1169 1169 return -EINVAL; 1170 1170 } ··· 1315 1317 /* Perform a synchronous sequence to reset the bus */ 1316 1318 ret = img_i2c_reset_bus(i2c); 1317 1319 1318 - pm_runtime_mark_last_busy(i2c->adap.dev.parent); 1319 1320 pm_runtime_put_autosuspend(i2c->adap.dev.parent); 1320 1321 1321 1322 return ret;
-4
drivers/i2c/busses/i2c-imx-lpi2c.c
··· 363 363 return 0; 364 364 365 365 rpm_put: 366 - pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent); 367 366 pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent); 368 367 369 368 return ret; ··· 376 377 temp &= ~MCR_MEN; 377 378 writel(temp, lpi2c_imx->base + LPI2C_MCR); 378 379 379 - pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent); 380 380 pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent); 381 381 382 382 return 0; ··· 1460 1462 if (ret) 1461 1463 goto rpm_disable; 1462 1464 1463 - pm_runtime_mark_last_busy(&pdev->dev); 1464 1465 pm_runtime_put_autosuspend(&pdev->dev); 1465 1466 1466 1467 dev_info(&lpi2c_imx->adapter.dev, "LPI2C adapter registered\n"); ··· 1561 1564 1562 1565 static int lpi2c_resume(struct device *dev) 1563 1566 { 1564 - pm_runtime_mark_last_busy(dev); 1565 1567 pm_runtime_put_autosuspend(dev); 1566 1568 1567 1569 return 0;
-3
drivers/i2c/busses/i2c-imx.c
··· 1637 1637 1638 1638 result = i2c_imx_xfer_common(adapter, msgs, num, false); 1639 1639 1640 - pm_runtime_mark_last_busy(i2c_imx->adapter.dev.parent); 1641 1640 pm_runtime_put_autosuspend(i2c_imx->adapter.dev.parent); 1642 1641 1643 1642 return result; ··· 1821 1822 if (ret < 0) 1822 1823 goto clk_notifier_unregister; 1823 1824 1824 - pm_runtime_mark_last_busy(&pdev->dev); 1825 1825 pm_runtime_put_autosuspend(&pdev->dev); 1826 1826 1827 1827 dev_dbg(&i2c_imx->adapter.dev, "claimed irq %d\n", irq); ··· 1926 1928 1927 1929 static int i2c_imx_resume(struct device *dev) 1928 1930 { 1929 - pm_runtime_mark_last_busy(dev); 1930 1931 pm_runtime_put_autosuspend(dev); 1931 1932 1932 1933 return 0;
-1
drivers/i2c/busses/i2c-mv64xxx.c
··· 766 766 drv_data->num_msgs = 0; 767 767 drv_data->msgs = NULL; 768 768 769 - pm_runtime_mark_last_busy(&adap->dev); 770 769 pm_runtime_put_autosuspend(&adap->dev); 771 770 772 771 return ret;
-1
drivers/i2c/busses/i2c-nvidia-gpu.c
··· 216 216 if (status2 < 0) 217 217 dev_err(i2cd->dev, "i2c stop failed %d\n", status2); 218 218 } 219 - pm_runtime_mark_last_busy(i2cd->dev); 220 219 pm_runtime_put_autosuspend(i2cd->dev); 221 220 return status; 222 221 }
-3
drivers/i2c/busses/i2c-omap.c
··· 828 828 omap->set_mpu_wkup_lat(omap->dev, -1); 829 829 830 830 out: 831 - pm_runtime_mark_last_busy(omap->dev); 832 831 pm_runtime_put_autosuspend(omap->dev); 833 832 return r; 834 833 } ··· 1509 1510 dev_info(omap->dev, "bus %d rev%d.%d at %d kHz\n", adap->nr, 1510 1511 major, minor, omap->speed); 1511 1512 1512 - pm_runtime_mark_last_busy(omap->dev); 1513 1513 pm_runtime_put_autosuspend(omap->dev); 1514 1514 1515 1515 return 0; ··· 1603 1605 1604 1606 static int omap_i2c_resume(struct device *dev) 1605 1607 { 1606 - pm_runtime_mark_last_busy(dev); 1607 1608 pm_runtime_put_autosuspend(dev); 1608 1609 1609 1610 return 0;
-2
drivers/i2c/busses/i2c-qcom-cci.c
··· 450 450 ret = num; 451 451 452 452 err: 453 - pm_runtime_mark_last_busy(cci->dev); 454 453 pm_runtime_put_autosuspend(cci->dev); 455 454 456 455 return ret; ··· 507 508 static int __maybe_unused cci_resume(struct device *dev) 508 509 { 509 510 cci_resume_runtime(dev); 510 - pm_runtime_mark_last_busy(dev); 511 511 pm_request_autosuspend(dev); 512 512 513 513 return 0;
-1
drivers/i2c/busses/i2c-qcom-geni.c
··· 714 714 else 715 715 ret = geni_i2c_fifo_xfer(gi2c, msgs, num); 716 716 717 - pm_runtime_mark_last_busy(gi2c->se.dev); 718 717 pm_runtime_put_autosuspend(gi2c->se.dev); 719 718 gi2c->cur = NULL; 720 719 gi2c->err = 0;
-3
drivers/i2c/busses/i2c-qup.c
··· 1139 1139 ret = num; 1140 1140 out: 1141 1141 1142 - pm_runtime_mark_last_busy(qup->dev); 1143 1142 pm_runtime_put_autosuspend(qup->dev); 1144 1143 1145 1144 return ret; ··· 1623 1624 if (ret == 0) 1624 1625 ret = num; 1625 1626 out: 1626 - pm_runtime_mark_last_busy(qup->dev); 1627 1627 pm_runtime_put_autosuspend(qup->dev); 1628 1628 1629 1629 return ret; ··· 1989 1991 static int qup_i2c_resume(struct device *device) 1990 1992 { 1991 1993 qup_i2c_pm_resume_runtime(device); 1992 - pm_runtime_mark_last_busy(device); 1993 1994 pm_request_autosuspend(device); 1994 1995 return 0; 1995 1996 }
-2
drivers/i2c/busses/i2c-riic.c
··· 206 206 } 207 207 208 208 out: 209 - pm_runtime_mark_last_busy(dev); 210 209 pm_runtime_put_autosuspend(dev); 211 210 212 211 return riic->err ?: num; ··· 451 452 452 453 riic_clear_set_bit(riic, ICCR1_IICRST, 0, RIIC_ICCR1); 453 454 454 - pm_runtime_mark_last_busy(dev); 455 455 pm_runtime_put_autosuspend(dev); 456 456 return 0; 457 457 }
-1
drivers/i2c/busses/i2c-rzv2m.c
··· 372 372 ret = num; 373 373 374 374 out: 375 - pm_runtime_mark_last_busy(dev); 376 375 pm_runtime_put_autosuspend(dev); 377 376 378 377 return ret;
-2
drivers/i2c/busses/i2c-sprd.c
··· 302 302 ret = sprd_i2c_handle_msg(i2c_adap, &msgs[im++], 1); 303 303 304 304 err_msg: 305 - pm_runtime_mark_last_busy(i2c_dev->dev); 306 305 pm_runtime_put_autosuspend(i2c_dev->dev); 307 306 308 307 return ret < 0 ? ret : im; ··· 558 559 goto err_rpm_put; 559 560 } 560 561 561 - pm_runtime_mark_last_busy(i2c_dev->dev); 562 562 pm_runtime_put_autosuspend(i2c_dev->dev); 563 563 return 0; 564 564
-5
drivers/i2c/busses/i2c-stm32f7.c
··· 1761 1761 } 1762 1762 1763 1763 pm_free: 1764 - pm_runtime_mark_last_busy(i2c_dev->dev); 1765 1764 pm_runtime_put_autosuspend(i2c_dev->dev); 1766 1765 1767 1766 return (ret < 0) ? ret : num; ··· 1869 1870 } 1870 1871 1871 1872 pm_free: 1872 - pm_runtime_mark_last_busy(dev); 1873 1873 pm_runtime_put_autosuspend(dev); 1874 1874 return ret; 1875 1875 } ··· 1975 1977 if (!stm32f7_i2c_is_slave_registered(i2c_dev)) 1976 1978 stm32f7_i2c_enable_wakeup(i2c_dev, false); 1977 1979 1978 - pm_runtime_mark_last_busy(dev); 1979 1980 pm_runtime_put_autosuspend(dev); 1980 1981 1981 1982 return ret; ··· 2012 2015 stm32f7_i2c_enable_wakeup(i2c_dev, false); 2013 2016 } 2014 2017 2015 - pm_runtime_mark_last_busy(i2c_dev->dev); 2016 2018 pm_runtime_put_autosuspend(i2c_dev->dev); 2017 2019 2018 2020 return 0; ··· 2324 2328 2325 2329 dev_info(i2c_dev->dev, "STM32F7 I2C-%d bus adapter\n", adap->nr); 2326 2330 2327 - pm_runtime_mark_last_busy(i2c_dev->dev); 2328 2331 pm_runtime_put_autosuspend(i2c_dev->dev); 2329 2332 2330 2333 return 0;
+1
drivers/i2c/busses/i2c-usbio.c
··· 27 27 { "INTC1008" }, /* MTL */ 28 28 { "INTC10B3" }, /* ARL */ 29 29 { "INTC10B6" }, /* LNL */ 30 + { "INTC10D2" }, /* MTL-CVF */ 30 31 { "INTC10E3" }, /* PTL */ 31 32 { } 32 33 };
-1
drivers/i2c/busses/i2c-xiic.c
··· 1349 1349 mutex_unlock(&i2c->lock); 1350 1350 1351 1351 out: 1352 - pm_runtime_mark_last_busy(i2c->dev); 1353 1352 pm_runtime_put_autosuspend(i2c->dev); 1354 1353 return err; 1355 1354 }