[PATCH v8 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-28 Thread Martin Devera
Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier Reviewed-by: Rob Herring --- v8: - rebase to the latest tty-next v7: - fix yaml linter warning v6: - add version changelog v5: - yaml fixes based on Rob Her

[PATCH v8 2/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-28 Thread Martin Devera
STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- v8: - rebase to the latest tty-next v6: - add version changelog v4: - delete superfluous has_swap=false v3: - add has_

[PATCH v7 2/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-12 Thread Martin Devera
STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- v6: - add version changelog v4: - delete superfluous has_swap=false v3: - add has_swap to stm32_usart_info (because F4

[PATCH v7 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-12 Thread Martin Devera
Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- v7: - fix yaml linter warning v6: - add version changelog v5: - yaml fixes based on Rob Herring comments - add serial.yaml reference - move compatible

Re: [PATCH v6 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-12 Thread Martin DEVERA
On 3/12/21 3:56 PM, Martin DEVERA wrote: On 3/12/21 3:23 PM, Rob Herring wrote: On Fri, 12 Mar 2021 11:27:12 +0100, Martin Devera wrote: Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- v6:    - add version chang

Re: [PATCH v6 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-12 Thread Martin DEVERA
On 3/12/21 3:23 PM, Rob Herring wrote: On Fri, 12 Mar 2021 11:27:12 +0100, Martin Devera wrote: Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- v6: - add version changelog v5: - yaml fixes based on Rob Her

[PATCH v6 2/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-12 Thread Martin Devera
STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- v6: - add version changelog v4: - delete superfluous has_swap=false v3: - add has_swap to stm32_usart_info (because F4

[PATCH v6 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-12 Thread Martin Devera
Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- v6: - add version changelog v5: - yaml fixes based on Rob Herring comments - add serial.yaml reference - move compatible from 'then' to 'if' v3: - d

[PATCH v5 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-11 Thread Martin Devera
Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- .../devicetree/bindings/serial/st,stm32-uart.yaml | 29 ++ 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Documentation/device

[PATCH v5 2/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-11 Thread Martin Devera
STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera Acked-by: Fabrice Gasnier --- drivers/tty/serial/stm32-usart.c | 11 ++- drivers/tty/serial/stm32-usart.h | 4 2 files changed, 14 insertions(+

[PATCH] ubifs: Report max LEB count at mount time

2021-03-03 Thread Martin Devera
There is no other way to directly report/query this quantity. It is useful when planing how given filesystem can be resized. Signed-off-by: Martin Devera --- fs/ubifs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index

Re: [PATCH v3 2/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-02 Thread Martin DEVERA
On 3/2/21 6:44 PM, Fabrice Gasnier wrote: On 3/2/21 2:15 PM, Martin Devera wrote: STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera --- drivers/tty/serial/stm32-usart.c | 11 ++- drivers/tty/serial/s

[PATCH v4 2/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-02 Thread Martin Devera
STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera --- drivers/tty/serial/stm32-usart.c | 11 ++- drivers/tty/serial/stm32-usart.h | 4 2 files changed, 14 insertions(+), 1 deletion(-) diff -

[PATCH v4 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-02 Thread Martin Devera
Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera --- .../devicetree/bindings/serial/st,stm32-uart.yaml | 32 +++--- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/st,s

[PATCH v3 1/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-03-02 Thread Martin Devera
Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera --- .../devicetree/bindings/serial/st,stm32-uart.yaml | 32 +++--- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/st,s

[PATCH v3 2/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-02 Thread Martin Devera
STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera --- drivers/tty/serial/stm32-usart.c | 11 ++- drivers/tty/serial/stm32-usart.h | 5 + 2 files changed, 15 insertions(+), 1 deletion(-) diff -

Re: [PATCH v2 1/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-01 Thread Martin DEVERA
On 3/1/21 11:28 AM, Fabrice Gasnier wrote: On 2/27/21 5:41 PM, Martin Devera wrote: STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera --- drivers/tty/serial/stm32-usart.c | 3 ++- drivers/tty/serial/stm32-usa

[PATCH] usb: dwc2: Add STM32 related debugfs entries

2021-02-27 Thread Martin Devera
These are entries related to STM32MP1 PHY control. Signed-off-by: Martin Devera --- drivers/usb/dwc2/debugfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc2/debugfs.c b/drivers/usb/dwc2/debugfs.c index aaafd463d72a..f13eed4231e1 100644 --- a/drivers/usb/dwc2/debugfs.c

[PATCH v2 2/2] dt-bindings: serial: Add rx-tx-swap to stm32-usart

2021-02-27 Thread Martin Devera
Add new rx-tx-swap property to allow for RX & TX pin swapping. Signed-off-by: Martin Devera --- Documentation/devicetree/bindings/serial/st,stm32-uart.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documenta

[PATCH v2 1/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-02-27 Thread Martin Devera
STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera --- drivers/tty/serial/stm32-usart.c | 3 ++- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/se

Re: armmmci rmmod causes hung tasks

2020-11-30 Thread Martin DEVERA
On 11/30/20 4:08 PM, Ulf Hansson wrote: On Sun, 29 Nov 2020 at 19:20, Martin DEVERA wrote: Hello, on STM32MP1 with almost vanilla 5.7.7 in single CPU mode. Pair of modprobe armmmci ; rmmod armmmci causes rmmod and kworker to hang. I should note that no MMC is detected on the board (SDIO

armmmci rmmod causes hung tasks

2020-11-29 Thread Martin DEVERA
Hello, on STM32MP1 with almost vanilla 5.7.7 in single CPU mode. Pair of modprobe armmmci ; rmmod armmmci causes rmmod and kworker to hang. I should note that no MMC is detected on the board (SDIO device on MMC bus is not responding). On another board (where SDIO is responding) rmmod works. It

pinctrl: sx150x bug

2020-08-05 Thread Martin DEVERA
Hello, I encountered bug in SX1502 expander driver in 5.7.7. Here is relevant DTS part: compatible = "semtech,sx1502q"; gpio4_cfg_pins: gpio2-cfg {     pins = "gpio5";     output-high;     }; And part of OOPS: [    0.673996] [] (gpiochip_get_data)

Re: [PATCH 1/2] Add NXP LPC32XX SPI driver

2015-07-13 Thread Martin Devera
Paul Bolle wrote: (This hit my box with lkml mesages without lkml in the To: header. What happened here?) Ahh, have to check my sending script .. On zo, 2015-07-12 at 11:20 +0200, Martin Devera wrote: --- /dev/null +++ b/drivers/spi/spi-lpc32xx.c +#define DRIVER_NAME"spi-lp

Re: [PATCH 1/2] Add NXP LPC32XX SPI driver

2015-07-13 Thread Martin Devera
Paul Bolle wrote: (This hit my box with lkml mesages without lkml in the To: header. What happened here?) Ahh, have to check my sending script .. On zo, 2015-07-12 at 11:20 +0200, Martin Devera wrote: --- /dev/null +++ b/drivers/spi/spi-lpc32xx.c +#define DRIVER_NAMEspi-lpc32xx

[PATCH] Cleanup of NXP LPC32XX SPI driver

2015-07-12 Thread Martin Devera
Debug code is removed. --- drivers/spi/spi-lpc32xx.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/spi/spi-lpc32xx.c b/drivers/spi/spi-lpc32xx.c index 5c6b1ca..11b2c21 100644 --- a/drivers/spi/spi-lpc32xx.c +++ b/drivers/spi/spi-lpc32xx.c @@ -71,15 +71,6 @@ struct

[PATCH 2/2] Add clock support for NXP LPC32XX SPI

2015-07-12 Thread Martin Devera
Clock support for SPIs on LPC32XX SoC. --- arch/arm/mach-lpc32xx/clock.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index dd5d6f5..672c9b3 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++

[PATCH 1/2] Add NXP LPC32XX SPI driver

2015-07-12 Thread Martin Devera
+= spi-meson-spifc.o obj-$(CONFIG_SPI_MPC512x_PSC) += spi-mpc512x-psc.o obj-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o diff --git a/drivers/spi/spi-lpc32xx.c b/drivers/spi/spi-lpc32xx.c new file mode 100644 index 000..5c6b1ca --- /dev/null +++ b/drivers/spi/spi-lpc32xx.c

[PATCH] Fix ARM LPC32XX platform broken by older commit

2015-07-12 Thread Martin Devera
In commit a71b092a9c68685a270ebdde7b5986ba8787e575 __handle_domain_irq was introduced by Marc Zyngier. It tests hwirq on zero and rejects it. At least LPC32XX uses IRQ 0 as chained entry for SIC1. Thus all SIC1 connected devices doesn't work just now. This patch fixes it - not sure whether it is

[PATCH] Fix ARM LPC32XX platform broken by older commit

2015-07-12 Thread Martin Devera
In commit a71b092a9c68685a270ebdde7b5986ba8787e575 __handle_domain_irq was introduced by Marc Zyngier. It tests hwirq on zero and rejects it. At least LPC32XX uses IRQ 0 as chained entry for SIC1. Thus all SIC1 connected devices doesn't work just now. This patch fixes it - not sure whether it is

[PATCH] Cleanup of NXP LPC32XX SPI driver

2015-07-12 Thread Martin Devera
Debug code is removed. --- drivers/spi/spi-lpc32xx.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/spi/spi-lpc32xx.c b/drivers/spi/spi-lpc32xx.c index 5c6b1ca..11b2c21 100644 --- a/drivers/spi/spi-lpc32xx.c +++ b/drivers/spi/spi-lpc32xx.c @@ -71,15 +71,6 @@ struct

[PATCH 2/2] Add clock support for NXP LPC32XX SPI

2015-07-12 Thread Martin Devera
Clock support for SPIs on LPC32XX SoC. --- arch/arm/mach-lpc32xx/clock.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-lpc32xx/clock.c b/arch/arm/mach-lpc32xx/clock.c index dd5d6f5..672c9b3 100644 --- a/arch/arm/mach-lpc32xx/clock.c +++

[PATCH 1/2] Add NXP LPC32XX SPI driver

2015-07-12 Thread Martin Devera
-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o diff --git a/drivers/spi/spi-lpc32xx.c b/drivers/spi/spi-lpc32xx.c new file mode 100644 index 000..5c6b1ca --- /dev/null +++ b/drivers/spi/spi-lpc32xx.c @@ -0,0 +1,265 @@ +/* + * LPC32XX SPI bus driver + * + * Copyright (C) 2015 Martin Devera de...@cdi.cz

bug in ARM/LPC32XX eth init code / probably OF related

2015-07-05 Thread Martin Devera
Hi, I compiled vanilla 4.1.1 for LPC3240 MPU without loadable module support. I created own dts and board .c source: static void __init lpc3250_machine_init(void) { __raw_writel(0x1600 ,LPC32XX_GPIO_P_MUX_SET); // SSP0 __raw_writel(1<<6 , io_p2v(0x40028004)); // ETH unreset

bug in ARM/LPC32XX eth init code / probably OF related

2015-07-05 Thread Martin Devera
Hi, I compiled vanilla 4.1.1 for LPC3240 MPU without loadable module support. I created own dts and board .c source: static void __init lpc3250_machine_init(void) { __raw_writel(0x1600 ,LPC32XX_GPIO_P_MUX_SET); // SSP0 __raw_writel(16 , io_p2v(0x40028004)); // ETH unreset

Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-18 Thread Martin Devera
David Miller wrote: From: Martin Devera <[EMAIL PROTECTED]> Date: Mon, 18 Feb 2008 09:03:52 +0100 aha, ok, I'm not so informed about crossplatform issues. I was also thining about looking at jiffies value and stop once it is startjiffy+2, but with NO_HZ introduction, are jiffies

Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-18 Thread Martin Devera
up to single jiffy interval and then delay remainder to other jiffy. Signed-off-by: Martin Devera <[EMAIL PROTECTED]> I think we would be wise to use something other than loops_per_jiffy. Depending upon the loop calibration method used by a particular architecture it can me one o

Re: [PATCH 2.6.24 1/1] sch_htb: fix too many events situation

2008-02-18 Thread Martin Devera
up to single jiffy interval and then delay remainder to other jiffy. Signed-off-by: Martin Devera [EMAIL PROTECTED] I think we would be wise to use something other than loops_per_jiffy. Depending upon the loop calibration method used by a particular architecture it can me one of many

Re: [PATCH 2.6.24 1/1] sch_htb: fix too many events situation

2008-02-18 Thread Martin Devera
David Miller wrote: From: Martin Devera [EMAIL PROTECTED] Date: Mon, 18 Feb 2008 09:03:52 +0100 aha, ok, I'm not so informed about crossplatform issues. I was also thining about looking at jiffies value and stop once it is startjiffy+2, but with NO_HZ introduction, are jiffies still

[PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-14 Thread Martin Devera
From: Martin Devera <[EMAIL PROTECTED]> HTB is event driven algorithm and part of its work is to apply scheduled events at proper times. It tried to defend itself from livelock by processing only limited number of events per dequeue. Because of faster computers some users alrea

[PATCH 2.6.24 1/1] sch_htb: fix too many events situation

2008-02-14 Thread Martin Devera
From: Martin Devera [EMAIL PROTECTED] HTB is event driven algorithm and part of its work is to apply scheduled events at proper times. It tried to defend itself from livelock by processing only limited number of events per dequeue. Because of faster computers some users already hit this hardcoded

Re: [PATCH 2.6.15.4 rel.2 1/1] libata: add hotswap to sata_svw

2006-11-28 Thread Martin Devera
Benjamin Herrenschmidt wrote: On Tue, 2006-11-28 at 23:22 +, David Woodhouse wrote: On Thu, 2006-02-16 at 16:09 +0100, Martin Devera wrote: From: Martin Devera <[EMAIL PROTECTED]> Add hotswap capability to Serverworks/BroadCom SATA controlers. The controler has SIM register and it s

Re: [PATCH 2.6.15.4 rel.2 1/1] libata: add hotswap to sata_svw

2006-11-28 Thread Martin Devera
Benjamin Herrenschmidt wrote: On Tue, 2006-11-28 at 23:22 +, David Woodhouse wrote: On Thu, 2006-02-16 at 16:09 +0100, Martin Devera wrote: From: Martin Devera [EMAIL PROTECTED] Add hotswap capability to Serverworks/BroadCom SATA controlers. The controler has SIM register and it selects

Re: Threads are processes that share more

2001-06-20 Thread Martin Devera
> Threads are processes that share more BTW is not possible to implement threads as subset of process ? Like thread list pointed to from task_struct. It'd contain thread_structs plus another scheduler's data. The thread could be much smaller than process. Probably there is

Re: Threads are processes that share more

2001-06-20 Thread Martin Devera
Threads are processes that share more BTW is not possible to implement threads as subset of process ? Like thread list pointed to from task_struct. It'd contain thread_structs plus another scheduler's data. The thread could be much smaller than process. Probably there is

possible deadlock in 2.4.4 sys_getdents ?

2001-06-19 Thread Martin Devera
Hello all, after weeks of uptime, 2.4.4 kernel freezed several of my processes. It seems like deadlock. I typed "whereis perl" and system got frozen. After quick look I found that I typed the command while "makedb" script was running. All processes are on down: budha:~# ps -A -o

possible deadlock in 2.4.4 sys_getdents ?

2001-06-19 Thread Martin Devera
Hello all, after weeks of uptime, 2.4.4 kernel freezed several of my processes. It seems like deadlock. I typed whereis perl and system got frozen. After quick look I found that I typed the command while makedb script was running. All processes are on down: budha:~# ps -A -o

oops in kswapd with 2.4.4 on gigabyte MB

2001-05-11 Thread Martin Devera
Hello, I installed 2.4.4 on host which was running win95 (without problems). It is MB Gigabyte GA6BXC with one PCI net card (J2585B) and 128MB memory. CPU is Pentium III (Katmai) fam.6 model 7 @ 450MHz. One 15G IDE HDD. After approx 1hr it gines me oops. I used ksymoops and result is attached.

oops in kswapd with 2.4.4 on gigabyte MB

2001-05-11 Thread Martin Devera
Hello, I installed 2.4.4 on host which was running win95 (without problems). It is MB Gigabyte GA6BXC with one PCI net card (J2585B) and 128MB memory. CPU is Pentium III (Katmai) fam.6 model 7 @ 450MHz. One 15G IDE HDD. After approx 1hr it gines me oops. I used ksymoops and result is attached.