mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 14:41:22 -05:00
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
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/i2c/apm,xgene-slimpro-i2c.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: APM X-Gene SLIMpro Mailbox I2C
|
||||
|
||||
maintainers:
|
||||
- Khuong Dinh <khuong@os.amperecomputing.com>
|
||||
|
||||
description:
|
||||
An I2C controller accessed over the "SLIMpro" mailbox.
|
||||
|
||||
allOf:
|
||||
- $ref: /schemas/i2c/i2c-controller.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
const: apm,xgene-slimpro-i2c
|
||||
|
||||
mboxes:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- mboxes
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
i2c {
|
||||
compatible = "apm,xgene-slimpro-i2c";
|
||||
mboxes = <&mailbox 0>;
|
||||
};
|
||||
@@ -1,15 +0,0 @@
|
||||
APM X-Gene SLIMpro Mailbox I2C Driver
|
||||
|
||||
An I2C controller accessed over the "SLIMpro" mailbox.
|
||||
|
||||
Required properties :
|
||||
|
||||
- compatible : should be "apm,xgene-slimpro-i2c"
|
||||
- mboxes : use the label reference for the mailbox as the first parameter.
|
||||
The second parameter is the channel number.
|
||||
|
||||
Example :
|
||||
i2cslimpro {
|
||||
compatible = "apm,xgene-slimpro-i2c";
|
||||
mboxes = <&mailbox 0>;
|
||||
};
|
||||
@@ -207,7 +207,6 @@ static inline void amd_mp2_pm_runtime_get(struct amd_mp2_dev *mp2_dev)
|
||||
|
||||
static inline void amd_mp2_pm_runtime_put(struct amd_mp2_dev *mp2_dev)
|
||||
{
|
||||
pm_runtime_mark_last_busy(&mp2_dev->pci_dev->dev);
|
||||
pm_runtime_put_autosuspend(&mp2_dev->pci_dev->dev);
|
||||
}
|
||||
|
||||
|
||||
@@ -313,7 +313,6 @@ static int __maybe_unused at91_twi_resume_noirq(struct device *dev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_request_autosuspend(dev);
|
||||
|
||||
at91_init_twi_bus(twi_dev);
|
||||
|
||||
@@ -717,7 +717,6 @@ static int at91_twi_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, int num)
|
||||
|
||||
ret = (ret < 0) ? ret : num;
|
||||
out:
|
||||
pm_runtime_mark_last_busy(dev->dev);
|
||||
pm_runtime_put_autosuspend(dev->dev);
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -1128,7 +1128,6 @@ static int cdns_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
|
||||
cdns_i2c_set_mode(CDNS_I2C_MODE_SLAVE, id);
|
||||
#endif
|
||||
|
||||
pm_runtime_mark_last_busy(id->dev);
|
||||
pm_runtime_put_autosuspend(id->dev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -543,7 +543,6 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
|
||||
ret = num;
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(dev->dev);
|
||||
pm_runtime_put_autosuspend(dev->dev);
|
||||
|
||||
return ret;
|
||||
@@ -821,7 +820,6 @@ static int davinci_i2c_probe(struct platform_device *pdev)
|
||||
if (r)
|
||||
goto err_unuse_clocks;
|
||||
|
||||
pm_runtime_mark_last_busy(dev->dev);
|
||||
pm_runtime_put_autosuspend(dev->dev);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -901,7 +901,6 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
|
||||
i2c_dw_release_lock(dev);
|
||||
|
||||
done_nolock:
|
||||
pm_runtime_mark_last_busy(dev->dev);
|
||||
pm_runtime_put_autosuspend(dev->dev);
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -373,7 +373,6 @@ static int hix5hd2_i2c_xfer(struct i2c_adapter *adap,
|
||||
ret = num;
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(priv->dev);
|
||||
pm_runtime_put_autosuspend(priv->dev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -930,7 +930,6 @@ static s32 i801_access(struct i2c_adapter *adap, u16 addr,
|
||||
*/
|
||||
iowrite8(SMBHSTSTS_INUSE_STS | STATUS_FLAGS, SMBHSTSTS(priv));
|
||||
|
||||
pm_runtime_mark_last_busy(&priv->pci_dev->dev);
|
||||
pm_runtime_put_autosuspend(&priv->pci_dev->dev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -1131,7 +1131,6 @@ static int img_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs,
|
||||
break;
|
||||
}
|
||||
|
||||
pm_runtime_mark_last_busy(adap->dev.parent);
|
||||
pm_runtime_put_autosuspend(adap->dev.parent);
|
||||
|
||||
return i2c->msg_status ? i2c->msg_status : num;
|
||||
@@ -1165,7 +1164,6 @@ static int img_i2c_init(struct img_i2c *i2c)
|
||||
"Unknown hardware revision (%d.%d.%d.%d)\n",
|
||||
(rev >> 24) & 0xff, (rev >> 16) & 0xff,
|
||||
(rev >> 8) & 0xff, rev & 0xff);
|
||||
pm_runtime_mark_last_busy(i2c->adap.dev.parent);
|
||||
pm_runtime_put_autosuspend(i2c->adap.dev.parent);
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -1317,7 +1315,6 @@ static int img_i2c_init(struct img_i2c *i2c)
|
||||
/* Perform a synchronous sequence to reset the bus */
|
||||
ret = img_i2c_reset_bus(i2c);
|
||||
|
||||
pm_runtime_mark_last_busy(i2c->adap.dev.parent);
|
||||
pm_runtime_put_autosuspend(i2c->adap.dev.parent);
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -363,7 +363,6 @@ static int lpi2c_imx_master_enable(struct lpi2c_imx_struct *lpi2c_imx)
|
||||
return 0;
|
||||
|
||||
rpm_put:
|
||||
pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent);
|
||||
pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent);
|
||||
|
||||
return ret;
|
||||
@@ -377,7 +376,6 @@ static int lpi2c_imx_master_disable(struct lpi2c_imx_struct *lpi2c_imx)
|
||||
temp &= ~MCR_MEN;
|
||||
writel(temp, lpi2c_imx->base + LPI2C_MCR);
|
||||
|
||||
pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent);
|
||||
pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent);
|
||||
|
||||
return 0;
|
||||
@@ -1462,7 +1460,6 @@ static int lpi2c_imx_probe(struct platform_device *pdev)
|
||||
if (ret)
|
||||
goto rpm_disable;
|
||||
|
||||
pm_runtime_mark_last_busy(&pdev->dev);
|
||||
pm_runtime_put_autosuspend(&pdev->dev);
|
||||
|
||||
dev_info(&lpi2c_imx->adapter.dev, "LPI2C adapter registered\n");
|
||||
@@ -1564,7 +1561,6 @@ static int lpi2c_suspend(struct device *dev)
|
||||
|
||||
static int lpi2c_resume(struct device *dev)
|
||||
{
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -1637,7 +1637,6 @@ static int i2c_imx_xfer(struct i2c_adapter *adapter,
|
||||
|
||||
result = i2c_imx_xfer_common(adapter, msgs, num, false);
|
||||
|
||||
pm_runtime_mark_last_busy(i2c_imx->adapter.dev.parent);
|
||||
pm_runtime_put_autosuspend(i2c_imx->adapter.dev.parent);
|
||||
|
||||
return result;
|
||||
@@ -1822,7 +1821,6 @@ static int i2c_imx_probe(struct platform_device *pdev)
|
||||
if (ret < 0)
|
||||
goto clk_notifier_unregister;
|
||||
|
||||
pm_runtime_mark_last_busy(&pdev->dev);
|
||||
pm_runtime_put_autosuspend(&pdev->dev);
|
||||
|
||||
dev_dbg(&i2c_imx->adapter.dev, "claimed irq %d\n", irq);
|
||||
@@ -1928,7 +1926,6 @@ static int i2c_imx_suspend(struct device *dev)
|
||||
|
||||
static int i2c_imx_resume(struct device *dev)
|
||||
{
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -766,7 +766,6 @@ mv64xxx_i2c_xfer_core(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
|
||||
drv_data->num_msgs = 0;
|
||||
drv_data->msgs = NULL;
|
||||
|
||||
pm_runtime_mark_last_busy(&adap->dev);
|
||||
pm_runtime_put_autosuspend(&adap->dev);
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -216,7 +216,6 @@ static int gpu_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
|
||||
if (status2 < 0)
|
||||
dev_err(i2cd->dev, "i2c stop failed %d\n", status2);
|
||||
}
|
||||
pm_runtime_mark_last_busy(i2cd->dev);
|
||||
pm_runtime_put_autosuspend(i2cd->dev);
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -828,7 +828,6 @@ omap_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg msgs[], int num,
|
||||
omap->set_mpu_wkup_lat(omap->dev, -1);
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(omap->dev);
|
||||
pm_runtime_put_autosuspend(omap->dev);
|
||||
return r;
|
||||
}
|
||||
@@ -1510,7 +1509,6 @@ omap_i2c_probe(struct platform_device *pdev)
|
||||
dev_info(omap->dev, "bus %d rev%d.%d at %d kHz\n", adap->nr,
|
||||
major, minor, omap->speed);
|
||||
|
||||
pm_runtime_mark_last_busy(omap->dev);
|
||||
pm_runtime_put_autosuspend(omap->dev);
|
||||
|
||||
return 0;
|
||||
@@ -1605,7 +1603,6 @@ static int omap_i2c_suspend(struct device *dev)
|
||||
|
||||
static int omap_i2c_resume(struct device *dev)
|
||||
{
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -450,7 +450,6 @@ static int cci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
|
||||
ret = num;
|
||||
|
||||
err:
|
||||
pm_runtime_mark_last_busy(cci->dev);
|
||||
pm_runtime_put_autosuspend(cci->dev);
|
||||
|
||||
return ret;
|
||||
@@ -508,7 +507,6 @@ static int __maybe_unused cci_suspend(struct device *dev)
|
||||
static int __maybe_unused cci_resume(struct device *dev)
|
||||
{
|
||||
cci_resume_runtime(dev);
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_request_autosuspend(dev);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -714,7 +714,6 @@ static int geni_i2c_xfer(struct i2c_adapter *adap,
|
||||
else
|
||||
ret = geni_i2c_fifo_xfer(gi2c, msgs, num);
|
||||
|
||||
pm_runtime_mark_last_busy(gi2c->se.dev);
|
||||
pm_runtime_put_autosuspend(gi2c->se.dev);
|
||||
gi2c->cur = NULL;
|
||||
gi2c->err = 0;
|
||||
|
||||
@@ -1139,7 +1139,6 @@ static int qup_i2c_xfer(struct i2c_adapter *adap,
|
||||
ret = num;
|
||||
out:
|
||||
|
||||
pm_runtime_mark_last_busy(qup->dev);
|
||||
pm_runtime_put_autosuspend(qup->dev);
|
||||
|
||||
return ret;
|
||||
@@ -1624,7 +1623,6 @@ static int qup_i2c_xfer_v2(struct i2c_adapter *adap,
|
||||
if (ret == 0)
|
||||
ret = num;
|
||||
out:
|
||||
pm_runtime_mark_last_busy(qup->dev);
|
||||
pm_runtime_put_autosuspend(qup->dev);
|
||||
|
||||
return ret;
|
||||
@@ -1991,7 +1989,6 @@ static int qup_i2c_suspend(struct device *device)
|
||||
static int qup_i2c_resume(struct device *device)
|
||||
{
|
||||
qup_i2c_pm_resume_runtime(device);
|
||||
pm_runtime_mark_last_busy(device);
|
||||
pm_request_autosuspend(device);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -206,7 +206,6 @@ static int riic_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
|
||||
}
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return riic->err ?: num;
|
||||
@@ -452,7 +451,6 @@ static int riic_init_hw(struct riic_dev *riic)
|
||||
|
||||
riic_clear_set_bit(riic, ICCR1_IICRST, 0, RIIC_ICCR1);
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -372,7 +372,6 @@ static int rzv2m_i2c_xfer(struct i2c_adapter *adap,
|
||||
ret = num;
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -302,7 +302,6 @@ static int sprd_i2c_xfer(struct i2c_adapter *i2c_adap,
|
||||
ret = sprd_i2c_handle_msg(i2c_adap, &msgs[im++], 1);
|
||||
|
||||
err_msg:
|
||||
pm_runtime_mark_last_busy(i2c_dev->dev);
|
||||
pm_runtime_put_autosuspend(i2c_dev->dev);
|
||||
|
||||
return ret < 0 ? ret : im;
|
||||
@@ -559,7 +558,6 @@ static int sprd_i2c_probe(struct platform_device *pdev)
|
||||
goto err_rpm_put;
|
||||
}
|
||||
|
||||
pm_runtime_mark_last_busy(i2c_dev->dev);
|
||||
pm_runtime_put_autosuspend(i2c_dev->dev);
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -1761,7 +1761,6 @@ static int stm32f7_i2c_xfer_core(struct i2c_adapter *i2c_adap,
|
||||
}
|
||||
|
||||
pm_free:
|
||||
pm_runtime_mark_last_busy(i2c_dev->dev);
|
||||
pm_runtime_put_autosuspend(i2c_dev->dev);
|
||||
|
||||
return (ret < 0) ? ret : num;
|
||||
@@ -1870,7 +1869,6 @@ static int stm32f7_i2c_smbus_xfer(struct i2c_adapter *adapter, u16 addr,
|
||||
}
|
||||
|
||||
pm_free:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
return ret;
|
||||
}
|
||||
@@ -1977,7 +1975,6 @@ static int stm32f7_i2c_reg_slave(struct i2c_client *slave)
|
||||
if (!stm32f7_i2c_is_slave_registered(i2c_dev))
|
||||
stm32f7_i2c_enable_wakeup(i2c_dev, false);
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
pm_runtime_put_autosuspend(dev);
|
||||
|
||||
return ret;
|
||||
@@ -2015,7 +2012,6 @@ static int stm32f7_i2c_unreg_slave(struct i2c_client *slave)
|
||||
stm32f7_i2c_enable_wakeup(i2c_dev, false);
|
||||
}
|
||||
|
||||
pm_runtime_mark_last_busy(i2c_dev->dev);
|
||||
pm_runtime_put_autosuspend(i2c_dev->dev);
|
||||
|
||||
return 0;
|
||||
@@ -2328,7 +2324,6 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)
|
||||
|
||||
dev_info(i2c_dev->dev, "STM32F7 I2C-%d bus adapter\n", adap->nr);
|
||||
|
||||
pm_runtime_mark_last_busy(i2c_dev->dev);
|
||||
pm_runtime_put_autosuspend(i2c_dev->dev);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -27,6 +27,7 @@ static const struct acpi_device_id usbio_i2c_acpi_hids[] = {
|
||||
{ "INTC1008" }, /* MTL */
|
||||
{ "INTC10B3" }, /* ARL */
|
||||
{ "INTC10B6" }, /* LNL */
|
||||
{ "INTC10D2" }, /* MTL-CVF */
|
||||
{ "INTC10E3" }, /* PTL */
|
||||
{ }
|
||||
};
|
||||
|
||||
@@ -1349,7 +1349,6 @@ static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
|
||||
mutex_unlock(&i2c->lock);
|
||||
|
||||
out:
|
||||
pm_runtime_mark_last_busy(i2c->dev);
|
||||
pm_runtime_put_autosuspend(i2c->dev);
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user