Thread (13 messages) 13 messages, 6 authors, 2023-06-05

Re: [PATCH v2 1/3] iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC

flat view

From: Jonathan Cameron <jic23@kernel.org>
Date: 2023-06-04 10:42:21
Also in: linux-devicetree, linux-iio, linux-riscv, linux-sunxi, lkml

quoted
+	if (!wait_for_completion_timeout(&info->completion,
+					 msecs_to_jiffies(100))) {  
Dunno if it's better to have this parameter to be defined with self-explanatory
name.
Probably a response to my earlier comment.  I'd agree with a good name
but GPADC_TIMEOUT which was the earlier naming is less use than a value
and it's not obvious what that name should be.

A nice datasheet reference would be good to have though.
quoted
+		ret = -ETIMEDOUT;
+		goto err;
+	}  
quoted
+	if (num_channels > SUN20I_GPADC_MAX_CHANNELS) {
+		dev_err(dev, "num of channel children out of range");
+		return -EINVAL;
+	}  
Is it really critical error?
Overflow of registers - so yes. I wondered this on v1 and went digging :)
Now, there are no such devices known, so meh on whether check is useful. 
...
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help