Commit d55d31a6 authored by Ezequiel García's avatar Ezequiel García Committed by Brian Norris

mtd: pxa3xx_nand: Gate/ungate the NAND clock in suspend/resume paths

The NAND clock can be disabled on suspend and enabled on resume.
Signed-off-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Acked-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent f3028c84
......@@ -1936,12 +1936,18 @@ static int pxa3xx_nand_suspend(struct device *dev)
return -EAGAIN;
}
clk_disable(info->clk);
return 0;
}
static int pxa3xx_nand_resume(struct device *dev)
{
struct pxa3xx_nand_info *info = dev_get_drvdata(dev);
int ret;
ret = clk_enable(info->clk);
if (ret < 0)
return ret;
/* We don't want to handle interrupt without calling mtd routine */
disable_int(info, NDCR_INT_MASK);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment