Re: [PATCH v2 1/2] mmc: sdhci-esdhc-imx: disable clocks before changing frequency

2018-07-12 Thread Stefan Agner
On 12.07.2018 10:06, Stefan Agner wrote: > In the uSDHC case (e.g. i.MX 6) clocks only get disabled if frequency > is set to 0. However, it could be that the stack asks for a frequency > change while clocks are on. In that case the function clears the > divider registers

[PATCH v2 1/2] mmc: sdhci-esdhc-imx: disable clocks before changing frequency

2018-07-12 Thread Stefan Agner
: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 85fd5a8b0b6d..acacd8481473 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b

[PATCH v2 2/2] mmc: sdhci-esdhc-imx: fix indent

2018-07-12 Thread Stefan Agner
Fix indent. This also makes disable/enable clock blocks look alike. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index acacd8481473

[PATCH v2 1/2] mmc: sdhci-esdhc-imx: disable clocks before changing frequency

2018-07-12 Thread Stefan Agner
: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 85fd5a8b0b6d..acacd8481473 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b

[PATCH 3/3] mmc: tegra: prevent ACMD23 on Tegra 3

2018-07-12 Thread Stefan Agner
-CMD23 being used for now. With this the eMMC works stable on high-speed mode while still announcing SD3.0. This allows to use mmc-ddr-1_8v to enables DDR52 mode. In DDR52 mode read speed improves from about 42MiB/s to 72MiB/s on an Apalis T30. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci

[PATCH 2/3] mmc: tegra: fix eMMC DDR52 mode

2018-07-12 Thread Stefan Agner
Make sure the clock is doubled when using eMMC DDR52 mode. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-tegra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 137df06b9b6e..888a1ad511db 100644

[PATCH 1/3] mmc: tegra: prevent HS200 on Tegra 3

2018-07-12 Thread Stefan Agner
The controller simply does not support HS200. Fixes: 7ad2ed1dfcbe ("mmc: tegra: enable UHS-I modes") Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-tegra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc

Re: linux-next: Signed-off-by missing for commit in the arm-current tree

2018-07-11 Thread Stefan Agner
>> >> is missing a Signed-off-by from its author. > > Thanks for spotting, but it's worse than that. It does have a sign-off > from its author, but the authorship wasn't preserved by Stefan Agner > (no From: line in the email body, as there was in Steven's original

Re: [PATCH] ARM: ftrace: Only set kernel memory back to read-only after boot

2018-07-10 Thread Stefan Agner
On 04.07.2018 13:30, Stefan Agner wrote: > On 21.06.2018 18:47, Steven Rostedt wrote: >> From: Steven Rostedt (VMware) >> >> Dynamic ftrace requires modifying the code segments that are usually >> set to read-only. To do this, a per arch function is called both bef

[PATCH 4/8] ARM: dts: imx6qdl-apalis/-colibri: disable read-only switch

2018-07-09 Thread Stefan Agner
Use the disable-wp to indicate that Apalis and Colibri iMX6 do not make use of the native write-protect signal available on the i.MX 6 SoCs. This prevents warnings: mmc0: host does not support reading read-only switch, assuming write-enable Signed-off-by: Stefan Agner --- arch/arm/boot/dts

[PATCH 5/8] ARM: dts: imx6qdl-apalis/-colibri: remove 1.8V regulator

2018-07-09 Thread Stefan Agner
The fixed 1.8V regulator is not used, and there is in fact no fixed 1.8V regulator on the module. Remove it. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 8 arch/arm/boot/dts/imx6qdl-colibri.dtsi | 8 2 files changed, 16 deletions(-) diff --git a

[PATCH 6/8] ARM: dts: imx6qdl-apalis/-colibri: fix on-module regulators

2018-07-09 Thread Stefan Agner
voltage (VAG) from this supply. The new value should allow higher output swings before clipping occurs. Refer to the SGTL5000 datasheet for details. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 22 +++--- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 20

[PATCH 8/8] ARM: dts: imx6qdl-apalis/-colibri: remove unused pinctrl groups

2018-07-09 Thread Stefan Agner
100/200MHz states for USDHC3 are not required since the SoC does not support modes faster than DDR52 for the on board eMMC. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 34 -- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 34

[PATCH 7/8] ARM: dts: imx6qdl-apalis/-colibri: assign VDDD to SGTL5000

2018-07-09 Thread Stefan Agner
VDDD is connected to VGEN4 of the PF0100. This rail should only run at 1.8V since there are multiple consumer and they all expect the rail to be at 1.8V. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 3 ++- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 3 ++- 2 files

[PATCH 1/8] ARM: dts: imx6q-apalis: add chosen node

2018-07-09 Thread Stefan Agner
Add Apalis UART1 as default serial console. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6q-apalis-eval.dts | 4 arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 4 arch/arm/boot/dts/imx6q-apalis-ixora.dts | 4 3 files changed, 12 insertions(+) diff --git a

[PATCH 2/8] ARM: dts: imx6q-apalis-eval: add carrier board 3.3V supply

2018-07-09 Thread Stefan Agner
Add the 3.3V main supply on the carrier board. Currently as a fixed supply since not all consumer are modeled yet. This gets also rid of some missing supply warnings. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6q-apalis-eval.dts | 12 1 file changed, 12 insertions

[PATCH 3/8] ARM: dts: imx6qdl-apalis/-colibri: prevent 1.8V modes

2018-07-09 Thread Stefan Agner
Use no-1-8-v device tree property to indicate that the board does not support 1.8V signaling. The property voltage-ranges seems not appropriate in our case since we do not have level shifters in place. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 6 +++--- arch/arm

[PATCH] arm: perf: prevent unbind/bind via sysfs

2018-07-07 Thread Stefan Agner
IRQ19 for ARM PMU counters hw perfevents: /pmu: failed to register PMU devices! armv7-pmu: probe of pmu failed with error -16 The driver is clearly not designed to be removed. Disable bind/ unbind for this driver. Signed-off-by: Stefan Agner --- arch/arm/kernel/perf_event_v7.c | 1 + 1 file

Re: [BUG] Serial/dma stall/failure after "dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)"

2018-07-05 Thread Stefan Agner
Hi Vinod, Hi Angelo, On 05.07.2018 14:45, Angelo Dureghello wrote: > Hi Vinod, > > On Thu, Jul 05, 2018 at 10:12:53AM +0200, Angelo Dureghello wrote: >> Hi Vinod, >> >> On Thu, Jul 05, 2018 at 01:05:52PM +0530, Vinod wrote: >> > On 04-07-18, 10:54, Krzysztof Kozlowski wrote: >> > > Hi, >> > > >>

Re: [BUG] Serial/dma stall/failure after "dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)"

2018-07-05 Thread Stefan Agner
On 05.07.2018 14:45, Angelo Dureghello wrote: > Hi Vinod, > > On Thu, Jul 05, 2018 at 10:12:53AM +0200, Angelo Dureghello wrote: >> Hi Vinod, >> >> On Thu, Jul 05, 2018 at 01:05:52PM +0530, Vinod wrote: >> > On 04-07-18, 10:54, Krzysztof Kozlowski wrote: >> > > Hi, >> > > >> > > The commit 6ad0691

Re: [PATCH] mmc: sdhci-esdhc-imx: disable clocks before changing frequency

2018-07-05 Thread Stefan Agner
On 05.07.2018 15:09, Ulf Hansson wrote: > On 5 July 2018 at 14:15, Stefan Agner wrote: >> In the uSDHC case (e.g. i.MX 6) clocks only get disabled if frequency >> is set to 0. However, it could be that the stack asks for a frequency >> change while clocks are on. In that cas

Re: [PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-07-05 Thread Stefan Agner
On 05.07.2018 15:10, Ulf Hansson wrote: > On 4 July 2018 at 17:07, Stefan Agner wrote: >> If pinctrl nodes for 100/200MHz are missing, the controller should >> not select any mode which need signal frequencies 100MHz or higher. >> To prevent such speed modes the driver cur

[PATCH] mmc: sdhci: do not try to use 3.3V signaling if not supported

2018-07-05 Thread Stefan Agner
not available. This prevents the stack from even trying to use 3.3V signaling and avoids the above warning. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c

[PATCH] mmc: sdhci-esdhc-imx: disable clocks before changing frequency

2018-07-05 Thread Stefan Agner
to make disable/enable clock look alike. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 85fd5a8b0b6d..aa48f4b2541a

Re: [PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-07-05 Thread Stefan Agner
On 05.07.2018 13:23, Ulf Hansson wrote: > On 4 July 2018 at 17:07, Stefan Agner wrote: >> If pinctrl nodes for 100/200MHz are missing, the controller should >> not select any mode which need signal frequencies 100MHz or higher. >> To prevent such speed modes the driver cur

[PATCH] mmc: sdhci-esdhc-imx: disable clocks before changing frequency

2018-07-05 Thread Stefan Agner
to make disable/enable clock look alike. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 85fd5a8b0b6d..aa48f4b2541a

Re: [PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-07-05 Thread Stefan Agner
On 05.07.2018 11:48, Ulf Hansson wrote: > On 4 July 2018 at 17:18, Stefan Agner wrote: >> On 04.07.2018 17:07, Stefan Agner wrote: >>> If pinctrl nodes for 100/200MHz are missing, the controller should >>> not select any mode which need signal frequencies 100MHz or

Re: [PATCH 1/3] mmc: sdhci-esdhc-imx: get rid of support_vsel

2018-07-05 Thread Stefan Agner
On 05.07.2018 04:52, A.s. Dong wrote: >> -Original Message- >> From: Stefan Agner [mailto:ste...@agner.ch] >> Sent: Thursday, June 28, 2018 4:13 PM >> To: adrian.hun...@intel.com; ulf.hans...@linaro.org >> Cc: Fabio Estevam ; Bough Chen >> ; A.s. Dong ;

Re: [PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-07-05 Thread Stefan Agner
On 05.07.2018 04:40, A.s. Dong wrote: >> -Original Message- >> From: Stefan Agner [mailto:ste...@agner.ch] >> Sent: Wednesday, July 4, 2018 11:08 PM >> To: adrian.hun...@intel.com; ulf.hans...@linaro.org >> Cc: Fabio Estevam ; Bough Chen >> ; A.s. Do

Re: [PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-07-04 Thread Stefan Agner
On 04.07.2018 17:07, Stefan Agner wrote: > If pinctrl nodes for 100/200MHz are missing, the controller should > not select any mode which need signal frequencies 100MHz or higher. > To prevent such speed modes the driver currently uses the quirk flag > SDHCI_QUIRK2_NO_1_8_V. This work

[PATCH v2] mmc: sdhci-esdhc-imx: allow 1.8V modes without 100/200MHz pinctrl states

2018-07-04 Thread Stefan Agner
faster pinctrl states are available: # cat /sys/kernel/debug/mmc1/ios ... timing spec:8 (mmc DDR52) signal voltage: 1 (1.80 V) ... Link: http://lkml.kernel.org/r/20180628081331.13051-1-ste...@agner.ch Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 21

Re: [PATCH 2/3] mmc: sdhci: add quirk to prevent higher speed modes

2018-07-04 Thread Stefan Agner
On 04.07.2018 13:16, Ulf Hansson wrote: > On 4 July 2018 at 12:55, Stefan Agner wrote: >> On 04.07.2018 12:07, Ulf Hansson wrote: >>> On 3 July 2018 at 10:48, Stefan Agner wrote: >>>> On 02.07.2018 16:36, Ulf Hansson wrote: >>>>> On 28 June 2018 at

Re: [PATCH] ARM: ftrace: Only set kernel memory back to read-only after boot

2018-07-04 Thread Stefan Agner
et set. This is > similar to the x86 solution from commit 162396309745 ("ftrace, x86: > make kernel text writable only for conversions"). > > Reported-by: Stefan Agner > Tested-by: Stefan Agner > Link: http://lkml.kernel.org/r/20180620212906.24b7b...@vmware.local.home &g

Re: [PATCH 2/3] mmc: sdhci: add quirk to prevent higher speed modes

2018-07-04 Thread Stefan Agner
On 04.07.2018 12:07, Ulf Hansson wrote: > On 3 July 2018 at 10:48, Stefan Agner wrote: >> On 02.07.2018 16:36, Ulf Hansson wrote: >>> On 28 June 2018 at 10:13, Stefan Agner wrote: >>>> Some hosts are capable of running higher speed modes but do not >>>>

[PATCH] mtd: rawnand: tegra: check bounds of die_nr properly

2018-07-04 Thread Stefan Agner
he stack asks for a chip select we currently do not support. Reported-by: Dan Carpenter Signed-off-by: Stefan Agner --- drivers/mtd/nand/raw/tegra_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra

Re: [PATCH v8 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-07-04 Thread Stefan Agner
Hi Thierry, Hi Miquel, On 25.06.2018 14:34, Miquel Raynal wrote: > Hi Stefan, > > On Sun, 24 Jun 2018 23:27:21 +0200, Stefan Agner > wrote: > >> Eigth and hopefully final revision gets rid of nand_release() as >> suggested by Boris. >> >> -- >&

Re: [PATCH 2/3] mmc: sdhci: add quirk to prevent higher speed modes

2018-07-03 Thread Stefan Agner
On 02.07.2018 16:36, Ulf Hansson wrote: > On 28 June 2018 at 10:13, Stefan Agner wrote: >> Some hosts are capable of running higher speed modes but do not >> have the board support for it. Introduce a quirk which prevents >> the stack from using modes running at 100MHz or fa

Re: [PATCH] spi: spi-fsl-dspi: Fix imprecise abort on VF500 during probe

2018-07-02 Thread Stefan Agner
x144/0x1d8) > [<80900d48>] (kernel_init_freeable) from [<805ff6a8>] > (kernel_init+0x10/0x114) > [<805ff698>] (kernel_init) from [<80107be8>] (ret_from_fork+0x14/0x2c) > > Cc: > Fixes: 5ee67b587a2b ("spi: dspi: clear SPI_SR before enable inter

[PATCH 3/3] mmc: sdhci-esdhc-imx: prevent stack from using higher speed modes

2018-06-28 Thread Stefan Agner
DDR52) signal voltage: 1 (1.80 V) ... Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 20a420b765b3..4a1c33018072 100644 --- a

[PATCH 2/3] mmc: sdhci: add quirk to prevent higher speed modes

2018-06-28 Thread Stefan Agner
Some hosts are capable of running higher speed modes but do not have the board support for it. Introduce a quirk which prevents the stack from using modes running at 100MHz or faster. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci.c | 8 drivers/mmc/host/sdhci.h | 2 ++ 2 files

[PATCH 1/3] mmc: sdhci-esdhc-imx: get rid of support_vsel

2018-06-28 Thread Stefan Agner
The field support_vsel is currently only used in the device tree case. Get rid of it. No change in behavior. Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 8 ++-- include/linux/platform_data/mmc-esdhc-imx.h | 2 -- 2 files changed, 2 insertions(+), 8

[PATCH 0/3] mmc: sdhci-esdhc-imx: fix no UHS modes

2018-06-28 Thread Stefan Agner
board device trees which work around this by not setting vqmmc-supply, e.g. arch/arm/boot/dts/imx6qdl-sr-som-ti.dtsi. Introducing a new quirk was the only way which I came up with, but maybe there is a better way to prevent higher speed modes while allowing 1.8V eMMC? Stefan Agner (3): mmc

[PATCH] mmc: sdhci-esdhc-imx: support eMMC DDR mode when running at 3.3V

2018-06-28 Thread Stefan Agner
care) power mode: 2 (on) bus width: 3 (8 bits) timing spec:8 (mmc DDR52) signal voltage: 0 (3.30 V) driver type:0 (driver type B) Signed-off-by: Stefan Agner --- drivers/mmc/host/sdhci-esdhc-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver

Re: [PATCH][next] mtd: rawnand: fix a couple of spelling mistakes

2018-06-26 Thread Stefan Agner
On 26.06.2018 12:26, Colin King wrote: > From: Colin Ian King > > Trival fix of two spelling mistakes in dev_err error messages: > "supportes" -> "supports" and "strenght" -> "strength" Acked-by: Stefan Agner > > Signed-off-by

Re: [PATCH v2 3/6] ARM: trusted_foundations: do not use naked function

2018-06-26 Thread Stefan Agner
On 17.04.2018 10:11, Thierry Reding wrote: > On Mon, Apr 16, 2018 at 08:21:09PM +0200, Stefan Agner wrote: >> On 16.04.2018 18:08, Stephen Warren wrote: >> > On 04/16/2018 09:56 AM, Stefan Agner wrote: >> >> On 27.03.2018 14:16, Dmitry Osipenko wrote: >> >>

Re: [PATCH] mfd: as3722: disable auto power on when AC OK

2018-06-26 Thread Stefan Agner
On 25.06.2018 10:00, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > On ams AS3722, power on when AC OK is enabled by default. > Making this option as disable by default and enable only > when platform need this explicitly. > > Signed-off-by: Laxman Dewangan > Reviewed-by: Bibek Basu > Test

[PATCH v8 6/6] ARM: dts: tegra: enable NAND flash on Colibri T20

2018-06-24 Thread Stefan Agner
This enables the on-module ONFI conformant NAND flash. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi b/arch/arm/boot/dts

[PATCH v8 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node

2018-06-24 Thread Stefan Agner
From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15

[PATCH v8 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm

2018-06-24 Thread Stefan Agner
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/nand.txt | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 + include/linux/mtd/rawnand.h

[PATCH v8 2/6] mtd: rawnand: add an option to specify NAND chip as a boot device

2018-06-24 Thread Stefan Agner
Allow to define a NAND chip as a boot device. This can be helpful for the selection of the ECC algorithm and strength in case the boot ROM supports only a subset of controller provided options. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon --- Documentation/devicetree/bindings/mtd

[PATCH v8 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-24 Thread Stefan Agner
es support Changes since v6: - checkpatch.pl fixes Changes since v7: - Replace nand_release() with mtd_device_unregister() + nand_cleanup() Lucas Stach (1): ARM: dts: tegra: add Tegra20 NAND flash controller node Stefan Agner (5): mtd: rawnand: add Reed-Solomon error correction algorithm mt

[PATCH v8 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-24 Thread Stefan Agner
-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Dmitry Osipenko Reviewed-by: Boris Brezillon --- MAINTAINERS |7 + drivers/mtd/nand/raw/Kconfig | 10 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/tegra_nand.c | 1

[PATCH v8 3/6] mtd: rawnand: tegra: add devicetree binding

2018-06-24 Thread Stefan Agner
This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- .../bindings/mtd/nvidia-tegra20-nand.txt | 64 +++ 1 file changed, 64 insertions

Re: [PATCH v7 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-24 Thread Stefan Agner
On 24.06.2018 21:50, Boris Brezillon wrote: > On Sun, 24 Jun 2018 21:22:28 +0200 > Stefan Agner wrote: > >> + >> +static int tegra_nand_remove(struct platform_device *pdev) >> +{ >> +struct tegra_nand_controller *ctrl = platform_get_drvdata(pdev); >>

[PATCH v7 6/6] ARM: dts: tegra: enable NAND flash on Colibri T20

2018-06-24 Thread Stefan Agner
This enables the on-module ONFI conformant NAND flash. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi b/arch/arm/boot/dts

[PATCH v7 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm

2018-06-24 Thread Stefan Agner
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/nand.txt | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 + include/linux/mtd/rawnand.h

[PATCH v7 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node

2018-06-24 Thread Stefan Agner
From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15

[PATCH v7 3/6] mtd: rawnand: tegra: add devicetree binding

2018-06-24 Thread Stefan Agner
This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- .../bindings/mtd/nvidia-tegra20-nand.txt | 64 +++ 1 file changed, 64 insertions

[PATCH v7 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-24 Thread Stefan Agner
-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Dmitry Osipenko --- MAINTAINERS |7 + drivers/mtd/nand/raw/Kconfig | 10 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/tegra_nand.c | 1223 + 4 files chan

[PATCH v7 2/6] mtd: rawnand: add an option to specify NAND chip as a boot device

2018-06-24 Thread Stefan Agner
Allow to define a NAND chip as a boot device. This can be helpful for the selection of the ECC algorithm and strength in case the boot ROM supports only a subset of controller provided options. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon --- Documentation/devicetree/bindings/mtd

[PATCH v7 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-24 Thread Stefan Agner
variant of wait_for_completion_timeout Changes since v5: - Drop extra OOB bytes support Changes since v6: - checkpatch.pl fixes Lucas Stach (1): ARM: dts: tegra: add Tegra20 NAND flash controller node Stefan Agner (5): mtd: rawnand: add Reed-Solomon error correction algorithm mtd: rawnand: add

[PATCH v6 3/6] mtd: rawnand: tegra: add devicetree binding

2018-06-21 Thread Stefan Agner
This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- .../bindings/mtd/nvidia-tegra20-nand.txt | 64 +++ 1 file changed, 64 insertions

[PATCH v6 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-21 Thread Stefan Agner
ARM: dts: tegra: add Tegra20 NAND flash controller node Stefan Agner (5): mtd: rawnand: add Reed-Solomon error correction algorithm mtd: rawnand: add an option to specify NAND chip as a boot device mtd: rawnand: tegra: add devicetree binding mtd: rawnand: add NVIDIA Tegra NAND Flash control

[PATCH v6 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node

2018-06-21 Thread Stefan Agner
From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15

[PATCH v6 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-21 Thread Stefan Agner
-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Dmitry Osipenko --- MAINTAINERS |7 + drivers/mtd/nand/raw/Kconfig |6 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/tegra_nand.c | 1225 + 4 files chan

[PATCH v6 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm

2018-06-21 Thread Stefan Agner
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/nand.txt | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 + include/linux/mtd/rawnand.h

[PATCH v6 6/6] ARM: dts: tegra: enable NAND flash on Colibri T20

2018-06-21 Thread Stefan Agner
This enables the on-module ONFI conformant NAND flash. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi b/arch/arm/boot/dts

[PATCH v6 2/6] mtd: rawnand: add an option to specify NAND chip as a boot device

2018-06-21 Thread Stefan Agner
Allow to define a NAND chip as a boot device. This can be helpful for the selection of the ECC algorithm and strength in case the boot ROM supports only a subset of controller provided options. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon --- Documentation/devicetree/bindings/mtd

Re: [PATCH] ARM: ftrace: Only set kernel memory back to read-only after boot

2018-06-21 Thread Stefan Agner
be converted to read-only, and make the ftrace "before" >> and "after" calls do nothing if that variable is not yet set. This is >> similar to the x86 solution from commit 162396309745 ("ftrace, x86: >> make kernel text writable only for conversions").

Re: [PATCH 15/20] dts: arm: imx7{d,s}: Update coresight binding for hardware ports

2018-06-19 Thread Stefan Agner
On 19.06.2018 04:12, Shawn Guo wrote: > Hi Stefan, > > Can you take a look at the patch? Thanks. > > Shawn > > On Tue, Jun 05, 2018 at 10:43:26PM +0100, Suzuki K Poulose wrote: >> Switch to the updated coresight bindings. Looks good to me. Reviewed-by: Stefan

Re: [PATCH v5 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-18 Thread Stefan Agner
Hi Boris, On 18.06.2018 13:59, Boris Brezillon wrote: > Hi Stefan, > > On Mon, 18 Jun 2018 12:51:52 +0200 > Stefan Agner wrote: > >> On 18.06.2018 11:58, Boris Brezillon wrote: >> > On Sun, 17 Jun 2018 22:45:59 +0200 >> > Stefan Agner wrote: >&

Re: [PATCH v5 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-18 Thread Stefan Agner
On 18.06.2018 11:58, Boris Brezillon wrote: > On Sun, 17 Jun 2018 22:45:59 +0200 > Stefan Agner wrote: > >> Changes definitly calm down, most noteably probably the changes >> around checking whether a page is empty if the stack reports ECC >> errors.. I verified th

[PATCH v5 6/6] ARM: dts: tegra: enable NAND flash on Colibri T20

2018-06-17 Thread Stefan Agner
This enables the on-module ONFI conformant NAND flash. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi b/arch/arm/boot/dts

[PATCH v5 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-17 Thread Stefan Agner
-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Dmitry Osipenko --- MAINTAINERS |7 + drivers/mtd/nand/raw/Kconfig |6 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/tegra_nand.c | 1268 + 4 files chan

[PATCH v5 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node

2018-06-17 Thread Stefan Agner
From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15

[PATCH v5 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-17 Thread Stefan Agner
ARM: dts: tegra: add Tegra20 NAND flash controller node Stefan Agner (5): mtd: rawnand: add Reed-Solomon error correction algorithm mtd: rawnand: add an option to specify NAND chip as a boot device mtd: rawnand: tegra: add devicetree binding mtd: rawnand: add NVIDIA Tegra NAND Flash

[PATCH v5 2/6] mtd: rawnand: add an option to specify NAND chip as a boot device

2018-06-17 Thread Stefan Agner
Allow to define a NAND chip as a boot device. This can be helpful for the selection of the ECC algorithm and strength in case the boot ROM supports only a subset of controller provided options. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon --- Documentation/devicetree/bindings/mtd

[PATCH v5 3/6] mtd: rawnand: tegra: add devicetree binding

2018-06-17 Thread Stefan Agner
This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- .../bindings/mtd/nvidia-tegra20-nand.txt | 64 +++ 1 file changed, 64 insertions

[PATCH v5 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm

2018-06-17 Thread Stefan Agner
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/nand.txt | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 + include/linux/mtd/rawnand.h

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-17 Thread Stefan Agner
On 12.06.2018 10:13, Boris Brezillon wrote: > On Tue, 12 Jun 2018 10:02:12 +0200 > Stefan Agner wrote: > >> >> +static int tegra_nand_read_page_hwecc(struct mtd_info *mtd, >> >> + struct nand_chip *chip, >> >> +

[PATCH] ALSA: ctxfi: use enum type CT_SUM_CTL where appropriate

2018-06-17 Thread Stefan Agner
MIXER_CTL' [-Wenum-conversion] for (i = AMIXER_PCM_F, j = SUM_IN_F; i <= AMIXER_PCM_S; i++, j++) { ~ ^~~~ Introduce enum CT_SUM_CTL k and it instead. Signed-off-by: Stefan Agner --- sound/pci/ctxfi/ctmixer.c | 15 --- 1 file cha

[PATCH] ALSA: ice1724: remove unused array

2018-06-17 Thread Stefan Agner
This fixes a warning seen with clang: sound/pci/ice1712/prodigy_hifi.c:321:28: warning: variable 'wm_vol' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const unsigned char wm_vol[256] = { ^ Signed-off-by: Stefan Agner

[PATCH] ASoC: codecs: PCM1789: unconditionally flush work

2018-06-17 Thread Stefan Agner
sion] if (&priv->work) ~~ ~~~~~~^~~~ Signed-off-by: Stefan Agner --- sound/soc/codecs/pcm1789.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/pcm1789.c b/sound/soc/codecs/pcm1789.c index 21f15219b3ad..8df6447c76a6 100644 --- a/so

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Stefan Agner
On 12.06.2018 17:24, Jens Axboe wrote: > On 6/12/18 3:17 AM, Stefan Agner wrote: >> [also added Jens Axboe] >> >> On 12.06.2018 10:27, Boris Brezillon wrote: >>> On Tue, 12 Jun 2018 10:06:42 +0200 >>> Stefan Agner wrote: >>> >>>> On

Re: [v2,4/6] ARM: drop no-thumb-interwork in EABI mode

2018-06-12 Thread Stefan Agner
On 12.06.2018 19:19, Guenter Roeck wrote: > On Sun, Mar 25, 2018 at 08:09:57PM +0200, Stefan Agner wrote: >> According to GCC documentation -m(no-)thumb-interwork is >> meaningless in AAPCS configurations. Also clang does not > > It appears that this is only correct for r

Re: [PATCH v2] serial: imx: fix cached UCR2 read on software reset

2018-06-12 Thread Stefan Agner
On 07.06.2018 09:56, Uwe Kleine-König wrote: > On Fri, Apr 20, 2018 at 02:44:07PM +0200, Stefan Agner wrote: >> To reset the UART the SRST needs be cleared (low active). According >> to the documentation the bit will remain active for 4 module clocks >> until it is cleared (s

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Stefan Agner
[also added Jens Axboe] On 12.06.2018 10:27, Boris Brezillon wrote: > On Tue, 12 Jun 2018 10:06:42 +0200 > Stefan Agner wrote: > >> On 12.06.2018 02:03, Dmitry Osipenko wrote: >> > On Monday, 11 June 2018 23:52:22 MSK Stefan Agner wrote: >> >> Add support fo

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Stefan Agner
On 12.06.2018 02:03, Dmitry Osipenko wrote: > On Monday, 11 June 2018 23:52:22 MSK Stefan Agner wrote: >> Add support for the NAND flash controller found on NVIDIA >> Tegra 2 SoCs. This implementation does not make use of the >> command queue feature. Regular operations/data

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Stefan Agner
On 12.06.2018 01:32, Dmitry Osipenko wrote: > On Monday, 11 June 2018 23:52:22 MSK Stefan Agner wrote: >> Add support for the NAND flash controller found on NVIDIA >> Tegra 2 SoCs. This implementation does not make use of the >> command queue feature. Regular operations/data

[PATCH v4 2/6] mtd: rawnand: add an option to specify NAND chip as a boot device

2018-06-11 Thread Stefan Agner
Allow to define a NAND chip as a boot device. This can be helpful for the selection of the ECC algorithm and strength in case the boot ROM supports only a subset of controller provided options. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon --- Documentation/devicetree/bindings/mtd

[PATCH v4 3/6] mtd: rawnand: tegra: add devicetree binding

2018-06-11 Thread Stefan Agner
This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- .../bindings/mtd/nvidia-tegra20-nand.txt | 64 +++ 1 file changed, 64 insertions

[PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-11 Thread Stefan Agner
Signed-off-by: Stefan Agner --- MAINTAINERS |7 + drivers/mtd/nand/raw/Kconfig |6 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/tegra_nand.c | 1248 + 4 files changed, 1262 insertions(+) create mode 100644

[PATCH v4 6/6] ARM: dts: tegra: enable NAND flash on Colibri T20

2018-06-11 Thread Stefan Agner
This enables the on-module ONFI conformant NAND flash. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi b/arch/arm/boot/dts

[PATCH v4 1/6] mtd: rawnand: add Reed-Solomon error correction algorithm

2018-06-11 Thread Stefan Agner
Add Reed-Solomon (RS) to the enumeration of ECC algorithms. Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon --- Documentation/devicetree/bindings/mtd/nand.txt | 2 +- drivers/mtd/nand/raw/nand_base.c | 1 + include/linux/mtd/rawnand.h| 1 + 3 files

[PATCH v4 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node

2018-06-11 Thread Stefan Agner
From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15

[PATCH v4 0/6] mtd: rawnand: add NVIDIA Tegra NAND flash support

2018-06-11 Thread Stefan Agner
ty - Clear interrupts and reinit wait queues in case command/DMA times out - Set default MTD name after nand_set_flash_node - Move MODULE_DEVICE_TABLE after declaration of tegra_nand_of_match - Make (rs|bch)_strength static Lucas Stach (1): ARM: dts: tegra: add Tegra20 NAND flash controller node Stefa

Re: [PATCH v6 4/5] clocksource: add driver for i.MX EPIT timer

2018-06-11 Thread Stefan Agner
On 11.06.2018 14:42, Clément Péron wrote: > Hi Stefan, > > >> > + >> > +#define EPITCR 0x00 >> > +#define EPITSR 0x04 >> > +#define EPITLR 0x08 >> > +#define EPITCMPR 0x0c >> > +#define E

Re: [PATCH v6 4/5] clocksource: add driver for i.MX EPIT timer

2018-06-11 Thread Stefan Agner
On 07.06.2018 16:05, Clément Péron wrote: > From: Colin Didier > > Add driver for NXP's EPIT timer used in i.MX SoC. > > Signed-off-by: Colin Didier > Signed-off-by: Clément Peron > --- > drivers/clocksource/Kconfig | 11 ++ > drivers/clocksource/Makefile | 1 + > drivers/

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-10 Thread Stefan Agner
On 09.06.2018 14:21, Dmitry Osipenko wrote: > On Saturday, 9 June 2018 00:51:01 MSK Stefan Agner wrote: >> On 01.06.2018 11:20, Dmitry Osipenko wrote: >> > On 01.06.2018 01:16, Stefan Agner wrote: >> >> Add support for the NAND flash controller found on N

Re: [PATCH v3 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-08 Thread Stefan Agner
On 09.06.2018 08:41, Boris Brezillon wrote: > On Sat, 09 Jun 2018 08:23:51 +0200 > Stefan Agner wrote: > >> On 09.06.2018 07:52, Boris Brezillon wrote: >> > On Fri, 08 Jun 2018 23:51:01 +0200 >> > Stefan Agner wrote: >> > >> > >

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