Re: [PATCH] iio: ad_sigma_delta: use unsigned long for timeout

2018-07-27 Thread Ardelean, Alexandru
On Thu, 2018-07-26 at 11:44 +, Ardelean, Alexandru wrote: > On Mon, 2018-07-23 at 11:18 +0200, Nicholas Mc Guire wrote: > > wait_for_completion_timeout returns unsigned long not int so an > > appropriate > > variable is declared and the assignment and check fixed up. >

Re: [PATCH] iio: ad_sigma_delta: use unsigned long for timeout

2018-07-26 Thread Ardelean, Alexandru
On Mon, 2018-07-23 at 11:18 +0200, Nicholas Mc Guire wrote: > wait_for_completion_timeout returns unsigned long not int so an > appropriate > variable is declared and the assignment and check fixed up. > Patch looks good. Thanks for this Alex > Signed-off-by: Nicholas Mc Guire > --- > >

Re: [PATCH 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC

2018-10-18 Thread Ardelean, Alexandru
On Thu, 2018-10-18 at 12:12 +0300, Stefan Popa wrote: > Document support for AD7606 Analog to Digital Converter. > Commments inline > Signed-off-by: Stefan Popa > --- > .../devicetree/bindings/iio/adc/adi,ad7606.txt | 51 > ++ > MAINTAINERS

Re: [PATCH v3 1/3] staging: iio: ad7780: fix offset read value

2018-11-01 Thread Ardelean, Alexandru
Good catch. Acked-by: Alexandru Ardelean On Thu, 2018-11-01 at 11:43 -0300, Renato Lui Geh wrote: > Variable val subtracted an uninitialized value on IIO_CHAN_INFO_OFFSET. > This was fixed by assigning the correct value instead. > > Signed-off-by: Renato Lui Geh > --- >

Re: [PATCH v3 2/3] staging: iio: ad7780: update voltage on read

2018-11-01 Thread Ardelean, Alexandru
On Thu, 2018-11-01 at 11:43 -0300, Renato Lui Geh wrote: > The ad7780 driver previously did not read the correct device output, as > it read an outdated value set at initialization. It now updates its > voltage on read. > > Signed-off-by: Renato Lui Geh > --- > Changes in v3: > - removed

Re: [PATCH v3 3/3] staging: iio: ad7780: remove unnecessary stashed voltage value

2018-11-01 Thread Ardelean, Alexandru
On Thu, 2018-11-01 at 11:43 -0300, Renato Lui Geh wrote: > This patch removes the unnecessary field int_vref_mv in ad7780_state > referring to the device's voltage. > > Signed-off-by: Renato Lui Geh > --- > Changes in v3: > - removed unnecessary int_vref_mv from ad7780_state > >

Re: [PATCH 3/3] staging: iio: ad7780: generates pattern_mask from PAT bits

2018-11-07 Thread Ardelean, Alexandru
On Wed, 2018-11-07 at 16:50 -0200, Giuliano Belinassi wrote: > Previously, all pattern_masks in the chip_info table were hardcoded. Now > they > are generated using the PAT macros, as described in the datasheets. > I like this change :) I only have nitpicks. See inline. > Signed-off-by:

Re: [PATCH 2/3] staging: iio: ad7780: check if ad778x before gain update

2018-11-07 Thread Ardelean, Alexandru
On Wed, 2018-11-07 at 16:50 -0200, Giuliano Belinassi wrote: > Only the ad778x have the 'gain' status bit. Check it before updating. > This looks good. The only note is that it can be squashed with the 1st patch (which I noted on the 1st patch). > Signed-off-by: Giuliano Belinassi > --- >

Re: [PATCH 1/3] staging: iio: ad7780: Add is_ad778x flag chip info

2018-11-07 Thread Ardelean, Alexandru
On Wed, 2018-11-07 at 16:49 -0200, Giuliano Belinassi wrote: > This patch allows further checking of whatever the chip is (ad778x or > ad717x). Hey, The patch looks good overall. I only have one nitpick for this patch. See inline. And you can squash this patch with patch `[PATCH 2/3] staging:

Re: [PATCH v2 1/2] staging: iio: ad7780: check if ad778x before gain update

2018-11-08 Thread Ardelean, Alexandru
On Thu, 2018-11-08 at 11:03 -0200, Giuliano Belinassi wrote: > Only the ad778x have the 'gain' status bit. Check it before updating > through a new variable is_ad778x in chip_info. > Looks good. Alex > Signed-off-by: Giuliano Belinassi > --- > Changes in v2: > - Squashed is_ad778x

Re: [PATCH v2 2/2] staging: iio: ad7780: generates pattern_mask from PAT bits

2018-11-08 Thread Ardelean, Alexandru
On Thu, 2018-11-08 at 11:03 -0200, Giuliano Belinassi wrote: > Previously, all pattern_masks and patterns in the chip_info table were > hardcoded. Now they are generated using the PAT macros, as described in > the datasheets. One comment about indentation/whitespace. Rest looks good. Alex > >

Re: [PATCH v4 1/2] staging: iio: ad7780: update voltage on read

2018-11-11 Thread Ardelean, Alexandru
On Sun, 2018-11-11 at 14:30 +, Jonathan Cameron wrote: > On Tue, 6 Nov 2018 09:24:44 + > "Ardelean, Alexandru" wrote: > > > On Mon, 2018-11-05 at 17:14 -0200, Renato Lui Geh wrote: > > > The ad7780 driver previously did not read the correct dev

Re: [PATCH v2 1/2] staging: iio: ad7780: check if ad778x before gain update

2018-11-11 Thread Ardelean, Alexandru
On Sun, 2018-11-11 at 12:58 +, Jonathan Cameron wrote: > On Thu, 8 Nov 2018 13:44:17 + > "Ardelean, Alexandru" wrote: > > > On Thu, 2018-11-08 at 11:03 -0200, Giuliano Belinassi wrote: > > > Only the ad778x have the 'gain' status bit. Check it before upd

Re: [PATCH v4 1/2] staging: iio: ad7780: update voltage on read

2018-11-06 Thread Ardelean, Alexandru
On Mon, 2018-11-05 at 17:14 -0200, Renato Lui Geh wrote: > The ad7780 driver previously did not read the correct device output, as > it read an outdated value set at initialization. It now updates its > voltage on read. > Looks good from my side. Alex > Signed-off-by: Renato Lui Geh > --- >

Re: [PATCH v4 2/2] staging: iio: ad7780: remove unnecessary stashed voltage value

2018-11-06 Thread Ardelean, Alexandru
On Mon, 2018-11-05 at 17:16 -0200, Renato Lui Geh wrote: > This patch removes the unnecessary field int_vref_mv in ad7780_state > referring to the device's voltage. > Looks good from my side. Alex > Signed-off-by: Renato Lui Geh > --- > Changes in v3: > - removed unnecessary int_vref_mv

Re: [PATCH v4 4/4] staging: iio: ad7816: Add device tree table.

2018-11-15 Thread Ardelean, Alexandru
On Wed, 2018-11-14 at 23:16 +0530, Nishad Kamdar wrote: > Add device tree table for matching vendor ID. > This could have been just one patch. Something like [PATCH v4] staging: iio: ad7816: Add device tree table. It's no longer a series, because the other patches were applied already. I

Re: [PATCH v3 1/4] staging: iio: ad7816: Switch to the gpio descriptor interface

2018-11-09 Thread Ardelean, Alexandru
On Fri, 2018-11-09 at 13:05 +0530, Nishad Kamdar wrote: > Use the gpiod interface for rdwr_pin, convert_pin and busy_pin > instead of the deprecated old non-descriptor interface. > Patch looks good. I do have some thoughts about it. See inline. > Signed-off-by: Nishad Kamdar > --- >

Re: [PATCH v3 1/4] staging: iio: ad7816: Switch to the gpio descriptor interface

2018-11-09 Thread Ardelean, Alexandru
On Fri, 2018-11-09 at 08:05 +, Ardelean, Alexandru wrote: > On Fri, 2018-11-09 at 13:05 +0530, Nishad Kamdar wrote: > > Use the gpiod interface for rdwr_pin, convert_pin and busy_pin > > instead of the deprecated old non-descriptor interface. > > > > Patch l

Re: [PATCH v3 4/4] staging: iio: ad7816: Add device tree table.

2018-11-09 Thread Ardelean, Alexandru
On Fri, 2018-11-09 at 13:08 +0530, Nishad Kamdar wrote: > Add device tree table for matching vendor ID. One comment inline for this. Thanks Alex > > Signed-off-by: Nishad Kamdar > --- > drivers/staging/iio/adc/ad7816.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git

Re: [PATCH] staging: iio: ad7780: Add gain & filter gpio support

2018-11-29 Thread Ardelean, Alexandru
On Tue, 2018-11-27 at 06:11 -0500, Popa, Stefan Serban wrote: > On Lu, 2018-11-26 at 17:24 -0200, Giuliano Belinassi wrote: > Hi, please see bellow > One note from me here. > > Hi, thank you for the review > > > > > > > > On Thu, 22 Nov 2018 11:01:00 + > > > "Popa, Stefan Serban" wrote:

Re: [PATCH v2 5/5] Staging: iio: adt7316: Use device tree data to assign irq_type

2018-11-21 Thread Ardelean, Alexandru
On Tue, 2018-11-20 at 22:30 +0530, Shreeya Patel wrote: > ADT7316 driver no more uses platform data and hence use device tree > data instead of platform data for assigning irq_type field. > Switch case figures out the type of irq and if it's the default case > then assign the default value to the

Re: [PATCH v3 7/7] staging:iio:ad2s90: Move out of staging

2018-11-25 Thread Ardelean, Alexandru
On Fri, 2018-11-23 at 22:23 -0200, Matheus Tavares wrote: > Move ad2s90 resolver driver out of staging to the main tree. > Acked-by: Alexandru Ardelean > Signed-off-by: Matheus Tavares > Signed-off-by: Victor Colombo > --- > Changes in v3: > - none > > Changes in v2: > - Disabled git move

Re: [PATCH v2 1/7] staging:iio:ad2s90: Add device tree support

2018-11-19 Thread Ardelean, Alexandru
On Sun, 2018-11-18 at 02:25 -0200, Matheus Tavares wrote: > This patch adds device tree support to ad2s90 with standard > device tree id table. > Hey, Comment inline > Signed-off-by: Matheus Tavares > --- > Changes in v2: > - none > > drivers/staging/iio/resolver/ad2s90.c | 7 +++ > 1

Re: [PATCH v2 3/7] staging:iio:ad2s90: Add max frequency check at probe

2018-11-19 Thread Ardelean, Alexandru
On Sun, 2018-11-18 at 02:25 -0200, Matheus Tavares wrote: > From: Alexandru Ardelean > > This patch adds a max frequency check at the beginning of ad2s90_probe > function so that when it is set to a value above 0.83Mhz, dev_err is > called with an appropriate message and -EINVAL is returned. >

Re: [PATCH v2 4/7] dt-bindings:iio:resolver: Add docs for ad2s90

2018-11-19 Thread Ardelean, Alexandru
On Sun, 2018-11-18 at 02:25 -0200, Matheus Tavares wrote: > This patch adds the device tree binding documentation for the ad2s90 > resolver-to-digital converter. > One minor comment inline. > Signed-off-by: Matheus Tavares > --- > Changes in v2: > - Rewritten 'spi-cpol and spi-cpha' item to

RE: [PATCH] dt-bindings: clock: adi,axi-clkgen: convert old binding to yaml format

2020-10-08 Thread Ardelean, Alexandru
> -Original Message- > From: Rob Herring > Sent: Tuesday, October 6, 2020 11:25 PM > To: Ardelean, Alexandru > Cc: linux-...@vger.kernel.org; devicet...@vger.kernel.org; linux- > ker...@vger.kernel.org; Hennerich, Michael > ; l...@metafoo.de; sb...@

RE: [PATCH v3 1/4] Input: adp5589-keys - add default platform data

2020-12-08 Thread Ardelean, Alexandru
> -Original Message- > From: Alexandru Ardelean > Sent: Friday, November 27, 2020 1:14 PM > To: linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org > Cc: l...@metafoo.de; dmitry.torok...@gmail.com; robh...@kernel.org; > Ardelean,

RE: [PATCH v5 2/3] spi: Add SPI_NO_TX/RX support

2020-12-21 Thread Ardelean, Alexandru
> -Original Message- > From: Andy Shevchenko > Sent: Monday, December 21, 2020 4:37 PM > To: Ardelean, Alexandru > Cc: linux-spi ; devicetree > ; Linux Kernel Mailing List ker...@vger.kernel.org>; Bogdan, Dragos ; > Mark Brown ; Rob Herring > Subject:

RE: linux-next: build warning after merge of the spi tree

2021-01-04 Thread Ardelean, Alexandru
> -Original Message- > From: Stephen Rothwell > Sent: Monday, January 4, 2021 2:07 AM > To: Mark Brown > Cc: Ardelean, Alexandru ; Andy Shevchenko > ; Linux Kernel Mailing List ker...@vger.kernel.org>; Linux Next Mailing List > Subject: linux-next: b

RE: [PATCH] spi: stm32: update dev_dbg() print format for SPI params

2021-01-04 Thread Ardelean, Alexandru
> -Original Message- > From: Andy Shevchenko > Sent: Monday, January 4, 2021 3:51 PM > To: Ardelean, Alexandru > Cc: linux-spi ; Linux Kernel Mailing List ker...@vger.kernel.org>; Mark Brown ; Stephen Rothwell > > Subject: Re: [PATCH] spi: stm32: update dev_db

RE: [PATCH 1/6] Input: adp5589: use a single variable for error in probe

2020-11-11 Thread Ardelean, Alexandru
> -Original Message- > From: Dmitry Torokhov > Sent: Thursday, November 12, 2020 2:38 AM > To: Ardelean, Alexandru > Cc: linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/6] Input: adp5589: use a single variable for error in >

RE: [PATCH 1/6] Input: adp5589: use a single variable for error in probe

2020-11-11 Thread Ardelean, Alexandru
> -Original Message- > From: Ardelean, Alexandru > Sent: Thursday, November 12, 2020 8:40 AM > To: Dmitry Torokhov > Cc: linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: RE: [PATCH 1/6] Input: adp5589: use a single variable for

RE: [PATCH] Input: adp5589-keys - mark suspend and resume methods as __maybe_unused

2020-11-19 Thread Ardelean, Alexandru
> -Original Message- > From: Dmitry Torokhov > Sent: Thursday, November 19, 2020 9:24 AM > To: linux-in...@vger.kernel.org > Cc: Ardelean, Alexandru ; linux- > ker...@vger.kernel.org > Subject: [PATCH] Input: adp5589-keys - mark suspend and resume method

RE: [PATCH] Input: adp5589-keys - use BIT()

2020-11-19 Thread Ardelean, Alexandru
> -Original Message- > From: Dmitry Torokhov > Sent: Thursday, November 19, 2020 9:25 AM > To: linux-in...@vger.kernel.org > Cc: Ardelean, Alexandru ; linux- > ker...@vger.kernel.org > Subject: [PATCH] Input: adp5589-keys - use BIT() > > [External] > &

RE: [PATCH RESEND net-next 18/18] net: phy: adin: remove the use of the .ack_interrupt()

2020-11-13 Thread Ardelean, Alexandru
> -Original Message- > From: Ioana Ciornei > Sent: Friday, November 13, 2020 6:52 PM > To: Andrew Lunn ; Heiner Kallweit ; > Russell King ; Florian Fainelli ; > Jakub Kicinski ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: Ioana Ciorn

RE: [PATCH RESEND net-next 17/18] net: phy: adin: implement generic .handle_interrupt() callback

2020-11-13 Thread Ardelean, Alexandru
> -Original Message- > From: Ioana Ciornei > Sent: Friday, November 13, 2020 6:52 PM > To: Andrew Lunn ; Heiner Kallweit ; > Russell King ; Florian Fainelli ; > Jakub Kicinski ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: Ioana Ciorn

RE: [PATCH v1] Input: ads7846: do not overwrite spi->mode flags set by spi framework

2020-10-21 Thread Ardelean, Alexandru
> -Original Message- > From: Oleksij Rempel > Sent: Wednesday, October 21, 2020 12:05 PM > To: Dmitry Torokhov ; Ardelean, Alexandru > > Cc: Oleksij Rempel ; ker...@pengutronix.de; linux- > ker...@vger.kernel.org; linux-in...@vger.kernel.org; David Jander &g

RE: [PATCH] uio/uio_pci_generic: remove unneeded pci_set_drvdata()

2020-11-20 Thread Ardelean, Alexandru
> -Original Message- > From: Greg KH > Sent: Friday, November 20, 2020 5:46 PM > To: Ardelean, Alexandru > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH] uio/uio_pci_generic: remove unneeded pci_set_drvdata() > > [External] > > On Thu, No

RE: [PATCH v2] dt-bindings: adau1977: convert text binding to yaml format

2020-11-17 Thread Ardelean, Alexandru
> -Original Message- > From: Mark Brown > Sent: Monday, November 16, 2020 11:19 PM > To: Ardelean, Alexandru > Cc: alsa-de...@alsa-project.org; devicet...@vger.kernel.org; linux- > ker...@vger.kernel.org; l...@metafoo.de; robh...@kernel.org; > lgirdw...@gmail.com

RE: [PATCH v2] uio/uio_pci_generic: remove unneeded pci_set_drvdata()

2020-11-23 Thread Ardelean, Alexandru
> -Original Message- > From: Alexandru Ardelean > Sent: Monday, November 23, 2020 4:35 PM > To: linux-kernel@vger.kernel.org; k...@vger.kernel.org > Cc: m...@redhat.com; gre...@linuxfoundation.org; Ardelean, Alexandru > > Subject: [PATCH v2] uio/uio_pci_gen

RE: [PATCH v2 1/3] spi: convert to BIT() all spi_device flags

2020-11-24 Thread Ardelean, Alexandru
> -Original Message- > From: Andy Shevchenko > Sent: Tuesday, November 24, 2020 1:50 PM > To: kernel test robot > Cc: Ardelean, Alexandru ; linux-spi s...@vger.kernel.org>; devicetree ; Linux Kernel > Mailing List ; kbuild-...@lists.01.org; Mark > Brow

RE: [PATCH v3 1/3] spi: uapi: unify SPI modes into a single spi.h header

2020-12-03 Thread Ardelean, Alexandru
> -Original Message- > From: Andy Shevchenko > Sent: Friday, November 27, 2020 4:13 PM > To: Ardelean, Alexandru > Cc: linux-spi ; devicetree > ; Linux Kernel Mailing List ker...@vger.kernel.org>; Rob Herring ; Mark Brown > ; Bogdan, Dragos > Subject: R

RE: [PATCH v3 2/3] spi: Add SPI_NO_TX/RX support

2020-12-03 Thread Ardelean, Alexandru
> -Original Message- > From: Andy Shevchenko > Sent: Friday, November 27, 2020 4:24 PM > To: Ardelean, Alexandru > Cc: linux-spi ; devicetree > ; Linux Kernel Mailing List ker...@vger.kernel.org>; Rob Herring ; Mark Brown > ; Bogdan, Dragos > Subject:

RE: [PATCH v3 3/3] spi: dt-bindings: document zero value for spi-{rx,tx}-bus-width properties

2020-12-03 Thread Ardelean, Alexandru
> -Original Message- > From: Andy Shevchenko > Sent: Friday, November 27, 2020 4:26 PM > To: Ardelean, Alexandru > Cc: linux-spi ; devicetree > ; Linux Kernel Mailing List ker...@vger.kernel.org>; Rob Herring ; Mark Brown > ; Bogdan, Dragos > Subject:

RE: [PATCH] net: phy: adin: add signal mean square error registers to phy-stats

2020-12-03 Thread Ardelean, Alexandru
> -Original Message- > From: Andrew Lunn > Sent: Thursday, December 3, 2020 4:16 PM > To: Ardelean, Alexandru > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > hkallwe...@gmail.com; li...@armlinux.org.uk; da...@davemloft.net; > k...@kernel.or

RE: [PATCH v2 3/3] Input: adp5589-keys - add basic devicetree support

2020-11-24 Thread Ardelean, Alexandru
> -Original Message- > From: Lars-Peter Clausen > Sent: Tuesday, November 24, 2020 10:43 AM > To: Ardelean, Alexandru ; linux- > in...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: dmitry.torok...@gmail.com > Subject: Re: [PATCH v2 3/3] Input: adp5589-keys -

Re: [PATCH 15/16] net: phy: adin: add ethtool get_stats support

2019-08-07 Thread Ardelean, Alexandru
On Tue, 2019-08-06 at 17:46 +0200, Andrew Lunn wrote: > [External] > > On Tue, Aug 06, 2019 at 07:11:57AM +, Ardelean, Alexandru wrote: > > On Mon, 2019-08-05 at 17:28 +0200, Andrew Lunn wrote: > > > [External] > > > > > > > +struct adin

Re: [PATCH 06/16] net: phy: adin: support PHY mode converters

2019-08-07 Thread Ardelean, Alexandru
On Tue, 2019-08-06 at 17:39 +0200, Andrew Lunn wrote: > [External] > > On Tue, Aug 06, 2019 at 06:47:08AM +, Ardelean, Alexandru wrote: > > On Mon, 2019-08-05 at 16:51 +0200, Andrew Lunn wrote: > > > [External] > > > > > > On Mon, Aug 05, 2019 at

Re: [PATCH v4 11/14] net: phy: adin: implement Energy Detect Powerdown mode

2019-08-16 Thread Ardelean, Alexandru
On Wed, 2019-08-14 at 10:57 -0700, Florian Fainelli wrote: > [External] > > > > On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > > The ADIN PHYs support Energy Detect Powerdown mode, which puts the PHY into > > a low power mode when there is no signal on the wire (typically cable > >

Re: [PATCH] iio: dac: ad5380: fix incorrect assignment to val

2019-08-16 Thread Ardelean, Alexandru
On Thu, 2019-08-15 at 12:58 +0100, Colin King wrote: > [External] > Reviewed-by: Alexandru Ardelean > From: Colin Ian King > > Currently the pointer val is being incorrectly incremented > instead of the value pointed to by val. Fix this by adding > in the missing * indirection operator. > >

RE: [PATCH] MAINTAINERS: Remove bouncing email of Beniamin Bia

2020-09-01 Thread Ardelean, Alexandru
ust 29, 2020 5:58 PM To: Jonathan Cameron Cc: Andy Shevchenko ; Linux Kernel Mailing List ; Hennerich, Michael ; linux-iio ; Ardelean, Alexandru Subject: Re: [PATCH] MAINTAINERS: Remove bouncing email of Beniamin Bia On Sat, 29 Aug 2020 at 16:54, Jonathan Cameron wrote: (...) > > >

RE: [PATCH 5/6] include: fpga: adi-axi-common.h: add definitions for supported FPGAs

2020-08-06 Thread Ardelean, Alexandru
-Original Message- From: Tom Rix Sent: Wednesday, August 5, 2020 7:02 PM To: Ardelean, Alexandru ; linux-...@vger.kernel.org; linux-f...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: mturque...@baylibre.com; sb...@kernel.org; m...@kernel.org; Caprioru, Mircea Subject: Re: [PATCH

RE: [PATCH v2 1/3] clk: axi-clkgen: remove ARCH dependency in Kconfig

2021-01-27 Thread Ardelean, Alexandru
> -Original Message- > From: Moritz Fischer > Sent: Wednesday, January 27, 2021 4:39 AM > To: Ardelean, Alexandru > Cc: linux-...@vger.kernel.org; devicet...@vger.kernel.org; linux- > ker...@vger.kernel.org; mturque...@baylibre.com; sb...@kernel.org; >

Re: [PATCH 2/5] drivers: spi: core: Add optional stall delay between cs_change transfers

2019-07-17 Thread Ardelean, Alexandru
On Tue, 2019-07-09 at 15:12 +0100, Mark Brown wrote: > On Wed, Jun 26, 2019 at 07:34:38PM +0100, Jonathan Cameron wrote: > > On Tue, 25 Jun 2019 16:13:25 +0300 > > Alexandru Ardelean wrote: > > > > > Some devices like the ADIS16460 IMU require a stall period between > > > transfers, i.e. between

Re: [RFC PATCH 03/15] spi: make `cs_change_delay` the first user of the `spi_delay` logic

2019-09-17 Thread Ardelean, Alexandru
On Mon, 2019-09-16 at 14:43 +0100, Mark Brown wrote: > [External] > > On Mon, Sep 16, 2019 at 01:04:42PM +, Ardelean, Alexandru wrote: > > On Mon, 2019-09-16 at 13:47 +0100, Mark Brown wrote: > > > That v3 seems to be a small subset of this series? > > Ack. >

Re: [PATCH 2/2] dt-bindings: net: dwmac: document 'mac-mode' property

2019-09-17 Thread Ardelean, Alexandru
On Mon, 2019-09-16 at 12:49 +0300, Alexandru Ardelean wrote: > On Fri, 2019-09-13 at 15:36 +0100, Rob Herring wrote: > > [External] > > > > On Fri, Sep 06, 2019 at 04:02:56PM +0300, Alexandru Ardelean wrote: > > > This change documents the 'mac-mode' property that was introduced in > > > the > >

Re: [PATCH] dt-bindings: net: dwmac: fix 'mac-mode' type

2019-09-17 Thread Ardelean, Alexandru
On Tue, 2019-09-17 at 14:41 +0200, Andrew Lunn wrote: > [External] > > On Tue, Sep 17, 2019 at 01:30:52PM +0300, Alexandru Ardelean wrote: > > The 'mac-mode' property is similar to 'phy-mode' and 'phy-connection-type', > > which are enums of mode strings. > > > > The 'dwmac' driver supports

Re: [PATCH] iio: imu: adis16400: release allocated memory on failure

2019-09-19 Thread Ardelean, Alexandru
On Wed, 2019-09-18 at 11:57 -0500, Navid Emamdoost wrote: > [External] > Hey, Good catch. One comment inline. > In adis_update_scan_mode, if allocation for adis->buffer fails, > previously allocated adis->xfer needs to be released. > > Signed-off-by: Navid Emamdoost > --- >

Re: [PATCH] iio: imu: adis16400: fix memory leak

2019-09-19 Thread Ardelean, Alexandru
On Wed, 2019-09-18 at 12:03 -0500, Navid Emamdoost wrote: > [External] > Hey, Thanks for this patch as well. Comments inline here as well. > In adis_update_scan_mode_burst, if adis->buffer allocation fails release > the adis->xfer. > > Signed-off-by: Navid Emamdoost > --- >

Re: [PATCH 2/2] staging: iio: accel: adis16240: move out of staging

2019-09-08 Thread Ardelean, Alexandru
On Sun, 2019-09-08 at 12:09 +0100, Jonathan Cameron wrote: > On Mon, 2 Sep 2019 13:26:02 + > "Ardelean, Alexandru" wrote: > > > On Sun, 2019-09-01 at 21:59 -0300, Rodrigo Carvalho wrote: > > > Move ADIS16240 driver from staging to mainline. > > >

Re: [PATCH] net: stmmac: socfpga: re-use the `interface` parameter from platform data

2019-09-09 Thread Ardelean, Alexandru
On Sat, 2019-09-07 at 20:54 +0800, kbuild test robot wrote: > [External] > > Hi Alexandru, > > I love your patch! Yet something to improve: > > [auto build test ERROR on linus/master] Hmm, this error should be expectable I guess: I applied this on net-next/master. Alex > [cannot apply to

Re: [PATCH v3 1/2] ethtool: implement Energy Detect Powerdown support via phy-tunable

2019-09-10 Thread Ardelean, Alexandru
On Tue, 2019-09-10 at 10:00 +0200, Michal Kubecek wrote: > [External] > > On Mon, Sep 09, 2019 at 04:12:50PM +0300, Alexandru Ardelean wrote: > > The `phy_tunable_id` has been named `ETHTOOL_PHY_EDPD` since it looks like > > this feature is common across other PHYs (like EEE), and defining > >

Re: [PATCH] net: stmmac: socfpga: re-use the `interface` parameter from platform data

2019-09-10 Thread Ardelean, Alexandru
On Tue, 2019-09-10 at 17:46 +0200, David Miller wrote: > [External] > > From: David Miller > Date: Tue, 10 Sep 2019 17:45:44 +0200 (CEST) > > > From: Alexandru Ardelean > > Date: Fri, 6 Sep 2019 15:30:54 +0300 > > > > > The socfpga sub-driver defines an `interface` field in the

Re: [PATCH] iio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock

2020-05-20 Thread Ardelean, Alexandru
On Wed, 2020-05-20 at 09:18 +0300, Sergiu Cuciurean wrote: > [External] > > As part of the general cleanup of indio_dev->mlock, this change replaces > it with a local lock on the device's state structure. > This requires a V2. It produces a warning: 159 | struct iio_dev *iio_dev =

Re: [PATCH v2] iio: amplifiers: ad8366: Add the missed check for devm_gpiod_get()

2020-05-28 Thread Ardelean, Alexandru
On Thu, 2020-05-28 at 14:40 +0800, Chuhong Yuan wrote: > [External] > > ad8366_probe() forgets to check the return value of devm_gpiod_get(). > Add the missed check to fix it. > > Fixes: cee211f4e5a0 ("iio: amplifiers: ad8366: Add support for the > ADA4961 DGA") > Signed-off-by: Chuhong Yuan >

Re: [PATCH] iio: humidity: hts221: remove usage of iio_priv_to_dev()

2020-05-25 Thread Ardelean, Alexandru
On Sun, 2020-05-24 at 15:39 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 22 May 2020 09:56:16 +0300 > Alexandru Ardelean wrote: > > > We may want to get rid of the iio_priv_to_dev() helper. That's a bit > > uncertain at this point. The reason is that we will hide some of the > >

Re: [RFC PATCH 07/14] iio: core: add simple centralized mechanism for ioctl() handlers

2020-05-25 Thread Ardelean, Alexandru
On Sun, 2020-05-24 at 17:45 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 8 May 2020 16:53:41 +0300 > Alexandru Ardelean wrote: > > > The aim of this is to reduce the organization violation of ioctl() calls in > > IIO core. Currently, since the chardev is split across files, event

Re: [RFC PATCH 08/14] iio: core: use new common ioctl() mechanism

2020-05-25 Thread Ardelean, Alexandru
On Sun, 2020-05-24 at 17:47 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 8 May 2020 16:53:42 +0300 > Alexandru Ardelean wrote: > > > This change makes use of the new centralized ioctl() mechanism. The event > > interface registers it's ioctl() handler to IIO device. > > Both the

Re: [RFC PATCH 09/14] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-05-25 Thread Ardelean, Alexandru
On Sun, 2020-05-24 at 17:49 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 8 May 2020 16:53:43 +0300 > Alexandru Ardelean wrote: > > > Currently the iio_buffer_{alloc,free}_sysfs_and_mask() take 'indio_dev' as > > primary argument. This change converts to take an IIO buffer as a

Re: [PATCH 3/3] iio: remove iio_triggered_buffer_postenable()/iio_triggered_buffer_predisable()

2020-05-25 Thread Ardelean, Alexandru
On Sun, 2020-05-24 at 14:38 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 22 May 2020 13:46:32 +0300 > Alexandru Ardelean wrote: > > > From: Lars-Peter Clausen > > > > This patch should be squashed into the first one, as the first one is > > breaking the build (intentionally) to

Re: [PATCH v2 3/3] iio: remove iio_triggered_buffer_postenable()/iio_triggered_buffer_predisable()

2020-06-02 Thread Ardelean, Alexandru
On Sun, 2020-05-31 at 16:40 +0100, Jonathan Cameron wrote: > On Mon, 25 May 2020 14:38:55 +0300 > Alexandru Ardelean wrote: > > > From: Lars-Peter Clausen > > > > This patch should be squashed into the first one, as the first one is > > breaking the build (intentionally) to make the IIO core

Re: [PATCH 4/5] iio: light: lm3533-als: remove explicit parent assignment

2020-06-02 Thread Ardelean, Alexandru
On Sun, 2020-05-31 at 15:54 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 29 May 2020 15:45:33 +0200 > Johan Hovold wrote: > > > [ Trimming CC to something more reasonable... ] > > > > On Fri, May 29, 2020 at 11:08:38AM +, Ardelean, Alexandru wrot

Re: [PATCH v2] iio: stm32-adc: remove usage of iio_priv_to_dev() helper

2020-05-26 Thread Ardelean, Alexandru
On Mon, 2020-05-25 at 18:27 +0200, Fabrice Gasnier wrote: > [External] > > On 5/25/20 11:07 AM, Alexandru Ardelean wrote: > > We may want to get rid of the iio_priv_to_dev() helper. The reason is > > that > > we will hide some of the members of the iio_dev structure (to prevent > > drivers from

Re: [PATCH 2/6] iio: dac: ad5380: Constify struct iio_chan_spec_ext_info

2020-05-26 Thread Ardelean, Alexandru
On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > [External] > > ad5380_ext_info is not modified and can be made const to allow the > compiler to put it in read-only memory. > > Before: >textdata bss dec hex filename > 120603280 192 155323cac

Re: [PATCH 3/6] iio: dac: ad5592r-base: Constify struct iio_chan_spec_ext_info

2020-05-26 Thread Ardelean, Alexandru
On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > [External] > > ad5592r_ext_info is not modified and can be made const to allow the > compiler to put it in read-only memory. > > Before: >textdata bss dec hex filename > 132932088 256 156373d15

Re: [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec

2020-05-26 Thread Ardelean, Alexandru
On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > [External] > > These are never modified and can be made const to allow the compiler to > put it in read-only memory. > > Before: >textdata bss dec hex filename >6642 12608 64 193144b72

Re: [PATCH] dt-bindings: iio: adc: add adi,ad7780.yaml binding

2019-05-20 Thread Ardelean, Alexandru
On Sun, 2019-05-19 at 12:32 +0100, Jonathan Cameron wrote: > [External] > > > On Sat, 18 May 2019 19:41:12 -0300 > Renato Lui Geh wrote: > > > This patch adds a YAML binding for the Analog Devices AD7780/1 and > > AD7170/1 analog-to-digital converters. > > > > Signed-off-by: Renato Lui Geh >

Re: [PATCH] staging: iio: adis16240: add of_match_table entry

2019-05-24 Thread Ardelean, Alexandru
On Fri, 2019-05-24 at 10:50 -0300, Marcelo Schmitt wrote: > [External] > > > Hi Alexandru, > > On 05/24, Alexandru Ardelean wrote: > > On Fri, May 24, 2019 at 6:30 AM Rodrigo Ribeiro > > wrote: > > > > > > This patch adds of_match_table entry in device driver in order to > > > enable spi

Re: [PATCH] staging:iio:adc:ad7280a: add of_match_table entry

2019-07-25 Thread Ardelean, Alexandru
On Fri, 2019-07-26 at 01:38 +0530, Kartik Kulkarni wrote: > Add the of_device_id struct and the respective > of_match_device entry to complete device tree support. > This would be a [V2] I suppose. This change also does the rename of the driver name in a single go. Since it's a trivial change,

Re: [PATCH] staging: iio: ad2s1210: Use device-managed API

2019-07-26 Thread Ardelean, Alexandru
On Fri, 2019-07-26 at 19:07 +0800, Chuhong Yuan wrote: > [External] > > Use device-managed API to simplify the code. > The remove function is redundant now and can > be deleted. Reviewed-by: Alexandru Ardelean > > Signed-off-by: Chuhong Yuan > --- > drivers/staging/iio/resolver/ad2s1210.c |

Re: [PATCH][V4] lib: fix __sysfs_match_string() helper when n != -1

2019-06-26 Thread Ardelean, Alexandru
On Tue, 2019-06-25 at 12:42 -0700, Andrew Morton wrote: > [External] > > > On Tue, 25 Jun 2019 16:28:12 +0300 Andy Shevchenko > wrote: > > > On Tue, Jun 25, 2019 at 04:01:04PM +0300, Alexandru Ardelean wrote: > > > The documentation the `__sysfs_match_string()` helper mentions that `n` > > >

Re: [PATCH 1/4][V2] drivers: spi: core: Add optional delay between cs_change transfers

2019-07-18 Thread Ardelean, Alexandru
On Thu, 2019-07-18 at 13:50 +0100, Mark Brown wrote: > On Wed, Jul 17, 2019 at 02:51:06PM +0300, Alexandru Ardelean wrote: > > Some devices like the ADIS16460 IMU require a stall period between > > transfers, i.e. between when the CS is de-asserted and re-asserted. The > > default value of 10us is

Re: [PATCH AUTOSEL 4.4 17/35] iio: st_accel: fix iio_triggered_buffer_{pre,post}enable positions

2019-07-22 Thread Ardelean, Alexandru
On Sun, 2019-07-21 at 18:23 +0100, Jonathan Cameron wrote: > [External] > > On Fri, 19 Jul 2019 00:14:05 -0400 > Sasha Levin wrote: > > > From: Alexandru Ardelean > > > > [ Upstream commit 05b8bcc96278c9ef927a6f25a98e233e55de42e1 ] > > > > The iio_triggered_buffer_{predisable,postenable}

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:16 +0200, Andrew Lunn wrote: > [External] > > > +static int adin_config_init(struct phy_device *phydev) > > +{ > > + int rc; > > + > > + rc = genphy_config_init(phydev); > > + if (rc < 0) > > + return rc; > > + > > + return 0; > > +} > > Why not just >

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 17:17 +0200, Andrew Lunn wrote: > [External] > > > +static struct phy_driver adin_driver[] = { > > + { > > + .phy_id = PHY_ID_ADIN1200, > > + .name = "ADIN1200", > > + .phy_id_mask= 0xfff0, > > + .features

Re: [PATCH 01/16] net: phy: adin: add support for Analog Devices PHYs

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 22:54 +0200, Heiner Kallweit wrote: > [External] > > On 05.08.2019 18:54, Alexandru Ardelean wrote: > > This change adds support for Analog Devices Industrial Ethernet PHYs. > > Particularly the PHYs this driver adds support for: > > * ADIN1200 - Robust, Industrial, Low

Re: [PATCH 03/16] net: phy: adin: add support for interrupts

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:21 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:40PM +0300, Alexandru Ardelean wrote: > > This change adds support for enabling PHY interrupts that can be used by > > the PHY framework to get signal for link/speed/auto-negotiation changes. > >

Re: [PATCH 03/16] net: phy: adin: add support for interrupts

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 23:02 +0200, Heiner Kallweit wrote: > [External] > > On 05.08.2019 18:54, Alexandru Ardelean wrote: > > This change adds support for enabling PHY interrupts that can be used by > > the PHY framework to get signal for link/speed/auto-negotiation changes. > > > >

Re: [PATCH 04/16] net: phy: adin: add {write,read}_mmd hooks

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:25 +0200, Andrew Lunn wrote: > [External] > > > diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c > > index b75c723bda79..3dd9fe50f4c8 100644 > > --- a/drivers/net/phy/adin.c > > +++ b/drivers/net/phy/adin.c > > @@ -14,6 +14,9 @@ > > #define PHY_ID_ADIN1200

Re: [PATCH 05/16] net: phy: adin: configure RGMII/RMII/MII modes on config

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:39 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:42PM +0300, Alexandru Ardelean wrote: > > The ADIN1300 chip supports RGMII, RMII & MII modes. Default (if > > unconfigured) is RGMII. > > This change adds support for configuring these modes via

Re: [PATCH 06/16] net: phy: adin: support PHY mode converters

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:51 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:43PM +0300, Alexandru Ardelean wrote: > > Sometimes, the connection between a MAC and PHY is done via a > > mode/interface converter. An example is a GMII-to-RGMII converter, which > > would mean

Re: [PATCH 10/16] net: phy: adin: add EEE translation layer for Clause 22

2019-08-06 Thread Ardelean, Alexandru
On Tue, 2019-08-06 at 00:11 +0200, Andrew Lunn wrote: > [External] > > > +static int adin_cl22_to_adin_reg(int devad, u16 cl22_regnum) > > +{ > > + struct clause22_mmd_map *m; > > + int i; > > + > > + if (devad == MDIO_MMD_VEND1) > > + return cl22_regnum; > > + > > + for (i = 0;

Re: [PATCH 11/16] net: phy: adin: PHY reset mechanisms

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 17:15 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:48PM +0300, Alexandru Ardelean wrote: > > The ADIN PHYs supports 4 types of reset: > > 1. The standard PHY reset via BMCR_RESET bit in MII_BMCR reg > > 2. Reset via GPIO > > 3. Reset via reg

Re: [PATCH 14/16] net: phy: adin: make sure down-speed auto-neg is enabled

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 17:22 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:51PM +0300, Alexandru Ardelean wrote: > > Down-speed auto-negotiation may not always be enabled, in which case the > > PHY won't down-shift to 100 or 10 during auto-negotiation. > > Please look

Re: [PATCH 12/16] net: phy: adin: read EEE setting from device-tree

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 17:19 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:49PM +0300, Alexandru Ardelean wrote: > > By default, EEE is not advertised on system init. This change allows the > > user to specify a device property to enable EEE advertisements when the PHY >

Re: [PATCH 14/16] net: phy: adin: make sure down-speed auto-neg is enabled

2019-08-06 Thread Ardelean, Alexandru
On Tue, 2019-08-06 at 07:52 +0200, Heiner Kallweit wrote: > [External] > > On 05.08.2019 18:54, Alexandru Ardelean wrote: > > Down-speed auto-negotiation may not always be enabled, in which case the > > PHY won't down-shift to 100 or 10 during auto-negotiation. > > > > Signed-off-by: Alexandru

Re: [PATCH 16/16] dt-bindings: net: add bindings for ADIN PHY driver

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:27 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:53PM +0300, Alexandru Ardelean wrote: > > This change adds bindings for the Analog Devices ADIN PHY driver, detailing > > all the properties implemented by the driver. > > > > Signed-off-by:

Re: [PATCH 16/16] dt-bindings: net: add bindings for ADIN PHY driver

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 16:11 +0200, Andrew Lunn wrote: > [External] > > > + adi,rx-internal-delay: > > +$ref: /schemas/types.yaml#/definitions/uint32 > > +description: | > > + RGMII RX Clock Delay used only when PHY operates in RGMII mode > > (phy-mode > > + is "rgmii-id",

Re: [PATCH 15/16] net: phy: adin: add ethtool get_stats support

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 17:28 +0200, Andrew Lunn wrote: > [External] > > > +struct adin_hw_stat { > > + const char *string; > > +static void adin_get_strings(struct phy_device *phydev, u8 *data) > > +{ > > + int i; > > + > > + for (i = 0; i < ARRAY_SIZE(adin_hw_stats); i++) { > > +

Re: [PATCH 15/16] net: phy: adin: add ethtool get_stats support

2019-08-06 Thread Ardelean, Alexandru
On Mon, 2019-08-05 at 17:30 +0200, Andrew Lunn wrote: > [External] > > On Mon, Aug 05, 2019 at 07:54:52PM +0300, Alexandru Ardelean wrote: > > This change implements retrieving all the error counters from the PHY. > > The PHY supports several error counters/stats. The `Mean Square Errors` > >

  1   2   3   >