<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/mtd/maps/physmap.c, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2018-11-05T21:24:20Z</updated>
<entry>
<title>mtd: maps: Prepare merging of physmap and physmap_of</title>
<updated>2018-11-05T21:24:20Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:49:03Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0c3def9b58d85ea8a8a8773d1151d8d554842d0a'/>
<id>urn:sha1:0c3def9b58d85ea8a8a8773d1151d8d554842d0a</id>
<content type='text'>
We want to merge the physmap and physmap_of driver, but before we can
do that we must prepare things to create physmap.o out of several .c
files. Rename physmap.c into physmap-core.c and add a new Makefile
rule to create physmap.o (right now it only contains physmap-core.o).

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Fix coding style issues reported by checkpatch</title>
<updated>2018-11-05T21:24:15Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:49:02Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cb946bf6aaeb7c8151b18924d81370ffe6b7441b'/>
<id>urn:sha1:cb946bf6aaeb7c8151b18924d81370ffe6b7441b</id>
<content type='text'>
Fix the following coding style issues:
- != NULL and == NULL test replaced by ! (or nothing)
- split over 80 chars lines
- add missing braces in multi-line if() {} else {} statements

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Return -ENOMEM directly when info allocation fails</title>
<updated>2018-11-05T21:24:10Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:49:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=7abe5309de76337920f103d9e34ebd42a479533b'/>
<id>urn:sha1:7abe5309de76337920f103d9e34ebd42a479533b</id>
<content type='text'>
There's no point going to the err_out path since no resources have
been allocated yet, just return -ENOMEM directly.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Check mtd_device_{parse_register, unregister}() ret code</title>
<updated>2018-11-05T21:24:05Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:49:00Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1e4f42084910067b2d37002afb6d1d1413552e1c'/>
<id>urn:sha1:1e4f42084910067b2d37002afb6d1d1413552e1c</id>
<content type='text'>
mtd_device_parse_register() and mtd_device_unregister() can fail,
check their return code and propagate the error to the upper layer
if needed.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Remove the MAX_RESOURCES limitation</title>
<updated>2018-11-05T21:23:58Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:48:59Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=51b436a2420e32258f78f0d7a53c8ad1c8569d3b'/>
<id>urn:sha1:51b436a2420e32258f78f0d7a53c8ad1c8569d3b</id>
<content type='text'>
Remove the MAX_RESOURCES limitation by dynamically allocating the
-&gt;mtds[] and -&gt;maps[] at probe time based on the number of iomem
resources attached to the platform device.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Use devm_ioremap_resource()</title>
<updated>2018-11-05T21:23:54Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:48:58Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ea5bc54b12e822a2691c8b7348fae3badb6e376c'/>
<id>urn:sha1:ea5bc54b12e822a2691c8b7348fae3badb6e376c</id>
<content type='text'>
Use devm_ioremap_resource() to replace the devm_request_mem_region() +
devm_ioremap() combination.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Use dev_notice() and a %pR specifier</title>
<updated>2018-11-05T21:23:49Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:48:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=16f2101b4ddb34e4524623425a19cb7bbf7ced9c'/>
<id>urn:sha1:16f2101b4ddb34e4524623425a19cb7bbf7ced9c</id>
<content type='text'>
Replace printk(KERN_NOTICE) by dev_notice() use the %pR specifier to
print the iomem resource.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Use platform_get_resource() to retrieve iomem resources</title>
<updated>2018-11-05T21:23:43Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:48:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c7f6dc60a319edac986486580b2fc31475ceba11'/>
<id>urn:sha1:c7f6dc60a319edac986486580b2fc31475ceba11</id>
<content type='text'>
Stop manipulating the dev-&gt;resource array directly and use the
platform_get_resource() helper instead.

While at it, fix the loop check so that we never overflow the info-&gt;maps
and info-&gt;mtds array even if the number of resources attached to the
platform dev is higher than MAX_RESOURCES.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Rename -&gt;map and -&gt;mtd into -&gt;maps and -&gt;mtds</title>
<updated>2018-11-05T21:23:33Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:48:55Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=00142d6ffeb67b22e1f5259c9f3af540ed1d2b62'/>
<id>urn:sha1:00142d6ffeb67b22e1f5259c9f3af540ed1d2b62</id>
<content type='text'>
The -&gt;map and -&gt;mtd fields are actually arrays of map and mtd objects.
Rename those fields into -&gt;maps and -&gt;mtds to make it obvious.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>mtd: maps: physmap: Add SPDX header</title>
<updated>2018-11-05T21:21:58Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-10-19T07:48:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=18d54e557c55fbf29d1a25fe2e1c01b0970f36cb'/>
<id>urn:sha1:18d54e557c55fbf29d1a25fe2e1c01b0970f36cb</id>
<content type='text'>
Add an SPDX header matching the MODULE_LICENSE("GPL") definition.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Reviewed-by: Ricardo Ribalda Delgado &lt;ricardo.ribalda@gmail.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
</feed>
