<feed xmlns='http://www.w3.org/2005/Atom'>
<title>starfive-tech/linux.git/drivers/soc, branch visionfive_v1_5.13</title>
<subtitle>StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)</subtitle>
<id>https://git.radix-linux.su/starfive-tech/linux.git/atom?h=visionfive_v1_5.13</id>
<link rel='self' href='https://git.radix-linux.su/starfive-tech/linux.git/atom?h=visionfive_v1_5.13'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/'/>
<updated>2021-08-26T21:07:32+00:00</updated>
<entry>
<title>sifive/sifive_l2_cache: Align the address to cache line</title>
<updated>2021-08-26T21:07:32+00:00</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2021-06-12T23:52:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=ed011f264248fbfe931c300d1d82c290554dc3bf'/>
<id>urn:sha1:ed011f264248fbfe931c300d1d82c290554dc3bf</id>
<content type='text'>
[Emil: fix suggested by Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;]

Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
Signed-off-by: Emil Renner Berthing &lt;kernel@esmil.dk&gt;
</content>
</entry>
<entry>
<title>sifive/sifive_l2_cache: Print a backtrace on out-of-range flushes</title>
<updated>2021-08-26T21:07:32+00:00</updated>
<author>
<name>Geert Uytterhoeven</name>
<email>geert@linux-m68k.org</email>
</author>
<published>2021-05-21T06:35:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=6ba604e37eb769f2136da29c448ea2dda7639930'/>
<id>urn:sha1:6ba604e37eb769f2136da29c448ea2dda7639930</id>
<content type='text'>
This makes it easier to find out which driver passes a wrong address
range.

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
</content>
</entry>
<entry>
<title>sifive/sifive_l2_cache: Add disabling IRQ option (workaround)</title>
<updated>2021-08-26T21:07:32+00:00</updated>
<author>
<name>Tom</name>
<email>support@vamrs.com</email>
</author>
<published>2021-02-13T14:25:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=f9fcb91bb3bebb2d05321b2cbcf3d63dab76f833'/>
<id>urn:sha1:f9fcb91bb3bebb2d05321b2cbcf3d63dab76f833</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sifive/sifive_l2_cache: Add Starfive support</title>
<updated>2021-08-26T21:07:32+00:00</updated>
<author>
<name>Tom</name>
<email>support@vamrs.com</email>
</author>
<published>2021-02-15T15:59:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=68117ca1014a3543b52e22e50fa761e29951586a'/>
<id>urn:sha1:68117ca1014a3543b52e22e50fa761e29951586a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sifive/sifive_l2_cache: Add sifive_l2_flush64_range function</title>
<updated>2021-08-26T21:07:32+00:00</updated>
<author>
<name>Tom</name>
<email>support@vamrs.com</email>
</author>
<published>2021-01-07T18:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=36b7d57f2116219437974859857113ced3ab3221'/>
<id>urn:sha1:36b7d57f2116219437974859857113ced3ab3221</id>
<content type='text'>
</content>
</entry>
<entry>
<title>soc: fsl: qe: fix static checker warning</title>
<updated>2021-08-26T12:35:06+00:00</updated>
<author>
<name>Maxim Kochetkov</name>
<email>fido_max@inbox.ru</email>
</author>
<published>2021-08-11T07:10:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=47d43f06fd879d66cfba77ea20111be48ceece0b'/>
<id>urn:sha1:47d43f06fd879d66cfba77ea20111be48ceece0b</id>
<content type='text'>
[ Upstream commit c1e64c0aec8cb0499e61af7ea086b59abba97945 ]

The patch be7ecbd240b2: "soc: fsl: qe: convert QE interrupt
controller to platform_device" from Aug 3, 2021, leads to the
following static checker warning:

	drivers/soc/fsl/qe/qe_ic.c:438 qe_ic_init()
	warn: unsigned 'qe_ic-&gt;virq_low' is never less than zero.

In old variant irq_of_parse_and_map() returns zero if failed so
unsigned int for virq_high/virq_low was ok.
In new variant platform_get_irq() returns negative error codes
if failed so we need to use int for virq_high/virq_low.

Also simplify high_handler checking and remove the curly braces
to make checkpatch happy.

Fixes: be7ecbd240b2 ("soc: fsl: qe: convert QE interrupt controller to platform_device")
Signed-off-by: Maxim Kochetkov &lt;fido_max@inbox.ru&gt;
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Li Yang &lt;leoyang.li@nxp.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: fsl: qe: convert QE interrupt controller to platform_device</title>
<updated>2021-08-26T12:35:03+00:00</updated>
<author>
<name>Maxim Kochetkov</name>
<email>fido_max@inbox.ru</email>
</author>
<published>2021-08-03T11:35:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=ed6b6c758b67d6af650679d45d30c240cf1c0b0f'/>
<id>urn:sha1:ed6b6c758b67d6af650679d45d30c240cf1c0b0f</id>
<content type='text'>
[ Upstream commit be7ecbd240b2f9ec544d3ce6fccf4cec3cd15dca ]

Since 5.13 QE's ucc nodes can't get interrupts from devicetree:

	ucc@2000 {
		cell-index = &lt;1&gt;;
		reg = &lt;0x2000 0x200&gt;;
		interrupts = &lt;32&gt;;
		interrupt-parent = &lt;&amp;qeic&gt;;
	};

Now fw_devlink expects driver to create and probe a struct device
for interrupt controller.

So lets convert this driver to simple platform_device with probe().
Also use platform_get_ and devm_ family function to get/allocate
resources and drop unused .compatible = "qeic".

[1] - https://lore.kernel.org/lkml/CAGETcx9PiX==mLxB9PO8Myyk6u2vhPVwTMsA5NkD-ywH5xhusw@mail.gmail.com
Fixes: e590474768f1 ("driver core: Set fw_devlink=on by default")
Fixes: ea718c699055 ("Revert "Revert "driver core: Set fw_devlink=on by default""")
Signed-off-by: Maxim Kochetkov &lt;fido_max@inbox.ru&gt;
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Saravana Kannan &lt;saravanak@google.com&gt;
Signed-off-by: Li Yang &lt;leoyang.li@nxp.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>soc: ixp4xx/qmgr: fix invalid __iomem access</title>
<updated>2021-08-12T11:32:25+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2021-08-03T08:12:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=1de1a42a85900be2604c205a843f01106a3f03a7'/>
<id>urn:sha1:1de1a42a85900be2604c205a843f01106a3f03a7</id>
<content type='text'>
commit a8eee86317f11e97990d755d4615c1c0db203d08 upstream.

Sparse reports a compile time warning when dereferencing an
__iomem pointer:

drivers/soc/ixp4xx/ixp4xx-qmgr.c:149:37: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:153:40: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:154:40: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:174:38: warning: dereference of noderef expression
drivers/soc/ixp4xx/ixp4xx-qmgr.c:174:44: warning: dereference of noderef expression

Use __raw_readl() here for consistency with the rest of the file.
This should really get converted to some proper accessor, as the
__raw functions are not meant to be used in drivers, but the driver
has used these since the start, so for the moment, let's only fix
the warning.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Fixes: d4c9e9fc9751 ("IXP42x: Add QMgr support for IXP425 rev. A0 processors.")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>soc: ixp4xx: fix printing resources</title>
<updated>2021-08-12T11:32:24+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2019-11-08T08:43:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=6d74664e9843dd78dd55b6c8b08360a403315f04'/>
<id>urn:sha1:6d74664e9843dd78dd55b6c8b08360a403315f04</id>
<content type='text'>
commit 8861452b2097bb0b5d0081a1c137fb3870b0a31f upstream.

When compile-testing with 64-bit resource_size_t, gcc reports an invalid
printk format string:

In file included from include/linux/dma-mapping.h:7,
                 from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
drivers/soc/ixp4xx/ixp4xx-npe.c: In function 'ixp4xx_npe_probe':
drivers/soc/ixp4xx/ixp4xx-npe.c:694:18: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=]
    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",

Use the special %pR format string to print the resources.

Fixes: 0b458d7b10f8 ("soc: ixp4xx: npe: Pass addresses as resources")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Revert "soc: imx8m: change to use platform driver"</title>
<updated>2021-08-12T11:32:03+00:00</updated>
<author>
<name>Lucas Stach</name>
<email>l.stach@pengutronix.de</email>
</author>
<published>2021-06-28T21:09:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/starfive-tech/linux.git/commit/?id=48b425d005b52679ce1407670b0425f2c13ace8a'/>
<id>urn:sha1:48b425d005b52679ce1407670b0425f2c13ace8a</id>
<content type='text'>
[ Upstream commit ac34de14ac30ba4484d68f8845a54b6b6c23db42 ]

With the SoC matching changed to a platform driver the match data
is available only after other drivers, which may rely on it are
already probed. This breaks at least the CAAM driver on i.MX8M.
Revert the change until all those drivers have been audited and
changed to be able to eal with match data being available later
in the boot process.

Fixes: 7d981405d0fd ("soc: imx8m: change to use platform driver")
Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Tested-by: Frieder Schrempf &lt;frieder.schrempf@kontron.de&gt;
Acked-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Signed-off-by: Shawn Guo &lt;shawnguo@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
</feed>
