[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <57B3B1E2.3040505@samsung.com>
Date: Wed, 17 Aug 2016 09:37:54 +0900
From: Chanwoo Choi <cw00.choi@...sung.com>
To: Lin Huang <hl@...k-chips.com>, heiko@...ech.de,
myungjoo.ham@...sung.com
Cc: tixy@...aro.org, mark.rutland@....com, typ@...k-chips.com,
linux-rockchip@...ts.infradead.org, airlied@...ux.ie,
mturquette@...libre.com, dbasehore@...omium.org,
sboyd@...eaurora.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, dianders@...omium.org,
kyungmin.park@...sung.com, sudeep.holla@....com,
linux-pm@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
mark.yao@...k-chips.com
Subject: Re: [PATCH v6 7/8] PM / devfreq: rockchip: add devfreq driver for
rk3399 dmc
Hi Lin,
I add just one comment to remove the blank line.
On 2016년 08월 17일 07:36, Lin Huang wrote:
> base on dfi result, we do ddr frequency scaling, register
> dmc driver to devfreq framework, and use simple-ondemand
> policy.
>
> Signed-off-by: Lin Huang <hl@...k-chips.com>
> Reviewed-by: Chanwoo Choi <cw00.choi@...sung.com>
> ---
> Changes in v6:
> - fix some nit suggest by Chanwoo Choi
>
> Changes in v5:
> - improve dmc driver suggest by Chanwoo Choi
>
> Changes in v4:
> - use arm_smccc_smc() function talk to bl31
> - delete rockchip_dmc.c file and config
> - delete dmc_notify
> - adjust probe order
>
> Changes in v3:
> - operate dram setting through sip call
> - imporve set rate flow
>
> Changes in v2:
> - None
>
> Changes in v1:
> - move dfi controller to event
> - fix set voltage sequence when set rate fail
> - change Kconfig type from tristate to bool
> - move unuse EXPORT_SYMBOL_GPL()
>
> drivers/devfreq/Kconfig | 11 +
> drivers/devfreq/Makefile | 1 +
> drivers/devfreq/rk3399_dmc.c | 497 +++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 509 insertions(+)
> create mode 100644 drivers/devfreq/rk3399_dmc.c
>
[snip]
> +
> +static int rk3399_dmcfreq_probe(struct platform_device *pdev)
> +{
> + struct arm_smccc_res res;
> + struct device *dev = &pdev->dev;
> + struct device_node *np = pdev->dev.of_node;
> + struct rk3399_dmcfreq *data;
> + int ret, irq, index, size;
> + uint32_t *timing;
> + struct dev_pm_opp *opp;
> +
> + irq = platform_get_irq(pdev, 0);
> + if (irq < 0) {
> + dev_err(&pdev->dev, "Cannot get the dmc interrupt resource\n");
> + return -EINVAL;
> + }
> + data = devm_kzalloc(dev, sizeof(struct rk3399_dmcfreq), GFP_KERNEL);
> + if (!data)
> + return -ENOMEM;
> +
> + mutex_init(&data->lock);
> +
> + data->vdd_center = devm_regulator_get(dev, "center");
> + if (IS_ERR(data->vdd_center)) {
> + dev_err(dev, "Cannot get the regulator \"center\"\n");
> + return PTR_ERR(data->vdd_center);
> + }
> +
> + data->dmc_clk = devm_clk_get(dev, "dmc_clk");
> + if (IS_ERR(data->dmc_clk)) {
> + dev_err(dev, "Cannot get the clk dmc_clk\n");
> + return PTR_ERR(data->dmc_clk);
> + };
> +
> + data->irq = irq;
> + ret = devm_request_irq(dev, irq, rk3399_dmc_irq, 0,
> + dev_name(dev), data);
> + if (ret) {
> + dev_err(dev, "Failed to request dmc irq: %d\n", ret);
> + return ret;
> + }
> +
> +
Remove the unneeded blank line.
[snip]
Regards,
Chanwoo Choi
Powered by blists - more mailing lists