From: kesavan.abhilash@gmail.com (Abhilash Kesavan)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs
Date: Tue, 3 Dec 2013 20:16:26 +0530 [thread overview]
Message-ID: <CAM4voam5GS5HORbb_r57C_61cMafKjQnBnR0dxD7x-9iTBps8Q@mail.gmail.com> (raw)
In-Reply-To: <1384515691-26299-2-git-send-email-sachin.kamat@linaro.org>
Hi,
CC'ing Doug and Andrew who have also worked on ASV.
[...]
> diff --git a/drivers/power/asv/Kconfig b/drivers/power/asv/Kconfig
> new file mode 100644
> index 000000000000..761119d9f7f8
> --- /dev/null
> +++ b/drivers/power/asv/Kconfig
> @@ -0,0 +1,10 @@
> +menuconfig POWER_ASV
> + bool "Adaptive Supply Voltage (ASV) support"
Select POWER_SUPPLY here ?
> + help
> + ASV is a technique used on Samsung SoCs which provides the
> + recommended supply voltage for some specific parts(like CPU, MIF, etc)
> + that support DVFS. For a given operating frequency, the voltage is
> + recommended based on SoCs ASV group. ASV group info is provided in the
> + chip id info which depends on the chip manufacturing process.
> +
[...]
> +
> + if (asv_info->ops->init_asv)
> + ret = asv_info->ops->init_asv(asv_info);
> + if (ret) {
> + pr_err("asv_init failed for %s : %d\n",
> + asv_info->name, ret);
> + goto err;
> + }
> +
> + /* In case of parsing table from DT, we may need to add flag to identify
> + DT supporting members and call init_asv_table from asv_init_opp_table(
> + after getting dev_node from dev,if required), instead of calling here.
> + */
Please fix Multi-line comment here and through the rest of the patches as well.
[...]
> + * @nr_dvfs_level: Number of dvfs levels supported by member.
> + * @dvfs_table: Table containing supported ASV freqs and corresponding volts.
> + * @asv_grp: ASV group of member.
> + * @flags: ASV flags
What are the ASV flags you had in mind ?
> + */
> +struct asv_info {
> + const char *name;
> + enum asv_type_id type;
> + struct asv_ops *ops;
> + unsigned int nr_dvfs_level;
> + struct asv_freq_table *dvfs_table;
> + unsigned int asv_grp;
> + unsigned int flags;
> +};
[...]
> +
> +#ifdef CONFIG_POWER_ASV
> +/* asv_get_volt - get the ASV for target_freq for particular target_type.
> + * returns 0 if target_freq is not supported
Could you add a comment for asv_init_opp_table as well.
> + */
> +extern unsigned int asv_get_volt(enum asv_type_id target_type,
> + unsigned int target_freq);
> +extern int asv_init_opp_table(struct device *dev,
> + enum asv_type_id target_type);
> +#else
> +static inline unsigned int asv_get_volt(enum asv_type_id target_type,
> + unsigned int target_freq) { return 0; }
> +static int asv_init_opp_table(struct device *dev, enum asv_type_id target_type)
> + { return 0; }
> +
> +#endif /* CONFIG_POWER_EXYNOS_AVS */
> +#endif /* __ASV_H */
Regards,
Abhilash
next prev parent reply other threads:[~2013-12-03 14:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 11:41 [RFC v2 0/4] Add basic support for ASV Sachin Kamat
[not found] ` <CAJ0PZbS8FxRA_sPTOnWbZcNfUMp=k5Jf_tZHLg1fh6gsAGJ=Gw@mail.gmail.com>
2013-11-18 4:07 ` Sachin Kamat
2013-12-03 14:46 ` Abhilash Kesavan
2013-12-04 6:00 ` Sachin Kamat
2015-01-13 16:19 ` Kevin Hilman
[not found] ` <1384515691-26299-2-git-send-email-sachin.kamat@linaro.org>
2013-12-03 14:46 ` Abhilash Kesavan [this message]
2013-12-15 13:38 ` [RFC v2 1/4] power: asv: Add common ASV support for Samsung SoCs Yadwinder Singh Brar
2013-12-09 18:45 ` Tomasz Figa
2013-12-15 13:30 ` Yadwinder Singh Brar
2013-12-15 13:51 ` Tomasz Figa
2013-12-26 16:28 ` Yadwinder Singh Brar
[not found] ` <1384515691-26299-3-git-send-email-sachin.kamat@linaro.org>
2013-12-03 14:46 ` [RFC v2 2/4] power: asv: Add a common ASV driver for Exynos SoCs Abhilash Kesavan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM4voam5GS5HORbb_r57C_61cMafKjQnBnR0dxD7x-9iTBps8Q@mail.gmail.com \
--to=kesavan.abhilash@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).