linux/drivers/iio/dac
Michael Hennerich 558a25f903 iio: dac: ad5593r: Fix i2c read protocol requirements
For reliable operation across the full range of supported
interface rates, the AD5593R needs a STOP condition between
address write, and data read (like show in the datasheet Figure 40)
so in turn i2c_smbus_read_word_swapped cannot be used.

While at it, a simple helper was added to make the code simpler.

Fixes: 56ca9db862 ("iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs")
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220913073413.140475-2-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-09-21 18:42:53 +01:00
..
ad3552r.c iio:dac:ad3552r: Fix an IS_ERR() vs NULL check 2022-04-10 17:57:40 +01:00
ad5064.c iio: dac: ad5064: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5360.c iio: dac: ad5360: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5380.c iio: dac: ad5380: align '*' each line and drop unneeded blank line 2022-07-01 11:19:08 +01:00
ad5421.c iio: dac: ad5421: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5446.c First set of IIO new device support, features and cleanup for 5.19 2022-05-19 16:53:08 +02:00
ad5449.c iio: dac: ad5449: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ad5504.c iio: dac: ad5504: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5592r-base.c iio: dac: ad5592r: Get rid of OF specifics 2022-06-14 11:53:08 +01:00
ad5592r-base.h iio: dac: ad5592r: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5592r.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
ad5593r.c iio: dac: ad5593r: Fix i2c read protocol requirements 2022-09-21 18:42:53 +01:00
ad5624r_spi.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5686-spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
ad5686.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
ad5686.h iio: dac: ad5686: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5696-i2c.c iio:dac:ad5686: Move exports into IIO_AD5686 namespace 2022-02-18 11:42:26 +00:00
ad5755.c iio: dac: ad5755: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5758.c iio:dac:ad5758: Drop unused of specific headers. 2021-12-12 17:12:34 +00:00
ad5761.c iio: dac: ad5761: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5764.c iio: dac: ad5764: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5766.c iio: dac: ad5766: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5770r.c iio: dac: ad5770r: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad5791.c iio: dac: ad5791: Fix alignment for DMA saftey 2022-06-14 11:53:16 +01:00
ad7293.c iio: dac: ad7293: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad7303.c iio: dac: ad7303: Fix alignment for DMA safety 2022-06-14 11:53:16 +01:00
ad8801.c iio: dac: ad8801: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
cio-dac.c iio: dac: cio-dac: Cleanup indexing for DAC writes 2022-07-16 18:48:20 +01:00
dpot-dac.c iio:dac:dpot-dac: Swap of.h for mod_devicetable.h 2021-12-12 17:12:39 +00:00
ds4424.c iio: dac: ds4424: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:17 +01:00
Kconfig iio: dac: ti-dac5571: add support for ti,dac121c081 2022-06-11 14:35:27 +01:00
lpc18xx_dac.c iio:dac:lpc18xx_dac: Swap from of* to mod_devicetable.h 2021-12-12 17:12:43 +00:00
ltc1660.c iio: dac: ltc1660: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
ltc2632.c iio: dac: ltc2632: Make use of device properties 2022-04-28 19:34:10 +01:00
ltc2688.c iio: dac: ltc2688: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
m62332.c iio:dac:m62332: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
Makefile iio: dac: add support for ltc2688 2022-03-01 22:13:53 +00:00
max517.c iio: dac: max517: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
max5821.c iio: dac: max5821: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
mcp4725.c iio: dac: mcp4725: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() 2022-07-18 18:48:18 +01:00
mcp4922.c iio: dac: mcp4922: add support to mcp4921 2022-07-01 11:19:08 +01:00
stm32-dac-core.c iio:adc:stm32*: Use pm[_sleep]_ptr() etc to avoid need to make pm __maybe_unused 2022-02-21 19:33:04 +00:00
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.c iio: dac: stm32-dac: Replace open coded str_enable_disable() 2022-06-18 16:38:05 +01:00
ti-dac082s085.c iio: dac: ti-dac082s085: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
ti-dac5571.c iio: dac: ti-dac5571: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
ti-dac7311.c iio: dac: ti-dac7311: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
ti-dac7612.c iio: dac: ti-dac7612: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
vf610_dac.c iio: dac: vf610_dac: explicitly add proper header files 2022-06-14 11:53:20 +01:00