Re: [PATCH] hwmon: adt7470: Allow faster removal

2016-09-01 Thread Chris Packham
Hi Guenter, Jean, On 09/02/2016 12:12 AM, Guenter Roeck wrote: > On 08/31/2016 10:17 PM, Joshua Scott wrote: >> adt7470_remove will wait for the update thread to complete before >> returning. This has a worst-case time of up to the user-configurable >> auto_update_interval. >> >> Break this delay

[PATCH v4 1/3] hwmon: iio_hwmon: delay probing with late_initcall

2016-09-01 Thread Quentin Schulz
iio_channel_get_all returns -ENODEV when it cannot find either phandles and properties in the Device Tree or channels whose consumer_dev_name matches iio_hwmon in iio_map_list. The iio_map_list is filled in by iio drivers which might be probed after iio_hwmon. This makes sure iio_hwmon is probed

[PATCH v4 3/3] iio: adc: add support for Allwinner SoCs ADC

2016-09-01 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. This patch adds the ADC driver which is based on the MFD for the same SoCs ADC. This also registers the thermal adc channel in the iio map array so iio_hwmon could use it without modifying the

[PATCH v4 0/3] add support for Allwinner SoCs ADC

2016-09-01 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. We currently have a driver for the two latter functions in

Re: [PATCH] hwmon: adt7470: Allow faster removal

2016-09-01 Thread Guenter Roeck
On 08/31/2016 10:17 PM, Joshua Scott wrote: adt7470_remove will wait for the update thread to complete before returning. This has a worst-case time of up to the user-configurable auto_update_interval. Break this delay into smaller slices to allow the thread to exit quickly when adt7470_remove

Re: [PATCH v3 3/4] mfd: mfd-core: reattach mfd of_node to cells without of_compatible

2016-09-01 Thread Quentin Schulz
On 31/08/2016 13:56, Lee Jones wrote: > On Wed, 24 Aug 2016, Maxime Ripard wrote: > >> Hi Lee, >> >> On Tue, Aug 09, 2016 at 02:48:47PM +0100, Lee Jones wrote: >>> On Tue, 26 Jul 2016, Quentin Schulz wrote: >>> When an MFD cell has an of_compatible (meaning it is present in the Device

Re: [PATCH] hwmon: adt7470: Allow faster removal

2016-09-01 Thread Jean Delvare
Hi Joshua, On Thu, 1 Sep 2016 17:17:21 +1200, Joshua Scott wrote: > adt7470_remove will wait for the update thread to complete before > returning. This has a worst-case time of up to the user-configurable > auto_update_interval. > > Break this delay into smaller slices to allow the thread to

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-09-01 Thread Quentin Schulz
On 15/08/2016 23:35, Jonathan Cameron wrote: > > > On 15 August 2016 18:07:30 BST, Guenter Roeck wrote: >> On Mon, Aug 15, 2016 at 04:40:21PM +0100, Jonathan Cameron wrote: >>> On 26/07/16 17:04, Guenter Roeck wrote: On Tue, Jul 26, 2016 at 12:00:33PM +0200, Alexander