public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Hang on reboot in nand_get_device()
@ 2015-07-02 19:21 Andrew E. Mileski
  2015-11-06 18:00 ` Brian Norris
  0 siblings, 1 reply; 13+ messages in thread
From: Andrew E. Mileski @ 2015-07-02 19:21 UTC (permalink / raw)
  To: linux-mtd

I'm experiencing a hang on reboot with a Freescale P1022 PowerPC system, with a
dual chip-select NAND part (specified in the device tree as two separate 
devices), and kernel v4.0.6.

It appears to be a hang in mtd/nand/nand_base.c:nand_get_device() waiting on
chip->controller->active.

Shouldn't nand_shutdown(), or perhaps a special case in nand_get_device() for
FL_SHUTDOWN, set chip->controller->active = NULL before returning?

This seems to fix the problem for me, but I don't know all the code well enough
to know whether doing so is appropriate, or sufficient.

~~Andrew E. Mileski

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-11-10  0:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02 19:21 Hang on reboot in nand_get_device() Andrew E. Mileski
2015-11-06 18:00 ` Brian Norris
2015-11-06 18:59   ` Boris Brezillon
2015-11-09 19:46     ` Brian Norris
2015-11-09 19:56       ` Andrew E. Mileski
2015-11-09 20:49         ` Scott Branden
2015-11-09 20:55       ` Boris Brezillon
2015-11-09 21:36         ` Boris Brezillon
2015-11-09 21:44           ` Brian Norris
2015-11-09 21:51             ` Scott Branden
2015-11-10  0:22               ` Brian Norris
2015-11-09 18:43   ` Andrew E. Mileski
2015-11-09 19:16     ` Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox