<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/adc, branch linux-4.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-03-30T07:44:05Z</updated>
<entry>
<title>iio: adc: ti_am335x_adc: fix fifo overrun recovery</title>
<updated>2017-03-30T07:44:05Z</updated>
<author>
<name>Michael Engl</name>
</author>
<published>2017-10-03T12:57:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a12d1eadd0d1bf4b8c929d2cea942d2b4f2d167a'/>
<id>urn:sha1:a12d1eadd0d1bf4b8c929d2cea942d2b4f2d167a</id>
<content type='text'>
commit e83bb3e6f3efa21f4a9d883a25d0ecd9dfb431e1 upstream.

The tiadc_irq_h(int irq, void *private) function is handling FIFO
overruns by clearing flags, disabling and enabling the ADC to
recover.

If the ADC is running in continuous mode a FIFO overrun happens
regularly. If the disabling of the ADC happens concurrently with
a new conversion. It might happen that the enabling of the ADC
is ignored by the hardware. This stops the ADC permanently. No
more interrupts are triggered.

According to the AM335x Reference Manual (SPRUH73H October 2011 -
Revised April 2013 - Chapter 12.4 and 12.5) it is necessary to
check the ADC FSM bits in REG_ADCFSM before enabling the ADC
again. Because the disabling of the ADC is done right after the
current conversion has been finished.

To trigger this bug it is necessary to run the ADC in continuous
mode. The ADC values of all channels need to be read in an endless
loop. The bug appears within the first 6 hours (~5.4 million
handled FIFO overruns). The user space application will hang on
reading new values from the character device.

Fixes: ca9a563805f7a ("iio: ti_am335x_adc: Add continuous sampling support")
Signed-off-by: Michael Engl &lt;michael.engl@wjw-solutions.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>iio: adc: palmas_gpadc: retrieve a valid iio_dev in suspend/resume</title>
<updated>2017-01-21T14:26:03Z</updated>
<author>
<name>Alison Schofield</name>
</author>
<published>2017-01-16T19:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d1aaf20ee655888c227d5137b7a63551f8d15416'/>
<id>urn:sha1:d1aaf20ee655888c227d5137b7a63551f8d15416</id>
<content type='text'>
The suspend/resume functions were using dev_to_iio_dev() to get
the iio_dev. That only works on IIO dev's.  Use dev_get_drvdata()
for a platform device to get the correct iio_dev.

Signed-off-by: Alison Schofield &lt;amsfield22@gmail.com&gt;
Cc: &lt;Stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: adc: TI_AM335X_ADC should depend on HAS_DMA</title>
<updated>2016-12-30T16:37:48Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2016-12-14T12:30:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b1448ea9cd95868e3e91313b643818d18917b382'/>
<id>urn:sha1:b1448ea9cd95868e3e91313b643818d18917b382</id>
<content type='text'>
If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/iio/adc/ti_am335x_adc.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Fixes: f438b9da (" drivers: iio: ti_am335x_adc: add dma support")
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: adc: Add support for STM32 ADC</title>
<updated>2016-11-19T12:18:33Z</updated>
<author>
<name>Fabrice Gasnier</name>
</author>
<published>2016-11-15T15:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0f883b223aa407a9c9fab714655fbc1549cf3c01'/>
<id>urn:sha1:0f883b223aa407a9c9fab714655fbc1549cf3c01</id>
<content type='text'>
This patch adds support for STMicroelectronics STM32 MCU's analog to
digital converter.

Signed-off-by: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: adc: Add support for STM32 ADC core</title>
<updated>2016-11-19T12:17:45Z</updated>
<author>
<name>Fabrice Gasnier</name>
</author>
<published>2016-11-15T15:30:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1add6988024030b08e4cc14001c4e64a901fa35b'/>
<id>urn:sha1:1add6988024030b08e4cc14001c4e64a901fa35b</id>
<content type='text'>
Add core driver for STMicroelectronics STM32 ADC (Analog to Digital
Converter). STM32 ADC can be composed of up to 3 ADCs with shared
resources like clock prescaler, common interrupt line and analog
reference voltage.
This core driver basically manages shared resources.

Signed-off-by: Fabrice Gasnier &lt;fabrice.gasnier@st.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: envelope-detector: ADC driver based on a DAC and a comparator</title>
<updated>2016-11-13T13:07:17Z</updated>
<author>
<name>Peter Rosin</name>
</author>
<published>2016-11-08T11:58:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b475f80b354a1915fda1b34070d712b825b60543'/>
<id>urn:sha1:b475f80b354a1915fda1b34070d712b825b60543</id>
<content type='text'>
The DAC is used to find the peak level of an alternating voltage input
signal by a binary search using the output of a comparator wired to
an interrupt pin. Like so:
                          _
                         | \
    input +------&gt;-------|+ \
                         |   \
           .-------.     |    }---.
           |       |     |   /    |
           |    dac|--&gt;--|- /     |
           |       |     |_/      |
           |       |              |
           |       |              |
           |    irq|------&lt;-------'
           |       |
           '-------'

Signed-off-by: Peter Rosin &lt;peda@axentia.se&gt;
Acked-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:adc: ad7766: testing the wrong variable in probe</title>
<updated>2016-11-12T14:35:21Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2016-11-10T19:30:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d8391f3d60f0b544951b4014f433b4c068da293'/>
<id>urn:sha1:0d8391f3d60f0b544951b4014f433b4c068da293</id>
<content type='text'>
We should be testing "ret" here.

Fixes: aa16c6bd0e09 ("iio:adc: Add support for AD7766/AD7767")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'iio-for-4.10b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-testing</title>
<updated>2016-11-07T08:14:03Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2016-11-07T08:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7970b9e6a524fc978a4c3013ca14efcfe37b84e3'/>
<id>urn:sha1:7970b9e6a524fc978a4c3013ca14efcfe37b84e3</id>
<content type='text'>
Jonathan writes:

Second round of new device support, cleanups and fixes for IIO in the 4.10 cycle

This includes two branch merges for elements that may also go via MFD.

New device support
* cros_ec
  - new driver to support these Chrome OS contiguous sensors which are behind
    the Chrome OS embedded controller.  Requires a few minor MFD and chrome
    platform changes.  One follow up fix deals with some dependency issues in
    Kconfig.
* mpu-3050
  - new driver and device tree bindings for this venerable device.
* st_accel
  - support for the lng2dm an

Driver features
* ad7192
  - Add DVdd regulator handling
* ad9832
  - Add DVDD regulator handling
* at91
  - Suspend and resume support
* si7020
  - Device tree bindings
* ti-am335x
  - DMA support - uses dma to accelerate short bursts of read back rather
  than full blown DMA buffer support.  Greatly improved performance.
  Includes an MFD addition to give access to the address needed for DMA.
* tsl2583
  - Device tree bindings

Cleanups and minor fixes
* ad7192
  - Fix regulator naming to match datasheet
  - Handle regulator errors correctly (so as to not break deferred probing)
  - Rename reg variable to reflect which regulator it is
* ad5933
  - Fix regulator naming to match datasheet
  - Handle regulator errors correctly (so as to not break deferred probing)
* ad7746
  - Fix a missing return value (fallout from previous patch set)
* ad7780
  - Fix regulator naming to match datasheet
  - Handle regulator errors correctly (so as to not break deferred probing)
* ad9832
  - Fix regulator naming to match datasheet
  - Handle regulator errors correctly (so as to not break deferred probing)
  - Rename reg regulator to reflect which one it is
* ad9834
  - Fix regulator naming to match datasheet
  - Handle regulator errors correctly (so as to not break deferred probing)
* hts221
  - Remove a duplicated include
* maxim thermocouple
  - Handle a wrong storage side in read function.  Prevent any problems that
  might be introduced by additions to this driver in future.
* tsl2583 - big set from Brian Masney to drive this towards a staging
  graduation.
  - Convert to iio_chan_spec and read_raw / write_raw (in a couple of steps)
  - Improved error handling in various functions
  - Drop redundant power_state custom sysfs attribute.
  - Use IIO_*_ATTR* macros for remaining attributes.
  - Return an error code to userspace on invalid parameters being writen to
    sysfs files.
  - Add locking to various attribute accesses to remove possible races.
  - Add defines for various magic numbers.
  - Use smbus_read_byte_data instead of a write_byte followed by read_byte.
  - Query only relevant registers in probe.
  - Tidy up ordering of code comments.
  - Remove a pointless power off sequence in taos_chip_on.
  - Don't bother shutting down the chip when updating the lux table.
  The table is held entirely in the driver and doesn't effect the chip at all.
  - Drop a redundant i2c call in taos_als_calibrate where the same register
  is read twice in a row.
</content>
</entry>
<entry>
<title>Merge branch 'ib-iio-mfd-ti335x_dma' into togreg</title>
<updated>2016-11-05T17:38:00Z</updated>
<author>
<name>Jonathan Cameron</name>
</author>
<published>2016-11-05T17:38:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25acb3986f3e14210f37eb5503beba8e35126a3e'/>
<id>urn:sha1:25acb3986f3e14210f37eb5503beba8e35126a3e</id>
<content type='text'>
A local branch created as Lee requested these two patches were applied
in a fashion that would later let him merge the same branch into MFD
if needed.
</content>
</entry>
<entry>
<title>drivers: iio: ti_am335x_adc: add dma support</title>
<updated>2016-11-05T17:32:05Z</updated>
<author>
<name>Mugunthan V N</name>
</author>
<published>2016-10-05T09:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f438b9da75eb80eb6c4095a5b75324cc9a7f0570'/>
<id>urn:sha1:f438b9da75eb80eb6c4095a5b75324cc9a7f0570</id>
<content type='text'>
This patch adds the required pieces to ti_am335x_adc driver for
DMA support

Signed-off-by: Mugunthan V N &lt;mugunthanvnm@ti.com&gt;
Reviewed-by: Peter Ujfalusi &lt;peter.ujfalusi@ti.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
