On Wed, Feb 3, 2021 at 12:04 PM Andy Shevchenko
wrote:
>
> On Mon, Feb 1, 2021 at 5:28 PM Alexandru Ardelean
> wrote:
> >
> > With this change, we create a new directory for the IIO device called
> > buffer0, under which both the old buffer/ and scan_elements/ are s
he rest of the iio_buffer attributes, it means we need to
wrap them into iio_dev_attr
One thing to be determined: if IIO_BUFFER_GET_FD_IOCTL for buffer0 should
return an FD or not.
Right now, it's returning 0.
Alexandru Ardelean (11):
docs: ioctl-number.rst: reserve IIO subsystem ioctl() space
ii
Oddly enough the noop function is an int-return. This one seems to be void.
This change converts it to int, because we want to change how groups are
registered. With that change this function could error out with -ENOMEM.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core_trigger.h
is reserved for IIO ioctl() calls.
Signed-off-by: Alexandru Ardelean
---
Documentation/userspace-api/ioctl/ioctl-number.rst | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst
b/Documentation/userspace-api/ioctl/ioctl-number.rst
index a4c75a28c839
zed, cdev_device_add()
behaves like device_add().
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 7db761afa578..0a6fd299a
nnoy a few people since that would make the system less
configurable.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core.h | 3 +++
drivers/iio/industrialio-buffer.c | 12 +--
drivers/iio/industrialio-core.c| 32 +++---
drivers/iio/industri
to the
allocation of the scan_elements/ attributes to make grouping easier.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 71 ---
1 file changed, 37 insertions(+), 34 deletions(-)
diff --git a/drivers/iio/industrialio-buffer.c
b/drivers/iio/industrialio
IIO device object. This way the IIO buffer can have just a single
attribute_group object, saving a bit of memory when adding multiple IIO
buffers.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 111 +++---
include/linux/iio/buffer_impl.h |
by 1. This looks like it could do with a bit
of a re-think.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core.h| 2 ++
drivers/iio/industrialio-buffer.c | 4
drivers/iio/industrialio-core.c | 6 ++
drivers/iio/industrialio-event.c | 1 +
include/linux/iio/sysfs.h
need to pass another buffer object than 'indio_dev->buffer'.
Since we'll also open some chardevs via anon inodes, we can pass extra
buffers in that function by assigning another object to the
iio_dev_buffer_pair object.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core.h
erging (or finalizing the
merge) of the buffer/ & scan_elements/ attributes internally.
Accessing these new buffer attributes can now be done via
'to_iio_dev_attr(attr)->buffer' inside the show/store handlers.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-
name of_node power scan_elements subsystem uevent
---
iio:device0 has some fake kfifo buffers attached to an IIO device.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 118 +++
-by: Dragos Bogdan
Signed-off-by: Alexandru Ardelean
---
drivers/clk/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 85856cff506c..cee1d4e657bc 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -247,7 +247,8
The axi-clkgen driver now supports ZynqMP (UltraScale) as well, however the
driver needs to use different PFD & VCO limits.
For ZynqMP, these needs to be selected by using the
'adi,zynqmp-axi-clkgen-2.00.a' string.
Signed-off-by: Alexandru Ardelean
---
Documentation/devicetree/bindings/c
-off-by: Alexandru Ardelean
---
drivers/clk/clk-axi-clkgen.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/drivers/clk/clk-axi-clkgen.c b/drivers/clk/clk-axi-clkgen.c
index ad86e031ba3e..9d1b0fc56c73 100644
--- a/drivers/clk/clk-axi-clkgen.c
+++ b/drivers/clk/clk-axi-clkgen.c
No major functional change. Noticed while checking the driver code that
this could be used.
Saves two lines.
Signed-off-by: Alexandru Ardelean
---
drivers/clk/clk-axi-clkgen.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/clk-axi-clkgen.c b/drivers/clk/clk
https://lore.kernel.org/linux-clk/20210126110826.24221-1-alexandru.ardel...@analog.com/
Changelog v2 -> v3:
* added HAS_IOMEM || COMPILE_TEST and OF dependencies to driver in
Kconfig
* added patch 'clk: axi-clkgen: use devm_platform_ioremap_resource() short-hand'
Alexandru Ardelean (4):
-ed for more
buffers.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 80 +--
include/linux/iio/buffer.h| 4 +-
include/linux/iio/buffer_impl.h | 3 ++
include/linux/iio/iio-opaque.h| 4 ++
4 files changed, 74 insertions(+), 17
with a ZynqMP/Zynq/Microblaze connected via PCIe.
To accommodate for these cases, this change removes the limitation for this
driver to be compilable only on Zynq/Microblaze architectures.
Signed-off-by: Dragos Bogdan
Signed-off-by: Alexandru Ardelean
---
drivers/clk/Kconfig | 1 -
1 file
PFD and VCO limits
* essentially removed the 'adi,zynq-axi-clkgen-2.00.a' compat string
* removed architecture dependency on build for driver; the driver should
be usable also on PCIe setups
Alexandru Ardelean (3):
clk: axi-clkgen: remove ARCH dependency in Kconfig
clk: clk-axiclkgen: add Zyn
The axi-clkgen driver now supports ZynqMP (UltraScale) as well, however the
driver needs to use different PFD & VCO limits.
For ZynqMP, these needs to be selected by using the
'adi,zynqmp-axi-clkgen-2.00.a' string.
Signed-off-by: Alexandru Ardelean
---
Documentation/devicetree/bindings/c
-off-by: Alexandru Ardelean
---
drivers/clk/clk-axi-clkgen.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/drivers/clk/clk-axi-clkgen.c b/drivers/clk/clk-axi-clkgen.c
index ad86e031ba3e..9d1b0fc56c73 100644
--- a/drivers/clk/clk-axi-clkgen.c
+++ b/drivers/clk/clk-axi-clkgen.c
On Mon, Jan 25, 2021 at 9:32 PM Greg Kroah-Hartman
wrote:
>
> On Sun, Jan 24, 2021 at 06:11:26PM +, Jonathan Cameron wrote:
> > On Fri, 22 Jan 2021 18:25:20 +0200
> > Alexandru Ardelean wrote:
> >
> > > When adding more than one IIO buffer per IIO devi
On Sun, Jan 24, 2021 at 8:41 PM Jonathan Cameron wrote:
>
> On Fri, 22 Jan 2021 18:25:29 +0200
> Alexandru Ardelean wrote:
>
> > With this change, an ioctl() call is added to open a character device for a
> > buffer.
> > The ioctl() will return a 0 FD for the first
On Sun, Jan 24, 2021 at 8:13 PM Jonathan Cameron wrote:
>
> On Fri, 22 Jan 2021 18:25:20 +0200
> Alexandru Ardelean wrote:
>
> > When adding more than one IIO buffer per IIO device, we will need to create
> > a buffer & scan_elements directory for each buff
the creation of the attribute name.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 43 +
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 95d66745f118
gned-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 195 +++---
drivers/iio/industrialio-core.c | 24 ++--
include/linux/iio/buffer_impl.h | 14 ++-
include/linux/iio/iio.h | 2 +-
4 files changed, 200 insertions(+), 35 deletions(-)
di
This change makes it so that the first buffer directory is named 'buffer0'
and moves the 'scan_elements' under it.
For backwards compatibility these folders are symlinked back to the
original folders.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 66
is also bad;
Alexandru Ardelean (12):
iio: core: register chardev only if needed
iio: buffer: add back-ref from iio_buffer to iio_dev
iio: buffer: rework buffer & scan_elements dir creation
iio: buffer: add index to the first IIO buffer dir and symlink it back
iio:
to the IIO device [from the IIO buffer].
This change adds that.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 2 ++
include/linux/iio/buffer_impl.h | 3 +++
2 files changed, 5 insertions(+)
diff --git a/drivers/iio/industrialio-buffer.c
b/drivers/iio/industrialio
zed, cdev_device_add()
behaves like device_add().
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 7db761afa578..0a6fd299a
weird at first, as most of them will just pass back
their reference to the IIO device.
But this can also allow for newer (maybe more interesting) uses.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/adxl372.c | 36 -
drivers/iio/accel/bmc150-accel-core.c
-ed for more
buffers.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 67 ---
include/linux/iio/buffer.h| 4 +-
include/linux/iio/buffer_impl.h | 3 ++
include/linux/iio/iio-opaque.h| 4 ++
4 files changed, 62 insertions(+), 16
This is useful for drivers that may have a reference to an IIO buffer, to
be able to get a reference back to the IIO device.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 14 ++
include/linux/iio/buffer.h| 2 ++
2 files changed, 16 insertions
For the buffer attributes that are present inside the IIO core buffer logic
we can re-route them to expand the attribute into iio_buffer objects.
The rest, will still expand to device_attributes.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 113
need to pass another buffer object than 'indio_dev->buffer'.
Since we'll also open some chardevs via anon inodes, we can pass extra
buffers in that function by assigning another object to the
iio_dev_buffer_pair object.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core.h
to the IIO device [from the IIO buffer].
This change adds that.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 2 ++
include/linux/iio/buffer_impl.h | 3 +++
2 files changed, 5 insertions(+)
diff --git a/drivers/iio/industrialio-buffer.c
b/drivers/iio/industrialio
name of_node power scan_elements subsystem uevent
---
iio:device0 has some fake kfifo buffers attached to an IIO device.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 119 ++
drivers/iio/industrialio-core.c | 8 ++
include/linux/iio/buffer_im
need to the 'kobj' to expand
from the 'bufferX' directory back to an IIO buffer.
kobjects are simpler to manage.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core.h| 5 +
drivers/iio/industrialio-buffer.c | 160 +++---
drivers/iio/industrialio-core.c | 1
gned-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 195 +++---
drivers/iio/industrialio-core.c | 24 ++--
include/linux/iio/buffer_impl.h | 14 ++-
include/linux/iio/iio.h | 2 +-
4 files changed, 200 insertions(+), 35 deletions(-)
di
This change makes it so that the first buffer directory is named 'buffer0'
and moves the 'scan_elements' under it.
For backwards compatibility these folders are symlinked back to the
original folders.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 66
the creation of the attribute name.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 43 +
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 95d66745f118
zed, cdev_device_add()
behaves like device_add().
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 7db761afa578..0a6fd299a
is also bad;
Alexandru Ardelean (12):
iio: core: register chardev only if needed
iio: buffer: add back-ref from iio_buffer to iio_dev
iio: buffer: rework buffer & scan_elements dir creation
iio: buffer: add index to the first IIO buffer dir and symlink it back
iio:
On Fri, Jan 22, 2021 at 5:57 PM Alexandru Ardelean
wrote:
>
> The scan_elements attributes are solely located inside
> 'industrialio-buffer-sysfs.c'. In order to support more than one buffer per
> IIO device, we need to expand scan_elements attributes directly to IIO
>
For the buffer attributes that are present inside the IIO core buffer logic
we can re-route them to expand the attribute into iio_buffer objects.
The rest, will still expand to device_attributes.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 113
weird at first, as most of them will just pass back
their reference to the IIO device.
But this can also allow for newer (maybe more interesting) uses.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/adxl372.c | 36 -
drivers/iio/accel/bmc150-accel-core.c
-ed for more
buffers.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 67 ---
include/linux/iio/buffer.h| 4 +-
include/linux/iio/buffer_impl.h | 3 ++
include/linux/iio/iio-opaque.h| 4 ++
4 files changed, 62 insertions(+), 16
name of_node power scan_elements subsystem uevent
---
iio:device0 has some fake kfifo buffers attached to an IIO device.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 119 ++
drivers/iio/industrialio-core.c | 8 ++
include/linux/iio/buffer_im
need to pass another buffer object than 'indio_dev->buffer'.
Since we'll also open some chardevs via anon inodes, we can pass extra
buffers in that function by assigning another object to the
iio_dev_buffer_pair object.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core.h
need to the 'kobj' to expand
from the 'bufferX' directory back to an IIO buffer.
kobjects are simpler to manage.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/iio_core.h| 5 +
drivers/iio/industrialio-buffer.c | 160 +++---
drivers/iio/industrialio-core.c | 1
This is useful for drivers that may have a reference to an IIO buffer, to
be able to get a reference back to the IIO device.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-buffer.c | 14 ++
include/linux/iio/buffer.h| 2 ++
2 files changed, 16 insertions
On Sun, Dec 13, 2020 at 4:31 PM Jonathan Cameron wrote:
>
> On Wed, 9 Dec 2020 17:55:22 +0200
> Alexandru Ardelean wrote:
>
> > On Wed, Dec 9, 2020 at 5:53 PM Andy Shevchenko
> > wrote:
> > >
> > > On Wed, Dec 9, 2020 at 5:45 PM Alexandru Ardelean
>
From: Michael Hennerich
The issue is that using SPI from a callback under the CCF lock will
deadlock, since this code uses clk_get_rate().
Fixes: c474b38665463 ("spi: Add driver for Cadence SPI controller")
Signed-off-by: Michael Hennerich
Signed-off-by: Alexandru Ardelean
---
d
On Thu, Jan 7, 2021 at 7:35 PM Guenter Roeck wrote:
>
> On Thu, Jan 07, 2021 at 05:44:33PM +0200, Alexandru Ardelean wrote:
> > >
> > > Note that this patch doesn't compile on 32-bit targets.
> >
> > Yeah, my bad.
> > I only tested with make al
On Thu, Jan 7, 2021 at 5:25 PM Guenter Roeck wrote:
>
> On Thu, Jan 07, 2021 at 12:34:16PM +0200, Alexandru Ardelean wrote:
> > The sense resistor is a parameter of the board. It should be configured in
> > the driver via a device-tree / ACPI property, so that the proper curren
ttps://github.com/0day-ci/linux/commits/Alexandru-Ardelean/hwmon-ltc2945-add-support-for-sense-resistor/20210107-183412
> base:
> https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
> hwmon-next
> config: openrisc-randconfig-r011-20210107 (attached as .config)
. A reserved
values is marked by setting its entry in the items array to NULL rather
than the normal descriptive string value.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Alexandru Ardelean
---
Changelog v7 -> v8:
*
https://lore.kernel.org/linux-iio/20210107084434.35283-1-alexandru.ar
The intent is to add pass the value of the sense resistor in the driver.
This change wraps a 'struct ltc2945_state', and moves the regmap reference
on that object.
Then we can add the value of the sense resistor, or other information that
would be useful for the driver.
Signed-off-by: Alexandru
This change adds a device-tree binding documentation for the Linear
Technology (now Analog Devices) LTC2945 Wide Range I2C Power Monitor.
Reviewed-by: Rob Herring
Signed-off-by: Alexandru Ardelean
---
.../bindings/hwmon/adi,ltc2945.yaml | 49 +++
1 file changed, 49
of the sense resistor.
Signed-off-by: Alexandru Ardelean
---
drivers/hwmon/ltc2945.c | 60 ++---
1 file changed, 39 insertions(+), 21 deletions(-)
diff --git a/drivers/hwmon/ltc2945.c b/drivers/hwmon/ltc2945.c
index 41df2c8b7673..e60b15832b0e 100644
--- a/drivers/hwmon
10480
Watts, which in micro-Watts ends up being around 10 billion micro-Watts.
Current and voltage is represented in millis, so these can be clamped.
Signed-off-by: Alexandru Ardelean
---
drivers/hwmon/ltc2945.c | 48 +
1 file changed, 48 insertions
wer resistor value that 1 mOhm, and all resistor values
need to be integer in mOhm.
- added max power and max amps limits, adjusted to sense resistor
* for patch 'dt-bindings: hwmon: ltc2945: add device tree doc for ltc2945 '
added 'Reviewed-by: Rob Herring '
Alexandru Ardelean (4):
hw
. A reserved
values is marked by setting its entry in the items array to NULL rather
than the normal descriptive string value.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
.
If n > 0, the search will continue until the element is found or n is
reached.
If n < 0, the search will continue until the element is found or a NULL
character is found.
Signed-off-by: Alexandru Ardelean
---
FWIW (from my side): I am not fully sure yet that implementing a
new helper is th
n Rothwell
Cc: Andy Shevchenko
Signed-off-by: Alexandru Ardelean
---
Changelog v1 -> v2:
* revert to using '%d' specifiers
* add !! operatior to bit-masking; this way the types are automatically
re-cast
* add 'Reported-by: kernel test robot '
drivers/spi/spi-stm32.c | 8
1 fi
for this change.
Fixes: f7005142dace ("spi: uapi: unify SPI modes into a single spi.h header")
Reported-by: Stephen Rothwell
Cc: Andy Shevchenko
Signed-off-by: Alexandru Ardelean
---
drivers/spi/spi-stm32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi
On Tue, Dec 22, 2020 at 3:43 PM Andy Shevchenko
wrote:
>
> On Tue, Dec 22, 2020 at 3:09 PM Alexandru Ardelean
> wrote:
> >
> > The original docstring of the __sysfs_match_string() and match_string()
> > helper, implied that -1 could be used to search through
. A reserved
values is marked by setting its entry in the items array to NULL rather
than the normal descriptive string value.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
.
If n > 0, the search will continue until the element is found or n is
reached.
If n < 0, the search will continue until the element is found or a NULL
character is found.
Signed-off-by: Alexandru Ardelean
---
Changelog v5 -> v6
*
https://lore.kernel.org/linux-iio/2020122209521
On Tue, Dec 22, 2020 at 1:13 PM Greg KH wrote:
>
> On Tue, Dec 22, 2020 at 11:52:09AM +0200, Alexandru Ardelean wrote:
> > The original docstring of the __sysfs_match_string() and match_string()
> > helper, implied that -1 could be used to search through NULL terminated
> &
r n is
reached.
If n < 0, the search will continue until the element is found or a NULL
character is found.
Signed-off-by: Alexandru Ardelean
---
Changelog v4 -> v5:
*
https://patchwork.kernel.org/project/linux-iio/patch/20201221151551.52511-1-alexandru.ardel...@analog.com/
* add 'lib/stri
. A reserved
values is marked by setting its entry in the items array to NULL rather
than the normal descriptive string value.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git
On Tue, Dec 22, 2020 at 9:21 AM Alexandru Ardelean
wrote:
>
> On Mon, Dec 21, 2020 at 8:02 PM Andy Shevchenko
> wrote:
> >
> > On Mon, Dec 21, 2020 at 5:11 PM Alexandru Ardelean
> > wrote:
> > >
> > > From: Lars-Peter Clausen
> > &g
On Mon, Dec 21, 2020 at 8:02 PM Andy Shevchenko
wrote:
>
> On Mon, Dec 21, 2020 at 5:11 PM Alexandru Ardelean
> wrote:
> >
> > From: Lars-Peter Clausen
> >
> > Some enums might have gaps or reserved values in the middle of their value
> > range. E.g. cons
of
these two lines is missing and to adjust the transfers accordingly.
Signed-off-by: Dragos Bogdan
Signed-off-by: Alexandru Ardelean
---
Changelog v5 -> v6:
*
https://patchwork.kernel.org/project/spi-devel-general/patch/20201221141906.48922-2-alexandru.ardel...@analog.com/
* merged on single l
Following a change to the SPI framework, providing a value of zero for
'spi-rx-bus-width' and 'spi-tx-bus-width' is now possible and will
essentially mean that no RX or TX is allowed.
Reviewed-by: Rob Herring
Signed-off-by: Alexandru Ardelean
---
Changelog v5 -> v6:
*
ht
of these bitfields to _BITUL() macro.
Reviewed-by: Andy Shevchenko
Signed-off-by: Alexandru Ardelean
---
Changelog v5 -> v6:
*
https://patchwork.kernel.org/project/spi-devel-general/patch/20201221141906.48922-1-alexandru.ardel...@analog.com/
* no change
include/linux/spi/spi.h |
. A reserved
values is marked by setting its entry in the items array to NULL rather
than the normal descriptive string value.
Signed-off-by: Lars-Peter Clausen
Signed-off-by: Alexandru Ardelean
---
Nearly 1 year and a half since I last touched this:
https://lore.kernel.org/linux-iio/20190508111913.7276-3
of that
platform.
Signed-off-by: Dragos Bogdan
Signed-off-by: Mathias Tausen
Signed-off-by: Alexandru Ardelean
---
This is a re-spin of an older series.
It needed to wait a txt -> yaml dt conversion:
https://patchwork.kernel.org/project/linux-clk/patch/20201013143421.84188-1-alexandru.ar
have as the
original compatible string (i.e. 'adi,axi-clkgen-2.00.a').
Signed-off-by: Alexandru Ardelean
---
Documentation/devicetree/bindings/clock/adi,axi-clkgen.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/adi,axi-clkgen.yaml
b/Documenta
of these bitfields to _BITUL() macro.
Reviewed-by: Andy Shevchenko
Signed-off-by: Alexandru Ardelean
---
Changelog v4 -> v5:
*
https://lore.kernel.org/linux-spi/20201203140531.74470-1-alexandru.ardel...@analog.com/
* added 'Reviewed-by: Andy Shevchenko '
include/linux/spi/spi.h |
Following a change to the SPI framework, providing a value of zero for
'spi-rx-bus-width' and 'spi-tx-bus-width' is now possible and will
essentially mean that no RX or TX is allowed.
Reviewed-by: Rob Herring
Signed-off-by: Alexandru Ardelean
---
Changelog v4 -> v5:
*
https://lore.kernel.
of
these two lines is missing and to adjust the transfers accordingly.
Signed-off-by: Dragos Bogdan
Signed-off-by: Alexandru Ardelean
---
Changelog v4 -> v5:
*
https://lore.kernel.org/linux-spi/20201203140531.74470-2-alexandru.ardel...@analog.com/
* using static_assert() vs BUILD_BUG_ON()
* ad
On Sat, Dec 5, 2020 at 8:42 PM Jonathan Cameron wrote:
>
> On Thu, 3 Dec 2020 12:04:18 +0200
> Alexandru Ardelean wrote:
>
> > I stumbled over this, while trying to implement some changes to the IIO
> > buffer logic.
> > Seems that most drivers have a IN
On Wed, Dec 9, 2020 at 5:53 PM Andy Shevchenko
wrote:
>
> On Wed, Dec 9, 2020 at 5:45 PM Alexandru Ardelean
> wrote:
> > On Wed, Dec 9, 2020 at 5:37 PM Andy Shevchenko
> > wrote:
> > > On Thu, Dec 3, 2020 at 11:55 AM Alexandru Ardelean
> > > wrote:
>
&
On Wed, Dec 9, 2020 at 5:37 PM Andy Shevchenko
wrote:
>
> On Thu, Dec 3, 2020 at 11:55 AM Alexandru Ardelean
> wrote:
> >
> > We only need a chardev if we need to support buffers and/or events.
> >
> > With this change, a chardev will be created only
On Sat, Dec 5, 2020 at 8:46 PM Jonathan Cameron wrote:
>
> On Thu, 3 Dec 2020 11:50:03 +0200
> Alexandru Ardelean wrote:
>
> > Since a main requirement for an IIO device is to have a parent device
> > object, it makes sense to attach more of the IIO device's obj
Following a change to the SPI framework, providing a value of zero for
'spi-rx-bus-width' and 'spi-tx-bus-width' is now possible and will
essentially mean that no RX or TX is allowed.
Signed-off-by: Alexandru Ardelean
---
Changelog v3 -> v4:
*
https://lore.kernel.org/linux-
of
these two lines is missing and to adjust the transfers accordingly.
Signed-off-by: Dragos Bogdan
Signed-off-by: Alexandru Ardelean
---
Changelog v3 -> v4:
*
https://lore.kernel.org/linux-spi/20201127130834.136348-2-alexandru.ardel...@analog.com/
* moved SPI_NO_TX + SPI_NO_RX to internal spi.h hea
of these bitfields to _BITUL() macro.
Signed-off-by: Alexandru Ardelean
---
Changelog v3 -> v4:
*
https://lore.kernel.org/linux-spi/20201127130834.136348-1-alexandru.ardel...@analog.com/
* uapi -> uAPI in comment
* removed extra license text in 'uapi/linux/spi/spi.h'
* using _BITUL() macro
include
dea is far from being ready, but I thought I'd try this RFC instead
as a discussion starter in that direction.
Alexandru Ardelean (5):
iio: core: initialize 'modes' to INDIO_DIRECT_MODE by default
iio,counter: remove modes init for INDIO_DIRECT_MODE only drivers
iio: remove modes i
The INDIO_DIRECT_MODE mode bit will be set by iio_device_alloc() and
iio_triggered_buffer_setup() will set the INDIO_BUFFER_TRIGGERED bit.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/adc/ad7768-1.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio
The INDIO_DIRECT_MODE mode bit will be set by iio_device_alloc() and
iio_triggered_buffer_setup() will set the INDIO_BUFFER_TRIGGERED bit.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/magnetometer/rm3100-core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/iio/magnetometer
initialize to INDIO_DIRECT_MODE only.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/accel/st_accel_core.c | 1 -
drivers/iio/adc/ltc2497-core.c | 1 -
drivers/iio/gyro/st_gyro_core.c | 1 -
drivers/iio/magnetometer/st_magn_core.c | 1 -
drivers/iio/pressure
. This would
not affect any current IIO driver.
Then for the IIO devices that only have direct-mode, this initialization
can be removed, since it becomes boiler-plate code.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/industrialio-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git
the creation of the attribute name.
Signed-off-by: Alexandru Ardelean
---
Changelog v1 -> v2:
*
https://lore.kernel.org/linux-iio/20201117162340.43924-6-alexandru.ardel...@analog.com/
* split away from series; I don't know when I will have time to re-visit
the entire original series, so mi
zed, cdev_device_add()
behaves like device_add().
Signed-off-by: Alexandru Ardelean
---
Changelog v1 -> v2:
*
https://lore.kernel.org/linux-iio/20201117162340.43924-2-alexandru.ardel...@analog.com/
* split away from series; I don't know when I will have time to re-visit
the entire original series, so
with most IIO drivers.
This change tackles the simple allocations, to convert them to
device-managed calls, and tie them to the parent device.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/dummy/iio_simple_dummy.c | 29
1 file changed, 8 insertions(+), 21 deletions
->name'.
Signed-off-by: Alexandru Ardelean
---
drivers/iio/dummy/iio_simple_dummy.c| 37 +-
drivers/iio/dummy/iio_simple_dummy.h| 11 +--
drivers/iio/dummy/iio_simple_dummy_buffer.c | 78 ++---
3 files changed, 13 insertions(+), 113 deletions(-)
diff --
201 - 300 of 982 matches
Mail list logo