Thread (1 message) 1 message, 1 author, 2018-09-24
DORMANTno replies

[PATCH 2/2] cpufreq: ap806: add cpufreq driver for Armada 8K

From: gregory.clement@bootlin.com (Gregory CLEMENT)
Date: 2018-09-24 14:45:58
Also in: linux-pm

Hi Thomas,
 
 On sam., sept. 22 2018, Thomas Petazzoni [off-list ref] wrote:

[...]
quoted
+{
+	int cpu;
+
+	for_each_possible_cpu(cpu) {
+		struct device *cpu_dev = get_cpu_device(cpu);
+		struct clk *clk = clk_get(cpu_dev, 0);
+
+		if (IS_ERR(clk))
+			dev_warn(cpu_dev, "Cannot get clock for CPU %d\n", cpu);
+
+		if (clk_is_match(clk, cur_clk))
Is it OK to call clk_is_match() is clk being an error ?
yes the function check the validity of the pointers.

[...]
Once again, this is not a full review, I haven't reviewed the logic of
the driver itself, just a few obvious things I noticed.
Thanks for this first level review, I took into account all your remarks.

Gregory

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-- 
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help