<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/edac/aspeed_edac.c, branch v7.1</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v7.1</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v7.1'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-12-01T23:12:43+00:00</updated>
<entry>
<title>Get rid of 'remove_new' relic from platform driver struct</title>
<updated>2024-12-01T23:12:43+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2024-12-01T23:12:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e70140ba0d2b1a30467d4af6bcfe761327b9ec95'/>
<id>urn:sha1:e70140ba0d2b1a30467d4af6bcfe761327b9ec95</id>
<content type='text'>
The continual trickle of small conversion patches is grating on me, and
is really not helping.  Just get rid of the 'remove_new' member
function, which is just an alias for the plain 'remove', and had a
comment to that effect:

  /*
   * .remove_new() is a relic from a prototype conversion of .remove().
   * New drivers are supposed to implement .remove(). Once all drivers are
   * converted to not use .remove_new any more, it will be dropped.
   */

This was just a tree-wide 'sed' script that replaced '.remove_new' with
'.remove', with some care taken to turn a subsequent tab into two tabs
to make things line up.

I did do some minimal manual whitespace adjustment for places that used
spaces to line things up.

Then I just removed the old (sic) .remove_new member function, and this
is the end result.  No more unnecessary conversion noise.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>EDAC/aspeed: Convert to platform remove callback returning void</title>
<updated>2023-11-20T20:26:01+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2023-10-04T13:12:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2546fffd91299e60e0b1558b61448d054f37274b'/>
<id>urn:sha1:2546fffd91299e60e0b1558b61448d054f37274b</id>
<content type='text'>
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Borislav Petkov (AMD) &lt;bp@alien8.de&gt;
Link: https://lore.kernel.org/r/20231004131254.2673842-4-u.kleine-koenig@pengutronix.de
</content>
</entry>
<entry>
<title>EDAC/aspeed: Use proper format string for printing resource</title>
<updated>2021-05-18T14:33:13+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2021-04-21T13:54:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2e2f16d5cdb33e5f6fc53b7ad66c9f456d5f2950'/>
<id>urn:sha1:2e2f16d5cdb33e5f6fc53b7ad66c9f456d5f2950</id>
<content type='text'>
On ARMv7, resource_size_t can be 64-bit, which breaks printing
it as %x:

  drivers/edac/aspeed_edac.c: In function 'init_csrows':
  drivers/edac/aspeed_edac.c:257:28: error: format '%x' expects argument of \
    type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long \
    long unsigned int'} [-Werror=format=]
  257 |         dev_dbg(mci-&gt;pdev, "dt: /memory node resources: first page \
    r.start=0x%x, resource_size=0x%x, PAGE_SHIFT macro=0x%x\n",

Use the special %pR format string to pretty-print the entire resource
instead.

Fixes: edfc2d73ca45 ("EDAC/aspeed: Add support for AST2400 and AST2600")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Link: https://lkml.kernel.org/r/20210421135500.3518661-1-arnd@kernel.org
</content>
</entry>
<entry>
<title>EDAC/aspeed: Add support for AST2400 and AST2600</title>
<updated>2020-12-07T11:05:41+00:00</updated>
<author>
<name>Troy Lee</name>
<email>troy_lee@aspeedtech.com</email>
</author>
<published>2020-12-07T09:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=edfc2d73ca45da19fb76f9b76ecc6e885d74d093'/>
<id>urn:sha1:edfc2d73ca45da19fb76f9b76ecc6e885d74d093</id>
<content type='text'>
Add AST2400 and AST2600 EDAC driver support.

Signed-off-by: Troy Lee &lt;troy_lee@aspeedtech.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Stefan Schaeckeler &lt;sschaeck@cisco.com&gt;
Link: https://lkml.kernel.org/r/20201207090013.14145-3-troy_lee@aspeedtech.com
</content>
</entry>
<entry>
<title>EDAC/aspeed: Use module_platform_driver() to simplify</title>
<updated>2020-09-18T07:14:01+00:00</updated>
<author>
<name>Liu Shixin</name>
<email>liushixin2@huawei.com</email>
</author>
<published>2020-09-14T06:53:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=07def58717dab4ff0055c61c316df65d59c53c83'/>
<id>urn:sha1:07def58717dab4ff0055c61c316df65d59c53c83</id>
<content type='text'>
Use module_platform_driver() which makes the code simpler by eliminating
boilerplate code.

Signed-off-by: Liu Shixin &lt;liushixin2@huawei.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Joel Stanley &lt;joel@jms.id.au&gt;
Link: https://lkml.kernel.org/r/20200914065358.3726216-1-liushixin2@huawei.com
</content>
</entry>
<entry>
<title>EDAC/aspeed: Fix handling of platform_get_irq() error</title>
<updated>2020-09-01T18:41:27+00:00</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>krzk@kernel.org</email>
</author>
<published>2020-08-27T07:07:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=afce6996943be265fa39240b67025cfcb1bcdfb1'/>
<id>urn:sha1:afce6996943be265fa39240b67025cfcb1bcdfb1</id>
<content type='text'>
platform_get_irq() returns a negative error number on error. In such a
case, comparison to 0 would pass the check therefore check the return
value properly, whether it is negative.

 [ bp: Massage commit message. ]

Fixes: 9b7e6242ee4e ("EDAC, aspeed: Add an Aspeed AST2500 EDAC driver")
Signed-off-by: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Stefan Schaeckeler &lt;schaecsn@gmx.net&gt;
Link: https://lkml.kernel.org/r/20200827070743.26628-1-krzk@kernel.org
</content>
</entry>
<entry>
<title>EDAC/aspeed: Remove unneeded semicolon</title>
<updated>2019-12-19T06:27:09+00:00</updated>
<author>
<name>Xu Wang</name>
<email>vulab@iscas.ac.cn</email>
</author>
<published>2019-12-18T06:00:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a651c6c64431765c7a833e37dae5b135622bdf04'/>
<id>urn:sha1:a651c6c64431765c7a833e37dae5b135622bdf04</id>
<content type='text'>
Remove unneeded semicolon reported by coccinelle.

Signed-off-by: Xu Wang &lt;vulab@iscas.ac.cn&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Acked-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Cc: James Morse &lt;james.morse@arm.com&gt;
Cc: Joel Stanley &lt;joel@jms.id.au&gt;
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-aspeed@lists.ozlabs.org
Cc: linux-edac &lt;linux-edac@vger.kernel.org&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Cc: Robert Richter &lt;rrichter@marvell.com&gt;
Cc: Stefan Schaeckeler &lt;sschaeck@cisco.com&gt;
Cc: Tony Luck &lt;tony.luck@intel.com&gt;
Link: https://lkml.kernel.org/r/1576648806-1114-1-git-send-email-vulab@iscas.ac.cn
</content>
</entry>
<entry>
<title>EDAC/aspeed: Use devm_platform_ioremap_resource() in aspeed_probe()</title>
<updated>2019-10-24T09:17:29+00:00</updated>
<author>
<name>Markus Elfring</name>
<email>elfring@users.sourceforge.net</email>
</author>
<published>2019-09-21T16:32:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5bbab3cf211b4b70415de05f428fa91fb454aa41'/>
<id>urn:sha1:5bbab3cf211b4b70415de05f428fa91fb454aa41</id>
<content type='text'>
Simplify this function implementation by using a known wrapper function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Acked-by: Joel Stanley &lt;joel@jms.id.au&gt;
Cc: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Cc: James Morse &lt;james.morse@arm.com&gt;
Cc: kernel-janitors@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-aspeed@lists.ozlabs.org
Cc: linux-edac &lt;linux-edac@vger.kernel.org&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Cc: Robert Richter &lt;rrichter@marvell.com&gt;
Cc: Stefan Schaeckeler &lt;sschaeck@cisco.com&gt;
Cc: Tony Luck &lt;tony.luck@intel.com&gt;
Link: https://lkml.kernel.org/r/baabb9e9-a1b2-3a04-9fb6-aa632de5f722@web.de
</content>
</entry>
<entry>
<title>EDAC/aspeed: Remove set but not used variable 'np'</title>
<updated>2019-06-20T18:44:36+00:00</updated>
<author>
<name>YueHaibing</name>
<email>yuehaibing@huawei.com</email>
</author>
<published>2019-05-25T14:41:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ff70cacc967f9455e4b6f62b9a57b5962d9fb725'/>
<id>urn:sha1:ff70cacc967f9455e4b6f62b9a57b5962d9fb725</id>
<content type='text'>
Fix the following -Wunused-but-set-variable warning:

  drivers/edac/aspeed_edac.c: In function aspeed_probe:
  drivers/edac/aspeed_edac.c:284:22: warning: variable np set but not used [-Wunused-but-set-variable]

It is never used and can be removed.

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Reviewed-by: Stefan Schaeckeler &lt;sschaeck@cisco.com&gt;
Cc: James Morse &lt;james.morse@arm.com&gt;
Cc: Joel Stanley &lt;joel@jms.id.au&gt;
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-aspeed@lists.ozlabs.org
Cc: linux-edac &lt;linux-edac@vger.kernel.org&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Link: https://lkml.kernel.org/r/20190525144153.2028-1-yuehaibing@huawei.com
</content>
</entry>
<entry>
<title>EDAC, aspeed: Add an Aspeed AST2500 EDAC driver</title>
<updated>2019-01-18T14:23:11+00:00</updated>
<author>
<name>Stefan M Schaeckeler</name>
<email>sschaeck@cisco.com</email>
</author>
<published>2019-01-17T16:38:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9b7e6242ee4efcd7f9ef699bf1965e3a5343f216'/>
<id>urn:sha1:9b7e6242ee4efcd7f9ef699bf1965e3a5343f216</id>
<content type='text'>
Add support for the Aspeed AST2500 SoC.

Signed-off-by: Stefan M Schaeckeler &lt;sschaeck@cisco.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Cc: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Cc: Joel Stanley &lt;joel@jms.id.au&gt;
Cc: Mark Rutland &lt;mark.rutland@arm.com&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Cc: Rob Herring &lt;robh+dt@kernel.org&gt;
Cc: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-aspeed@lists.ozlabs.org
Cc: linux-edac &lt;linux-edac@vger.kernel.org&gt;
Link: https://lkml.kernel.org/r/1547743097-5236-2-git-send-email-schaecsn@gmx.net
</content>
</entry>
</feed>
