[PATCH 1/2] dma: mv_xor: use proper dma memory management functions

2012-12-27 Thread Lubomir Rintel
Caught by self-check with DMA_API_DEBUG: WARNING: at lib/dma-debug.c:878 check_unmap+0x37c/0x748() mv_xor mv_xor.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x1f3a1a40] [size=2000 bytes] [mapped as single] [unmapped as page] Signed-off-by: Lubomir

[PATCH 2/2] dma: mv_xor: do not sync the DMA buffer after being deallocated

2012-12-27 Thread Lubomir Rintel
) now: mv_xor mv_xor.0: DMA-API: device driver frees DMA memory with different direction [device address=0x1dea4000] [size=4096 bytes] [mapped with DMA_FROM_DEVICE] [unmapped with DMA_BIDIRECTIONAL] Signed-off-by: Lubomir Rintel --- drivers/dma/mv_xor.c |9 +++-- 1 files changed

[PATCH] orion_wdt: Add platform alias

2013-01-04 Thread Lubomir Rintel
...so that it's automatically picked up on relevant platforms. Tested on Kirkwood-based GuruPlug. Signed-off-by: Lubomir Rintel --- drivers/watchdog/orion_wdt.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c

[PATCH] mv643xx_eth: Fix a possible deadlock upon ifdown

2013-01-04 Thread Lubomir Rintel
From: Lubomir Rintel = [ INFO: inconsistent lock state ] 3.7.0-6.luboskovo.fc19.armv5tel.kirkwood #1 Tainted: GW - inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. NetworkManager/337 [HC0[0]:SC0[0]:HE1:SE1] ta

[PATCH] mv643xx_eth: Fix a possible deadlock upon ifdown

2013-01-04 Thread Lubomir Rintel
310/0x3c0) [] (netlink_sendmsg+0x310/0x3c0) from [] (sock_sendmsg+0xa8/0xd0) [] (sock_sendmsg+0xa8/0xd0) from [] (__sys_sendmsg+0x1d8/0x280) [] (__sys_sendmsg+0x1d8/0x280) from [] (sys_sendmsg+0x44/0x68) [] (sys_sendmsg+0x44/0x68) from [] (ret_fast_syscall+0x0/0x38) Signed-off-by: Lubomir Rin

[PATCH] libertas sdio: remove CMD_FUNC_INIT call

2013-01-17 Thread Lubomir Rintel
It actually times out on a 8688 present in GuruPlug with sd8688.bin (md5=7233401e9687f8c880da547beed4324e) firmware (that's present in linux-firmware tree), but the adapter works fine. For that firmware times out with libertas_uap [1] as well, though it succeeds with sd8688_ap.bin

Re: [PATCH] Bluetooth: btmrvl_sdio: look for sd8688 firmware in alternate place

2013-01-17 Thread Lubomir Rintel
t; > > both places > > > > > and so should we. > > > > > > > > > > Signed-off-by: Lubomir Rintel > > > > > --- > > > > > drivers/bluetooth/btmrvl_sdio.c | 24 ++-- > > > > > drivers/bluetooth/btm

[PATCH] bluetooth: btmrvl_sdio: look for sd8688 firmware in proper location

2013-01-17 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- drivers/bluetooth/btmrvl_sdio.c |8 drivers/bluetooth/btmrvl_sdio.h |6 -- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 3f4bfc8..bc27d01 100644

[PATCH] libertas sdio: look for 8688 firmware in common location

2013-01-17 Thread Lubomir Rintel
sd8688 is not only used by libertas WiFi, but shared with btmrvl bluetooth as well. Signed-off-by: Lubomir Rintel --- drivers/net/wireless/libertas/if_sdio.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net

Re: [PATCH 2/2] dma: mv_xor: do not sync the DMA buffer after being deallocated

2013-01-17 Thread Lubomir Rintel
On Sun, 2013-01-13 at 14:18 +0100, Lubomir Rintel wrote: > On Fri, 2013-01-04 at 17:10 +0100, Thomas Petazzoni wrote: > > Dear Lubomir Rintel, > > > > On Thu, 27 Dec 2012 20:23:48 +0100, Lubomir Rintel wrote: > > > > > dma_sync_single_for

[PATCH 1/3] dma: mv_xor: do not sync the DMA buffer after being deallocated

2013-01-17 Thread Lubomir Rintel
-by: Lubomir Rintel --- drivers/dma/mv_xor.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index e666983..8b81a04 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -960,8 +960,6 @@ static int mv_xor_memcpy_self_test

[PATCH 3/3] dma: mv_xor: get rid of a DMA-API sanity check warning

2013-01-17 Thread Lubomir Rintel
mv_xor_run_tx_complete_actions() frees for multiple sources. Signed-off-by: Lubomir Rintel --- drivers/dma/mv_xor.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index d00a834..1e90f5d 100644 --- a/drivers/dma/mv_xor.c +++ b

[PATCH 2/3] dma: mv_xor: fix DMA-API error handling sanity check

2013-01-17 Thread Lubomir Rintel
Add error checking. --- drivers/dma/mv_xor.c | 27 ++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 8b81a04..d00a834 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -939,9 +939,21 @@

[PATCH] bluetooth: btmrvl_sdio: look for sd8688 firmware in proper location

2013-01-19 Thread Lubomir Rintel
into mrvl/ now. Signed-off-by: Lubomir Rintel --- drivers/bluetooth/btmrvl_sdio.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 9959d4c..1cb5183 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b

Re: ARM: dts: mmp devicetree updates

2021-01-29 Thread Lubomir Rintel
On Fri, Jan 22, 2021 at 03:09:14PM +0100, Arnd Bergmann wrote: > On Thu, Jan 21, 2021 at 4:41 AM Lubomir Rintel wrote: > > > > Hi, > > > > chained to this message is a handful of patches related to MMP device > > trees and bindings. Please take a look and consid

[PATCH 0/5] docs: arm: Improvements to Marvell SoC documentation

2021-01-29 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. The objective is to deal with the a large amount of dead links to material that often comes handy in marvel.rst; and improve some details along the way. Thank you Lubo

[PATCH 5/5] docs: arm: marvell: rename marvel.rst to marvell.rst

2021-01-29 Thread Lubomir Rintel
This company is not the superheroes you're looking for. Signed-off-by: Lubomir Rintel --- Documentation/arm/{marvel.rst => marvell.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/arm/{marvel.rst => marvell.rst} (100%) diff --git a/Documentation/arm/marvel

[PATCH 2/5] docs: arm: marvell: drop some dead links

2021-01-29 Thread Lubomir Rintel
Just remove these; there's good chance there wasn't anything useful there anyway. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel.rst | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/Documentation/arm/marvel.rst b/Documentation/arm

[PATCH 1/5] docs: arm: marvell: turn the automatic links into labels

2021-01-29 Thread Lubomir Rintel
Lines ending with obscenely long URLs at the end don't look good. Even if these links are not that long at this point, they will be when replaced with an archive link in a subsequent patch -- let's prepare for that. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel.rst | 209

[PATCH 3/5] docs: arm: marvell: replace stale links with archive links

2021-01-29 Thread Lubomir Rintel
because (short of the product briefs) the documents tend to be quite useful. Let's replace them with known working versions of IA's Wayback Machine links. That seems to be about the only way of getting a URL that's going to work the next week. Signed-off-by: Lubomir Rintel --- Documentation/arm

[PATCH 4/5] docs: arm: marvell: clarify some unimportant Armada 6x0 details

2021-01-29 Thread Lubomir Rintel
MMP2 is used in XO-1.75 and MMP3 is now supported in mainline. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/arm/marvel.rst b/Documentation/arm/marvel.rst index 0c291d1091f1d..43f2fe407796e

[PATCH v2 5/5] docs: arm: marvell: rename marvel.rst to marvell.rst

2021-02-03 Thread Lubomir Rintel
This company is not the superheroes you're looking for. Signed-off-by: Lubomir Rintel --- Documentation/arm/{marvel.rst => marvell.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/arm/{marvel.rst => marvell.rst} (100%) diff --git a/Documentation/arm/marvel

[PATCH v2 1/5] docs: arm: marvell: drop some dead links

2021-02-03 Thread Lubomir Rintel
Just remove these; there's good chance there wasn't anything useful there anyway. Signed-off-by: Lubomir Rintel --- Changes since v1: - Adjust for removal of "[PATCH 1/5] docs: arm: marvell: turn the automatic links into labels" - Split off the hunk that fixes 38x functional

[PATCH v2 4/5] docs: arm: marvell: clarify some unimportant Armada 6x0 details

2021-02-03 Thread Lubomir Rintel
MMP2 is used in XO-1.75 and MMP3 is now supported in mainline. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/arm/marvel.rst b/Documentation/arm/marvel.rst index bcf3f4e3e8faf..d83917f226376

[PATCH v2 2/5] docs: arm: marvell: fix 38x functional spec link

2021-02-03 Thread Lubomir Rintel
This one went away, but the document is still available. Signed-off-by: Lubomir Rintel --- Changes since v1: - Split this off from "[PATCH] docs: arm: marvell: drop some dead links" Documentation/arm/marvel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc

[PATCH v2 3/5] docs: arm: marvell: replace stale links with archive links

2021-02-03 Thread Lubomir Rintel
because (short of the product briefs) the documents tend to be quite useful. Let's replace them with known working versions of IA's Wayback Machine links. That seems to be about the only way of getting a URL that's going to work the next week. Signed-off-by: Lubomir Rintel --- Changes since v1

[PATCH v2 0/5] docs: arm: Improvements to Marvell SoC documentation

2021-02-03 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. The objective is to deal with the a large amount of dead links to material that often comes handy in marvel.rst; and improve some details along the way. The most important change since v1 is the removal of "[PATCH 1/5] docs: arm:

[PATCH 1/1] clk: mmp2: Enable the 3D GPU clock alongside the 2D clock

2021-02-03 Thread Lubomir Rintel
The bits intended to control the 3D GPU clock need to be enabled for the 2D GPU to work. It is not clear why this needs to be done. Forcing the 3D clock on when the etnaviv driver requests a 2D clock works around the problem. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-gate.c| 9

[PATCH 0/1] clk: mmp2: Enable the 3D GPU clock alongside the 2D clock

2021-02-03 Thread Lubomir Rintel
Hi, Please consider applying the sad little patch chained to this message. It is a workaround that makes the 2D GPU work on MMP3 when the 3D GPU is not used. It's been observed that the 2D GPU won't work when what is understood to be the 3D GPU clock is turned off. The etnaviv developers suggest

[PATCH] media: marvell-ccic: power up the device on mclk enable

2021-01-27 Thread Lubomir Rintel
Writing to REG_CLKCTRL with the power off causes a hang. Enable the device first. Cc: sta...@vger.kernel.org # 5.10+ Signed-off-by: Lubomir Rintel --- drivers/media/platform/marvell-ccic/mcam-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/marvell-ccic/mcam

[PATCH 2/3] Platform: OLPC: Remove dcon_rdev from olpc_ec_priv

2021-01-26 Thread Lubomir Rintel
It is not needed. Use a local variable instead. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c index 2db7113383fdc..3c852d573e9b4

[PATCH 0/3] Platform: OLPC: A couple of fixes

2021-01-26 Thread Lubomir Rintel
Hi, chained to this message is a couple of fixes related to OLPC EC platform code. Please take a look and consider applying to platform-drivers-x86. Thank you Lubo

[PATCH 1/3] Platform: OLPC: Fix probe error handling

2021-01-26 Thread Lubomir Rintel
Reset ec_priv if probe ends unsuccessfully. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c index f64b82824db28..2db7113383fdc

[PATCH 3/3] Platform: OLPC: Specify the enable time

2021-01-26 Thread Lubomir Rintel
Determined empirically. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c index 3c852d573e9b4..72dbbea0005c5 100644 --- a/drivers

[PATCH v7 2/2] drm/bridge: hx8837: add a Himax HX8837 display controller driver

2021-01-28 Thread Lubomir Rintel
: http://wiki.laptop.org/images/0/09/DCON_datasheet_HX8837-A.pdf + * + * Copyright (C) 2020 Lubomir Rintel + */ + +#include +#include +#include +#include +#include + +#include +#include +#include + +#define bridge_to_hx8837_priv(x) \ + container_of(x, struct hx8837_priv, brid

[PATCH v7 0/2] Add a Himax HX8837 display controller driver

2021-01-28 Thread Lubomir Rintel
Hi, please take a look at the patches chained to this messages and consider applying them. They add support for the controller that drives the panel on the OLPC XO laptops. Compared to v7, points risen in review by Laurent Pinchart have been addressed. Details in change log of patch 1/2. Tested

[PATCH v7 1/2] dt-bindings: display: himax,hx8837: Add Himax HX8837 bindings

2021-01-28 Thread Lubomir Rintel
Himax HX8837 is a secondary display controller used to drive the panel on OLPC platforms. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v6: (All based on feedback from Laurent Pinchart) - Add power supplies - Make load/stat-gpios optional - Fix whitespace errors

Re: [PATCH 1/5] docs: arm: marvell: turn the automatic links into labels

2021-01-30 Thread Lubomir Rintel
On Fri, Jan 29, 2021 at 05:20:28PM -0700, Jonathan Corbet wrote: > Lubomir Rintel writes: > > > Lines ending with obscenely long URLs at the end don't look good. > > > > Even if these links are not that long at this point, they will be when > > replaced with an arch

Re: ARM: dts: mmp devicetree updates

2021-02-02 Thread Lubomir Rintel
On Tue, Feb 02, 2021 at 06:13:18PM +0100, Arnd Bergmann wrote: > On Tue, Feb 2, 2021 at 5:41 PM Arnd Bergmann wrote: > > > > On Fri, Jan 22, 2021 at 3:09 PM Arnd Bergmann wrote: > > > On Thu, Jan 21, 2021 at 4:41 AM Lubomir Rintel wrote: > > > > > >

Re: [PATCH 1/2] dt-bindings: sound: Add Marvell MMP Audio Clock Controller binding

2020-05-19 Thread Lubomir Rintel
On Thu, May 14, 2020 at 02:06:07PM -0700, Stephen Boyd wrote: > Quoting Lubomir Rintel (2020-05-11 12:55:33) > > diff --git > > a/Documentation/devicetree/bindings/clock/marvell,mmp2-audio-clock.yaml > > b/Documentation/devicetree/bindings/clock/marvell,mmp2-audio-clock.y

[PATCH v3 09/13] dt-bindings: clock: Make marvell,mmp2-clock a power controller

2020-05-19 Thread Lubomir Rintel
This is a binding for the MMP2 power management units. As such apart from providing the clocks, they also manage the power islands. Signed-off-by: Lubomir Rintel --- Changes since v2: - Added this patch .../devicetree/bindings/clock/marvell,mmp2-clock.yaml| 5 + 1 file changed, 5

[PATCH v3 05/13] clk: mmp2: Move thermal register defines up a bit

2020-05-19 Thread Lubomir Rintel
A trivial change to keep the sorting sane. The APBC registers are happier when they are grouped together, instead of mixed with the APMU ones. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk

[PATCH v3 08/13] clk: mmp2: Add the audio clock

2020-05-19 Thread Lubomir Rintel
This clocks the Audio block. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of-mmp2.c index dcdff06a698a..c686c16fca82 100644 --- a/drivers/clk/mmp/clk-of-mmp2.c +++ b

[PATCH v3 02/13] clk: mmp: frac: Allow setting bits other than the numerator/denominator

2020-05-19 Thread Lubomir Rintel
For the I2S fractional clocks, there are more bits that need to be set for the clock to run. Their actual meaning is unknown. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-frac.c | 3 +++ drivers/clk/mmp/clk.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/clk/mmp

[PATCH v3 01/13] clk: mmp: frac: Do not lose last 4 digits of precision

2020-05-19 Thread Lubomir Rintel
. Maybe also elsewhere, now that since commit ea56ad60260e ("clk: mmp2: Stop pretending PLL outputs are constant") the parent rates are more precise and no longer rounded to 1s. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-frac.c | 24 1 file c

[PATCH v3 13/13] clk: mmp2: Add audio clock controller driver

2020-05-19 Thread Lubomir Rintel
This is a driver for a block that generates master and bit clocks for the I2S interface. It's separate from the PMUs that generate clocks for the peripherals. Signed-off-by: Lubomir Rintel --- Changes since v1: - Utilize runtime PM along with pm_clk to enable/disable clocks - Rework the driver

[PATCH v3 00/13] MMP2 Clock Updates (GPU, Audio, Power Islands)

2020-05-19 Thread Lubomir Rintel
Hi, please consider applying this patch set. It contains patches that were previously sent in two separate series ("clk: mmp2: Enable Audio and GPU on MMP2 and MMP3" and "MMP2 Audio clock controller driver") but given there are some dependencies, it seems more practical to merge them into one.

[PATCH v3 12/13] dt-bindings: clock: Add Marvell MMP Audio Clock Controller binding

2020-05-19 Thread Lubomir Rintel
This describes the bindings for a controller that generates master and bit clocks for the I2S interface. Signed-off-by: Lubomir Rintel --- Changes since v1: - Fix commit message wording - Define MMP2_CLK_AUDIO_NR_CLKS - Make clock ids start at 0, not 1 - Fix dt-bindings/clock/marvell,mmp2

[PATCH v3 10/13] dt-bindings: marvell,mmp2: Add ids for the power domains

2020-05-19 Thread Lubomir Rintel
On MMP2 the audio and GPU blocks are on separate power islands. On MMP3 the camera block's power is also controlled separately. Add the numbers that we could use to refer to the power domains for respective power islands from the device tree. Signed-off-by: Lubomir Rintel Acked-by: Rob Herring

[PATCH v3 11/13] clk: mmp2: Add support for power islands

2020-05-19 Thread Lubomir Rintel
and the SSPA. Signed-off-by: Lubomir Rintel --- Changes since v2: - Use lowercase names for power domain names - Fix the audio domain reset mask arch/arm/mach-mmp/Kconfig | 2 + drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-of-mmp2.c | 42 + drivers/clk/mmp/clk.h

[PATCH v3 06/13] clk: mmp2: Rename mmp2_pll_init() to mmp2_main_clk_init()

2020-05-19 Thread Lubomir Rintel
This is a trivial rename for a routine that registers more clock sources than the PLLs -- there's also a XO. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp

[PATCH v3 07/13] clk: mmp2: Add the I2S clocks

2020-05-19 Thread Lubomir Rintel
A pair of fractional clock sources for PLLs and gates. Signed-off-by: Lubomir Rintel --- Changes since v2: - s/I2C/I2S/ drivers/clk/mmp/clk-of-mmp2.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk

[PATCH v3 04/13] dt-bindings: marvell,mmp2: Add clock id for the Audio clock

2020-05-19 Thread Lubomir Rintel
This clocks the Audio block. Signed-off-by: Lubomir Rintel Acked-by: Rob Herring --- Changes since v1: - Rob's ack include/dt-bindings/clock/marvell,mmp2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/marvell,mmp2.h b/include/dt-bindings/clock/marvell,mmp2.h

[PATCH v3 03/13] dt-bindings: marvell,mmp2: Add clock id for the I2S clocks

2020-05-19 Thread Lubomir Rintel
There are two of these on a MMP2. Signed-off-by: Lubomir Rintel Acked-by: Rob Herring --- Changes since v1: - Rob's ack include/dt-bindings/clock/marvell,mmp2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/marvell,mmp2.h b/include/dt-bindings/clock/marvell

[PATCH] dmaengine: mmp_pdma: Do not warn when IRQ is shared by all chans

2020-05-20 Thread Lubomir Rintel
.dma: initialized 16 channels Avoid that, treating the IRQs as optional. Signed-off-by: Lubomir Rintel --- drivers/dma/mmp_pdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ad06f260e907..41c542eaa23a 100644

[PATCH] dmaengine: mmp_tdma: share the IRQ line

2020-05-20 Thread Lubomir Rintel
-tdma d42a0800.adma: IRQ index 1 not found [1.194317] genirq: Flags mismatch irq 64. (tdma) vs. 0080 (pdma) [1.197894] mmp-tdma: probe of d42a0800.adma failed with error -16 Let's turn on IRQF_SHARED in the ADMA driver as well. Signed-off-by: Lubomir Rintel --- drivers/dma

[PATCH] ASoC: mmp-sspa: Fix the error handling in probe()

2020-05-20 Thread Lubomir Rintel
If we fail after pm_runtime_enable(), we fail to undo it. Same with clk_prepare_enable(). Let's order them after all things that can fail. Fixes: 7d98cc648253 ("ASoC: mmp-sspa: Add support for the runtime power management") Signed-off-by: Lubomir Rintel --- sound/soc/pxa/mmp-s

Re: [PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-20 Thread Lubomir Rintel
On Thu, May 14, 2020 at 09:53:08AM +0100, Russell King - ARM Linux admin wrote: > On Thu, May 14, 2020 at 10:40:58AM +0200, Lucas Stach wrote: > > Am Donnerstag, den 14.05.2020, 09:27 +0100 schrieb Russell King - ARM Linux > > admin: > > > On Thu, May 14, 2020 at 10:18:02AM +0200, Lucas Stach

Re: [PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-23 Thread Lubomir Rintel
Cc += robh On Wed, May 20, 2020 at 04:04:39PM +0200, Lucas Stach wrote: > Am Mittwoch, den 20.05.2020, 15:38 +0200 schrieb Lubomir Rintel: > > On Thu, May 14, 2020 at 09:53:08AM +0100, Russell King - ARM Linux admin > > wrote: > > > On Thu, May 14, 2020 at 10:40:58AM

[PATCH v2 1/4] drm/etnaviv: Fix error path on failure to enable bus clk

2020-05-23 Thread Lubomir Rintel
Since commit 65f037e8e908 ("drm/etnaviv: add support for slave interface clock") the reg clock is enabled before the bus clock and we need to undo its enablement on error. Fixes: 65f037e8e908 ("drm/etnaviv: add support for slave interface clock") Signed-off-by: Lubomir Rint

[PATCH v2 3/4] drm/etnaviv: Make the "core" clock mandatory

2020-05-23 Thread Lubomir Rintel
It is always present. It was documented as mandatory prior to commit 90aeca875f8a ("dt-bindings: display: Convert etnaviv to json-schema"). Signed-off-by: Lubomir Rintel --- Changes since v1: - Add this patch --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 +- 1 file changed, 1 inser

[PATCH v2 2/4] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-23 Thread Lubomir Rintel
mandates the "bus" clock while the dove machine only specifies "core". Signed-off-by: Lubomir Rintel --- Changes since v1: - Fix the actual return value --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dri

[PATCH v2 4/4] drm/etnaviv: Simplify clock enable/disable

2020-05-23 Thread Lubomir Rintel
All the NULL checks are pointless, clk_*() routines already deal with NULL just fine. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 53 ++- 1 file changed, 19 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c

[PATCH v2 0/4] drm/etnaviv: Tidy up clocks handling

2020-05-23 Thread Lubomir Rintel
Hi, please consider applying patches that are chained to this message. They make getting/enabling the clocks in the etnaviv driver slightly nicer, first two also fix potential problems. Compared to v1, patch 2/4 was fixed and patch 3/4 was added. As it was pointed out in response to v1, the

[RESEND 2 PATCH] media: marvell-ccic: Add support for runtime PM

2020-06-01 Thread Lubomir Rintel
On MMP3, the camera block lives on na separate power island. We want to turn it off if the CCIC is not in use to conserve power. Signed-off-by: Lubomir Rintel --- drivers/media/platform/marvell-ccic/mcam-core.c | 3 +++ drivers/media/platform/marvell-ccic/mmp-driver.c | 12 2

[RESEND PATCH] dmaengine: mmp_pdma: Do not warn when IRQ is shared by all chans

2020-06-01 Thread Lubomir Rintel
.dma: initialized 16 channels Avoid that, treating the IRQs as optional. Signed-off-by: Lubomir Rintel --- drivers/dma/mmp_pdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ad06f260e907d..41c542eaa23a5 100644

[RESEND PATCH] dmaengine: mmp_tdma: share the IRQ line

2020-06-01 Thread Lubomir Rintel
-tdma d42a0800.adma: IRQ index 1 not found [1.194317] genirq: Flags mismatch irq 64. (tdma) vs. 0080 (pdma) [1.197894] mmp-tdma: probe of d42a0800.adma failed with error -16 Let's turn on IRQF_SHARED in the ADMA driver as well. Signed-off-by: Lubomir Rintel --- drivers/dma

Re: [PATCH 0/9] DT: Improve validation for Marvell SoCs

2020-05-30 Thread Lubomir Rintel
On Thu, May 28, 2020 at 04:52:44PM -0600, Rob Herring wrote: > On Thu, May 21, 2020 at 11:13:47AM +0200, Lubomir Rintel wrote: > > Hi, > > > > chained to this message is a second version of remaining patches from the > > first spin of the "DT: Improve validation

Re: [RESEND 2 PATCH] media: marvell-ccic: Add support for runtime PM

2020-06-04 Thread Lubomir Rintel
Cc += Sakari. I'm wondering if you'd mind looking at this mmp ccic patch too. Thank you Lubo On Mon, Jun 01, 2020 at 09:21:24PM +0200, Lubomir Rintel wrote: > On MMP3, the camera block lives on na separate power island. We want to > turn it off if the CCIC is not in use to conserve

[PATCH] dt-bindings: clock: Add a missing include to MMP Audio Clock binding

2020-06-05 Thread Lubomir Rintel
The include file for input clock in the example was missing, breaking the validation. Signed-off-by: Lubomir Rintel Reported-by: Rob Herring --- .../devicetree/bindings/clock/marvell,mmp2-audio-clock.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree

[PATCH] drm/edid: drop the dcc probe before drm_do_get_edid

2018-02-10 Thread Lubomir Rintel
Now that drm_do_get_edid() handles override and firmware EDIDs it makes no sense to conditionalize it with a DCC probe. On the contrary -- the overrides are useful specifically when DCC is not functioning. drm_do_get_edid() already bails out when DCC fails, there's no need for an extra check. It

Re: [PATCH] drm/edid: drop the dcc probe before drm_do_get_edid

2018-02-11 Thread Lubomir Rintel
On Sat, 2018-02-10 at 19:03 +0100, Lubomir Rintel wrote: > Now that drm_do_get_edid() handles override and firmware EDIDs it makes > no sense to conditionalize it with a DCC probe. On the contrary -- the > overrides are useful specifically when DCC is not functioning. > >

[PATCH 1/5] ARM: dts: mmp2: trivial whitespace fix

2019-07-25 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b0..50b6c38b39cc3 100644 --- a/arch/arm/boot/dts

[PATCH RESEND 0/5] ARM: dts: mmp2: devicetree updates

2019-07-25 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. They're pretty much independent of each other, can be applied in any order. Hopefully I'm sending them the right way. Lubo

[PATCH 4/5] ARM: dts: mmp2: add camera interfaces

2019-07-25 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f7..68b5470773232 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++ b/arch/arm/boot/dts

[PATCH 5/5] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-07-25 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel --- Changes since v1: - Updated the subject to fit

[PATCH 3/5] ARM: dts: mmp2: rename the USB PHY node

2019-07-25 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/m

[PATCH 2/5] ARM: dts: mmp2: fix the SPI nodes

2019-07-25 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-)

[PATCH] pinctrl: xway: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/pinctrl/pinctrl-xway.c | 5 + 1 file changed, 1 inser

[PATCH] hwmon: (ads7871) Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/hwmon/ads7871.c | 10 +- 1 file changed, 1 inser

[PATCH] arm64: dts: hisilicon: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm64/boot/dts/hisilicon/hi6220-coresight.dtsi | 5 + arch/arm6

[PATCH] pinctrl: lantiq: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/pinctrl/pinctrl-lantiq.c | 5 + drivers/pinctrl/pinctrl-la

[PATCH] MIPS: ralink: Switch pinmux.h to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/mips/include/asm/mach-ralink/pinmux.h | 5 + 1 file changed, 1

[PATCH] misc: lis3lv02d: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/misc/lis3lv02d/lis3lv02d_spi.c | 5 + 1 file changed, 1 inser

[PATCH 0/6] ARM: A couple of SoC license header fixes

2019-06-11 Thread Lubomir Rintel
Hi, There's one particular typo in the license header ("publishhed") that seems to have spread through the tree by copy-pasting. This patch set fixes the occurences within mach-*/ and dts/ by replacing the header with a SPDX identifier. Lubo

[PATCH 3/6] ARM: dts: mmp2: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2-brownstone.dts | 5 + arch/arm/boot/dts

[PATCH 4/6] ARM: mmp: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/aspenite.c | 5 + arch/arm/mach-mmp/avengers_

[PATCH 2/6] ARM: dts: pxa: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/pxa168-aspenite.dts | 5 + arch/arm/boot/dts/p

[PATCH 6/6] ARM: hisilicon: DT: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/hi3620-hi4511.dts | 5 + arch/arm/boot/dts/h

[PATCH 5/6] ARM: pxa: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm/mach-pxa/littleton.c | 5 + arch/arm/mach-pxa/pxa-d

[PATCH 1/6] ARM: dts: STi: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/stih407-family.dtsi | 5 + arch/arm/boot/d

[PATCH v2 2/6] ARM: dts: mmp2: fix the SPI nodes

2019-08-02 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-)

[PATCH v2 4/6] ARM: dts: mmp2: add camera interfaces

2019-08-02 Thread Lubomir Rintel
Supported by the mmp-camera driver. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f7..68b5470773232 100644 --- a/arch/arm/boot

[PATCH v2 6/6] ARM: dts: mmp2: add OLPC XO 1.75 machine

2019-08-02 Thread Lubomir Rintel
bindings. Having an device tree in the kernel tree makes it easier to use mainline kernels on such machines, test changes with CONFIG_ARM_APPENDED_DTB and give a good reference on what bindings are used on the machine without an access to one. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts

[PATCH v2 3/6] ARM: dts: mmp2: rename the USB PHY node

2019-08-02 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/m

[PATCH v2 1/6] ARM: dts: mmp2: trivial whitespace fix

2019-08-02 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b0..50b6c38b39cc3 100644 --- a/arch/arm/boot/dts

[PATCH v2 5/6] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-08-02 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel --- Changes since v1: - Updated the subject to fit

[PATCH v2 0/6] ARM: dts: mmp2: devicetree updates

2019-08-02 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. The only change from the last submission is the addition of the OLPC XO 1.75 dts file. Apart from that one, the patches are independent of each other, can be applied in any order. Hopefully I'm sending the patch set in the

Re: linux-next: Tree for May 28 (platform/olpc/olpc-xo175-ec)

2019-05-29 Thread Lubomir Rintel
On Tue, 2019-05-28 at 11:05 -0700, Randy Dunlap wrote: > On 5/27/19 9:58 PM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190524: > > > > on x86, there are some issues with drivers/platform/olpc/olpc-xo175-ec.c: > > a. when CONFIG_SPI is not set/enabled: > > WARNING: unmet

[PATCH] spi: pxa2xx: Balance runtime PM enable/disable on error

2019-07-19 Thread Lubomir Rintel
uot;ready") due to -EPROBE_DEFER because we're getting probled before the GPIO driver. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index fc7ab4b268802..

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