<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/i2c, branch v5.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.7</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2020-05-15T09:23:49Z</updated>
<entry>
<title>i2c: mux: demux-pinctrl: Fix an error handling path in 'i2c_demux_pinctrl_probe()'</title>
<updated>2020-05-15T09:23:49Z</updated>
<author>
<name>Christophe JAILLET</name>
<email>christophe.jaillet@wanadoo.fr</email>
</author>
<published>2020-05-06T19:21:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e9d1a0a41d4486955e96552293c1fcf1fce61602'/>
<id>urn:sha1:e9d1a0a41d4486955e96552293c1fcf1fce61602</id>
<content type='text'>
A call to 'i2c_demux_deactivate_master()' is missing in the error handling
path, as already done in the remove function.

Fixes: 50a5ba876908 ("i2c: mux: demux-pinctrl: add driver")
Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: altera: Fix race between xfer_msg and isr thread</title>
<updated>2020-05-15T09:23:49Z</updated>
<author>
<name>Atsushi Nemoto</name>
<email>atsushi.nemoto@sord.co.jp</email>
</author>
<published>2020-05-08T13:12:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5d4c7977499a736f3f80826bdc9744344ad55589'/>
<id>urn:sha1:5d4c7977499a736f3f80826bdc9744344ad55589</id>
<content type='text'>
Use a mutex to protect access to idev-&gt;msg_len, idev-&gt;buf, etc. which
are modified by both altr_i2c_xfer_msg() and altr_i2c_isr().

This is the minimal fix for easy backporting. A cleanup to remove the
spinlock will be added later.

Signed-off-by: Atsushi Nemoto &lt;atsushi.nemoto@sord.co.jp&gt;
Acked-by: Thor Thayer &lt;thor.thayer@linux.intel.com&gt;
[wsa: updated commit message]
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: algo-pca: update contact email</title>
<updated>2020-05-15T09:23:49Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@kernel.org</email>
</author>
<published>2020-05-02T14:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ab7cf7e53ccf1fecec6b72d1a3a13ff88193b490'/>
<id>urn:sha1:ab7cf7e53ccf1fecec6b72d1a3a13ff88193b490</id>
<content type='text'>
The 'pengutronix' address is defunct for years. Use the proper contact
address.

Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: at91: Fix pinmux after devm_gpiod_get() for bus recovery</title>
<updated>2020-05-15T09:23:33Z</updated>
<author>
<name>Codrin Ciubotariu</name>
<email>codrin.ciubotariu@microchip.com</email>
</author>
<published>2020-04-15T07:06:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7d66976fe7476d7c9eefae9815b5ce0c66e6f429'/>
<id>urn:sha1:7d66976fe7476d7c9eefae9815b5ce0c66e6f429</id>
<content type='text'>
devm_gpiod_get() usually calls gpio_request_enable() for non-strict pinmux
drivers. These puts the pins in GPIO mode, whithout notifying the pinctrl
driver. At this point, the I2C bus no longer owns the pins. To mux the
pins back to the I2C bus, we use the pinctrl driver to change the state
of the pins to GPIO, before using devm_gpiod_get(). After the pins are
received as GPIOs, we switch theer pinctrl state back to the default
one,

Fixes: d3d3fdcc4c90 ("i2c: at91: implement i2c bus recovery")
Signed-off-by: Codrin Ciubotariu &lt;codrin.ciubotariu@microchip.com&gt;
Acked-by: Ludovic Desroches &lt;ludovic.desroches@microchip.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: use my kernel.org address from now on</title>
<updated>2020-05-05T14:29:09Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@kernel.org</email>
</author>
<published>2020-05-02T12:18:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2f5a55c52c00fcded796db5f961057ba3fec8910'/>
<id>urn:sha1:2f5a55c52c00fcded796db5f961057ba3fec8910</id>
<content type='text'>
The old email is still active, but for easier handling, I am going to
use my kernel.org address from now on. Also, add a mailmap for the now
defunct Pengutronix address.

Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: fix missing pm_runtime_put_sync in i2c_device_probe</title>
<updated>2020-05-05T14:27:43Z</updated>
<author>
<name>Alain Volmat</name>
<email>alain.volmat@st.com</email>
</author>
<published>2020-04-30T15:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3c3dd56f760da056e821ac177e3ad0de4209a435'/>
<id>urn:sha1:3c3dd56f760da056e821ac177e3ad0de4209a435</id>
<content type='text'>
In case of the I2C client exposes the flag I2C_CLIENT_HOST_NOTIFY,
pm_runtime_get_sync is called in order to always keep active the
adapter. However later on, pm_runtime_put_sync is never called
within the function in case of an error. This commit add this
error handling.

Fixes: 72bfcee11cf8 ("i2c: Prevent runtime suspend of adapter when Host Notify is required")
Signed-off-by: Alain Volmat &lt;alain.volmat@st.com&gt;
Reviewed-by: Jarkko Nikula &lt;jarkko.nikula@linux.intel.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@kernel.org&gt;
</content>
</entry>
<entry>
<title>i2c: aspeed: Avoid i2c interrupt status clear race condition.</title>
<updated>2020-04-30T14:12:33Z</updated>
<author>
<name>ryan_chen</name>
<email>ryan_chen@aspeedtech.com</email>
</author>
<published>2020-04-29T03:37:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c926c87b8e36dcc0ea5c2a0a0227ed4f32d0516a'/>
<id>urn:sha1:c926c87b8e36dcc0ea5c2a0a0227ed4f32d0516a</id>
<content type='text'>
In AST2600 there have a slow peripheral bus between CPU and i2c
controller. Therefore GIC i2c interrupt status clear have delay timing,
when CPU issue write clear i2c controller interrupt status. To avoid
this issue, the driver need have read after write clear at i2c ISR.

Fixes: f327c686d3ba ("i2c: aspeed: added driver for Aspeed I2C")
Signed-off-by: ryan_chen &lt;ryan_chen@aspeedtech.com&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
[wsa: added Fixes tag]
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: amd-mp2-pci: Fix Oops in amd_mp2_pci_init() error handling</title>
<updated>2020-04-30T14:11:41Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2019-09-10T13:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ac2b0813fceaf7cb3d8d46c7b33c90bae9fa49db'/>
<id>urn:sha1:ac2b0813fceaf7cb3d8d46c7b33c90bae9fa49db</id>
<content type='text'>
The problem is that we dereference "privdata-&gt;pci_dev" when we print
the error messages in amd_mp2_pci_init():

	dev_err(ndev_dev(privdata), "Failed to enable MP2 PCI device\n");
		^^^^^^^^^^^^^^^^^

Fixes: 529766e0a011 ("i2c: Add drivers for the AMD PCIe MP2 I2C controller")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Cc: stable@kernel.org
</content>
</entry>
<entry>
<title>Revert "i2c: tegra: Better handle case where CPU0 is busy for a long time"</title>
<updated>2020-04-28T11:31:17Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@the-dreams.de</email>
</author>
<published>2020-04-27T08:52:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8839e4605eacfc711b775c90f24b62149bf6574e'/>
<id>urn:sha1:8839e4605eacfc711b775c90f24b62149bf6574e</id>
<content type='text'>
This reverts commit a900aeac253729411cf33c6cb598c152e9e4137f because
regressions were showing up.

Suggested-by: Thierry Reding &lt;treding@nvidia.com&gt;
Link: https://lore.kernel.org/dmaengine/20200319201140.17451-1-digetx@gmail.com/
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>Revert "i2c: tegra: Synchronize DMA before termination"</title>
<updated>2020-04-28T11:31:16Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@the-dreams.de</email>
</author>
<published>2020-04-27T08:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=deb821ffe293b12288b2bf20a75adb50f710273f'/>
<id>urn:sha1:deb821ffe293b12288b2bf20a75adb50f710273f</id>
<content type='text'>
This reverts commit 8814044fe0fa182abc9ff818d3da562de98bc9a7 because
regressions were showing up.

Suggested-by: Thierry Reding &lt;treding@nvidia.com&gt;
Link: https://lore.kernel.org/dmaengine/20200319201140.17451-1-digetx@gmail.com/
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
</feed>
