[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

Re: [PATCH] clk: mmp2: fix build without CONFIG_PM

2021-01-05 Thread Lubomir Rintel
nctions, but that caused additional > problems. This is the simple solution of replacing the __maybe_unused > trick with an #ifdef. > > Fixes: 725262d29139 ("clk: mmp2: Add audio clock controller driver") > Signed-off-by: Arnd Bergmann Thank you. Acked-By: Lubomir Rintel &

[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 v2 0/2] Add driver for power button on Dell Wyse 3020

2020-11-29 Thread Lubomir Rintel
please consider applying the patches chained to this message. It's a rather simple driver for a power button on Dell Ariel board along with the Device Tree binding document. Compared to previous version, endianness issues are fixed and I connected a Reviewed-by for the binding doc that I failed to

[PATCH v2 1/2] dt-bindings: input: Add Dell Wyse 3020 Power Button binding

2020-11-29 Thread Lubomir Rintel
Add binding document for the Dell Wyse 3020 a.k.a. "Ariel" Power Button. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v1: - Collect Rob's R-b .../bindings/input/ariel-pwrbutton.yaml | 53 +++ 1 file changed, 53 insertions(

[PATCH v2 2/2] Input: add driver for power button on Dell Wyse 3020

2020-11-29 Thread Lubomir Rintel
an input device that is only capable of reporting the power button presses and releases. Signed-off-by: Lubomir Rintel --- Changes since v1: - Do away bitfields in order to be endian independent drivers/input/misc/Kconfig | 11 ++ drivers/input/misc/Makefile | 1 + driv

[PATCH] gadgetfs: Initialize CHIP to NULL before UDC probe

2014-02-24 Thread Lubomir Rintel
] [] mount_single+0x92/0xc0 [] gadgetfs_mount+0x18/0x20 [gadgetfs] [] mount_fs+0x39/0x1b0 [] ? __alloc_percpu+0x10/0x20 [] vfs_kern_mount+0x63/0xf0 [] do_mount+0x23e/0xac0 [] ? strndup_user+0x4b/0xf0 [] SyS_mount+0x83/0xc0 [] system_call_fastpath+0x16/0x1b Signed-off-by: Lubomir Rintel

[PATCH] ARM: bcm2835: Enable USB_DWC2_HOST in bcm2835_defconfig

2014-09-16 Thread Lubomir Rintel
It broke when host was moved into a separate module, in [47a1685f1]. Signed-off-by: Lubomir Rintel --- arch/arm/configs/bcm2835_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index 0302d29..31cb073 100644

[PATCH RESEND] gadgetfs: Initialize CHIP to NULL before UDC probe

2014-03-27 Thread Lubomir Rintel
] [] mount_single+0x92/0xc0 [] gadgetfs_mount+0x18/0x20 [gadgetfs] [] mount_fs+0x39/0x1b0 [] ? __alloc_percpu+0x10/0x20 [] vfs_kern_mount+0x63/0xf0 [] do_mount+0x23e/0xac0 [] ? strndup_user+0x4b/0xf0 [] SyS_mount+0x83/0xc0 [] system_call_fastpath+0x16/0x1b Signed-off-by: Lubomir Rintel

[PATCH] staging: crystalhd: Do not mix integers and user pointers

2014-06-20 Thread Lubomir Rintel
/crystalhd_lnx.c:229:65: warning: incorrect type in argument 4 (different base types) crystalhd/crystalhd_lnx.c:229:65:expected unsigned long [unsigned] ua crystalhd/crystalhd_lnx.c:229:65:got void [noderef] *ua Done for the Eudyptula challenge. Signed-off-by: Lubomir Rintel --- drivers/staging

Re: [PATCHv7 2/5] mailbox: Introduce framework for mailbox

2014-06-20 Thread Lubomir Rintel
On Thu, 2014-06-12 at 22:31 +0530, Jassi Brar wrote: > Introduce common framework for client/protocol drivers and > controller drivers of Inter-Processor-Communication (IPC). > > Client driver developers should have a look at > include/linux/mailbox_client.h to understand the part of > the API ex

Re: [PATCHv7 2/5] mailbox: Introduce framework for mailbox

2014-06-22 Thread Lubomir Rintel
On Thu, 2014-06-12 at 22:31 +0530, Jassi Brar wrote: > Introduce common framework for client/protocol drivers and > controller drivers of Inter-Processor-Communication (IPC). > > Client driver developers should have a look at > include/linux/mailbox_client.h to understand the part of > the API ex

Re: [PATCHv7 0/5] Common Mailbox Framework

2014-06-30 Thread Lubomir Rintel
Hi Jassi, On Thu, 2014-06-12 at 22:28 +0530, Jassi Brar wrote: > Hello, > Here is the next revision of Mailbox framwork. I'm wondering whether you keep a Git tree with the framework we could keep the Raspberry Pi mailbox driver based on (bcm2835-mbox)? Also, from look at the API it does not se

Re: [PATCH] [media] usbtv: fix leak at failure path in usbtv_probe()

2014-05-26 Thread Lubomir Rintel
On Sat, 2014-05-24 at 00:47 +0400, Alexey Khoroshilov wrote: > Error handling code in usbtv_probe() misses usb_put_dev(). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Acked-by: Lubomir Rintel Thank you! Lubo > --

[PATCH] [media] usbtv: Add support for PAL video source.

2013-10-21 Thread Lubomir Rintel
From: Georg Kaindl Signed-off-by: Georg Kaindl Tested-by: Lubomir Rintel --- Hi, this is a patch sent to me by Georg Kaindl, who uses it with ambi-tv [1]. It looks fine to me and works well, please review and eventually pull it into the media tree. [1] https://github.com/gkaindl/ambi-tv

[PATCH] jbd: Lower severity of aborted journal from EMERG to CRIT

2013-11-15 Thread Lubomir Rintel
, often causing unnecessary noise. Signed-off-by: Lubomir Rintel --- fs/jbd/journal.c |2 +- fs/jbd2/journal.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 2d04f9a..9dbc1b6 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd

[RESEND PATCH] drm/radeon: Don't limit fb console on 32M cards to 8 bpp

2013-11-15 Thread Lubomir Rintel
sole would matter. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/radeon/radeon_fb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 665ced3..cef3bc7 100644 --- a/drivers/gpu/drm/radeon/radeon_

[PATCH] docs: Update FireWire debugging documentation

2013-12-22 Thread Lubomir Rintel
The old firewire stack is long dead now and a new version firescope has been released with support for current kernels. Cc: Rob Landley Cc: Justin P. Mattock Cc: Bernhard Kaindl Signed-off-by: Lubomir Rintel --- Documentation/debugging-via-ohci1394.txt | 24

[PATCH] ohci: Turn remote DMA support into a module parameter

2013-12-22 Thread Lubomir Rintel
This makes it possible to debug kernel over FireWire without the need to recompile it. Cc: Stefan Richter Cc: Dave Hansen Signed-off-by: Lubomir Rintel --- Documentation/debugging-via-ohci1394.txt | 4 +--- drivers/firewire/ohci.c | 19 +++ lib/Kconfig.debug

[RESEND PATCH] saa7146: Create a device name before it's used

2014-10-02 Thread Lubomir Rintel
request_irq() uses it, tries to create a procfs file with an empty name otherwise. Link: https://bugzilla.kernel.org/show_bug.cgi?id=83771 Signed-off-by: Lubomir Rintel --- drivers/media/common/saa7146/saa7146_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

Re: [PATCH] ipv6: notify userspace when we added or changed an ipv6 token

2014-10-26 Thread Lubomir Rintel
On Mon, 2014-10-13 at 11:46 +0200, Daniel Borkmann wrote: > On 10/10/2014 04:08 PM, Lubomir Rintel wrote: > > NetworkManager might want to know that it changed when the router > > advertisement > > arrives. > > > > Signed-off-by: Lubomir Rintel > > C

[PATCH] kdbus: create /sys/fs/kdbus with sysfs_create_mount_point()

2015-08-14 Thread Lubomir Rintel
Since 0cbee99269 user-namespace pull, if a kdbusfs is mounted on a location that's not created with sysfs_create_mount_point the user namespaces are not allowed to mount their sysfs instances. Signed-off-by: Lubomir Rintel --- Applies on top of char-misc/kdbus a36324913. ipc/kdbus/main.c

Re: [PATCH v2 1/2] ARM: bcm2835: dt: Add the ethernet to the device trees

2016-04-28 Thread Lubomir Rintel
On Thu, 2016-04-28 at 18:26 +0200, Stefan Wahren wrote: > Hi Olivier > > Am 28.04.2016 um 14:52 schrieb Olivier Blin: > > > > Stephen Warren writes: > > > > > > > > On 02/04/2016 12:36 AM, Lubomir Rintel wrote: > > > > > >

[PATCH] net/smscx5xx: use the device tree for mac address

2016-04-29 Thread Lubomir Rintel
from Arnd, reworded the message and comments a bit] Tested-by: Lubomir Rintel Signed-off-by: Arnd Bergmann Signed-off-by: Lubomir Rintel --- Changes since v2: - Prefer DT address to EEPROM address. No practical difference since the devices are not supposed to have both, but aligned with

[PATCH] ipv6: notify userspace when we added or changed an ipv6 token

2014-10-10 Thread Lubomir Rintel
NetworkManager might want to know that it changed when the router advertisement arrives. Signed-off-by: Lubomir Rintel Cc: Hannes Frederic Sowa Cc: Daniel Borkmann --- net/ipv6/addrconf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index

Re: [PATCH] ipv6: expose RFC4191 route preference via rtnetlink

2015-03-10 Thread Lubomir Rintel
On Tue, 2015-03-03 at 16:17 +0100, Jiri Pirko wrote: > Tue, Mar 03, 2015 at 11:01:52AM CET, lkund...@v3.sk wrote: > >This makes it possible to retain the route preference when RAs are handled in > >userspace. > > > >Signed-off-by: Lubomir Rintel > >--- > &

[PATCH v2] ipv6: expose RFC4191 route preference via rtnetlink

2015-03-11 Thread Lubomir Rintel
This makes it possible to retain the route preference when RAs are handled in userspace. Signed-off-by: Lubomir Rintel --- Changes since v1: - In case an invalid value is specified treat it as ICMPV6_ROUTER_PREF_MEDIUM include/uapi/linux/rtnetlink.h | 1 + net/ipv6/route.c

[PATCH] ipv6: expose RFC4191 route preference via rtnetlink

2015-03-03 Thread Lubomir Rintel
This makes it possible to retain the route preference when RAs are handled in userspace. Signed-off-by: Lubomir Rintel --- include/uapi/linux/rtnetlink.h | 1 + net/ipv6/route.c | 16 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/include/uapi

[PATCH] libertas_tf: fix signal reporting

2019-02-10 Thread Lubomir Rintel
ut" output with colors, bars and joy. Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas_tf/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/main.c b/drivers/net/wireless/marvell/libertas_tf/main.c ind

[PATCH] libertas_tf: lower the debug level of command trace

2019-02-10 Thread Lubomir Rintel
Logging each and every command response is way too much for INFO level. Silence this, unless CONFIG_LIBERTAS_THINFIRM_DEBUG has been enabled. Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas_tf/cmd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH] libertas_tf: don't set URB_ZERO_PACKET on IN USB transfer

2019-02-10 Thread Lubomir Rintel
er.kernel.org Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas_tf/if_usb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/if_usb.c b/drivers/net/wireless/marvell/libertas_tf/if_usb.c index 789337ea676a..6ede6168bd85 100644 --- a/

[PATCH] libertas_tf: move the banner to a more appropriate place

2019-02-10 Thread Lubomir Rintel
Also, turn it to a dev_info() to make checkpatch.pl happy. Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas_tf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/main.c b/drivers/net/wireless/marvell

[PATCH 2/3] libertas_tf: don't defer firmware loading until start()

2019-02-10 Thread Lubomir Rintel
might be a firmware bug. Disable the radio as soon as possible. Signed-off-by: Lubomir Rintel --- .../net/wireless/marvell/libertas_tf/if_usb.c | 24 +-- .../marvell/libertas_tf/libertas_tf.h | 5 +-- .../net/wireless/marvell/libertas_tf/main.c | 41 +++ 3

[PATCH 0/3] libertas_tf: fix setting the hardware address

2019-02-10 Thread Lubomir Rintel
Hi, this short patchset addresses a problem with libertas_tf driver, where the driver registers the interface without having the MAC address set, only setting it when the interface is brought up. That is generally too late, and it confuses NetworkManager. Some restructuring is needed first, done

[PATCH 1/3] libertas_tf: move hardware callbacks to a separate structure

2019-02-10 Thread Lubomir Rintel
We'll need to talk to the firmware to get a hardware address before device is registered with ieee80211 subsystem at the end of lbtf_add_card(). Hooking the callbacks after that is too late. Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas_tf/cmd.c | 2 +- ..

[PATCH 3/3] libertas_tf: get the MAC address before registering the device

2019-02-10 Thread Lubomir Rintel
The start() callback is too late for this: NetworkManager would already have seen the hardware, thinking 00:00:00:00:00:00 is its permanent address. Signed-off-by: Lubomir Rintel --- .../net/wireless/marvell/libertas_tf/main.c | 57 --- 1 file changed, 11 insertions(+), 46

[PATCH 2/2] clk: mmp2: separate LCDC peripheral clk form the display clock

2019-02-11 Thread Lubomir Rintel
clock for generating the pixel clock: the second AXI clock (fixed in this commit too), the HDMI PLL, or the AXI bus clock. They should really be controlled independently. Link: https://lists.freedesktop.org/archives/dri-devel/2019-January/203975.html Signed-off-by: Lubomir Rintel --- drivers/cl

[PATCH 1/2] dt-bindings: marvell,mmp2: Add clock id for the LCDC clock

2019-02-11 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- 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 index 228a5e234af0..e785c6eb3561 100644 --- a/include/dt-bindings/clock/marvell,mm

Re: [PATCH v5 2/7] x86, olpc: Use a correct version when making up a battery node

2019-02-11 Thread Lubomir Rintel
Hi Sebastian, perhaps the message slipped through the cracks? I'm happy to do whatever is needed to get the patch set into 5.1, but it seems I need some help and clarifications. Thank you, Lubo On Thu, 2019-01-31 at 13:26 +0100, Lubomir Rintel wrote: > Hi, > > On Wed, 2019-01-23

Re: [PATCH v5 0/10] Add support for OLPC XO 1.75 Embedded Controller

2019-02-11 Thread Lubomir Rintel
On Thu, 2019-01-10 at 18:58 +0100, Lubomir Rintel wrote: > Hello! > > This is a fifth spin of the patch set that adds support for the Embedded > Controller on an OLPC XO 1.75 machine. > > It notably removes the patches that adjust the battery driver -- those were >

[PATCH] libertas: use mesh_wdev->ssid instead of priv->mesh_ssid

2019-09-07 Thread Lubomir Rintel
operation Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas/dev.h | 2 -- drivers/net/wireless/marvell/libertas/mesh.c | 31 +--- drivers/net/wireless/marvell/libertas/mesh.h | 3 +- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/drivers/net/

[PATCH v3 03/16] dt-bindings: arm: mrvl: Document MMP3 compatible string

2019-08-30 Thread Lubomir Rintel
Marvel MMP3 is a successor to MMP2, containing similar peripherals with two PJ4B cores. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - s/MMP3 SoC/MMP3 based boards/, for consistency with MMP2 - Rob's review Changes since v1: - Rebased on top of mrv

[PATCH v3 04/16] dt-bindings: mrvl,intc: Add a MMP3 interrupt controller

2019-08-30 Thread Lubomir Rintel
Similar to MMP2 one, but has an extra range for the other core. The muxes stay the same. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Add Rob's Reviewed-by tag Changes since v1: - Reformat the compatible property documentation to higlight the

[PATCH v3 15/16] phy: phy-mmp3-usb: add a new driver

2019-08-30 Thread Lubomir Rintel
This is the USB2 PHY as found on the Marvell MMP3 SoC. Based on Marvell GPL release. While at that, also add a MAINTAINERS entry including the other MMP PHY driver. Signed-off-by: Lubomir Rintel --- MAINTAINERS| 7 + drivers/phy/marvell/Kconfig| 11

[PATCH v3 02/16] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

2019-08-30 Thread Lubomir Rintel
Convert Marvell MMP SoC bindings to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v2: - Add mrvl,pxa910 - s/MMP2 Brownstone Board/MMP2 based boards/ Changes since v1: - Added this patch .../devicetree/bindings/arm/mrvl/mrvl.txt | 14

[PATCH v3 08/16] ARM: mmp: map the PGU as well

2019-08-30 Thread Lubomir Rintel
The MMP2 and later includes a system control unit in this area. We'll need that to initialize the secondary core on MMP3. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/addr-map.h | 7 +++ arch/arm/mach-mmp/common.c | 15 +++ arch/arm/mach-mmp/common.h | 1 + arc

[PATCH v3 07/16] ARM: mmp: don't select CACHE_TAUROS2 on all ARCH_MMP

2019-08-30 Thread Lubomir Rintel
MMP3 has a PJ4B with a Tauros 3 cache controller that uses CACHE_L2X0 instead, while CACHE_TAUROS2 is present on PJ4 and PJ1 (Mohawk) based platforms only. Signed-off-by: Lubomir Rintel --- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm

[PATCH v3 16/16] ARM: dts: mmp3: Add MMP3 SoC dts file

2019-08-30 Thread Lubomir Rintel
Describes most of the hardware found on Marvell MMP3, aka PXA2128, aka Armada 620. Missing bits are the LCD controller, HSIC controllers, Audio and GPU. Will be completed once bindings and drivers settle. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3.dtsi | 534

[PATCH v3 00/16] Initial support for Marvell MMP3 SoC

2019-08-30 Thread Lubomir Rintel
Hi, this is the third spin of a patch set that adds support for the Marvell MMP3 processor, that I'd eventually love to see land in the Arm SoC tree. MMP3 is used in OLPC XO-4 laptops, Panasonic Toughpad FZ-A1 tablet and Dell Wyse 3020/Tx0D thin clients. Compared to v2, there's a handful of fix

[PATCH v3 09/16] ARM: mmp: DT: convert timer driver to use TIMER_OF_DECLARE

2019-08-30 Thread Lubomir Rintel
This makes things just a tiny bit simpler. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/mmp-dt.c | 5 ++--- arch/arm/mach-mmp/mmp2-dt.c | 5 ++--- arch/arm/mach-mmp/time.c| 38 +++-- 3 files changed, 15 insertions(+), 33 deletions(-) diff --git a

[PATCH v3 13/16] ARM: mmp: move cputype.h to include/linux/soc/

2019-08-30 Thread Lubomir Rintel
Let's move cputype.h away from mach-mmp/ so that the drivers outside that directory are able to tell the precise silicon revision. The MMP3 USB OTG PHY driver needs this. Signed-off-by: Lubomir Rintel --- MAINTAINERS| 1 + arch/arm/mach-mmp/com

[PATCH v3 01/16] dt-bindings: arm: cpu: Add Marvell MMP3 SMP enable method

2019-08-30 Thread Lubomir Rintel
Add the enable method for the second PJ4B core of the Marvell MMP3 SoC. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v1: - Add Rob's Reviewed-by tag Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Document

[PATCH v3 05/16] dt-bindings: phy-mmp3-usb: Add bindings

2019-08-30 Thread Lubomir Rintel
This is the PHY chip for USB OTG on MMP3 platform. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Add Rob's Reviewed-by tag Changes since v1: - s/usbphy@/usb-phy@/ - Dropped a reference to Documentation/phy.txt .../devicetree/bindings/phy/phy-mmp3-us

[PATCH v3 06/16] ARM: l2c: add definition for FWA in PL310 aux register

2019-08-30 Thread Lubomir Rintel
The PL310 also has a "Force write allocate" bits in the Auxiliary Control Register. Signed-off-by: Lubomir Rintel --- arch/arm/include/asm/hardware/cache-l2x0.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/hardware/cache-l2x0.h b/arch/arm/include/as

[PATCH v3 11/16] ARM: mmp: add support for MMP3 SoC

2019-08-30 Thread Lubomir Rintel
controller * More interrupt muxes Hard to tell what else is different, because documentation is not available. Signed-off-by: Lubomir Rintel --- Changes since v1: - Add CONFIG_COMMON_CLK_MMP2 to streamline the Makefile rule a tiny bit. arch/arm/mach-mmp/Kconfig | 22 -- arch/arm

[PATCH v3 12/16] ARM: mmp: add SMP support

2019-08-30 Thread Lubomir Rintel
Used to bring up the second core on MMP3. Signed-off-by: Lubomir Rintel --- Changes since v2: - Wrap secondary_startup with __pa_symbol(), instead of SW_BRANCH_VIRT_ADDR. Changes since v1: - Wrap SW_BRANCH_VIRT_ADDR with __pa_symbol() arch/arm/mach-mmp/Makefile | 3 +++ arch/arm/mach-mmp

[PATCH v3 14/16] ARM: mmp: remove MMP3 USB PHY registers from regs-usb.h

2019-08-30 Thread Lubomir Rintel
Nothing in mach-mmp/ uses them and they belong to the PHY driver. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/regs-usb.h | 94 1 file changed, 94 deletions(-) diff --git a/arch/arm/mach-mmp/regs-usb.h b/arch/arm/mach-mmp/regs-usb.h index

[PATCH v3 10/16] ARM: mmp: define MMP_CHIPID by the means of CIU_REG()

2019-08-30 Thread Lubomir Rintel
A rather trivial cosmetic improvement. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/common.c b/arch/arm/mach-mmp/common.c index 2ee08c78e8bc9..24c689a01ecb7 100644 --- a/arch/arm/mach-mmp

Re: [PATCH 02/19] dt-bindings: arm: mrvl: Document MMP3 compatible string

2019-08-22 Thread Lubomir Rintel
On Wed, 2019-08-21 at 16:03 -0500, Rob Herring wrote: > On Fri, Aug 09, 2019 at 11:31:41AM +0200, Lubomir Rintel wrote: > > Marvel MMP3 is a successor to MMP2, containing similar peripherals with two > > PJ4B cores. > > > > Signed-off-by: Lubomir Rintel > >

[PATCH v2 02/20] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

2019-08-22 Thread Lubomir Rintel
Convert Marvell MMP SoC bindings to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v1: - Added this patch .../devicetree/bindings/arm/mrvl/mrvl.txt | 14 - .../devicetree/bindings/arm/mrvl/mrvl.yaml| 31 +++ 2 files changed

[PATCH v2 04/20] dt-bindings: mrvl,intc: Add a MMP3 interrupt controller

2019-08-22 Thread Lubomir Rintel
Similar to MMP2 one, but has an extra range for the other core. The muxes stay the same. Signed-off-by: Lubomir Rintel --- Changes since v1: - Reformat the compatible property documentation to higlight the valid combinations - Drop an unneeded mmp3-intc example .../bindings/interrupt

[PATCH v2 10/20] ARM: l2c: add definition for FWA in PL310 aux register

2019-08-22 Thread Lubomir Rintel
The PL310 also has a "Force write allocate" bits in the Auxiliary Control Register. Signed-off-by: Lubomir Rintel --- arch/arm/include/asm/hardware/cache-l2x0.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/hardware/cache-l2x0.h b/arch/arm/include/as

[PATCH v2 01/20] dt-bindings: arm: cpu: Add Marvell MMP3 SMP enable method

2019-08-22 Thread Lubomir Rintel
Add the enable method for the second PJ4B core of the Marvell MMP3 SoC. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v1: - Add Rob's Reviewed-by tag Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Document

[PATCH v2 05/20] dt-bindings: phy-mmp3-usb: Add bindings

2019-08-22 Thread Lubomir Rintel
This is the PHY chip for USB OTG on MMP3 platform. Signed-off-by: Lubomir Rintel --- Changes since v1: - s/usbphy@/usb-phy@/ - Dropped a reference to Documentation/phy.txt .../devicetree/bindings/phy/phy-mmp3-usb.txt| 13 + 1 file changed, 13 insertions(+) create mode

[PATCH v2 07/20] irqchip/mmp: add missing chained_irq_{enter,exit}()

2019-08-22 Thread Lubomir Rintel
The lack of chained_irq_exit() leaves the muxed interrupt masked on MMP3. For reasons unknown this is not a problem on MMP2. Signed-off-by: Lubomir Rintel --- Changes since v1: - Use irq_desc_get_chip() instead of irq_get_chip() drivers/irqchip/irq-mmp.c | 9 - 1 file changed, 8

[PATCH v2 12/20] ARM: mmp: map the PGU as well

2019-08-22 Thread Lubomir Rintel
The MMP2 and later includes a system control unit in this area. We'll need that to initialize the secondary core on MMP3. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/addr-map.h | 7 +++ arch/arm/mach-mmp/common.c | 15 +++ arch/arm/mach-mmp/common.h | 1 + arc

[PATCH v2 09/20] irqchip/mmp: coexist with GIC root IRQ controller

2019-08-22 Thread Lubomir Rintel
On MMP3, the GIC can be set as a root IRQ interrupt controller. If the device tree indicated that GIC is enabled, avoid hooking up mmp2_handle_irq(). The interrupt muxes are still being used. Signed-off-by: Lubomir Rintel --- drivers/irqchip/irq-mmp.c | 7 ++- 1 file changed, 6 insertions

[PATCH v2 13/20] ARM: mmp: DT: convert timer driver to use TIMER_OF_DECLARE

2019-08-22 Thread Lubomir Rintel
This makes things just a tiny bit simpler. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/mmp-dt.c | 5 ++--- arch/arm/mach-mmp/mmp2-dt.c | 5 ++--- arch/arm/mach-mmp/time.c| 38 +++-- 3 files changed, 15 insertions(+), 33 deletions(-) diff --git a

[PATCH v2 00/20] Initial support for Marvell MMP3 SoC

2019-08-22 Thread Lubomir Rintel
Hi, this is a second spin of a patch set that adds support for the Marvell MMP3 processor. MMP3 is used in OLPC XO-4 laptops, Panasonic Toughpad FZ-A1 tablet and Dell Wyse 3020 Tx0D thin clients. Compared to v1, there's a handful of fixes in response to reviews. Patch 02/20 is new. Details in i

[PATCH v2 15/20] ARM: mmp: add support for MMP3 SoC

2019-08-22 Thread Lubomir Rintel
controller * More interrupt muxes Hard to tell what else is different, because documentation is not available. Signed-off-by: Lubomir Rintel --- Changes since v1: - Add CONFIG_COMMON_CLK_MMP2 to streamline the Makefile rule a tiny bit. arch/arm/mach-mmp/Kconfig | 22 -- arch/arm

[PATCH v2 20/20] ARM: dts: mmp3: Add MMP3 SoC dts file

2019-08-22 Thread Lubomir Rintel
Describes most of the hardware found on Marvell MMP3, aka PXA2128, aka Armada 620. Missing bits are the LCD controller, HSIC controllers, Audio and GPU. Will be completed once bindings and drivers settle. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3.dtsi | 534

[PATCH v2 06/20] irqchip/mmp: do not use of_address_to_resource() to get mux regs

2019-08-22 Thread Lubomir Rintel
of_address_to_resource() won't work. We should treat the values as mere integers as opposed to bus addresses. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v4 of "MMP platform fixes" set: - Add a comment, as suggested by Pavel Changes since v1: - Fix up

[PATCH v2 19/20] phy: phy-mmp3-usb: add a new driver

2019-08-22 Thread Lubomir Rintel
This is the USB2 PHY as found on the Marvell MMP3 SoC. Based on Marvell GPL release. While at that, also add a MAINTAINERS entry including the other MMP PHY driver. Signed-off-by: Lubomir Rintel --- MAINTAINERS| 7 + drivers/phy/marvell/Kconfig| 11

[PATCH v2 14/20] ARM: mmp: define MMP_CHIPID by the means of CIU_REG()

2019-08-22 Thread Lubomir Rintel
A rather trivial cosmetic improvement. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/common.c b/arch/arm/mach-mmp/common.c index 2ee08c78e8bc9..24c689a01ecb7 100644 --- a/arch/arm/mach-mmp

[PATCH v2 18/20] ARM: mmp: remove MMP3 USB PHY registers from regs-usb.h

2019-08-22 Thread Lubomir Rintel
Nothing in mach-mmp/ uses them and they belong to the PHY driver. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/regs-usb.h | 94 1 file changed, 94 deletions(-) diff --git a/arch/arm/mach-mmp/regs-usb.h b/arch/arm/mach-mmp/regs-usb.h index

[PATCH] clk: remove extra ---help--- tags in Kconfig

2019-08-22 Thread Lubomir Rintel
Sometimes an extraneous "---help---" follows "help". That is probably a copy&paste error stemming from their inconsistent use. Remove those. Signed-off-by: Lubomir Rintel --- drivers/clk/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/c

[PATCH v2 08/20] irqchip/mmp: mask off interrupts from other cores

2019-08-22 Thread Lubomir Rintel
achine via compatible field of "marvell,mmp3-intc". [lkund...@v3.sk: Changed "mrvl,mmp3-intc" compatible strings to "marvell,mmp3-intc". Tidied up the subject line a bit.] Signed-off-by: Andres Salomon Signed-off-by: Lubomir Rintel -- Changes since v1: - Moved mmp3-sp

[PATCH v2 17/20] ARM: mmp: move cputype.h to include/linux/soc/

2019-08-22 Thread Lubomir Rintel
Let's move cputype.h away from mach-mmp/ so that the drivers outside that directory are able to tell the precise silicon revision. The MMP3 USB OTG PHY driver needs this. Signed-off-by: Lubomir Rintel --- MAINTAINERS| 1 + arch/arm/mach-mmp/com

[PATCH v2 03/20] dt-bindings: arm: mrvl: Document MMP3 compatible string

2019-08-22 Thread Lubomir Rintel
Marvel MMP3 is a successor to MMP2, containing similar peripherals with two PJ4B cores. Signed-off-by: Lubomir Rintel --- Changes since v1: - Rebased on top of mrvl.txt->mrvl.yaml conversion Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml | 3 +++ 1 file changed, 3 insertions(+) d

[PATCH v2 16/20] ARM: mmp: add SMP support

2019-08-22 Thread Lubomir Rintel
Used to bring up the second core on MMP3. Signed-off-by: Lubomir Rintel --- Changes since v1: - Wrap SW_BRANCH_VIRT_ADDR with __pa_symbol() arch/arm/mach-mmp/Makefile | 3 +++ arch/arm/mach-mmp/platsmp.c | 33 + 2 files changed, 36 insertions(+) create mode

[PATCH v2 11/20] ARM: mmp: don't select CACHE_TAUROS2 on all ARCH_MMP

2019-08-22 Thread Lubomir Rintel
MMP3 has a PJ4B with a Tauros 3 cache controller that uses CACHE_L2X0 instead, while CACHE_TAUROS2 is present on PJ4 and PJ1 (Mohawk) based platforms only. Signed-off-by: Lubomir Rintel --- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm

Re: [PATCH] clk: tidy up the help tags in Kconfig

2019-08-22 Thread Lubomir Rintel
On Fri, 2019-08-16 at 12:27 -0700, Stephen Boyd wrote: > Quoting Lubomir Rintel (2019-08-16 11:57:16) > > Sometimes an extraneous "---help---" follows "help". That is probably a > > copy&paste error stemming from their inconsistent use. Let's just re

Re: [PATCH 07/19] irqchip/mmp: mask off interrupts from other cores

2019-08-16 Thread Lubomir Rintel
On Fri, 2019-08-09 at 13:18 +0100, Marc Zyngier wrote: > On 09/08/2019 10:31, Lubomir Rintel wrote: > > From: Andres Salomon > > > > On mmp3, there's an extra set of ICU registers (ICU2) that handle > > interrupts on the extra cores. When masking off interr

[PATCH] irqchip/mmp: do not call irq_set_default_host() on DT platforms

2019-08-16 Thread Lubomir Rintel
It's unnecessary. Signed-off-by: Lubomir Rintel --- drivers/irqchip/irq-mmp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c index af9cba4a51c2e..b34d0ccdb1f47 100644 --- a/drivers/irqchip/irq-mmp.c +++ b/drivers/irqchip/irq-

Re: [PATCH 05/19] irqchip/mmp: do not use of_address_to_resource() to get mux regs

2019-08-16 Thread Lubomir Rintel
On Fri, 2019-08-09 at 13:12 +0100, Marc Zyngier wrote: > On 09/08/2019 10:31, Lubomir Rintel wrote: > > The "regs" property of the "mrvl,mmp2-mux-intc" devices are silly. They > > are offsets from intc's base, not addresses on the parent bus. At t

[PATCH] clk: tidy up the help tags in Kconfig

2019-08-16 Thread Lubomir Rintel
Sometimes an extraneous "---help---" follows "help". That is probably a copy&paste error stemming from their inconsistent use. Let's just replace them all with "help", removing the extra ones along the way. Signed-off-by: Lubomi

Re: [PATCH v2 02/20] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

2019-08-27 Thread Lubomir Rintel
On Tue, 2019-08-27 at 06:59 -0500, Rob Herring wrote: > On Thu, Aug 22, 2019 at 4:27 AM Lubomir Rintel wrote: > > Convert Marvell MMP SoC bindings to DT schema format using json-schema. > > > > Signed-off-by: Lubomir Rintel > > > > --- > > C

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

2019-08-28 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- 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

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

2019-08-28 Thread Lubomir Rintel
the Linux 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 Acked-by: Pa

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

2019-08-28 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 Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

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

2019-08-28 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 Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insert

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

2019-08-28 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. I'm wondering if they could be applied to the armsoc tree? Compared to previous submission, the only change is the addition of Acks from Pavel. Lubo

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

2019-08-28 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 Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2

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

2019-08-28 Thread Lubomir Rintel
Supported by the mmp-camera driver. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- 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

[RESEND PATCH] ARM: multi_v7_defconfig: enable MMP2 platform

2019-08-28 Thread Lubomir Rintel
Marvell MMP/PXA/MMP2 platforms seem to be excluded from the defconfig for no good reasons. Enable the DT-based boards and the modules for their peripherals. Signed-off-by: Lubomir Rintel --- arch/arm/configs/multi_v7_defconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git a

[PATCH v4 1/5] dt-bindings: reserved-memory: Add binding for Armada framebuffer

2019-08-28 Thread Lubomir Rintel
This is the binding for memory that is set aside for allocation of Marvell Armada framebuffer objects. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Collected the Reviewed-by tag Changes since v1: - Moved from bindings/display/armada/ - Removed the marvell

[PATCH v4 5/5] dt-bindings: display: armada: Document bus-width property

2019-08-28 Thread Lubomir Rintel
This makes it possible to choose a different pixel format for the endpoint. Modelled after what other LCD controllers use, including marvell,pxa2xx-lcdc and atmel,hlcdc-display-controller and perhaps more. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Collected

Re: [PATCH v2 16/20] ARM: mmp: add SMP support

2019-08-23 Thread Lubomir Rintel
On Thu, 2019-08-22 at 09:36 -0700, Florian Fainelli wrote: > On 8/22/19 2:26 AM, Lubomir Rintel wrote: > > Used to bring up the second core on MMP3. > > > > Signed-off-by: Lubomir Rintel > > > > --- > > Changes since v1: > > - Wrap SW_BRANCH_VIRT_AD

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