Re: [PATCH v7 4/4] CMDQ: suspend/resume protection

2016-05-24 Thread Horng-Shyang Liao
Hi CK, On Tue, 2016-05-24 at 17:16 +0800, CK Hu wrote: > On Mon, 2016-05-23 at 20:23 +0800, HS Liao wrote: ... > > +static int cmdq_suspend(struct device *dev) > > +{ > > + struct cmdq *cmdq = dev_get_drvdata(dev); > > + u32 exec_threads; > > + int ref_count; > > + unsigned long flags; >

Re: [PATCH v7 4/4] CMDQ: suspend/resume protection

2016-05-24 Thread CK Hu
On Mon, 2016-05-23 at 20:23 +0800, HS Liao wrote: > Add suspend/resume protection mechanism to prevent active task(s) in > suspend. > > Signed-off-by: HS Liao > --- > drivers/soc/mediatek/mtk-cmdq.c | 174 > ++-- > 1 file changed, 166 insertions(+), 8 deletio

[PATCH v7 4/4] CMDQ: suspend/resume protection

2016-05-23 Thread HS Liao
Add suspend/resume protection mechanism to prevent active task(s) in suspend. Signed-off-by: HS Liao --- drivers/soc/mediatek/mtk-cmdq.c | 174 ++-- 1 file changed, 166 insertions(+), 8 deletions(-) diff --git a/drivers/soc/mediatek/mtk-cmdq.c b/drivers/soc/m