<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/linux/i2c.h, branch v4.18.8</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.18.8</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.18.8'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2018-05-22T11:42:16Z</updated>
<entry>
<title>i2c: Export of_i2c_get_board_info()</title>
<updated>2018-05-22T11:42:16Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-03-25T12:49:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=da0086d018223529c686ef46db039533572418d8'/>
<id>urn:sha1:da0086d018223529c686ef46db039533572418d8</id>
<content type='text'>
I3C busses have to know about all I2C devices connected on the I3C bus
to properly initialize the I3C master, and I2C frames can't be sent on
the bus until this initialization is done.

We can't let the I2C core parse the DT and instantiate I2C devices as
part of its i2c_add_adapter() procedure because, when done this way,
I2C devices are directly registered to the device-model and might be
attached to drivers which could in turn start sending frames on the bus,
which won't work since, as said above, the bus is not yet initialized.

Export of_i2c_register_device() in order to let the I3C core parse the
I2C device nodes by itself and initialize the bus.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: Get rid of i2c_board_info-&gt;archdata</title>
<updated>2018-05-15T08:42:20Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-03-25T12:49:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4fad8868afe7b168c34fab3d959d875f4f8b3624'/>
<id>urn:sha1:4fad8868afe7b168c34fab3d959d875f4f8b3624</id>
<content type='text'>
The only user of i2c_board_info-&gt;archdata is the OF parsing code and it
just pass a zero-initialized object which has the same effect as leaving
-&gt;archdata to NULL since the client object is allocated with kzalloc().

Get rid of this useless field.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: add i2c_get_device_id() to get the standard i2c device id</title>
<updated>2018-03-06T09:57:59Z</updated>
<author>
<name>Peter Rosin</name>
<email>peda@axentia.se</email>
</author>
<published>2018-01-22T07:32:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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:19Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2018-01-09T13:58:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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:03Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2018-01-09T13:58:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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:02Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2018-01-09T13:58:54Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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:38Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2017-11-04T20:20:05Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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:29Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2017-11-04T20:20:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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:44Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa+renesas@sang-engineering.com</email>
</author>
<published>2017-11-04T20:20:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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:01Z</updated>
<author>
<name>Phil Reid</name>
<email>preid@electromag.com.au</email>
</author>
<published>2017-11-02T02:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/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>
</feed>
