This change switches to the new devm_iio_triggered_buffer_setup_ext()
function and removes the iio_buffer_set_attrs() call, for assigning the
HW FIFO attributes to the buffer.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/at91-sama5d2_adc.c | 12
1 file changed, 8
This change switches to the new iio_triggered_buffer_setup_ext()
function and removes the iio_buffer_set_attrs() call, for assigning the
HW FIFO attributes to the buffer.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/bmc150-accel-core.c | 25 ++---
1 file changed
The iio_buffer_set_attrs() helper will be removed in this series. So, just
assign the attributes of the DMAEngine buffer logic directly.
This is IIO buffer core context, so there is direct access to the
buffer->attrs object.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/buffer/industria
The iio_buffer_set_attrs() is no longer used in the drivers, so it can be
removed now.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 12
include/linux/iio/buffer.h| 3 ---
2 files changed, 15 deletions(-)
diff --git a/drivers/iio/industrialio
hich
is what this change does.
At this moment, buffers allocated with {devm_}iio_triggered_buffer_setup()
are the only ones in mainline IIO to call iio_buffer_set_attrs().
Signed-off-by: Alexandru Ardelean
---
.../buffer/industrialio-triggered-buffer.c| 31 ---
This change switches to the new devm_iio_triggered_buffer_setup_ext()
function and removes the iio_buffer_set_attrs() call, for assigning the
HW FIFO attributes to the buffer.
Signed-off-by: Alexandru Ardelean
---
.../common/cros_ec_sensors/cros_ec_sensors_core.c | 15 +--
1 file
This change switches to the new iio_triggered_buffer_setup_ext()
function and removes the iio_buffer_set_attrs() call, for assigning the
HW FIFO attributes to the buffer.
Signed-off-by: Alexandru Ardelean
---
.../common/hid-sensors/hid-sensor-trigger.c | 22 ---
1 file changed
is bound to the parent device vs the IIO device object.
Also, the new at91_adc_buffer_and_trigger_init() function was moved after
the definition of the 'at91_adc_fifo_attributes'.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/at91-sama5d2_adc.c | 78 ++---
obe_pdata() function), but that cast is not touched in this
patch, since the old platform_data should be removed/cleaned-away.
Also, that cast deals with converting a kernel_ulong_t type to a pointer.
So, updating that cast doesn't yield any benefit.
Signed-off-by: Alexandru Ardelean
---
drive
ot;iio: Kconfig: at91_adc: add
COMPILE_TEST dependency to driver"), which put this driver on the lkp's bot
radar.
Reported-by: kernel test robot
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/at91_adc.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --
On Sat, Sep 26, 2020 at 7:20 PM Jonathan Cameron wrote:
>
> On Fri, 25 Sep 2020 11:37:38 +0300
> Alexandru Ardelean wrote:
>
> > I've been mulling this over for a while, and I am still not 100% convinced
> > that this is the best approach, but this feels closer to s
because there is no clear place where to place
iio_buffer_set_attrs() inside IIO core.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/adxl372.c | 5 ++--
drivers/iio/accel/bmc150-accel-core.c | 19 --
drivers/iio/adc/at91-sama5d2_adc.c
t
here is that right now 'devm_iio_triggered_buffer_setup()' has 6
arguments, which feels a bit much
Alexandru Ardelean (5):
[1] iio: cros_ec: unify hw fifo attributes into the core file
[2] iio: buffer: dmaengine: unwrap the use of iio_buffer_set_attrs()
[3] iio: triggered-buffe
The iio_buffer_set_attrs() helper will be re-purposed. So, just assign the
attributes of the DMAEngine buffer logic directly.
This is IIO buffer core context, so there should be access to the
buffer->attrs object.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/buffer/industrialio-buf
assign any extra attributes.
On the other hand, it's not a good idea to enforce that the extra
attributes be assigned to all IIO buffers. Some may not need/want them.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/adxl372.c | 2 +-
drivers/iio
for IIO
buffers expand into IIO buffers at some point.
Right now, the current IIO framework works fine for the
'1 IIO device == 1 IIO buffer' case (that is now).
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/cros_ec_accel_legacy.c | 2 +-
.../iio/common/cros
only ones in mainline IIO to call iio_buffer_set_attrs(), and this
works well for the single-buffer-per-IIO-device case.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/buffer/industrialio-triggered-buffer.c | 12 +---
include/linux/iio/triggered_buffer.h | 7 +--
2
On Thu, Sep 24, 2020 at 5:21 PM Moritz Fischer wrote:
>
> On Thu, Sep 24, 2020 at 09:50:12AM +0300, Alexandru Ardelean wrote:
> > From: Mircea Caprioru
> >
> > This patch adds support for vco maximum and minimum ranges in accordance
> > with fpga speed grade, volta
selected by potentially unused/un-needed drivers.
Albeit, the IIO_TRIGGERED_EVENT is used by a single mainline driver, this
could allow for some out-of-tree drivers to use this kmod.
This change adds a title to the IIO_TRIGGERED_EVENT Kconfig symbol.
Signed-off-by: Alexandru Ardelean
---
drivers/iio
possible that for some out-of-tree drivers this could be useful.
Alexandru Ardelean (3):
iio: dma-buffer: Kconfig: Provide titles for IIO DMA Kconfig symbols
iio: Kconfig: Provide title for IIO_TRIGGERED_EVENT symbol
iio: buffer: Kconfig: add title for IIO_TRIGGERED_BUFFER symbol
drivers/ii
selected by potentially unused/un-needed drivers.
This change adds a title to the IIO_TRIGGERED_BUFFER Kconfig symbol.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/buffer/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/buffer/Kconfig b/drivers/iio/buffer
selected by potentially unused/un-needed drivers.
This change adds titles to the IIO DMA Kconfig symbols to address this.
This change also updates DMAengine -> DMAEngine, which is the
correct/nitpick-y name of the framework.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/buffer/Kconfig
is bound to the parent device vs the IIO device object.
Also, the new at91_adc_buffer_and_trigger_init() function was moved after
the definition of the 'at91_adc_fifo_attributes'.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/at91-sama5d2_adc.c | 78 ++---
nux-iio/20200427131100.50845-6-alexandru.ardel...@analog.com/
Patch 2: iio: core: use new common ioctl() mechanism
Link:
https://lore.kernel.org/linux-iio/20200427131100.50845-7-alexandru.ardel...@analog.com/
Signed-off-by: Alexandru Ardelean
---
Note: since this is a change to the IIO core, we don
ned-off-by: Michael Hennerich
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/ad9467.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c
index 54a5864bc698..19a45dd43796 100644
--- a/drivers/iio/adc/ad94
output data timing.
Link:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD9434.pdf
The driver supports the same register set as the AD9467, so the support for
this chip is added to the 'ad9467' driver.
Signed-off-by: Michael Hennerich
Signed-off-by: Alexandr
Add entries for the AD9434 & AD9265 high-speed ADCs which are supported by
the 'ad9467' driver.
Better describe the family of ADCs similar to AD9467 in the description.
Signed-off-by: Alexandru Ardelean
---
.../devicetree/bindings/iio/adc/adi,ad9467.yaml | 15 ---
are updated in a
single place and propagated in both switch statements.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/ad9467.c | 62 +++-
1 file changed, 29 insertions(+), 33 deletions(-)
diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467
; v3:
* merge dt-bindings patches from v2 into a single one
* polish the dt-bindings docs to better cover/describe new parts
Changelog v1 -> v2:
* add AD9265 support
* wrap axi-adc chip-info, to also define vref_mask & default_output_mode
in the chip-info table
Alexandru Ardelean (2):
i
On Wed, Sep 23, 2020 at 11:42 PM Jonathan Cameron wrote:
>
> On Tue, 22 Sep 2020 16:25:57 +0300
> Alexandru Ardelean wrote:
>
> > Add entry for the AD9434 high-speed ADC which is supported by the 'ad9467'
> > driver.
> >
> > Signed-off-by: Alexan
On Wed, Sep 23, 2020 at 11:13 PM Jonathan Cameron wrote:
>
> On Mon, 21 Sep 2020 13:31:55 +0300
> Alexandru Ardelean wrote:
>
> > With the recent 'iio_dev_opaque' variable name, these two functions are
> > looking a bit ugly.
> >
> > This change use
From: Dragos Bogdan
This IP core also works and is supported on the Xilinx ZynqMP (UltraScale)
FPGA boards.
This patch enables the driver to be available on these platforms as well.
Signed-off-by: Dragos Bogdan
Signed-off-by: Alexandru Ardelean
---
drivers/clk/Kconfig | 2 +-
1 file changed
, which are stored in the
'include/linux/fpga/adi-axi-common.h' file as they are common to all ADI
FPGA cores.
Signed-off-by: Mircea Caprioru
Signed-off-by: Alexandru Ardelean
---
drivers/clk/clk-axi-clkgen.c | 67 +++-
1 file changed, 59 insertions(+), 8
mode.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Alexandru Ardelean
---
drivers/clk/clk-axi-clkgen.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/clk/clk-axi-clkgen.c b/drivers/clk/clk-axi-clkgen.c
index 1df03cc6d089..14d803e6af62 100644
--- a/drivers/clk/clk-axi
From: Mathias Tausen
Since axi-clkgen is now supported on ZYNQMP, make sure the max/min
frequencies of the PFD and VCO are respected.
Signed-off-by: Mathias Tausen
Signed-off-by: Alexandru Ardelean
---
drivers/clk/clk-axi-clkgen.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a
be the recommended mode of operation.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Alexandru Ardelean
---
drivers/clk/clk-axi-clkgen.c | 180 +--
1 file changed, 129 insertions(+), 51 deletions(-)
diff --git a/drivers/clk/clk-axi-clkgen.c b/drivers/clk/clk
ned-off-by: Mircea Caprioru
Signed-off-by: Alexandru Ardelean
---
include/linux/fpga/adi-axi-common.h | 103
1 file changed, 103 insertions(+)
diff --git a/include/linux/fpga/adi-axi-common.h
b/include/linux/fpga/adi-axi-common.h
index 141ac3f251e6..1a7f18e3a384 10
These patches synchronize the driver with the current state in the
Analog Devices Linux tree:
https://github.com/analogdevicesinc/linux/
They have been in the tree for about 2-3, so they did receive some
testing.
Highlights are:
* Add support for fractional dividers (Lars-Peter Clausen)
* Enabl
On Thu, Sep 24, 2020 at 7:53 AM Moritz Fischer wrote:
>
> Hi Stephen,
>
> On Wed, Sep 23, 2020 at 04:58:33PM -0700, Stephen Boyd wrote:
> > Quoting Alexandru Ardelean (2020-09-22 23:22:33)
> > > On Tue, Sep 22, 2020 at 10:42 PM Stephen Boyd wrote:
> > > >
for IIO
buffers expand into IIO buffers at some point.
Right now, the current IIO framework works fine for the
'1 IIO device == 1 IIO buffer' case (that is now).
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/cros_ec_accel_legacy.c | 2 +-
.../iio/common/cros
This is to encourage the use of devm_iio_dmaengine_buffer_alloc().
Currently the managed version of the DMAEngine buffer alloc is the only
function used from this part of the framework.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/buffer/industrialio-buffer-dmaengine.c | 6 ++
include
On Tue, Sep 22, 2020 at 10:42 PM Stephen Boyd wrote:
>
> Quoting Moritz Fischer (2020-09-14 19:41:38)
> > On Mon, Sep 14, 2020 at 11:11:05AM +0300, Alexandru Ardelean wrote:
> > > On Mon, Aug 10, 2020 at 4:41 PM Alexandru Ardelean
> > > wrote:
> > > >
&g
Add entry for the AD9434 high-speed ADC which is supported by the 'ad9467'
driver.
Signed-off-by: Alexandru Ardelean
---
Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad94
Add entry for the AD9265 high-speed ADC which is supported by the 'ad9467'
driver.
Signed-off-by: Alexandru Ardelean
---
Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad94
ned-off-by: Michael Hennerich
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/ad9467.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c
index 54a5864bc698..19a45dd43796 100644
--- a/drivers/iio/adc/ad94
are updated in a
single place and propagated in both switch statements.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/ad9467.c | 62 +++-
1 file changed, 29 insertions(+), 33 deletions(-)
diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467
65, I noticed that some
things could be a bit more unified for vref_mask & default_output_mode.
Changelog v1 -> v2:
* add AD9265 support
* wrap axi-adc chip-info, to also define vref_mask & default_output_mode
in the chip-info table
Alexandru Ardelean (3):
iio: adc: ad9467: wrap a a
output data timing.
Link:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD9434.pdf
The driver supports the same register set as the AD9467, so the support for
this chip is added to the 'ad9467' driver.
Signed-off-by: Michael Hennerich
Signed-off-by: Alexandr
On Mon, Sep 21, 2020 at 1:29 PM Alexandru Ardelean
wrote:
>
> From: Michael Hennerich
>
> The AD9434 is a 12-bit monolithic sampling analog-to-digital converter
> (ADC) optimized for high performance, low power, and ease of use. The part
> operates at up to a 500 MSPS conv
With the recent 'iio_dev_opaque' variable name, these two functions are
looking a bit ugly.
This change uses an 'ev_int' variable for the
iio_device_{un}register_eventset functions to make the code a little easier
to read.
Signed-off-by: Alexandru Ardelean
---
Change
decide to implement this at some point later.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-event.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c
index a85919eb7c4a..99ba657b8568 100644
--- a/drivers/iio
output data timing.
Link:
https://www.analog.com/media/en/technical-documentation/data-sheets/AD9434.pdf
The driver supports the same register set as the AD9467, so the support for
this chip is added to the 'ad9467' driver.
Signed-off-by: Michael Hennerich
Signed-off-by: Alexandr
Add entry for the AD9434 high-speed ADC which is supported by the 'ad9467'
driver.
Signed-off-by: Alexandru Ardelean
---
Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad94
On Fri, Sep 18, 2020 at 1:34 PM Alexandru Ardelean
wrote:
>
> With the recent 'iio_dev_opaque' variable name, these two functions are
> looking a bit ugly.
>
> This change uses an 'ev_int' variable for the
> iio_device_{un}register_eventset functions to m
decide to implement this at some point later.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-event.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c
index 96b7fa63f96c..2b5f1d84d321 100644
--- a/drivers/iio
With the recent 'iio_dev_opaque' variable name, these two functions are
looking a bit ugly.
This change uses an 'ev_int' variable for the
iio_device_{un}register_eventset functions to make the code a little easier
to read.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/
On Thu, Sep 17, 2020 at 8:56 PM Jonathan Cameron wrote:
>
> On Thu, 17 Sep 2020 20:41:08 +0300
> Alexandru Ardelean wrote:
>
> > On Thu, Sep 17, 2020 at 8:18 PM Jonathan Cameron wrote:
> > >
> > > On Thu, 17 Sep 2020 15:59:51 +0300
> > > Alexandru
On Thu, Sep 17, 2020 at 8:18 PM Jonathan Cameron wrote:
>
> On Thu, 17 Sep 2020 15:59:51 +0300
> Alexandru Ardelean wrote:
>
> > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as
> > primary argument. This change splits the main logi
ned-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 46 ---
1 file changed, 30 insertions(+), 16 deletions(-)
diff --git a/drivers/iio/industrialio-buffer.c
b/drivers/iio/industrialio-buffer.c
index a7d7e5143ed2..a4f6bb96d4f4 100644
--- a/d
A+U=dsoo6yabe5odlp+efnpgfdjk5zeqecegkqjxxcvehlw...@mail.gmail.com/
Reviewed-by: Krzysztof Kozlowski
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/exynos_adc.c | 20
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/
res that no other
read occurs until it completes.
This is part of a bigger cleanup.
Link:
https://lore.kernel.org/linux-iio/CA+U=dsoo6yabe5odlp+efnpgfdjk5zeqecegkqjxxcvehlw...@mail.gmail.com/
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/fsl-imx25-gcq.c |
of another sequence before another one has
finished.
This is part of a bigger cleanup.
Link:
https://lore.kernel.org/linux-iio/CA+U=dsoo6yabe5odlp+efnpgfdjk5zeqecegkqjxxcvehlw...@mail.gmail.com/
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/frequency/adf435
tect the sanity of the entire
sequence of operation.
This is part of a bigger cleanup.
Link:
https://lore.kernel.org/linux-iio/CA+U=dsoo6yabe5odlp+efnpgfdjk5zeqecegkqjxxcvehlw...@mail.gmail.com/
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/dac/ti-dac761
f a bigger cleanup.
Link:
https://lore.kernel.org/linux-iio/CA+U=dsoo6yabe5odlp+efnpgfdjk5zeqecegkqjxxcvehlw...@mail.gmail.com/
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/dac/stm32-dac.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
d
We should probably print what the expected chip-ID is. We already have
that information available, based on the device specified via
device-tree.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/ad9467.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/adc
The proper error code should be ENODEV (vs EINVAL) in case the chip ID
isn't recognized.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/ad9467.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c
index 1e8fd83
On Mon, Aug 10, 2020 at 4:41 PM Alexandru Ardelean
wrote:
>
> These patches synchronize the driver with the current state in the
> Analog Devices Linux tree:
> https://github.com/analogdevicesinc/linux/
>
> They have been in the tree for about 2-3, so they did receive some
&
On Thu, Sep 3, 2020 at 10:42 PM Andy Shevchenko
wrote:
>
> On Thu, Sep 3, 2020 at 9:19 PM Krzysztof Kozlowski wrote:
> >
> > Emails to Beniamin Bia bounce with no such address so remove him from
> > maintainers. After this removal, many entries for Analog Devices Inc
> > IIO drivers look exactly
On Sat, Aug 29, 2020 at 6:46 PM Jonathan Cameron wrote:
>
> On Thu, 27 Aug 2020 13:00:36 +0300
> Alexandru Ardelean wrote:
>
> > On Thu, Aug 27, 2020 at 12:03 PM Fabrice Gasnier
> > wrote:
> > >
> > > On 8/27/20 10:55 AM, Alexandru Ardelean wrot
On Thu, Aug 27, 2020 at 12:03 PM Fabrice Gasnier wrote:
>
> On 8/27/20 10:55 AM, Alexandru Ardelean wrote:
> > On Wed, Aug 26, 2020 at 3:03 PM Alexandru Ardelean
> > wrote:
> >> From: Sergiu Cuciurean
> >>
> >> As part of the general cleanup of i
On Wed, Aug 26, 2020 at 3:03 PM Alexandru Ardelean
wrote:
>
> From: Sergiu Cuciurean
>
> As part of the general cleanup of indio_dev->mlock, this change replaces
> it with a local lock. The lock protects against potential races when
> reading the CR reg and then updating,
On Thu, Aug 27, 2020 at 9:57 AM Krzysztof Kozlowski wrote:
>
> On Wed, Aug 26, 2020 at 04:22:03PM +0300, Alexandru Ardelean wrote:
> > From: Sergiu Cuciurean
> >
> > As part of the general cleanup of indio_dev->mlock, this change replaces
> > it with a local lock
From: Sergiu Cuciurean
As part of the general cleanup of indio_dev->mlock, this change replaces
it with a local lock, to protect potential concurrent access to the
completion callback during a conversion.
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/
res that no other
read occurs until it completes.
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/fsl-imx25-gcq.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/adc/fsl-imx25-gcq.c b/drivers/iio/adc/fsl-imx25-gcq.c
in
-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/dac/stm32-dac.c | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/dac/stm32-dac.c b/drivers/iio/dac/stm32-dac.c
index 092c796fa3d9..7a8aed476850 100644
--- a/drivers/iio/dac/stm32-da
On Wed, Aug 26, 2020 at 12:01 PM Fabrice Gasnier wrote:
>
> On 8/26/20 8:38 AM, Alexandru Ardelean wrote:
> > From: Sergiu Cuciurean
> >
> > As part of the general cleanup of indio_dev->mlock, this change replaces
> > it with a local lock on the device's s
From: Sergiu Cuciurean
As part of the general cleanup of indio_dev->mlock, this change replaces
it with a local lock on the device's state structure.
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/frequency/adf4350.c | 15 +--
1 file ch
From: Sergiu Cuciurean
As part of the general cleanup of indio_dev->mlock, this change replaces
it with a local lock on the device's state structure.
Signed-off-by: Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/dac/ti-dac7612.c | 7 +--
1 file changed, 5 in
Sergiu Cuciurean
Signed-off-by: Alexandru Ardelean
---
drivers/iio/dac/stm32-dac.c | 14 +-
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers/iio/dac/stm32-dac.c b/drivers/iio/dac/stm32-dac.c
index 092c796fa3d9..fc636812c17e 100644
--- a/drivers/iio/dac/stm32-dac.c
On Tue, Aug 25, 2020 at 6:14 PM Alexandru Ardelean
wrote:
>
> On Tue, Aug 25, 2020 at 5:46 PM Vinod Koul wrote:
> >
> > On 25-08-20, 15:48, Alexandru Ardelean wrote:
> > > The series adds support for reading the DMA bus attributes from the
> > > I
All these attributes will be read from registers in newer core versions, so
just wrap the logic into a function.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 40 +++---
1 file changed, 24 insertions(+), 16 deletions(-)
diff --git a/drivers
into a separate function.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c
index 1a1e227fa935..7ee56ae60093 100644
--- a/drivers
need to read them. Bus-width values are stored in log2 values,
so we just need to use them as shift values to make them equivalent to the
current format.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 66 --
1 file changed, 63 insertions
The clock may also be required to read registers from the IP core (if it is
provided and the driver needs to control it).
So, move it earlier in the probe.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 17 ++---
1 file changed, 10 insertions(+), 7 deletions
axi-dmac: move active_descs list init after
device-tree init'
the list of active_descs can be moved a bit lower in the init/probe
*** BLURB HERE ***
Alexandru Ardelean (6):
dmaengine: axi-dmac: move version read in probe
dmaengine: axi-dmac: move active_descs list init after device-tr
d-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c
index 088c79137398..90a99bdffa2b 100644
--- a/drivers/dma/dma-axi-dmac.c
+++ b/drivers/dma/dma-axi-dmac.c
@@ -
The 'version' of the IP core will be needed to adapt the driver to a new
feature (i.e. reading some DMA parameters from registers).
To do that, the version will be checked, so this is being moved out of the
axi_dmac_detect_caps() function.
Signed-off-by: Alexandru Ardelean
---
drive
On Tue, Aug 25, 2020 at 5:46 PM Vinod Koul wrote:
>
> On 25-08-20, 15:48, Alexandru Ardelean wrote:
> > The series adds support for reading the DMA bus attributes from the
> > INTERFACE_DESCRIPTION (0x10) register.
> >
> > The first 5 changes are a bit of rew
d-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c
index 088c79137398..90a99bdffa2b 100644
--- a/drivers/dma/dma-axi-dmac.c
+++ b/drivers/dma/dma-axi-dmac.c
@@ -
into a separate function.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c
index 1a1e227fa935..7ee56ae60093 100644
--- a/drivers
axi-dmac: move active_descs list init after
device-tree init'
the list of active_descs can be moved a bit lower in the init/probe
Alexandru Ardelean (6):
dmaengine: axi-dmac: move version read in probe
dmaengine: axi-dmac: move active_descs list init after device-tree
init
dmaen
into a separate function.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c
index 1a1e227fa935..7ee56ae60093 100644
--- a/drivers
All these attributes will be read from registers in newer core versions, so
just wrap the logic into a function.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 40 +++---
1 file changed, 24 insertions(+), 16 deletions(-)
diff --git a/drivers
The 'version' of the IP core will be needed to adapt the driver to a new
feature (i.e. reading some DMA parameters from registers).
To do that, the version will be checked, so this is being moved out of the
axi_dmac_detect_caps() function.
Signed-off-by: Alexandru Ardelean
---
drive
All these attributes will be read from registers in newer core versions, so
just wrap the logic into a function.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 40 +++---
1 file changed, 24 insertions(+), 16 deletions(-)
diff --git a/drivers
d-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c
index 088c79137398..90a99bdffa2b 100644
--- a/drivers/dma/dma-axi-dmac.c
+++ b/drivers/dma/dma-axi-dmac.c
@@ -
The clock may also be required to read registers from the IP core (if it is
provided and the driver needs to control it).
So, move it earlier in the probe.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 17 ++---
1 file changed, 10 insertions(+), 7 deletions
need to read them. Bus-width values are stored in log2 values,
so we just need to use them as shift values to make them equivalent to the
current format.
Signed-off-by: Alexandru Ardelean
---
drivers/dma/dma-axi-dmac.c | 66 --
1 file changed, 63 insertions
The 'version' of the IP core will be needed to adapt the driver to a new
feature (i.e. reading some DMA parameters from registers).
To do that, the version will be checked, so this is being moved out of the
axi_dmac_detect_caps() function.
Signed-off-by: Alexandru Ardelean
---
drive
axi-dmac: move active_descs list init after
device-tree init'
the list of active_descs can be moved a bit lower in the init/probe
Alexandru Ardelean (6):
dmaengine: axi-dmac: move version read in probe
dmaengine: axi-dmac: move active_descs list init after device-tree
init
dmaen
501 - 600 of 982 matches
Mail list logo