<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/mtd/nand/bcm47xxnflash/main.c, branch vm-bind</title>
<subtitle>Linux Kernel</subtitle>
<id>https://git.etezian.org/cgit.cgi/linux.git/atom?h=vm-bind</id>
<link rel='self' href='https://git.etezian.org/cgit.cgi/linux.git/atom?h=vm-bind'/>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/'/>
<updated>2018-02-16T09:09:34+00:00</updated>
<entry>
<title>mtd: nand: move raw NAND related code to the raw/ subdir</title>
<updated>2018-02-16T09:09:34+00:00</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-02-05T22:02:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=93db446a424cee9387b532995e6b516667079555'/>
<id>urn:sha1:93db446a424cee9387b532995e6b516667079555</id>
<content type='text'>
As part of the process of sharing more code between different NAND
based devices, we need to move all raw NAND related code to the raw/
subdirectory.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: make use of nand_set/get_controller_data() helpers</title>
<updated>2016-01-07T18:23:41+00:00</updated>
<author>
<name>Boris BREZILLON</name>
<email>boris.brezillon@free-electrons.com</email>
</author>
<published>2015-12-10T08:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=d699ed250c07384840263bbbf69cf7b90b45470c'/>
<id>urn:sha1:d699ed250c07384840263bbbf69cf7b90b45470c</id>
<content type='text'>
New helpers have been added to avoid directly accessing chip-&gt;field. Use
them where appropriate.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
[Brian: fixed a few rebase conflicts]
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: remove useless mtd-&gt;priv = chip assignments</title>
<updated>2015-12-18T21:21:40+00:00</updated>
<author>
<name>Boris BREZILLON</name>
<email>boris.brezillon@free-electrons.com</email>
</author>
<published>2015-12-10T08:00:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=37f5a54646da0760306ab8570115e20d0ed615f5'/>
<id>urn:sha1:37f5a54646da0760306ab8570115e20d0ed615f5</id>
<content type='text'>
mtd_to_nand() now uses the container_of() approach to transform an
mtd_info pointer into a nand_chip one. Drop useless mtd-&gt;priv
assignments from NAND controller drivers.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: bcm47xx: use the mtd instance embedded in struct nand_chip</title>
<updated>2015-12-18T20:45:02+00:00</updated>
<author>
<name>Boris BREZILLON</name>
<email>boris.brezillon@free-electrons.com</email>
</author>
<published>2015-12-10T07:59:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=17dd20bd7d4389d3bc54d71e263088039203ea07'/>
<id>urn:sha1:17dd20bd7d4389d3bc54d71e263088039203ea07</id>
<content type='text'>
struct nand_chip now embeds an mtd device. Make use of this mtd instance.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: bcm47xxnflash: really unregister NAND on device removal</title>
<updated>2015-12-14T18:11:09+00:00</updated>
<author>
<name>Brian Norris</name>
<email>computersforpeace@gmail.com</email>
</author>
<published>2015-12-09T01:04:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=665d2c2848f14c0c2a2e89192bde9073c4d352f7'/>
<id>urn:sha1:665d2c2848f14c0c2a2e89192bde9073c4d352f7</id>
<content type='text'>
The field bcma_nflash::mtd is never set to be non-zero anywhere, but we
test for it in the removal path. So the MTD is never unregistered.

Also, we should use nand_release(), not mtd_device_unregister().

Finally, we don't need to use the 'platdata' for stashing/retrieving our
*driver* data -- that's what *_{get,set}_drvdata() are for.

So, kill off bcm_nflash::mtd, and stash the struct bcm47xxnflash in
drvdata instead. Also move the forward declaration of mtd_info up a bit,
since struct bcma_sflash should be using it.

Caught while inspecting other changes being made to this driver. Compile
tested only.

Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
Cc: "Rafał Miłecki" &lt;zajec5@gmail.com&gt;
Cc: linux-wireless@vger.kernel.org
Acked-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: bcm47xxnflash: show parent device in sysfs</title>
<updated>2015-10-13T19:56:26+00:00</updated>
<author>
<name>Frans Klaver</name>
<email>fransklaver@gmail.com</email>
</author>
<published>2015-06-10T20:38:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=3f2b80b43cb2dea346d5893797981b016dae7525'/>
<id>urn:sha1:3f2b80b43cb2dea346d5893797981b016dae7525</id>
<content type='text'>
Fix a bug where parent device symlinks aren't shown in sysfs.

While at it, make use of the default owner value set by mtdcore.

Signed-off-by: Frans Klaver &lt;fransklaver@gmail.com&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: nand: bcm47xxnflash: drop owner assignment from platform_drivers</title>
<updated>2014-10-20T14:20:58+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@the-dreams.de</email>
</author>
<published>2014-10-20T14:20:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=50e23b45999a54a0c9f2865a738559d95c8ecd62'/>
<id>urn:sha1:50e23b45999a54a0c9f2865a738559d95c8ecd62</id>
<content type='text'>
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>mtd: bcm47xxnflash: Use devm_kzalloc</title>
<updated>2013-11-07T07:32:56+00:00</updated>
<author>
<name>Sachin Kamat</name>
<email>sachin.kamat@linaro.org</email>
</author>
<published>2013-10-11T04:41:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=7e3019e364f1b6b9ce123e747addcdc96e8d74ae'/>
<id>urn:sha1:7e3019e364f1b6b9ce123e747addcdc96e8d74ae</id>
<content type='text'>
devm_kzalloc is device managed and simplifies the code.

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: bcm47xxnflash: Use module_platform_driver</title>
<updated>2013-11-07T07:32:56+00:00</updated>
<author>
<name>Sachin Kamat</name>
<email>sachin.kamat@linaro.org</email>
</author>
<published>2013-10-11T04:41:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=994bbd0e91c0dfa4dcda9097b0716607aeec5470'/>
<id>urn:sha1:994bbd0e91c0dfa4dcda9097b0716607aeec5470</id>
<content type='text'>
module_platform_driver simplifies the code by removing boiler plate.

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;
</content>
</entry>
<entry>
<title>mtd: bcm47xxnflash: use pr_fmt for module prefix in messages</title>
<updated>2013-02-13T13:15:50+00:00</updated>
<author>
<name>Rafał Miłecki</name>
<email>zajec5@gmail.com</email>
</author>
<published>2013-02-07T10:56:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=be0638d9e4795254e28e39eff61e38f47d240fd2'/>
<id>urn:sha1:be0638d9e4795254e28e39eff61e38f47d240fd2</id>
<content type='text'>
Signed-off-by: Rafał Miłecki &lt;zajec5@gmail.com&gt;
Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;
</content>
</entry>
</feed>
