<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/misc/eeprom/at24.c, branch linux-5.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-10-04T08:46:39Z</updated>
<entry>
<title>eeprom: at24: Improve confusing log message</title>
<updated>2019-10-04T08:46:39Z</updated>
<author>
<name>Jean Delvare</name>
</author>
<published>2019-10-04T08:37:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=285be87c79e173f08af5e1a6417a106fb14934b7'/>
<id>urn:sha1:285be87c79e173f08af5e1a6417a106fb14934b7</id>
<content type='text'>
Currently when binding to an spd EEPROM, the at24 drivers logs the
following message:

256 byte spd EEPROM, read-only, 0 bytes/write

The last part is confusing, as by definition you don't write to a
read-only EEPROM, plus "0 bytes/write" makes no sense whatsoever.

I propose to have a different message for read-only EEPROMs, which
does not include this last part.

Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Cc: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Reviewed-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'i2c/for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux</title>
<updated>2019-09-24T23:48:02Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2019-09-24T23:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=351c8a09b00b5c51c8f58b016fffe51f87e2d820'/>
<id>urn:sha1:351c8a09b00b5c51c8f58b016fffe51f87e2d820</id>
<content type='text'>
Pull i2c updates from Wolfram Sang:

 - new driver for ICY, an Amiga Zorro card :)

 - axxia driver gained slave mode support, NXP driver gained ACPI

 - the slave EEPROM backend gained 16 bit address support

 - and lots of regular driver updates and reworks

* 'i2c/for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (52 commits)
  i2c: tegra: Move suspend handling to NOIRQ phase
  i2c: imx: ACPI support for NXP i2c controller
  i2c: uniphier(-f): remove all dev_dbg()
  i2c: uniphier(-f): use devm_platform_ioremap_resource()
  i2c: slave-eeprom: Add comment about address handling
  i2c: exynos5: Remove IRQF_ONESHOT
  i2c: stm32f7: Make structure stm32f7_i2c_algo constant
  i2c: cht-wc: drop check because i2c_unregister_device() is NULL safe
  i2c-eeprom_slave: Add support for more eeprom models
  i2c: fsi: Add of_put_node() before break
  i2c: synquacer: Make synquacer_i2c_ops constant
  i2c: hix5hd2: Remove IRQF_ONESHOT
  i2c: i801: Use iTCO version 6 in Cannon Lake PCH and beyond
  watchdog: iTCO: Add support for Cannon Lake PCH iTCO
  i2c: iproc: Make bcm_iproc_i2c_quirks constant
  i2c: iproc: Add full name of devicetree node to adapter name
  i2c: piix4: Add ACPI support
  i2c: piix4: Fix probing of reserved ports on AMD Family 16h Model 30h
  i2c: ocores: use request_any_context_irq() to register IRQ handler
  i2c: designware: Fix optional reset error handling
  ...
</content>
</entry>
<entry>
<title>eeprom: at24: make spd world-readable again</title>
<updated>2019-07-28T16:49:20Z</updated>
<author>
<name>Jean Delvare</name>
</author>
<published>2019-07-28T16:41:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25e5ef302c24a6fead369c0cfe88c073d7b97ca8'/>
<id>urn:sha1:25e5ef302c24a6fead369c0cfe88c073d7b97ca8</id>
<content type='text'>
The integration of the at24 driver into the nvmem framework broke the
world-readability of spd EEPROMs. Fix it.

Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Cc: stable@vger.kernel.org
Fixes: 57d155506dd5 ("eeprom: at24: extend driver to plug into the NVMEM framework")
Cc: Andrew Lunn &lt;andrew@lunn.ch&gt;
Cc: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: Bartosz Golaszewski &lt;brgl@bgdev.pl&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>eeprom: at24: remove unneeded include</title>
<updated>2019-07-22T12:36:56Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2019-07-03T12:07:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=10742fee98eb3b3e8453ef27a33dee314b15f7bd'/>
<id>urn:sha1:10742fee98eb3b3e8453ef27a33dee314b15f7bd</id>
<content type='text'>
We used to have a call to ilog2() in AT24_DEVICE_MAGIC(). That's long
gone so this header is no longer needed.

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Acked-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>eeprom: at24: modify a comment referring to platform data</title>
<updated>2019-06-27T13:55:08Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2019-06-25T07:55:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dce91ba39c765b2b90d07c717683abcdd9891592'/>
<id>urn:sha1:dce91ba39c765b2b90d07c717683abcdd9891592</id>
<content type='text'>
We no longer have platform data in at24, so this comment is invalid.
Make it refer to device tree &amp; properties instead.

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Acked-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>eeprom: at24: use struct_size() in devm_kzalloc()</title>
<updated>2019-05-31T07:06:52Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
</author>
<published>2019-05-29T16:30:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ae9d9bfb72ce43ab5851da55dd17c5f64e87151'/>
<id>urn:sha1:9ae9d9bfb72ce43ab5851da55dd17c5f64e87151</id>
<content type='text'>
One of the more common cases of allocation size calculations is finding
the size of a structure that has a zero-sized array at the end, along
with memory for some number of elements for that array. For example:

struct foo {
    int stuff;
    struct boo entry[];
};

size = sizeof(struct foo) + count * sizeof(struct boo);
instance = devm_kzalloc(dev, size, GFP_KERNEL);

Instead of leaving these open-coded and prone to type mistakes, we can
now use the new struct_size() helper:

instance = devm_kzalloc(dev, struct_size(instance, entry, count), GFP_KERNEL);

Notice that, in this case, variable at24_size is not necessary, hence it
is removed.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>eeprom: at24: Remove set but not used variable 'addr'</title>
<updated>2019-05-31T07:02:27Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2019-05-29T14:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8806581241b69b3ae3199f47412c04de854c53a'/>
<id>urn:sha1:a8806581241b69b3ae3199f47412c04de854c53a</id>
<content type='text'>
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/misc/eeprom/at24.c: In function at24_make_dummy_client:
drivers/misc/eeprom/at24.c:514:21: warning: variable addr set but not used [-Wunused-but-set-variable]

It's not used since commit e7308628d0ae ("eeprom:
at24: use devm_i2c_new_dummy_device()")

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>eeprom: at24: drop unnecessary label</title>
<updated>2019-05-28T15:55:11Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2019-05-20T07:10:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b20eb4c1f0261eebe6e1b9221c0d6e4048837778'/>
<id>urn:sha1:b20eb4c1f0261eebe6e1b9221c0d6e4048837778</id>
<content type='text'>
If we move the nvmem registration above the pm enable calls and the
test read, we can drop the error label and make the code more readable
as there's now only a single place where we must call
pm_runtime_disable() in error path.

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>eeprom: at24: use devm_i2c_new_dummy_device()</title>
<updated>2019-05-28T15:54:51Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2019-05-20T07:10:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e7308628d0ae5c90d2895d0f3e6030c390431ca6'/>
<id>urn:sha1:e7308628d0ae5c90d2895d0f3e6030c390431ca6</id>
<content type='text'>
Now that it's upstream, use the resource managed version
of i2c_new_dummy_device().

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Reviewed-by: Wolfram Sang &lt;wsa+renesas@sang-engineering.com&gt;
</content>
</entry>
<entry>
<title>eeprom: at24: implement support for 'num-addresses' property</title>
<updated>2019-02-14T08:32:35Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2019-02-05T13:18:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=950bcbbe31548636d24e49b3abaf3780204f7fe8'/>
<id>urn:sha1:950bcbbe31548636d24e49b3abaf3780204f7fe8</id>
<content type='text'>
If the device node defines 'num-addresses', let it override the default
behavior.

Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
</feed>
