Re: [PATCH 2/2] ubi: introduce ubi.nocheck parameter to skip CRC check when attaching ubi vol

2018-04-20 Thread Quentin Schulz
Hi Richard, On Fri, Apr 20, 2018 at 11:37:07AM +0200, Richard Weinberger wrote: > Quentin, > > Am Freitag, 20. April 2018, 10:52:41 CEST schrieb Quentin Schulz: > > There's already ECC on NAND pages so there may be no need for one to > > check the CRC of a UBI volume. >

Re: [PATCH 2/2] ubi: introduce ubi.nocheck parameter to skip CRC check when attaching ubi vol

2018-04-23 Thread Quentin Schulz
Hi Boris, On Fri, Apr 20, 2018 at 07:19:24PM +0200, Boris Brezillon wrote: > On Fri, 20 Apr 2018 10:52:41 +0200 > Quentin Schulz <quentin.sch...@bootlin.com> wrote: > > > There's already ECC on NAND pages so there may be no need for one to > > check the CRC of a U

Re: [PATCH 2/2] mmc: Add mmc_force_detect_change_begin / _end functions

2018-03-23 Thread Quentin Schulz
Hi Uffe, On Fri, Feb 09, 2018 at 03:01:00PM +0100, Ulf Hansson wrote: > [...] > > >> > I'd like to know if any progress has been made on that problem (I may > >> > have missed patches). > >> > Had you had the time to look at the issue? > >> > >> I have looked at the issue, but not manage to cook

[PATCH 2/3] ARM: dts: sun8i: a711: set regulator for each cluster of CPUs

2018-02-28 Thread Quentin Schulz
The Allwinner A83T is a SoC with two clusters of 4 A7 which have a different clock and regulator. Set the CPU regulator. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH 1/3] ARM: dts: sun8i: a83t: add cpu0 and cpu100 labels

2018-02-28 Thread Quentin Schulz
The Allwinner A83T is a SoC with two clusters of 4 A7, each cluster having its own regulator and clock. The regulators are board-specific, thus we need labels for cpu0 and cpu100 so that we can use references to these nodes from the board header file. Signed-off-by: Quentin Schulz <quentin.

[PATCH 0/3] add CPUs OPPs to sun8i a83t

2018-02-28 Thread Quentin Schulz
down). It seems[1] impossible to reach those frequencies with none or passive cooling, so better leave them out by default. It's still possible to add those OPPs on a per-board basis though. [1] http://linux-sunxi.org/User:Tkaiser#First_steps_with_Banana_Pi_M3 Thanks, Quentin Quentin Schulz (3

[PATCH 3/3] ARM: dts: sun8i: a83t: add stable OPP tables and CPUfreq

2018-02-28 Thread Quentin Schulz
on a per-board basis though. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 118 +++- 1 file changed, 118 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 0

[PATCH v5 1/6] mfd: axp20x: make AXP209/22x cells probe their ADC via DT

2018-02-28 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 5 -

[PATCH v5 3/6] power: supply: axp20x_battery: use data struct for variant specific code

2018-02-28 Thread Quentin Schulz
-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/power/supply/axp20x_battery.c | 100 +-- 1 file changed, 66 insertions(+), 34 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/

[PATCH v5 0/6] add support for AXP813 ADC and battery power supply

2018-02-28 Thread Quentin Schulz
ad of ID for variant specific code in battery driver, - add DT binding for ADC driver, - make mfd probe the ADC driver via DT as well so that its IIO channels can be consumed by other drivers via DT mapping, Thanks, Quentin Quentin Schulz (6): mfd: axp20x: make AXP209/22x cells probe th

[PATCH v5 5/6] power: supply: axp20x_battery: add support for AXP813

2018-02-28 Thread Quentin Schulz
by the PMIC is valid. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/power/supply/axp20x_battery.c | 42 - 1 file changed, 42 insertions(+) diff --git a/drivers/power/supply/axp20x_battery.

[PATCH v5 2/6] mfd: axp20x: probe axp20x_adc driver for AXP813

2018-02-28 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 5 - 1 file

[PATCH v5 4/6] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2018-02-28 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Reviewed-by: Rob Herring <r...@kernel.org> Acked-by: Chen-Yu Tsai <w...@csie.org> --- Documentation/devicetree/bin

[PATCH v5 6/6] mfd: axp20x: add battery power supply cell for AXP813

2018-02-28 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz <quentin.sch...@bootlin.com> Acked-for-MFD-by: Lee Jones <lee.jo...@linaro.org> Reviewed-by: Chen-Yu Tsai <w...@csie.org> --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 i

[PATCH v3 1/2] ubi: provide a way to skip CRC checks

2018-06-28 Thread Quentin Schulz
at the block granularity instead of verifying the whole volume. Skipping this test drastically improves the boot-time. Suggested-by: Boris Brezillon Signed-off-by: Quentin Schulz Reviewed-by: Boris Brezillon --- drivers/mtd/ubi/kapi.c | 2 +- drivers/mtd/ubi/ubi-media.h | 6

[PATCH v3 0/2] ubi: add possibility to skip CRC check for static UBI volumes

2018-06-28 Thread Quentin Schulz
as suggested by Richard, Quentin Schulz (2): ubi: provide a way to skip CRC checks ubi: expose the volume CRC check skip flag drivers/mtd/ubi/cdev.c | 4 drivers/mtd/ubi/kapi.c | 2 +- drivers/mtd/ubi/ubi-media.h | 6 ++ drivers/mtd/ubi/ubi.h | 4 drivers/mtd/ubi/vmt.c

[PATCH v3 2/2] ubi: expose the volume CRC check skip flag

2018-06-28 Thread Quentin Schulz
volume for which we are trying to skip the CRC check is static. Suggested-by: Boris Brezillon Signed-off-by: Quentin Schulz Reviewed-by: Boris Brezillon --- drivers/mtd/ubi/cdev.c | 4 drivers/mtd/ubi/vmt.c | 3 +++ include/uapi/mtd/ubi-user.h | 16 ++-- 3 files

Re: [PATCH v2 2/6] ARM: dts: axp81x: add AC power supply subnode

2018-10-08 Thread Quentin Schulz
Hi Oskari, On Sun, Oct 07, 2018 at 12:18:32AM +0300, Oskari Lemmela wrote: > Add AC power supply subnode for AXP81X PMIC. > > Signed-off-by: Oskari Lemmela > --- > arch/arm/boot/dts/axp81x.dtsi | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm/boot/dts/axp81x.dtsi

Re: [PATCH v2 0/6] AXP8x3 AC and battery power supply support

2018-10-08 Thread Quentin Schulz
Hi Oskari, On Sun, Oct 07, 2018 at 12:18:30AM +0300, Oskari Lemmela wrote: > AXP813 AC power supply support with input current and > voltage limiting support. > > AXP803 AC and battery power supply support. > Great to see a new developer taking interest in those PMICs :) I received the v2

Re: [PATCH v2 3/6] arm64: dts: allwinner: axp803: add AC and battery power supplies

2018-10-08 Thread Quentin Schulz
Hi Oskari, On Sun, Oct 07, 2018 at 12:18:33AM +0300, Oskari Lemmela wrote: > AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO, > AC and battery power supplies. > > Signed-off-by: Oskari Lemmela > --- > arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++ > 1 file

Re: [PATCH v2 6/6] power: supply: add AC power supply driver for AXP813

2018-10-08 Thread Quentin Schulz
r_supply_property psp, > + const union power_supply_propval *val) > +{ Argh, missed this one in the first version. Since you're introducing it with the AXP813 and it isn't used with the AXP20X, I'd name it axp813_ac_power_set_property. I'll let Maxime or Chen-Yu confirm though. With the modification in the header from the previous patch in this patch, Reviewed-by: Quentin Schulz Thanks! Quentin signature.asc Description: PGP signature

Re: [PATCH v2 5/6] mfd: axp20x: add support AXP803 AC and battery power supplies

2018-10-08 Thread Quentin Schulz
Hi Oskari, On Sun, Oct 07, 2018 at 12:18:35AM +0300, Oskari Lemmela wrote: > AXP803 is compatible with AXP813. > Adding needed cells for AC and battery power supplies. > > AXP813 AC power supply cell added. > > Signed-off-by: Oskari Lemmela > --- > drivers/mfd/axp20x.c | 22

[PATCH net-next v3 3/6] net: phy: mscc: Add EEE init sequence

2018-10-08 Thread Quentin Schulz
to EEE in order to improve performance. Reviewed-by: Florian Fainelli Signed-off-by: Raju Lakkaraju Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c | 65 ++ 1 file changed, 65 insertions(+) diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy

[PATCH net-next v3 2/6] net: phy: mscc: add ethtool statistics counters

2018-10-08 Thread Quentin Schulz
-by: Andrew Lunn Signed-off-by: Raju Lakkaraju Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c | 119 + 1 file changed, 119 insertions(+) diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c index 52198be46c68..47fbab489287 100644

Re: [PATCH v3 4/7] arm64: dts: allwinner: a64: sopine: enable power supplies

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:05PM +0300, Oskari Lemmela wrote: > Sopine baseboard have ACIN and battery connectors. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v3 3/7] arm64: dts: allwinner: axp803: add AC and battery power supplies

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:04PM +0300, Oskari Lemmela wrote: > AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO, > AC and battery power supplies. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v3 6/7] mfd: axp20x: Add AC power supply cell for AXP813

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:07PM +0300, Oskari Lemmela wrote: > As axp20x-ac-power-supply now supports AXP813, add a cell for it. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v3 2/7] ARM: dts: axp81x: add AC power supply subnode

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:03PM +0300, Oskari Lemmela wrote: > Add AC power supply subnode for AXP81X PMIC. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v3 1/7] dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding

2018-10-12 Thread Quentin Schulz
Hi Oskari, On Mon, Oct 08, 2018 at 09:19:02PM +0300, Oskari Lemmela wrote: > The AXP803/AXP813 AC power supply can limit input current and voltage. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH v5 04/11] dt-bindings: iio: adc: add AXP803 ADC bindings

2018-10-29 Thread Quentin Schulz
Hi Jonathan, On Sun, Oct 28, 2018 at 03:40:11PM +, Jonathan Cameron wrote: > On Wed, 24 Oct 2018 08:56:33 -0500 > Rob Herring wrote: > > > On Tue, 23 Oct 2018 21:53:23 +0300, Oskari Lemmela wrote: > > > The AXP803 ADC is compatible with AXP813 ADC, but add > > > specific compatible for it.

Re: [PATCH v6 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-11-01 Thread Quentin Schulz
Hi Baolin, On Thu, Nov 01, 2018 at 03:22:18PM +0800, Baolin Wang wrote: > Hi Quentin, > > On 29 October 2018 at 22:48, Quentin Schulz > wrote: [...] > > > >> + return len; > >> + } else if (len > POWER_SUPPLY_OCV_TEMP_MAX) { >

Re: [PATCH 4/4] power: supply: add AXP803/AXP813 AC and battery power supply support

2018-10-05 Thread Quentin Schulz
Hi Oskari, On Thu, Oct 04, 2018 at 10:34:10PM +0300, Oskari Lemmela wrote: > AXP803 PMIC is register compatible with AXP813. > > Added support for AXP803/AXP813 AC power supply. > AXP8x3 is capable to limit input current and minimum input voltage. > Both of these register values are writeable. >

Re: [PATCH net-next 2/2] net: phy: mscc: fix memory leak in vsc8574_config_pre_init

2018-10-10 Thread Quentin Schulz
Hi Gustavo, On Tue, Oct 09, 2018 at 09:39:53PM +0200, Gustavo A. R. Silva wrote: > In case memory resources for *fw* were successfully allocated, > release them before return. > > Addresses-Coverity-ID: 1473968 ("Resource leak") > Fixes: 00d70d8e0e78 ("net: phy: mscc: add support for VSC8574

Re: [PATCH net-next 1/2] net: phy: mscc: fix signedness bug in vsc85xx_downshift_get

2018-10-10 Thread Quentin Schulz
lect/restore_page > functions") Reviewed-by: Quentin Schulz Thanks! Quentin signature.asc Description: PGP signature

Re: [PATCH] phy: ocelot-serdes: fix out-of-bounds read

2018-10-08 Thread Quentin Schulz
Hi Gustavo, On Mon, Oct 08, 2018 at 08:06:49PM +0200, Gustavo A. R. Silva wrote: > Currently, there is an out-of-bounds read on array ctrl->phys, > once variable i reaches the maximum array size of SERDES_MAX > in the for loop. > > Fix this by changing the condition in the for loop from > i <=

Re: [PATCH 1/2] dt-bindings: phy: Update SERDES_MAX to be SERDES_MAX + 1

2018-10-09 Thread Quentin Schulz
, because the size of > array ctrl->phys is SERDES_MAX. > > Partially fix this by updating SERDES_MAX to be SERDES6G_MAX + 1. > > Notice that this is the first part of the solution to > the out-of-bounds bug mentioned above. Although this > change is not dependent on any

Re: [PATCH 0/2] phy: ocelot-serdes: fix out-of-bounds bug

2018-10-09 Thread Quentin Schulz
size of SERDES_MAX > in the for loop. > > Quentin Schulz pointed out that SERDES_MAX is a valid value to > index ctrl->phys. So, I updated SERDES_MAX to be SERDES6G_MAX + 1 > in include/dt-bindings/phy/phy-ocelot-serdes.h. > > Then I changed the condition in the for loo

Re: [PATCH 2/2] phy: ocelot-serdes: fix out-of-bounds read

2018-10-09 Thread Quentin Schulz
for loop from > i <= SERDES_MAX to i < SERDES_MAX. > Reviewed-by: Quentin Schulz Thanks, Quentin signature.asc Description: PGP signature

Re: [PATCH 2/2] mmc: Add mmc_force_detect_change_begin / _end functions

2018-10-09 Thread Quentin Schulz
Hi Frieder, On Mon, Oct 08, 2018 at 11:53:21AM +0200, Frieder Schrempf wrote: > Hi, > > On 27.09.2018 10:14, Maxime Ripard wrote: > > On Wed, Sep 26, 2018 at 10:19:22PM +0200, Hans de Goede wrote: > > > On 26-09-18 16:44, Frieder Schrempf wrote: > > > > Hi, > > > > > > > > On Fri, Feb 09, 2018

Re: [PATCH net-next v2 2/2] net: phy: mscc: fix memory leak in vsc8574_config_pre_init

2018-10-10 Thread Quentin Schulz
c: add support for VSC8574 PHY") Reviewed-by: Quentin Schulz Thanks! Quentin signature.asc Description: PGP signature

Re: [PATCH 5/7] MIPS: mscc: ocelot: add GPIO4 pinmuxing DT node

2018-10-01 Thread Quentin Schulz
Hi Andrew, On Fri, Sep 14, 2018 at 07:02:21PM +0200, Andrew Lunn wrote: > On Fri, Sep 14, 2018 at 06:26:38PM +0200, Quentin Schulz wrote: > > Hi Alexandre, > > > > On Fri, Sep 14, 2018 at 04:54:46PM +0200, Alexandre Belloni wrote: > > > Hi, > > > >

Re: [PATCH net-next 2/7] net: phy: mscc: add support for VSC8584 PHY

2018-10-01 Thread Quentin Schulz
Hi Andrew, On Fri, Sep 14, 2018 at 07:27:54PM +0200, Andrew Lunn wrote: > > > struct vsc8531_private { > > int rate_magic; > > u16 supp_led_modes; > > @@ -181,6 +354,7 @@ struct vsc8531_private { > > struct vsc85xx_hw_stat *hw_stats; > > u64 *stats; > > int nstats; > > +

[PATCH v2 00/11] mscc: ocelot: add support for SerDes muxing configuration

2018-09-03 Thread Quentin Schulz
for the deferring of the probe in the SerDes driver, - use constants in the Device Tree to select the SerDes macro in use with a port, - adapt the SerDes driver to use those constants, - add a header file in include/dt-bindings for the constants, - fix space/tab issue, Quentin Schulz (11

[PATCH net-next v2 05/11] net: mscc: ocelot: simplify register access for PLL5 configuration

2018-09-03 Thread Quentin Schulz
-by: Quentin Schulz --- drivers/net/ethernet/mscc/ocelot.h | 73 drivers/net/ethernet/mscc/ocelot_regs.c | 92 +++-- include/soc/mscc/ocelot_hsio.h | 74 3 files changed, 83 insertions(+), 156 deletions(-) diff --git a/drivers/net

[PATCH v2 10/11] phy: add driver for Microsemi Ocelot SerDes muxing

2018-09-03 Thread Quentin Schulz
The Microsemi Ocelot can mux SerDes lanes (aka macros) to different switch ports or even make it act as a PCIe interface. This adds support for the muxing of the SerDes. Signed-off-by: Quentin Schulz --- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1

[GIT PULL firmware] microchip: add firmware for VSC8574 and VSC8584 Ethernet PHYs

2018-12-06 Thread Quentin Schulz
(2018-12-06 11:02:51 +0100) Quentin Schulz (1): microchip: add firmware for VSC8574 and VSC8584 Ethernet PHYs LICENCE.microchip| 40 WHENCE

Re: [PATCH v6 8/8] mfd: axp20x: Add supported cells for AXP803

2018-12-08 Thread Quentin Schulz
Hi Lee, On Fri, Dec 07, 2018 at 07:22:37PM +, Lee Jones wrote: > On Fri, 07 Dec 2018, Vasily Khoruzhick wrote: > > > On Fri, Dec 7, 2018 at 8:40 AM Lee Jones wrote: > > > > > My OCD-dar is going crazy. > > > > > > Why haven't you used the same alignment as is already there? > > > > > > If

[PATCH net-next v3 04/11] net: mscc: ocelot: move the HSIO header to include/soc

2018-09-14 Thread Quentin Schulz
Since HSIO address space can be used by different drivers (PLL, SerDes muxing, temperature sensor), let's move it somewhere it can be included by all drivers. Acked-by: Alexandre Belloni Signed-off-by: Quentin Schulz --- drivers/net/ethernet/mscc/ocelot.h | 1 +- drivers/net/ethernet

[PATCH net-next 5/5] net: phy: mscc: remove unneeded temporary variable

2018-09-14 Thread Quentin Schulz
Here, the rc variable is either used only for the condition right after the assignment or right before being used as the return value of the function it's being used in. So let's remove this unneeded temporary variable whenever possible. Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c

[PATCH net-next 4/5] net: phy: mscc: shorten `x != 0` condition to `x`

2018-09-14 Thread Quentin Schulz
`if (x != 0)` is basically a more verbose version of `if (x)` so let's use the latter so it's consistent throughout the whole driver. Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH 2/3] ARM: dts: sun8i: a711: set regulator for each cluster of CPUs

2018-02-28 Thread Quentin Schulz
The Allwinner A83T is a SoC with two clusters of 4 A7 which have a different clock and regulator. Set the CPU regulator. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs

[PATCH 1/3] ARM: dts: sun8i: a83t: add cpu0 and cpu100 labels

2018-02-28 Thread Quentin Schulz
The Allwinner A83T is a SoC with two clusters of 4 A7, each cluster having its own regulator and clock. The regulators are board-specific, thus we need labels for cpu0 and cpu100 so that we can use references to these nodes from the board header file. Signed-off-by: Quentin Schulz --- arch/arm

[PATCH 0/3] add CPUs OPPs to sun8i a83t

2018-02-28 Thread Quentin Schulz
down). It seems[1] impossible to reach those frequencies with none or passive cooling, so better leave them out by default. It's still possible to add those OPPs on a per-board basis though. [1] http://linux-sunxi.org/User:Tkaiser#First_steps_with_Banana_Pi_M3 Thanks, Quentin Quentin Schulz (3

[PATCH 3/3] ARM: dts: sun8i: a83t: add stable OPP tables and CPUfreq

2018-02-28 Thread Quentin Schulz
on a per-board basis though. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t.dtsi | 118 +++- 1 file changed, 118 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 016d22f..05d5dd7 100644 --- a/arch/arm

Re: [PATCH 2/2] mmc: Add mmc_force_detect_change_begin / _end functions

2018-03-23 Thread Quentin Schulz
Hi Uffe, On Fri, Feb 09, 2018 at 03:01:00PM +0100, Ulf Hansson wrote: > [...] > > >> > I'd like to know if any progress has been made on that problem (I may > >> > have missed patches). > >> > Had you had the time to look at the issue? > >> > >> I have looked at the issue, but not manage to cook

Re: [PATCH 4.14 000/110] 4.14.25-stable review

2018-03-09 Thread Quentin Schulz
Hi Kevin, On Thu, Mar 08, 2018 at 04:05:01PM -0800, Kevin Hilman wrote: > kernelci.org bot writes: > > > stable-rc/linux-4.14.y boot: 148 boots: 4 failed, 133 passed with 7 > > offline, 3 untried/unknown, 1 conflict (v4.14.24-111-g66060ac1dfa0) > > > > Full Boot Summary: > >

Re: [PATCH v5 3/6] power: supply: axp20x_battery: use data struct for variant specific code

2018-03-09 Thread Quentin Schulz
Hi Sebastian, On Fri, Mar 09, 2018 at 05:08:25PM +0100, Sebastian Reichel wrote: > Hi Quentin, > > On Wed, Feb 28, 2018 at 11:35:58AM +0100, Quentin Schulz wrote: > > We used to use IDs to select a function or a feature depending on the > > variant. It's easier to mainta

Re: [PATCH v3 3/9] clk: at91: add audio pll clock drivers

2017-07-24 Thread Quentin Schulz
Hi Stephen, On 22/07/2017 00:20, Stephen Boyd wrote: > On 07/13, Quentin Schulz wrote: >> diff --git a/drivers/clk/at91/clk-audio-pll-pad.c >> b/drivers/clk/at91/clk-audio-pll-pad.c >> new file mode 100644 >> index ..10dd6d625696 >> --- /dev/null &g

[PATCH v4 9/9] ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd

2017-07-25 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds the pin muxing for classd and enables it. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 1 file changed, 16 insertions(+) diff --git

[PATCH v4 3/9] clk: at91: add audio pll clock drivers

2017-07-25 Thread Quentin Schulz
have different enable bits and different dividers and divider formulas, they are handled by two different drivers. Each of them could modify the rate of the main audio pll parent. The main audio pll clock can output 620MHz to 700MHz. Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz Acked

[PATCH v4 5/9] clk: at91: clk-generated: create function to find best_diff

2017-07-25 Thread Quentin Schulz
The way to find the best_diff and do the appropriate process afterwards can be re-used. This patch prepares the driver for an upcoming patch that will allow clk_generated to determine the rate of the audio_pll. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- drivers/clk/at91/clk

[PATCH v4 8/9] ASoC: atmel-classd: remove aclk clock

2017-07-25 Thread Quentin Schulz
-by: Quentin Schulz Acked-by: Mark Brown --- sound/soc/atmel/atmel-classd.c | 47 ++- 1 file changed, 14 insertions(+), 33 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index b7ef8c5..be6b775 100644 --- a/sound/soc/atmel/atmel

[PATCH v4 7/9] ASoC: atmel-classd: remove aclk clock from DT binding

2017-07-25 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. This binding is used by no board in mainline so it is safe to be modified. Signed-off-by: Quentin Schulz

[PATCH v4 6/9] clk: at91: clk-generated: make gclk determine audio_pll rate

2017-07-25 Thread Quentin Schulz
of the clock. Since audio IPs are most likely to request the same rate, we enforce that the only clks able to modify gck rate are those of audio IPs. To remain consistent, we deny other clocks to be children of audio_pll. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- drivers/clk

[PATCH v4 4/9] ARM: dts: at91: sama5d2: add classd nodes

2017-07-25 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds nodes for the classd device and its generated clock. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sama5d2.dtsi | 39 ++- 1 file changed, 38 insertions

[PATCH v4 1/9] clk: at91: clk-generated: remove useless divisor loop

2017-07-25 Thread Quentin Schulz
(passed along req argument of the function) and the parent clock rate, thus we know the closest rounded divisor, we don't need to iterate over the available divisors to find the best one for a given clock. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- drivers/clk/at91/clk-generated.c

[PATCH v4 2/9] dt-bindings: clk: at91: add audio plls to the compatible list

2017-07-25 Thread Quentin Schulz
have different enable bits and different dividers and divider formulas, they are handled by two different drivers. This adds the audio plls (frac, pad and pmc) to the compatible list of at91 clocks in DT binding. Signed-off-by: Quentin Schulz Acked-by: Rob Herring Acked-by: Boris Brezillon

[PATCH v4 0/9] add support for Sama5d2 audio PLLs and enable ClassD

2017-07-25 Thread Quentin Schulz
://patchwork.kernel.org/patch/9462349/ [4] https://www.spinics.net/lists/arm-kernel/msg436120.html [5] http://www.spinics.net/lists/linux-clk/msg17927.html Cyrille Pitchen (2): ARM: dts: at91: sama5d2: add classd nodes ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd Quentin Schulz (7): clk

Re: [PATCH v3 3/9] clk: at91: add audio pll clock drivers

2017-07-25 Thread Quentin Schulz
Hi Stephen, I forgot to answer one of your questions: On 22/07/2017 00:20, Stephen Boyd wrote: > On 07/13, Quentin Schulz wrote: >> diff --git a/drivers/clk/at91/clk-audio-pll-pad.c >> b/drivers/clk/at91/clk-audio-pll-pad.c >> new file mode 100644 >> index 000

Re: [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-10-04 Thread Quentin Schulz
Hi Chen-Yu, Linus, On 03/10/2017 17:08, Chen-Yu Tsai wrote: > On Tue, Oct 3, 2017 at 10:47 PM, Maxime Ripard > wrote: >> Hi Linus, >> >> On Tue, Oct 03, 2017 at 09:27:17AM +, Linus Walleij wrote: >>> On Mon, Oct 2, 2017 at 2:08 PM, Quentin Schulz >>

Re: [PATCH v2 02/10] pinctrl: axp209: add pinctrl features (fwd)

2017-09-29 Thread Quentin Schulz
te: Fri, 29 Sep 2017 20:00:03 +0800 > From: kbuild test robot > To: kbu...@01.org > Cc: Julia Lawall > Subject: Re: [PATCH v2 02/10] pinctrl: axp209: add pinctrl features > > Hi Quentin, > > [auto build test WARNING on ] > > url: > https://github.com/0day-ci/lin

[PATCH v3 08/12] ARM: dts: sun8i: bananapi-m3: include axp81x dtsi

2017-10-02 Thread Quentin Schulz
This board has an AXP813 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts index

[PATCH v3 02/12] pinctrl: axp209: add pinctrl features

2017-10-02 Thread Quentin Schulz
The X-Powers AXP209 has 3 GPIOs. GPIO0/1 can each act either as a GPIO, an ADC or a LDO regulator. GPIO2 can only act as a GPIO. This adds the pinctrl features to the driver so GPIO0/1 can be used as ADC or LDO regulator. Signed-off-by: Quentin Schulz --- .../devicetree/bindings/pinctrl

[PATCH v3 00/12] add pinmuxing support for pins in AXP209 and AXP813 PMICs

2017-10-02 Thread Quentin Schulz
dd support for AXP813 pins, - split into more patches so it is easier to follow the modifications, - reorder of some patches, - register all pins within the same range instead of a range per pin, [1] https://www.spinics.net/lists/arm-kernel/msg608384.html Thanks, Quentin Quentin Schulz (12): pin

[PATCH v3 01/12] pinctrl: move gpio-axp209 to pinctrl

2017-10-02 Thread Quentin Schulz
To prepare the driver for the upcoming pinctrl features, move the GPIO driver AXP209 from GPIO to pinctrl subsystem. Signed-off-by: Quentin Schulz --- .../bindings/{gpio/gpio-axp209.txt => pinctrl/pinctrl-axp209.txt} | 0 drivers/gpio/Kconfig

[PATCH v3 10/12] ARM: dts: sun8i: cubietruck-plus: include axp81x dtsi

2017-10-02 Thread Quentin Schulz
This board has an AXP818 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts

[PATCH v3 11/12] ARM: dtsi: axp81x: add GPIO DT node

2017-10-02 Thread Quentin Schulz
This adds DT node for the GPIO/pinctrl part present in AXP813/AXP818. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 73b761f850c5..f90f257130d5 100644

[PATCH v3 09/12] ARM: dts: sun8i: h8homlet-v2: include axp81x dtsi

2017-10-02 Thread Quentin Schulz
This board has an AXP818 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t

[PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-10-02 Thread Quentin Schulz
On AXP813/818, GPIO0 and GPIO1 can be used as LDO as (respectively) ldo_io0 and ldo_io1. Let's add the pinctrl properties to the said regulators. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot

[PATCH v3 07/12] ARM: dts: sun8i: a711: include axp81x dtsi

2017-10-02 Thread Quentin Schulz
This board has an AXP813 PMIC so let's include its dtsi. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

[PATCH v3 05/12] pinctrl: axp209: add support for AXP813 GPIOs

2017-10-02 Thread Quentin Schulz
The AXP813 has only two GPIOs. GPIO0 can either be used as a GPIO, an LDO regulator or an ADC. GPIO1 can be used either as a GPIO or an LDO regulator. Moreover, the status bit of the GPIOs when in input mode is not offset by 4 unlike the AXP209. Signed-off-by: Quentin Schulz --- .../devicetree

[PATCH v3 06/12] mfd: axp20x: add pinctrl cell for AXP813

2017-10-02 Thread Quentin Schulz
As GPIO/pinctrl driver now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 2468b431bb22..d8c92fbbd170 100644 --- a/drivers/mfd/axp20x.c +++ b

[PATCH v3 03/12] pinctrl: axp209: rename everything from gpio to pctl

2017-10-02 Thread Quentin Schulz
. Signed-off-by: Quentin Schulz --- drivers/pinctrl/pinctrl-axp209.c | 178 +++ 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c index 96ef0cc28762..3ddeba45feed 100644 --- a/drivers

[PATCH v3 04/12] pinctrl: axp209: add programmable gpio_status_offset

2017-10-02 Thread Quentin Schulz
To prepare for patches that will add support for a new PMIC that has a different GPIO input status register, add a gpio_status_offset within axp20x_pctl structure and use it. Signed-off-by: Quentin Schulz --- drivers/pinctrl/pinctrl-axp209.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH v2 12/16] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding

2018-01-09 Thread Quentin Schulz
The AXP813 can have a battery as power supply, so let's add it to the list of compatibles. Signed-off-by: Quentin Schulz --- Documentation/devicetree/bindings/power/supply/axp20x_battery.txt | 8 +++ 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 03/16] iio: adc: axp20x_adc: make it possible to probe from DT

2018-01-09 Thread Quentin Schulz
with old DTs. Signed-off-by: Quentin Schulz --- drivers/iio/adc/axp20x_adc.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c index 3fc1b06..f8c4c62 100644 --- a/drivers/iio/adc/axp20x_adc.c +++ b

[PATCH v2 11/16] power: supply: axp20x_battery: use data structure instead of ID for

2018-01-09 Thread Quentin Schulz
the code to use it. Signed-off-by: Quentin Schulz --- drivers/power/supply/axp20x_battery.c | 100 +-- 1 file changed, 66 insertions(+), 34 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/axp20x_battery.c index 7494f0f..d73c78f 100644

[PATCH v2 13/16] power: supply: axp20x_battery: add support for AXP813

2018-01-09 Thread Quentin Schulz
by the PMIC is valid. Signed-off-by: Quentin Schulz --- drivers/power/supply/axp20x_battery.c | 42 - 1 file changed, 42 insertions(+) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/axp20x_battery.c index d73c78f..dad72a5 100644 --- a/drivers

[PATCH v2 08/16] iio: adc: axp20x_adc: add support for AXP813 ADC

2018-01-09 Thread Quentin Schulz
for AXP20X/AXP22X. GPIO0 can be used as an ADC (measuring Volts) unlike for AXP22X. The scales to apply to the different inputs are unlike the ones from AXP20X and AXP22X. Signed-off-by: Quentin Schulz --- drivers/iio/adc/axp20x_adc.c | 123 - include/linux/mfd

[PATCH v2 16/16] ARM: dtsi: sun8i: a711: enable battery power supply subnode

2018-01-09 Thread Quentin Schulz
The TBS A711 has an AXP813 PMIC and a soldered battery, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711

[PATCH v2 09/16] ARM: dtsi: axp81x: add node for ADC

2018-01-09 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm

[PATCH v2 10/16] mfd: axp20x: probe axp20x_adc driver for AXP813

2018-01-09 Thread Quentin Schulz
This makes the axp20x_adc driver probe with platform device id "axp813-adc". Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index e0cbaea..d112414 100644 --- a/d

[PATCH v2 07/16] dt-bindings: iio: adc: axp20x_adc: add AXP813 variant

2018-01-09 Thread Quentin Schulz
AXP813 is now supported so add documentation for this compatible. Signed-off-by: Quentin Schulz --- Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 9 +- 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation

[PATCH v2 15/16] ARM: dtsi: axp81x: add battery power supply subnode

2018-01-09 Thread Quentin Schulz
supply subnode for AXP81X PMIC. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index dd25bfe..5fb396e 100644 --- a/arch/arm/boot/dts/axp81x.dtsi +++ b/arch/arm

[PATCH v2 06/16] mfd: axp20x: make AXP209/22x cells probe their ADC via DT

2018-01-09 Thread Quentin Schulz
This makes AXP209 and AXP22x ADCs probe first via DT and then by fallback via platform. Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index d8c92fb..e0cbaea 100644

[PATCH v2 14/16] mfd: axp20x: add battery power supply cell for AXP813

2018-01-09 Thread Quentin Schulz
As axp20x-battery-power-supply now supports AXP813, add a cell for it. Signed-off-by: Quentin Schulz --- drivers/mfd/axp20x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index d112414..1175091 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers

[PATCH v2 00/16] add support for AXP813 ADC and battery power supply

2018-01-09 Thread Quentin Schulz
so that its IIO channels can be consumed by other drivers via DT mapping, Thanks, Quentin Quentin Schulz (16): iio: adc: axp20x_adc: put ADC rate setting in a per-variant function dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC iio: adc: axp20x_adc: make it possible to probe

[PATCH v2 02/16] dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC

2018-01-09 Thread Quentin Schulz
X-Powers PMICs have several ADC channels that can be used for different purposes, e.g. PMIC internal temperature, battery voltage or AC current. This is the documentation for AXP209, AXP221/223 ADC bindings. Signed-off-by: Quentin Schulz --- Documentation/devicetree/bindings/iio/adc

[PATCH v2 01/16] iio: adc: axp20x_adc: put ADC rate setting in a per-variant function

2018-01-09 Thread Quentin Schulz
To prepare for a new comer that set a different register with different values, move rate setting in a function that is specific to each AXP variant. Signed-off-by: Quentin Schulz --- drivers/iio/adc/axp20x_adc.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff

[PATCH v2 05/16] ARM: dtsi: axp22x: add node for ADC

2018-01-09 Thread Quentin Schulz
This adds a DT node for the ADC of the PMIC so that there can be consumers of its IIO channels declaring their consumptions via DT. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/axp22x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp22x.dtsi b/arch/arm

<    2   3   4   5   6   7   8   9   10   11   >