<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/iio, branch v3.11.8</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/iio?h=v3.11.8</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/iio?h=v3.11.8'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-08-19T18:30:21Z</updated>
<entry>
<title>iio: adjd_s311: Fix non-scan mode data read</title>
<updated>2013-08-19T18:30:21Z</updated>
<author>
<name>Peter Meerwald</name>
<email>pmeerw@pmeerw.net</email>
</author>
<published>2013-08-18T12:59:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=71f42642af7b1bc7c36fb73ad8f7e7ab2ab8b2de'/>
<id>urn:sha1:71f42642af7b1bc7c36fb73ad8f7e7ab2ab8b2de</id>
<content type='text'>
forgot to convert channel index to data register

Signed-off-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: ti_am335x_adc: Fix wrong samples received on 1st read</title>
<updated>2013-07-21T17:27:35Z</updated>
<author>
<name>Patil, Rachna</name>
<email>rachna@ti.com</email>
</author>
<published>2013-07-20T16:27:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b1451e546899bc8f450773b2af02e0cd000cf1fa'/>
<id>urn:sha1:b1451e546899bc8f450773b2af02e0cd000cf1fa</id>
<content type='text'>
Previously we tried to read data form ADC even before ADC sequencer
finished sampling. This led to wrong samples.
We now wait on ADC status register idle bit to be set.

Signed-off-by: Patil, Rachna &lt;rachna@ti.com&gt;
Signed-off-by: Zubair Lutfullah &lt;zubair.lutfullah@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:trigger: Fix use_count race condition</title>
<updated>2013-07-20T09:18:53Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2013-07-16T14:28:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a1a8e1dc111d6f05e7164e851e58219d428359e1'/>
<id>urn:sha1:a1a8e1dc111d6f05e7164e851e58219d428359e1</id>
<content type='text'>
When using more than one trigger consumer it can happen that multiple threads
perform a read-modify-update cycle on 'use_count' concurrently. This can cause
updates to be lost and use_count can get stuck at non-zero value, in which case
the IIO core assumes that at least one thread is still running and will wait for
it to finish before running any trigger handlers again. This effectively renders
the trigger disabled and a reboot is necessary before it can be used again. To
fix this make use_count an atomic variable. Also set it to the number of
consumers before starting the first consumer, otherwise it might happen that
use_count drops to 0 even though not all consumers have been run yet.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Tested-by: Denis Ciocca &lt;denis.ciocca@st.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'iio-fixes-for-3.11a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus</title>
<updated>2013-07-17T05:41:38Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2013-07-17T05:41:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=78077256bc08348d587e318957ceb41fe4d4afae'/>
<id>urn:sha1:78077256bc08348d587e318957ceb41fe4d4afae</id>
<content type='text'>
Jonathan writes:

The first round of IIO fixes for the 3.11 cycle.

This set is larger than I would like, partly due to my lack of review
time in the weeks before the merge window and partly because a
couple of large drivers and the subsystem as a whole seem to be
getting a lot more exposure and testing recently.

1) A long term bug in trigger handling gave a double free of the device.

2) Wrong return value handling means offsets are ignored in
   iio_convert_raw_to_processed_unlocked.

3) The iio_channel_has_info utility function was incorrectly updated
   during the recent info_mask split, this is now fixed.

4) mxs-lradc has a couple of little fixes.

5) A couple of missing .driver_module entries meant that drivers
   could be removed from underneath their users.

6) Error path fixes for ad7303 and lis3l02dq.

7) The scale value for presure in the lps331ap driver was out by
   a factor of 100.
</content>
</entry>
<entry>
<title>iio: lps331ap: Fix wrong in_pressure_scale output value</title>
<updated>2013-07-16T07:51:57Z</updated>
<author>
<name>Jacek Anaszewski</name>
<email>j.anaszewski@samsung.com</email>
</author>
<published>2013-07-02T10:13:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=67dbf54a3b03881c7b683801fa49ca1f2c4c3bcf'/>
<id>urn:sha1:67dbf54a3b03881c7b683801fa49ca1f2c4c3bcf</id>
<content type='text'>
This patch fixes improper in_pressure_scale output that is
returned by the lps331ap barometer sensor driver. According
to the documentation the pressure after applying the scale has to
be expressed in kilopascal units. With erroneous implementation
the scale value larger by two orders of magnitude is returned -
2441410 instead of 24414.

Signed-off-by: Jacek Anaszewski &lt;j.anaszewski@samsung.com&gt;
Signed-off-by: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Acked-by: Denis Ciocca &lt;denis.ciocca@st.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'mfd-3.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-next</title>
<updated>2013-07-10T18:10:27Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2013-07-10T18:10:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3aa78e0cb5c9b8b4ed2a617bb1e1542bfb508379'/>
<id>urn:sha1:3aa78e0cb5c9b8b4ed2a617bb1e1542bfb508379</id>
<content type='text'>
Pull MFD update from Samuel Ortiz:
 "For the 3.11 merge we only have one new MFD driver for the Kontron
  PLD.

  But we also have:
   - Support for the TPS659038 PMIC from the palmas driver.
   - Intel's Coleto Creek and Avoton SoCs support from the lpc_ich
     driver.
   - RTL8411B support from the rtsx driver.
   - More DT support for the Arizona, max8998, twl4030-power and the
     ti_am335x_tsadc drivers.
   - The SSBI driver move under MFD.
   - A conversion to the devm_* API for most of the MFD drivers.
   - The twl4030-power got split from twl-core into its own module.
   - A major ti_am335x_adc cleanup, leading to a proper DT support.
   - Our regular arizona and wm* updates and cleanups from the Wolfson
     folks.
   - A better error handling and initialization, and a regulator
     subdevice addition for the 88pm80x driver.
   - A bulk platform_set_drvdata() call removal that's no longer need
     since commit 0998d0631001 ("device-core: Ensure drvdata = NULL when
     no driver is bound")

* tag 'mfd-3.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-next: (102 commits)
  mfd: sec: Provide max_register to regmap
  mfd: wm8994: Remove duplicate check for active JACKDET
  MAINTAINERS: Add include directory to MFD file patterns
  mfd: sec: Remove fields not used since regmap conversion
  watchdog: Kontron PLD watchdog timer driver
  mfd: max8998: Add support for Device Tree
  regulator: max8998: Use arrays for specifying voltages in platform data
  mfd: max8998: Add irq domain support
  regulator: palmas: Add TPS659038 support
  mfd: Kontron PLD mfd driver
  mfd: palmas: Add TPS659038 PMIC support
  mfd: palmas: Add SMPS10_BOOST feature
  mfd: palmas: Check if irq is valid
  mfd: lpc_ich: iTCO_wdt patch for Intel Coleto Creek DeviceIDs
  mfd: twl-core: Change TWL6025 references to TWL6032
  mfd: davinci_voicecodec: Fix build breakage
  mfd: vexpress: Make the driver optional for arm and arm64
  mfd: htc-egpio: Use devm_ioremap_nocache() instead of ioremap_nocache()
  mfd: davinci_voicecodec: Convert to use devm_* APIs
  mfd: twl4030-power: Fix relocking on error
  ...
</content>
</entry>
<entry>
<title>iio: ti_am335x_adc: add missing .driver_module to struct iio_info</title>
<updated>2013-07-06T09:37:21Z</updated>
<author>
<name>Wei Yongjun</name>
<email>yongjun_wei@trendmicro.com.cn</email>
</author>
<published>2013-07-06T04:20:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bc93aa7640fe97df8d69b50fdce70da1126e12b3'/>
<id>urn:sha1:bc93aa7640fe97df8d69b50fdce70da1126e12b3</id>
<content type='text'>
Add missing .driver_module of struct iio_info. This prevents the
module from being removed from underneath its users.

Signed-off-by: Wei Yongjun &lt;yongjun_wei@trendmicro.com.cn&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: inkern: fix iio_convert_raw_to_processed_unlocked</title>
<updated>2013-07-03T19:30:52Z</updated>
<author>
<name>Alexandre Belloni</name>
<email>alexandre.belloni@free-electrons.com</email>
</author>
<published>2013-07-01T16:40:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f91d1b63a4e096d3023aaaafec9d9d3aff25997f'/>
<id>urn:sha1:f91d1b63a4e096d3023aaaafec9d9d3aff25997f</id>
<content type='text'>
When reading IIO_CHAN_INFO_OFFSET, the return value of iio_channel_read() for
success will be IIO_VAL*, checking for 0 is not correct.

Without this fix the offset applied by iio drivers will be ignored when
converting a raw value to one in appropriate base units (e.g mV) in
a IIO client drivers that use iio_convert_raw_to_processed including
iio-hwmon.

Cc: &lt;stable@vger.kernel.org&gt; # 3.10.x
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:trigger: device_unregister-&gt;device_del to avoid double free</title>
<updated>2013-06-29T12:26:11Z</updated>
<author>
<name>Jonathan Cameron</name>
<email>jic23@kernel.org</email>
</author>
<published>2013-06-22T11:00:04Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8bade406649245292d6fcd1947cd7ad2ad8c80c1'/>
<id>urn:sha1:8bade406649245292d6fcd1947cd7ad2ad8c80c1</id>
<content type='text'>
iio_trigger unregistration and freeing has been separated in this
code for some time, but it looks like the calls to the device
handling were not appropriately updated.

Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Reported-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
Tested-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
Reviewed-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
</content>
</entry>
<entry>
<title>iio: dac: ad7303: fix error return code in ad7303_probe()</title>
<updated>2013-06-29T09:18:21Z</updated>
<author>
<name>Wei Yongjun</name>
<email>yongjun_wei@trendmicro.com.cn</email>
</author>
<published>2013-06-18T13:08:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=94fccb78414a87f3c4bc7049ff8b6e80156944d9'/>
<id>urn:sha1:94fccb78414a87f3c4bc7049ff8b6e80156944d9</id>
<content type='text'>
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun &lt;yongjun_wei@trendmicro.com.cn&gt;
Acked-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
