Re: [PATCH 5/7] staging: ccree: add clock management support

2017-06-22 Thread Gilad Ben-Yossef
On Thu, Jun 22, 2017 at 11:58 AM, Dan Carpenter wrote: > On Thu, Jun 22, 2017 at 10:07:51AM +0300, Gilad Ben-Yossef wrote: >> +int cc_clk_on(struct ssi_drvdata *drvdata) >> +{ >> + int rc = 0; >> + struct clk *clk = drvdata->clk; >> + >> + if (IS_ERR(clk)) >>

Re: [PATCH 5/7] staging: ccree: add clock management support

2017-06-22 Thread Dan Carpenter
On Thu, Jun 22, 2017 at 10:07:51AM +0300, Gilad Ben-Yossef wrote: > +int cc_clk_on(struct ssi_drvdata *drvdata) > +{ > + int rc = 0; > + struct clk *clk = drvdata->clk; > + > + if (IS_ERR(clk)) > + /* No all devices have a clock associated with CCREE */ > + goto out;

[PATCH 5/7] staging: ccree: add clock management support

2017-06-22 Thread Gilad Ben-Yossef
Some SoC which implement CryptoCell have a dedicated clock tied to it, some do not. Implement clock support if exists based on device tree data and tie power management to it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Makefile | 2 +-