[PATCH] USB: serial: option: add D-Link DWM-156/A3

2016-07-24 Thread Lubomir Rintel
-by: Lubomir Rintel <lkund...@v3.sk> Cc: stable <sta...@vger.kernel.org> --- drivers/usb/serial/option.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index d96d423..036687f 100644 --- a/drivers/usb/serial/option.c +++ b/driver

Re: [PATCH RESEND] [media] usbtv: add a new usbid

2017-02-07 Thread Lubomir Rintel
usbtv driver. > > Signed-off-by: Icenowy Zheng <icen...@aosc.xyz> Acked-by: Lubomir Rintel <lkund...@v3.sk> Thanks for resending this. I can't seem to find the original posting in the patchwork and don't see how could it have slipped through the cracks. But then my understanding of how

[PATCH] [media] usbtv: add sharpness control

2017-02-05 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel <lkund...@v3.sk> --- drivers/media/usb/usbtv/usbtv-video.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c index d3b6d3d..8135614 100644 --- a/drivers/media/usb/usbtv

[PATCH] usbtv: add a new usbid

2017-02-23 Thread Lubomir Rintel
From: Icenowy Zheng <icen...@aosc.xyz> A new usbid of UTV007 is found in a newly bought device. The usbid is 1f71:3301. The ID on the chip is: UTV007 A89029.1 1520L18K1 Both video and audio is tested with the modified usbtv driver. Reviewed-by: Lubomir Rintel <lkund...@v3.sk>

[PATCH] char/pcmcia: add scr24x_cs chip card interface driver

2016-10-10 Thread Lubomir Rintel
ndpoints. The driver exchanges the command submissions and responses over a plain read()/write() interface, compatible with legacy OpenCT's pcmcia_block driver. Patches for the newer CCID driver are available: https://github.com/lkundrak/CCID/tree/lr/pcmcia_block Signed-off-by: Lubomir Rintel <lkund...@

[PATCH v2] char/pcmcia: add scr24x_cs chip card interface driver

2016-10-20 Thread Lubomir Rintel
ndpoints. The driver exchanges the command submissions and responses over a plain read()/write() interface, compatible with legacy OpenCT's pcmcia_block driver. Patches for the newer CCID driver are available: https://github.com/lkundrak/CCID/tree/lr/pcmcia_block Signed-off-by: Lubomir Rintel <lkun

[PATCH v3] char/pcmcia: add scr24x_cs chip card interface driver

2016-10-25 Thread Lubomir Rintel
ndpoints. The driver exchanges the command submissions and responses over a plain read()/write() interface, compatible with legacy OpenCT's pcmcia_block driver. Patches for the newer CCID driver are available: https://github.com/lkundrak/CCID/tree/lr/pcmcia_block Signed-off-by: Lubomir Rintel <lkun

Re: [patch] char/pcmcia: add some error checking in scr24x_read()

2016-11-24 Thread Lubomir Rintel
, > char __user *buf, size_t count, >   ret = -EIO; >   goto out; >   } > - read_chunk(dev, CCID_HEADER_SIZE, len); > + ret = read_chunk(dev, CCID_HEADER_SIZE, len); >   if (ret < 0) >   goto out; Acked-by: Lubomir Rintel <lkund...@v3.sk> Thank you, Lubo

Re: [PATCH] scr24x_cs: include linux/io.h

2016-11-16 Thread Lubomir Rintel
24x_cs.c > @@ -27,6 +27,7 @@ >  #include >  #include >  #include > +#include >  #include >   >  #include Acked-by: Lubomir Rintel <lkund...@v3.sk> Thanks

Re: [PATCH] char/pcmcia: add scr24x_cs chip card interface driver

2016-10-16 Thread Lubomir Rintel
Hi Greg, (responses inline) On Mon, 2016-10-10 at 19:33 +0200, Greg Kroah-Hartman wrote: > On Mon, Oct 10, 2016 at 05:58:15PM +0200, Lubomir Rintel wrote: > > > > This implements only the very basic protocol "Mode A", just to make > > the > > device fun

[PATCH] [media] usbtv: add video controls

2016-10-16 Thread Lubomir Rintel
Brightness, Contrast, Hue and Color Saturation are supported. Signed-off-by: Lubomir Rintel <lkund...@v3.sk> --- drivers/media/usb/usbtv/usbtv-video.c | 97 ++- drivers/media/usb/usbtv/usbtv.h | 3 ++ 2 files changed, 99 insertions(+), 1 deletion(-)

Re: [PATCH] char/pcmcia: add scr24x_cs chip card interface driver

2016-10-17 Thread Lubomir Rintel
On Sun, 2016-10-16 at 11:57 +0200, Greg Kroah-Hartman wrote: > On Sun, Oct 16, 2016 at 11:23:36AM +0200, Lubomir Rintel wrote: > > > > Hi Greg, > > > > (responses inline) > > > > On Mon, 2016-10-10 at 19:33 +0200, Greg Kroah-Hartman wrote: > > >

Re: [PATCH] [media] usbtv: add a new usbid

2016-12-05 Thread Lubomir Rintel
btv driver. Thank you. Acked-by: Lubomir Rintel <lkund...@v3.sk> Also, it may make sense to add Tested-by: Icenowy Zheng <icen...@aosc.xyz> > > Signed-off-by: Icenowy Zheng <icen...@aosc.xyz> > --- >  drivers/media/usb/usbtv/usbtv-core.c | 1 + >  1 file changed, 1 inse

Re: [PATCH] [media] usbtv: add a new usbid

2016-12-05 Thread Lubomir Rintel
On Sun, 2016-12-04 at 22:59 +0800, Icenowy Zheng wrote: > > 04.12.2016, 22:00, "Icenowy Zheng" : > > A new usbid of UTV007 is found in a newly bought device. > > > > The usbid is 1f71:3301. > > > > The ID on the chip is: > > UTV007 > > A89029.1 > > 1520L18K1 > > > > Seems

Re: [PATCH] [media] usbtv: add a new usbid

2016-12-05 Thread Lubomir Rintel
On Mon, 2016-12-05 at 23:47 +0800, Icenowy Zheng wrote: > 2016年12月5日 19:49于 Lubomir Rintel <lkund...@v3.sk>写道: > > > > On Sun, 2016-12-04 at 22:59 +0800, Icenowy Zheng wrote:  > > > > > > 04.12.2016, 22:00, "Icenowy Zheng" <icen...@aosc.xyz&

Re: [PATCH] ASoC: dwc: disallow building designware_pcm as a module

2017-04-19 Thread Lubomir Rintel
On Wed, 2017-04-19 at 17:12 +0100, Jose Abreu wrote: > Hi Lubomir, > > > On 18-04-2017 18:15, Mark Brown wrote: > > On Tue, Apr 18, 2017 at 06:13:30PM +0200, Lubomir Rintel wrote: > > > > > I don't think designware_pcm is a separate driver. It

Re: [PATCH] ASoC: dwc: disallow building designware_pcm as a module

2017-04-18 Thread Lubomir Rintel
On Tue, 2017-04-18 at 16:18 +0100, Mark Brown wrote: > On Tue, Apr 18, 2017 at 12:59:54PM +0200, Lubomir Rintel wrote: > > It makes not sense: the whether the PIO PCM extension is used is > > hardcoded to the designware_i2s driver and designware_pcm doesn't > > have any mod

[PATCH] ASoC: dwc: disallow building designware_pcm as a module

2017-04-18 Thread Lubomir Rintel
It makes not sense: the whether the PIO PCM extension is used is hardcoded to the designware_i2s driver and designware_pcm doesn't have any module metadata, causing a kernel taint: [ 44.287000] designware_pcm: module license 'unspecified' taints kernel. Signed-off-by: Lubomir Rintel <lk

Re: [PATCH] mac80211_hwsim: use dyndbg for debug messages

2017-06-28 Thread Lubomir Rintel
On Wed, 2017-06-28 at 17:02 +0200, Johannes Berg wrote: > On Wed, 2017-06-28 at 15:17 +0200, Lubomir Rintel wrote: > > The mac80211_hwsim doesn't offer a way to disable the debugging > > output. > > Unfortunately, it's pretty chatty, dumping a lot of stuff into the > &g

[PATCH] mac80211_hwsim: use dyndbg for debug messages

2017-06-28 Thread Lubomir Rintel
), at runtime (2) or persisted in modprobe.conf (3). (1) modprobe mac80211_hwsim dyndbg=+p (2) echo "module mac80211_hwsim +p" >/sys/kernel/debug/dynamic_debug/control (3) echo "options mac80211_hwsim dyndbg=+p" >>/etc/modprobe.d/my.conf Signed-off-by: L

[PATCH v2] mac80211_hwsim: use dyndbg for debug messages

2017-09-18 Thread Lubomir Rintel
), at runtime (2) or persisted in modprobe.conf (3). (1) modprobe mac80211_hwsim dyndbg=+p (2) echo "module mac80211_hwsim +p" >/sys/kernel/debug/dynamic_debug/control (3) echo "options mac80211_hwsim dyndbg=+p" >>/etc/modprobe.d/my.conf Signed-off-by: L

A patch slipped through the cracks?

2017-09-20 Thread Lubomir Rintel
Hi, we're trying to get this reasonably trivial patch [1] applied for more than a year and four attempts now. (I'm not including it in this message so that this message won't be ignored for the same reason the submissions were, whatever they are.) [1] https://patchwork.linuxtv.org/patch/40862/

[PATCH] selinux: check CAP_SETFCAP for a particular inode & mapped user

2017-10-05 Thread Lubomir Rintel
This allows setting "security.capability" xattr by a user that has CAP_SETFCAP in an userns with SELinux. Namespaced capabilities are supported, as of commit 8db6c34f1dbc ("Introduce v3 namespaced file capabilities"). Signed-off-by: Lubomir Rintel <lkund...@v3.sk> --

Re: [PATCH] selinux: check CAP_SETFCAP for a particular inode & mapped user

2017-10-09 Thread Lubomir Rintel
On Thu, 2017-10-05 at 01:48 -0500, Serge E. Hallyn wrote: > On Thu, Oct 05, 2017 at 08:16:11AM +0200, Lubomir Rintel wrote: > > This allows setting "security.capability" xattr by a user that has > > CAP_SETFCAP in an userns with SELinux. Namespaced capabilities are &g

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] 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] x86: czc-tablet: add driver that fixes the buttons on CZC P10T tablet

2018-07-29 Thread Lubomir Rintel
Hi. Many thanks for the response! Some replies inline. On Sun, 2018-07-22 at 22:42 +0300, Andy Shevchenko wrote: > On Sun, Jul 22, 2018 at 1:36 AM, Lubomir Rintel > wrote: > > This driver switches the P10T tablet to "Android" mode, where the > > Home > > but

[PATCH 04/14] ARM: mmp: add a pxa-usb-phy device

2018-08-22 Thread Lubomir Rintel
This is to replace the USB PHY initialization code (pxa_usb_phy_init(), pxa_usb_phy_deinit()) with a proper PHY driver. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/devices.c | 21 + arch/arm/mach-mmp/pxa910.h | 1 + 2 files changed, 22 insertions(+) diff --git

[PATCH] x86: czc-tablet: add driver that fixes the buttons on CZC P10T tablet

2018-07-21 Thread Lubomir Rintel
plementary hwdb patch with the scan code mapping: https://github.com/systemd/systemd/commit/40a3078b.patch Signed-off-by: Lubomir Rintel --- MAINTAINERS | 6 +++ drivers/platform/x86/Kconfig | 8 drivers/platform/x86/Makefile | 1 + drivers/platform/x86/czc-tab

[PATCH] clk: mmp2: fix the clock id for sdh2_clk and sdh3_clk

2018-09-10 Thread Lubomir Rintel
A typo that makes it impossible to get the correct clocks for MMP2_CLK_SDH2 and MMP2_CLK_SDH3. 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/clk-of-mmp2.c

[PATCH] DT: marvell,mmp2: add MMC controllers

2018-09-10 Thread Lubomir Rintel
There's apparently four of them on a MMP2. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 40 + 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 766bbb8495b6..51d4a2d70db9 100644

[PATCH 2/5] PCI: provide pci_match_id() with CONFIG_PCI=n

2018-09-10 Thread Lubomir Rintel
This spares drivers from #ifdef-ing on CONFIG_PCI if the driver can be optionally built on machines without PCI bus. Consistent with acpi_driver_match_device() and similar. Signed-off-by: Lubomir Rintel --- include/linux/pci.h | 4 1 file changed, 4 insertions(+) diff --git a/include

[PATCH 0/5] Make SPI work on DT MMP2

2018-09-10 Thread Lubomir Rintel
This makes SPI work on an OPLC 1.75 that is a DT MMP2 platform.

[PATCH] irqchip/mmp: use cpu_is_pj4() instead of CONFIG_CPU_MMP2

2018-09-10 Thread Lubomir Rintel
CONFIG_CPU_MMP2 is not there on multiplatform kernels with MACH_MMP2_DT. The MMP2 platform uses the PJ4 CPU. Signed-off-by: Lubomir Rintel --- drivers/irqchip/irq-mmp.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip

[PATCH] ARM: mmp/mmp2: use cpu_is_pj4() instead of cpu_is_mmp2()

2018-09-10 Thread Lubomir Rintel
at rate that's 1/100 slower or so. Perhaps the other cpu_is_mmp2() uses are more benign, but still useless. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/cputype.h | 9 - arch/arm/mach-mmp/mmp2.c| 2 +- arch/arm/mach-mmp/pm-mmp2.c | 2 +- arch/arm/mach-mmp/time.c| 2 +- 4 files

[PATCH] pxa168fb: prepare the clock

2018-09-10 Thread Lubomir Rintel
0013 ---[ end trace c0af40f9e2ed7cb4 ]--- Signed-off-by: Lubomir Rintel --- drivers/video/fbdev/pxa168fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168fb.c index def3a501acd6

[PATCH 1/8] dt-bindings: olpc,ap-sp: add clock

2018-09-10 Thread Lubomir Rintel
The clock is necessary for the device operation, hence it's required. Its name, "sp", stands for "Security Processor". It is one of several names that are used for the processor that serves as the keyboard controller on an OLPC and is consistent with the node name. Signed-of

[PATCH 7/8] Input: olpc_apsp: enable the SP clock

2018-09-10 Thread Lubomir Rintel
Without the clock, the keyboard controller won't operate. Tested on an OLPC XO 1.75. Signed-off-by: Lubomir Rintel --- drivers/input/serio/olpc_apsp.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/input/serio/olpc_apsp.c b/drivers/input/serio/olpc_apsp.c index

[PATCH 6/8] Input: olpc_apsp: check FIFO status on open(), not probe()

2018-09-10 Thread Lubomir Rintel
Let's defer the FIFO status checking until open(). When we'll get a clk handle, this will allow us to defer clock enablement until the device is actually used. Signed-off-by: Lubomir Rintel --- drivers/input/serio/olpc_apsp.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions

[PATCH 2/8] dt-bindings: olpc,ap-sp: add GPIO lines

2018-09-10 Thread Lubomir Rintel
compatible with "ps2-gpio". I'm not adding a compatible property, because ps2-gpio would use a different interrupt, so that we'd need to name it. And I haven't actually tried it. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/serio/olpc,ap-sp.txt | 6 ++ 1 file

[PATCH 3/5] spi: pxa2xx: use an enum for type

2018-09-10 Thread Lubomir Rintel
That seems to be the correct type. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 6 +++--- include/linux/pxa2xx_ssp.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 14f4ea59caff..f674541675bb

[PATCH 5/5] DT: marvell,mmp2: add SSP1 and SSP3

2018-09-10 Thread Lubomir Rintel
There seem to be SSP2, SSP4 and perhaps SSP5 too, but Marvel keeps their base addresses secret. The SSP1 and SSP3 addresses were taken from OLPC 1.75, OpenFirmware and kernel respectively. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 18 ++ 1 file changed, 18

[PATCH 4/5] spi: pxa2xx: add devicetree support

2018-09-10 Thread Lubomir Rintel
The MMP2 platform, that uses device tree, has this controller. Let's add devicetree alongside platform & PCI. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 73 +++--- include/linux/pxa2xx_ssp.h | 1 + 2 files changed, 45 insertions(+)

[PATCH 1/5] dt-bindings: spi/spi-pxa2xx: add PXA2xx SSP SPI Controller

2018-09-10 Thread Lubomir Rintel
This is the SPI controller found on Marvel MMP2 and perhaps more platforms. Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/spi/spi-pxa2xx.txt| 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-pxa2xx.txt diff

[PATCH] dt-bindings: mrvl,intc: fix a trivial typo

2018-09-10 Thread Lubomir Rintel
s/whold/whole/. Jiri Kosina Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/interrupt-controller/mrvl,intc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mrvl,intc.txt b/Documentation/devicetree

[PATCH] mac80211: a trivial open80211s web site URL fix

2018-09-10 Thread Lubomir Rintel
Jiri Kosina Signed-off-by: Lubomir Rintel --- net/mac80211/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig index 76e30f4797fb..7dc77fc91891 100644 --- a/net/mac80211/Kconfig +++ b/net/mac80211/Kconfig @@ -79,7 +79,7

[PATCH] ARM: dts: mmp2: trivial whitespace fix

2018-09-10 Thread Lubomir Rintel
A missing space before a curly brace. Jiri Kosina 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 766bbb8495b6..4161d4701e4c 100644 --- a/arch/arm

[PATCH] dt-bindings: marvell,mmp2: fix a typo in bindings doc

2018-09-10 Thread Lubomir Rintel
A trivial one, but it's annoying that copy & paste of the link doesn't work. Jiri Kosina Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/clock/marvell,mmp2.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/c

[PATCH] pxa168fb: trivial typo fix

2018-09-10 Thread Lubomir Rintel
A missing space in an error message. Jiri Kosina Signed-off-by: Lubomir Rintel --- drivers/video/fbdev/pxa168fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168fb.c index def3a501acd6..e795d1849e70 100644

[PATCH 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-09-10 Thread Lubomir Rintel
This makes keyboard/touchpad work on a DT MMP2 platform.

[PATCH 8/8] Input: olpc_apsp: allocate the GPIOs used

2018-09-10 Thread Lubomir Rintel
Take the GPIO lines are used by the SP. The driver doesn't touch the lines -- this is done to disallow anything else from fiddling with them because that would confuse the SP firmware. Also, the lines are now nicely visible in /sys/kernel/debug/gpio. Signed-off-by: Lubomir Rintel --- drivers

[PATCH 5/8] Input: olpc_apsp: depend on CONFIG_OF

2018-09-10 Thread Lubomir Rintel
This is a device-tree enabled driver. Moreover CONFIG_OLPC is specific to the x86 platform code, while the driver is for an ARM-based laptop. Signed-off-by: Lubomir Rintel --- drivers/input/serio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio

[PATCH 3/8] dt-bindings: marvell,mmp2: Add clock id for the SP clock

2018-09-10 Thread Lubomir Rintel
This is the clock for the "security processor" core. 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 22

[PATCH 4/8] clk: mmp2: add SP clock

2018-09-10 Thread Lubomir Rintel
as a keyboard controller: http://dev.laptop.org/git/users/wmb/cforth/tree/src/app/arm-xo-1.75/ps2.fth The register address was obtained from the OLPC kernel, since the datasheet seems to be the Marvell's most important business secret. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 4

[PATCH 3/4] ARM: mmp2: initialize clocks before the timer

2018-09-10 Thread Lubomir Rintel
The timer shall enable its clock. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/mmp2-dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/mmp2-dt.c b/arch/arm/mach-mmp/mmp2-dt.c index 0341359b24a4..50c5e8b5be3d 100644 --- a/arch/arm/mach-mmp/mmp2-dt.c

[PATCH 2/4] DT: marvell,mmp2: add clock to the timer

2018-09-10 Thread Lubomir Rintel
The timer needs the timer clock to be enabled, otherwise it stops ticking. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 766bbb8495b6..58e0098a007d 100644

[PATCH 4/4] ARM: mmp/mmp2: dt: enable the clock

2018-09-10 Thread Lubomir Rintel
The device-tree booted MMP2 needs to enable the timer clock, otherwise the it would stop ticking when the boot finishes. It can also use the clock rate from the clk, the non-DT boards need to keep using the hardcoded rates. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/common.h | 2

[PATCH 0/4] Enable the timer clock on DT MMP2

2018-09-10 Thread Lubomir Rintel
This makes the timer work for me on an OLPC 1.75, which is a device-tree based MMP2 platform.

[PATCH 1/4] dt-bindings: mrvl,mmp-timer: add clock

2018-09-10 Thread Lubomir Rintel
The timer needs the timer clock to be enabled, otherwise it stops ticking. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt b

[PATCH] irqchip/mmp: only touch the PJ4 & FIQ bits on enable/disable

2018-09-10 Thread Lubomir Rintel
1 << 4. When asked for a data sheet, Marvell told me to fuck off, politely. Signed-off-by: Lubomir Rintel --- drivers/irqchip/irq-mmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c index 25f32e1d7764..1ed38f9f1d0a 10

Re: [PATCH 1/4] dt-bindings: mrvl,mmp-timer: add clock

2018-09-11 Thread Lubomir Rintel
On Mon, 2018-09-10 at 10:21 -0500, Rob Herring wrote: > On Mon, Sep 10, 2018 at 6:30 AM Lubomir Rintel > wrote: > > > > The timer needs the timer clock to be enabled, otherwise it stops > > ticking. > > > > Signed-off-by: Lubomir Rintel > > --- > &g

Re: [PATCH] DT: marvell,mmp2: add MMC controllers

2018-09-11 Thread Lubomir Rintel
On Mon, 2018-09-10 at 10:14 -0500, Rob Herring wrote: > On Mon, Sep 10, 2018 at 7:02 AM Lubomir Rintel > wrote: > > > > There's apparently four of them on a MMP2. > > > > Signed-off-by: Lubomir Rintel > > --- &

[PATCH] mac80211: a trivial open80211s web site URL fix

2018-07-12 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- net/mac80211/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig index 76e30f4797fb..7dc77fc91891 100644 --- a/net/mac80211/Kconfig +++ b/net/mac80211/Kconfig @@ -79,7 +79,7 @@ config

Re: [PATCH 10/11] spi: pxa2xx: Add ready signal

2018-10-11 Thread Lubomir Rintel
On Thu, 2018-10-11 at 09:28 +0200, Geert Uytterhoeven wrote: > Hi Lubomir, > > On Wed, Oct 10, 2018 at 7:10 PM Lubomir Rintel > wrote: > > Strobe a GPIO line when the slave TX FIFO is filled. This is how > > the > > Embedded Controller on an OLPC XO-1.75 machine

Re: [PATCH v2 01/11] dt-bindings: spi/spi-pxa2xx: add PXA2xx SSP SPI Controller

2018-10-11 Thread Lubomir Rintel
On Thu, 2018-10-11 at 15:27 +0100, Mark Brown wrote: > On Wed, Oct 10, 2018 at 07:09:26PM +0200, Lubomir Rintel wrote: > > This is the SPI controller found on Marvel MMP2 and perhaps more > > platforms. > > *Way* more. > > Please use subject lines matching

Re: [PATCH v2 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-10-16 Thread Lubomir Rintel
Hello Pavel, On Mon, 2018-10-15 at 21:56 +0200, Pavel Machek wrote: > Hi! > > > This makes keyboard/touchpad work on a DT MMP2 platform. > > > > I believe that it would be a good idea if this, once reviewed, went > > in > > via the input tree. The DT and CLK parts got reviews/acks. > > > >

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

2018-10-23 Thread Lubomir Rintel
On Fri, 2018-10-19 at 16:57 +0300, Andy Shevchenko wrote: > On Wed, Oct 10, 2018 at 8:23 PM Lubomir Rintel wrote: > > Hi. > > > > This patchset adds support for the Embedded Controller on an OLPC XO > > 1.75 machine. OLPC XO 1.75 is a MMP2 based ARM laptop. It plugs

Re: [PATCH v2 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-10-30 Thread Lubomir Rintel
Hello Pavel, On Tue, 2018-10-30 at 11:26 +0100, Pavel Machek wrote: > Hi! > > > > https://github.com/hackerspace/olpc-xo175-linux/wiki/How-to-run-an-up-to-date-Linux-on-a-XO-1.75 > > > > > > I didn't test it yet -- will do when I get home in the evening. > > > But > > > chances are it's good

Re: [PATCH 10/17] mailbox: bcm2835: Switch to SPDX identifier

2018-11-11 Thread Lubomir Rintel
On Sat, 2018-11-10 at 16:59 +0100, Stefan Wahren wrote: > Adopt the SPDX license identifier headers to ease license compliance > management. > > Cc: Lubomir Rintel > Signed-off-by: Stefan Wahren > --- > drivers/mailbox/bcm2835-mailbox.c | 8 +--- > 1 file ch

[PATCH 2/2] misc: hx8837: add a HiMax HX8837 display controller driver

2018-11-11 Thread Lubomir Rintel
for the time being, while my XO 1.75 can utilize this one. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - s/controlls/controls/ - Rob Herring's Reviewed-by tag Changes since v1: - Use interrupt bindings instead of gpio for the IRQ - Update the statement on XO 1/1.5

[PATCH v3 1/2] dt-bindings: himax,hx8837: add HiMax HX8837 bindings

2018-11-11 Thread Lubomir Rintel
it would be a good idea to plug in it between the two in a manner described in . Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v2: - s/betweend/between/ Changes since v1: - s/load-gpio/load-gpios/ - Use interrupt bindings instead of gpio for the IRQ .../devicetree

[PATCH v2 3/6] clk: mmp2: add SP clock

2018-11-11 Thread Lubomir Rintel
as a keyboard controller: http://dev.laptop.org/git/users/wmb/cforth/tree/src/app/arm-xo-1.75/ps2.fth The register address was obtained from the OLPC kernel, since the datasheet seems to be the Marvell's most important business secret. Signed-off-by: Lubomir Rintel Acked-by: Stephen Boyd Acked-by: Pavel Ma

[PATCH v2 0/6] OLPC 1.75 Keyboard/Touchpad fixes

2018-11-11 Thread Lubomir Rintel
This makes keyboard/touchpad work on a DT MMP2 platform. Changes since v1: - Collected Acks - Replaced "Input: olpc_apsp: depend on CONFIG_OF" patch with "Input: olpc_apsp: drop CONFIG_OLPC dependency", since it was correctly pointed out that the driver doesn't actually depend on OF. -

[PATCH v2 4/6] Input: olpc_apsp: drop CONFIG_OLPC dependency

2018-11-11 Thread Lubomir Rintel
CONFIG_OLPC is specific to the x86 platform code, while the driver is for an ARM-based laptop. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- drivers/input/serio/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig index

[PATCH v2 6/6] Input: olpc_apsp: enable the SP clock

2018-11-11 Thread Lubomir Rintel
Without the clock, the keyboard controller won't operate. Tested on an OLPC XO 1.75. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v1: - Disable the clock in error handling path drivers/input/serio/olpc_apsp.c | 14 ++ 1 file changed, 14 insertions

[PATCH v2 2/6] dt-bindings: marvell,mmp2: Add clock id for the SP clock

2018-11-11 Thread Lubomir Rintel
This is the clock for the "security processor" core. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring Acked-by: Stephen Boyd Acked-by: Pavel Machek --- include/dt-bindings/clock/marvell,mmp2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/marv

[PATCH v2 5/6] Input: olpc_apsp: check FIFO status on open(), not probe()

2018-11-11 Thread Lubomir Rintel
Let's defer the FIFO status checking until open(). When we'll get a clk handle, this will allow us to defer clock enablement until the device is actually used. Signed-off-by: Lubomir Rintel --- drivers/input/serio/olpc_apsp.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions

[PATCH v2 1/6] dt-bindings: olpc,ap-sp: add clock

2018-11-11 Thread Lubomir Rintel
The clock is necessary for the device operation, hence it's required. Its name, "sp", stands for "Security Processor". It is one of several names that are used for the processor that serves as the keyboard controller on an OLPC and is consistent with the node name. Signed-of

[PATCH v3 03/18] DT: marvell,mmp2: give gpio node a name

2018-11-11 Thread Lubomir Rintel
This will be useful for boards that actually use GPIO pins. 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 db15d1186cd0

[PATCH v3 14/18] ARM: mmp/mmp2: dt: enable the clock

2018-11-11 Thread Lubomir Rintel
The device-tree booted MMP2 needs to enable the timer clock, otherwise it would stop ticking when the boot finishes. It can also use the clock rate from the clk, the non-DT boards need to keep using the hardcoded rates. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v2

[PATCH v3 12/18] ARM: mmp/mmp2: use cpu_is_pj4() instead of cpu_is_mmp2()

2018-11-11 Thread Lubomir Rintel
at rate that's 1/100 slower or so. Perhaps the other cpu_is_mmp2() uses are more benign, but still useless. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/mach-mmp/cputype.h | 9 - arch/arm/mach-mmp/mmp2.c| 2 +- arch/arm/mach-mmp/pm-mmp2.c | 2 +- arch/arm/mach-mmp

[PATCH v3 18/18] USB: gadget: mv-udc: use phy-pxa-usb

2018-11-11 Thread Lubomir Rintel
Use a proper PHY driver, instead of hooks to a board support package. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/devices.c | 11 +--- drivers/usb/gadget/udc/mv_udc.h | 7 - drivers/usb/gadget/udc/mv_udc_core.c | 38 3 files changed

[PATCH v3 11/18] gpio: pxa: avoid attempting to set pin direction via pinctrl on MMP2

2018-11-11 Thread Lubomir Rintel
Similarly to PXA3xx pinctrl-single can't set pin direction on MMP2 either. See also: commit 9dabfdd84bdfa ("gpio: pxa: disable pinctrl calls for PXA3xx") Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- drivers/gpio/gpio-pxa.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 16/18] ARM: mmp: add an instance of pxa-usb-phy to ttc_dkb and aspenite

2018-11-11 Thread Lubomir Rintel
This will replace the *_pdata.phy_{de,}init() Signed-off-by: Lubomir Rintel --- Changes since v1: - Squashed patches with ttc_dkb and aspenite changes together. arch/arm/mach-mmp/aspenite.c | 4 arch/arm/mach-mmp/ttc_dkb.c | 4 2 files changed, 8 insertions(+) diff --git a/arch

[PATCH v3 17/18] USB: phy-mv-usb: use phy-pxa-usb

2018-11-11 Thread Lubomir Rintel
Use a proper PHY driver, instead of hooks to a board support package. Signed-off-by: Lubomir Rintel Tested-by: Pavel Machek --- arch/arm/mach-mmp/devices.c | 11 +--- drivers/usb/phy/phy-mv-usb.c | 123 --- drivers/usb/phy/phy-mv-usb.h | 8 ++- 3 files

[PATCH v3 10/18] irqchip/mmp: only touch the PJ4 & FIQ bits on enable/disable

2018-11-11 Thread Lubomir Rintel
1 << 4. When asked for a data sheet, Marvell was not helpful. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v1: - Adjusted wording & ack from Pavel drivers/irqchip/irq-mmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq

[PATCH v3 05/18] DT: marvell,mmp2: add MMC controllers

2018-11-11 Thread Lubomir Rintel
There's apparently four of them on a MMP2. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v1: - The controllers seem to be on AXI bus, not APB. Move them. - Remove aliases. arch/arm/boot/dts/mmp2.dtsi | 36 1 file changed, 36

[PATCH v3 00/18] MMP platform fixes

2018-11-11 Thread Lubomir Rintel
Hi, this series contains contains a bunch of MMP2 platform fixes. I've sent these in before, some as part of other patch sets, but got just radio silence from MMP2 maintainers. Eric Miao and Haojian Zhuang -- if you're listening, please speak up. I'm now re-sending as a single patch set for

[PATCH v3 08/18] DT: marvell,mmp2: add OTG PHY

2018-11-11 Thread Lubomir Rintel
The USB OTG PHY chip. To be used by the OTG controller. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 7549680ab2e3..6ca1e17b6ac2

[PATCH v3 09/18] DT: marvell,mmp2: add USB OTG host controller

2018-11-11 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 6ca1e17b6ac2..fed28c754804 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++ b/arch

[PATCH v3 13/18] ARM: mmp2: initialize clocks before the timer

2018-11-11 Thread Lubomir Rintel
The timer shall enable its clock. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/mach-mmp/mmp2-dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/mmp2-dt.c b/arch/arm/mach-mmp/mmp2-dt.c index 0341359b24a4..50c5e8b5be3d 100644

[PATCH v3 06/18] DT: marvell,mmp2: fix TWSI2

2018-11-11 Thread Lubomir Rintel
RTC is on TWSI2. Signed-off-by: Lubomir Rintel Tested-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 063382b3eaca..63d49abf4e92 100644 --- a/arch/arm/boot

[PATCH v3 07/18] DT: marvell,mmp2: add more TWSI controllers

2018-11-11 Thread Lubomir Rintel
I've gotten the base addresses, clocks and interrupts from an rusty and old out-of-tree driver. I haven't actually checked against the datasheet, since that one is reserved for the Marvell inner circle. Tested with an accelerometer on TWSI6 on an OLPC XO 1.75 machine. Signed-off-by: Lubomir

[PATCH v3 01/18] dt-bindings: mrvl,mmp-timer: add clock

2018-11-11 Thread Lubomir Rintel
The timer needs the timer clock to be enabled, otherwise it stops ticking. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring Acked-by: Pavel Machek --- Changes since v1: - Made the clock optional, to keep compatibility with DTs without it Documentation/devicetree/bindings/timer/mrvl

[PATCH v3 04/18] DT: marvell,mmp2: add clock to the timer

2018-11-11 Thread Lubomir Rintel
The timer needs the timer clock to be enabled, otherwise it stops ticking. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index f2a18779de7c

[PATCH v3 02/18] DT: marvell,mmp2: fix the gpio interrupt cell number

2018-11-11 Thread Lubomir Rintel
gpio-pxa uses two cell to encode the interrupt source: the pin number and the trigger type. Adjust the device node accordingly. 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

[PATCH v3 15/18] ARM: mmp: add a pxa-usb-phy device

2018-11-11 Thread Lubomir Rintel
This is to replace the USB PHY initialization code (pxa_usb_phy_init(), pxa_usb_phy_deinit()) with a proper PHY driver. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/devices.c | 21 + arch/arm/mach-mmp/pxa910.h | 1 + 2 files changed, 22 insertions(+) diff --git

[PATCH v3 4/6] spi: pxa2xx: dt-bindings: Add ready GPIO signal

2018-11-13 Thread Lubomir Rintel
This this is used to let the SPI master know that our FIFO is filled and we're ready to service a transfer. Only useful in slave mode. A signal like this is used by an embedded controller on a OLPC XO 1.75 machine, that happens to be a SPI master. Signed-off-by: Lubomir Rintel Acked-by: Pavel

[PATCH v3 6/6] spi: pxa2xx: Deal with the leftover garbage in TXFIFO

2018-11-13 Thread Lubomir Rintel
nd discard the actual data... For the OLPC EC this will work just fine and pushing more data to TXFIFO would break further transactions. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v1: - Fixed a commit message typo (spotted by James Cameron) drivers/spi/spi-pxa

[PATCH v3 5/6] spi: pxa2xx: Add ready signal

2018-11-13 Thread Lubomir Rintel
Strobe a GPIO line when the slave TX FIFO is filled. This is how the Embedded Controller on an OLPC XO-1.75 machine, that happens to be a SPI master, learns that it can initiate a transaction. Signed-off-by: Lubomir Rintel Tested-by: Pavel Machek --- Changes since v2 - Avoid an useless delay

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