public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* physmap and pointless shutdown() function ?
@ 2009-05-07  2:41 Mike Frysinger
  2009-06-05 17:51 ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2009-05-07  2:41 UTC (permalink / raw)
  To: Lennert Buytenhek, David Woodhouse; +Cc: linux-mtd@lists.infradead.org

waaaay back when power management support was added to the physmap.c
driver, it added the standard suspend/resume functions.  no problem
there.  but it also added a shutdown function which causes the flash
to suspend/resume when rebooting:
static void physmap_flash_shutdown(struct platform_device *dev)
{
    struct physmap_flash_info *info = platform_get_drvdata(dev);
    int i;
    for (i = 0; i < MAX_RESOURCES && info->mtd[i]; i++)
        if (info->mtd[i]->suspend && info->mtd[i]->resume)
            if (info->mtd[i]->suspend(info->mtd[i]) == 0)
                info->mtd[i]->resume(info->mtd[i]);
}

i cant see any point in doing this.  it isnt like the flash has
buffers that need flushing, and if they did, using suspend/resume as a
hack for flushing sounds pretty broken to me.

seems to me the function should just be dropped completely.
-mike

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

end of thread, other threads:[~2009-06-06 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-07  2:41 physmap and pointless shutdown() function ? Mike Frysinger
2009-06-05 17:51 ` David Woodhouse
2009-06-05 23:42   ` Mike Frysinger
2009-06-06 12:27     ` David Woodhouse
2009-06-06 19:22       ` Mike Frysinger

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