Fabrice Gasnier
d268f8ddbb
iio: adc: stm32-dfsdm: fix device used to request dma
...
[ Upstream commit b455d06e6f ]
DMA channel request should use device struct from platform device struct.
Currently it's using iio device struct. But at this stage when probing,
device struct isn't yet registered (e.g. device_register is done in
iio_device_register). Since commit 71723a96b8 ("dmaengine: Create
symlinks between DMA channels and slaves"), a warning message is printed
as the links in sysfs can't be created, due to device isn't yet registered:
- Cannot create DMA slave symlink
- Cannot create DMA dma:rx symlink
Fix this by using device struct from platform device to request dma chan.
Fixes: eca949800d ("IIO: ADC: add stm32 DFSDM support for PDM microphone")
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com >
Cc: <Stable@vger.kernel.org >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-05-27 17:37:45 +02:00
..
2020-05-27 17:37:39 +02:00
2020-05-02 17:25:48 +02:00
2020-04-17 10:48:52 +02:00
2020-02-24 08:34:42 +01:00
2020-05-27 17:37:33 +02:00
2020-01-27 14:51:09 +01:00
2020-05-20 08:18:33 +02:00
2020-01-09 10:19:04 +01:00
2020-04-17 10:48:37 +02:00
2020-01-04 19:13:12 +01:00
2020-04-29 16:31:29 +02:00
2020-05-20 08:18:52 +02:00
2020-02-24 08:34:37 +01:00
2020-05-20 08:18:40 +02:00
2019-12-17 20:35:00 +01:00
2020-04-29 16:31:07 +02:00
2020-03-05 16:42:18 +01:00
2020-05-27 17:37:38 +02:00
2019-12-21 10:57:38 +01:00
2020-03-11 14:14:45 +01:00
2020-04-13 10:45:03 +02:00
2020-01-09 10:19:09 +01:00
2020-04-17 10:48:41 +02:00
2020-01-27 14:51:00 +01:00
2020-04-02 15:28:23 +02:00
2020-05-27 17:37:38 +02:00
2020-05-27 17:37:34 +02:00
2020-04-23 10:30:17 +02:00
2020-05-20 08:18:44 +02:00
2020-03-25 08:06:11 +01:00
2020-05-27 17:37:30 +02:00
2020-02-24 08:34:49 +01:00
2020-05-27 17:37:45 +02:00
2020-05-20 08:18:44 +02:00
2020-04-17 10:48:52 +02:00
2020-05-27 17:37:30 +02:00
2020-05-27 17:37:43 +02:00
2020-04-23 10:30:13 +02:00
2019-12-17 20:34:33 +01:00
2020-02-24 08:34:35 +01:00
2020-01-27 14:50:45 +01:00
2020-03-18 07:14:21 +01:00
2020-01-27 14:51:14 +01:00
2020-05-06 08:13:29 +02:00
2020-05-27 17:37:40 +02:00
2020-01-27 14:50:13 +01:00
2020-01-23 08:21:28 +01:00
2020-05-10 10:30:11 +02:00
2020-05-27 17:37:43 +02:00
2020-05-20 08:18:42 +02:00
2020-05-27 17:37:30 +02:00
2020-05-27 17:37:42 +02:00
2020-04-02 15:28:12 +02:00
2020-01-27 14:50:55 +01:00
2020-05-27 17:37:39 +02:00
2020-04-29 16:31:12 +02:00
2020-01-27 14:50:58 +01:00
2020-04-23 10:30:14 +02:00
2020-01-27 14:50:04 +01:00
2019-12-31 16:36:01 +01:00
2020-05-02 17:25:52 +02:00
2020-03-25 08:06:07 +01:00
2020-03-11 14:15:10 +01:00
2020-05-20 08:18:41 +02:00
2020-05-27 17:37:35 +02:00
2020-04-23 10:30:22 +02:00
2020-01-23 08:21:35 +01:00
2020-04-29 16:31:14 +02:00
2020-05-27 17:37:43 +02:00
2020-02-24 08:34:40 +01:00
2020-05-02 17:25:47 +02:00
2020-02-24 08:34:44 +01:00
2020-04-13 10:45:16 +02:00
2020-04-23 10:30:18 +02:00
2020-04-29 16:31:13 +02:00
2020-05-27 17:37:33 +02:00
2019-12-13 08:51:54 +01:00
2020-04-23 10:30:17 +02:00
2019-12-31 16:35:55 +01:00
2020-03-25 08:06:06 +01:00
2020-05-27 17:37:42 +02:00
2020-05-06 08:13:31 +02:00
2020-02-05 14:43:50 +00:00
2020-03-05 16:42:22 +01:00
2020-05-27 17:37:40 +02:00
2020-05-27 17:37:41 +02:00
2020-02-24 08:34:37 +01:00
2020-05-27 17:37:34 +02:00
2020-05-06 08:13:31 +02:00
2020-05-27 17:37:32 +02:00
2020-04-23 10:30:22 +02:00
2020-02-24 08:34:54 +01:00
2020-02-24 08:34:47 +01:00
2020-02-24 08:34:47 +01:00
2019-12-01 09:16:22 +01:00
2020-04-29 16:31:09 +02:00
2020-05-02 17:25:58 +02:00