<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/linux/i2c.h, branch v4.17.5</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.17.5</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.17.5'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2018-03-06T09:57:59+00:00</updated>
<entry>
<title>i2c: add i2c_get_device_id() to get the standard i2c device id</title>
<updated>2018-03-06T09:57:59+00:00</updated>
<author>
<name>Peter Rosin</name>
<email>peda@axentia.se</email>
</author>
<published>2018-01-22T07:32:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=dde67eb1beebcd8493e7b30e74a80f0865ab7e36'/>
<id>urn:sha1:dde67eb1beebcd8493e7b30e74a80f0865ab7e36</id>
<content type='text'>
Can be used during probe to double check that the probed device is
what is expected.

Loosely based on code from Adrian Fiergolski &lt;adrian.fiergolski@cern.ch&gt;.

Tested-by: Adrian Fiergolski &lt;adrian.fiergolski@cern.ch&gt;
Reviewed-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Signed-off-by: Peter Rosin &lt;peda@axentia.se&gt;
</content>
</entry>
<entry>
<title>i2c: add 'set_sda' to bus_recovery_info</title>
<updated>2018-01-15T23:04:19+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2018-01-09T13:58:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8092178ffe67dbd1f987e2e308e871c774774a16'/>
<id>urn:sha1:8092178ffe67dbd1f987e2e308e871c774774a16</id>
<content type='text'>
This will be needed when we want to create STOP conditions, too, later.
Create the needed fields and populate them for the GPIO case if the GPIO
is set to output.

Tested-by: Phil Reid &lt;preid@electromag.com.au&gt;
Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: add identifier in declarations for i2c_bus_recovery</title>
<updated>2018-01-15T23:04:03+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2018-01-09T13:58:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6c92204e446694306198c7c394f3692bde46b696'/>
<id>urn:sha1:6c92204e446694306198c7c394f3692bde46b696</id>
<content type='text'>
No reason to have them undefined, so let's add them.

Tested-by: Phil Reid &lt;preid@electromag.com.au&gt;
Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: make kerneldoc about bus recovery more precise</title>
<updated>2018-01-15T23:04:02+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2018-01-09T13:58:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=766a4f27f328979c10efd7272b05261166296435'/>
<id>urn:sha1:766a4f27f328979c10efd7272b05261166296435</id>
<content type='text'>
"Used internally" is vague. What it actually means is that those fields
are populated by the core if valid GPIOs are provided. Change the
comments to reflect that.

Tested-by: Phil Reid &lt;preid@electromag.com.au&gt;
Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: add i2c_master_{send|recv}_dmasafe</title>
<updated>2017-12-03T20:23:38+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2017-11-04T20:20:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ba98645c7d54640f163096cda3609d4d55c6ae54'/>
<id>urn:sha1:ba98645c7d54640f163096cda3609d4d55c6ae54</id>
<content type='text'>
Use the new helper to create variants of i2c_master_{send|recv} which
mark their buffers as DMA safe.

Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Acked-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: refactor i2c_master_{send_recv}</title>
<updated>2017-12-03T20:22:29+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2017-11-04T20:20:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8a91732b3b33454d8034e7be5c8342f028ea772e'/>
<id>urn:sha1:8a91732b3b33454d8034e7be5c8342f028ea772e</id>
<content type='text'>
Those two functions are very similar, the only differences are that one
needs the I2C_M_RD flag for its message while the other one needs the
buffer casted to drop the const. Introduce a generic helper which allows
to specify the flags (also needed later for DMA safe variants of these
calls) and let the casting be done in the inlining functions which are
now calling the new helper function.

Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: add helpers to ease DMA handling</title>
<updated>2017-12-03T19:47:44+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2017-11-04T20:20:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e94bc5d18be03dac8e9d73d30c5523728edeff76'/>
<id>urn:sha1:e94bc5d18be03dac8e9d73d30c5523728edeff76</id>
<content type='text'>
One helper checks if DMA is suitable and optionally creates a bounce
buffer, if not. The other function returns the bounce buffer and makes
sure the data is properly copied back to the message.

Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: remove legacy integer scl/sda gpio for recovery</title>
<updated>2017-11-27T17:40:01+00:00</updated>
<author>
<name>Phil Reid</name>
<email>preid@electromag.com.au</email>
</author>
<published>2017-11-02T02:40:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e1eb7d28c0753ec3e5ff9dce7880c243ffdfd4b3'/>
<id>urn:sha1:e1eb7d28c0753ec3e5ff9dce7880c243ffdfd4b3</id>
<content type='text'>
Remove all reference to code related to using integer based ids for
scl/sda gpio for bus recovery. All in tree drivers are now using the
gpio descriptors to specific the required gpios.

Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Phil Reid &lt;preid@electromag.com.au&gt;
Reviewed-by: Jarkko Nikula &lt;jarkko.nikula@linux.intel.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: Switch to using gpiod interface for gpio bus recovery</title>
<updated>2017-11-27T17:39:13+00:00</updated>
<author>
<name>Phil Reid</name>
<email>preid@electromag.com.au</email>
</author>
<published>2017-11-02T02:40:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3991c5c80beaf7eb9bce61e0b2f8f449e351a38e'/>
<id>urn:sha1:3991c5c80beaf7eb9bce61e0b2f8f449e351a38e</id>
<content type='text'>
Currently the i2c gpio recovery code uses gpio integer interface
instead of the gpiod. This change switch the core code to use
the gpiod while still retaining compatibility with the gpio integer
interface. This will allow individual driver to be updated and tested
individual to switch to using the gpiod interface.

Reviewed-by: Jarkko Nikula &lt;jarkko.nikula@linux.intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Phil Reid &lt;preid@electromag.com.au&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: use macro IS_ENABLED in header i2c.h</title>
<updated>2017-11-27T17:31:57+00:00</updated>
<author>
<name>Stefan Lengfeld</name>
<email>slengfeld@inovex.de</email>
</author>
<published>2017-11-01T20:06:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=901a891fa6235b68d4c007800ea91c1a091f6f99'/>
<id>urn:sha1:901a891fa6235b68d4c007800ea91c1a091f6f99</id>
<content type='text'>
Using the macro IS_ENABLED to check the option CONFIG_I2C=(y|m) makes
the code nicer.  No functional change.

Signed-off-by: Stefan Lengfeld &lt;contact@stefanchrist.eu&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
</feed>
