<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/soc/fsl/guts.c, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-07-05T00:41:55Z</updated>
<entry>
<title>soc: fsl: guts: check return value after calling of_iomap() in fsl_guts_get_soc_uid()</title>
<updated>2022-07-05T00:41:55Z</updated>
<author>
<name>Yang Yingliang</name>
</author>
<published>2022-06-28T14:02:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63f98153075167a6c88d8ac90bfd26f1887c670c'/>
<id>urn:sha1:63f98153075167a6c88d8ac90bfd26f1887c670c</id>
<content type='text'>
of_iomap() may return NULL, so we need check the return value.

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Reviewed-by: Michael Walle &lt;michael@walle.cc&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: fix return value check in fsl_guts_init()</title>
<updated>2022-07-05T00:41:20Z</updated>
<author>
<name>Yang Yingliang</name>
</author>
<published>2022-06-28T14:02:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=edf12b913abb69abce4cd6996398a4ce23e5b047'/>
<id>urn:sha1:edf12b913abb69abce4cd6996398a4ce23e5b047</id>
<content type='text'>
In case of error, of_iomap() returns NULL pointer not ERR_PTR().
The IS_ERR() test in the return value check should be replaced
with NULL test and return -ENOMEM as error value.

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Reviewed-by: Michael Walle &lt;michael@walle.cc&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: add serial_number support</title>
<updated>2022-06-27T06:52:02Z</updated>
<author>
<name>Michael Walle</name>
</author>
<published>2022-04-04T09:56:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=786dde1e59d7122f55e42f5ab1167bc10ad87a41'/>
<id>urn:sha1:786dde1e59d7122f55e42f5ab1167bc10ad87a41</id>
<content type='text'>
Most layerscapes provide a security fuse processor where the vendor
will store a unique id per part. Unfortunately, we cannot use the
corresponding efuse driver because this driver needs to be ready
early during the boot phase. To get the unique identifier, we just
need to access two registers. Thus we just search the device tree
for the corresponding device, map its memory to read the id and then
unmap it again.

Because it is likely that the offset within the fuses is dependent
on the SoC, we need a per SoC data. Also, the compatible string is
different among the SoCs. For now, this add support for the LS1028A
SoC.

Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: drop platform driver</title>
<updated>2022-06-27T06:51:59Z</updated>
<author>
<name>Michael Walle</name>
</author>
<published>2022-04-04T09:56:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55488c90b392d74a6a8bbd358b7129aab0b19aee'/>
<id>urn:sha1:55488c90b392d74a6a8bbd358b7129aab0b19aee</id>
<content type='text'>
This driver cannot be unloaded and it will be needed very early in the
boot process because other driver (weakly) depend on it (eg. for chip
errata handling). Drop all the platform driver and devres stuff and
simply make it a core_initcall.

Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: use of_root instead of own reference</title>
<updated>2022-06-27T06:51:56Z</updated>
<author>
<name>Michael Walle</name>
</author>
<published>2022-04-04T09:56:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b46dd0cb93decf58c43db0a39c1c047fc5315901'/>
<id>urn:sha1:b46dd0cb93decf58c43db0a39c1c047fc5315901</id>
<content type='text'>
There is already a global of_root reference. Use that instead of getting
one on our own. We don't need to care about the reference count either
this way.

Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: allocate soc_dev_attr on the heap</title>
<updated>2022-06-27T06:51:54Z</updated>
<author>
<name>Michael Walle</name>
</author>
<published>2022-04-04T09:56:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d707e4e3fb5185b24a41d72f75599cc77afab61'/>
<id>urn:sha1:5d707e4e3fb5185b24a41d72f75599cc77afab61</id>
<content type='text'>
This is the last global static variable. Drop it and allocate the memory
on the heap instead.

Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: embed fsl_guts_get_svr() in probe()</title>
<updated>2022-06-27T06:51:51Z</updated>
<author>
<name>Michael Walle</name>
</author>
<published>2022-04-04T09:56:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ab4988d6a39348dd8c031ef6db946afb9a543f0f'/>
<id>urn:sha1:ab4988d6a39348dd8c031ef6db946afb9a543f0f</id>
<content type='text'>
Move the reading of the SVR into the probe function as
fsl_guts_get_svr() is the only user of the static guts variable and this
lets us drop that as well as the malloc() for this variable. Also, we
can unmap the memory region after we accessed it, which will simplify
error handling later.

Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: remove module_exit() and fsl_guts_remove()</title>
<updated>2022-06-27T06:51:48Z</updated>
<author>
<name>Michael Walle</name>
</author>
<published>2022-04-04T09:56:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6de6cb89fc031cf95cb759bbf9fa00b139e0281a'/>
<id>urn:sha1:6de6cb89fc031cf95cb759bbf9fa00b139e0281a</id>
<content type='text'>
This driver will never be unloaded. Firstly, it is not available as a
module, but more importantly, other drivers will depend on this one to
apply possible chip errata.

Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: machine variable might be unset</title>
<updated>2022-06-27T06:51:28Z</updated>
<author>
<name>Michael Walle</name>
</author>
<published>2022-04-04T09:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ab3f045774f704c4e7b6a878102f4e9d4ae7bc74'/>
<id>urn:sha1:ab3f045774f704c4e7b6a878102f4e9d4ae7bc74</id>
<content type='text'>
If both the model and the compatible properties are missing, then
machine will not be set. Initialize it with NULL.

Fixes: 34c1c21e94ac ("soc: fsl: fix section mismatch build warnings")
Signed-off-by: Michael Walle &lt;michael@walle.cc&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: guts: Add a missing memory allocation failure check</title>
<updated>2022-02-18T23:11:20Z</updated>
<author>
<name>Christophe JAILLET</name>
</author>
<published>2021-11-03T20:00:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9abe942cda43a1d46a0fd96efb54f1aa909f757'/>
<id>urn:sha1:b9abe942cda43a1d46a0fd96efb54f1aa909f757</id>
<content type='text'>
If 'devm_kstrdup()' fails, we should return -ENOMEM.

While at it, move the 'of_node_put()' call in the error handling path and
after the 'machine' has been copied.
Better safe than sorry.

Fixes: a6fc3b698130 ("soc: fsl: add GUTS driver for QorIQ platforms")
Depends-on: fddacc7ff4dd ("soc: fsl: guts: Revert commit 3c0d64e867ed")
Suggested-by: Tyrel Datwyler &lt;tyreld@linux.ibm.com&gt;
Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Signed-off-by: Li Yang &lt;leoyang.li@nxp.com&gt;
</content>
</entry>
</feed>
