Re: [PATCH v2 00/43] DRM Rockchip rk3399 (Kevin)

2018-01-27 Thread Emil Renner Berthing
ttps://lkml.org/lkml/2018/1/10/682 > If it makes any difference I just tested this series with next-20180126 on my Chromebook Pro and it works great. Tested-by: Emil Renner Berthing /Emil

Re: [PATCH] mfd: cros-ec: copy the whole event when msg->version is 0

2018-09-28 Thread Emil Renner Berthing
On Fri, 28 Sep 2018 at 14:15, Neil Armstrong wrote: > On 27/09/2018 11:24, Emil Karlson wrote: > > Commit 57e94c8b974db2d83c60e1139c89a70806abbea0 caused cros-ec keyboard > > events > > be truncated on many chromebooks so that Left and Right keys on Column 12 > > were > > always 0. This commit f

Re: [PATCH v3 2/2] tty: serial: add driver for the SiFive UART

2018-11-15 Thread Emil Renner Berthing
Hi Paul, Thanks for the patch! On Sat, 20 Oct 2018 at 12:12, Paul Walmsley wrote: > +/* > + * > + */ Interesting comment ;) > +static int __init sifive_serial_console_setup(struct console *co, char > *options) Unfortunately I get this error unless I remove the __init: ... GEN .version

[RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-12 Thread Emil Renner Berthing
From: Palmer Dabbelt Add driver for the SiFive SPI controller on the HiFive Unleashed board. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing --- .../devicetree/bindings/spi/spi-sifive.txt| 29 ++ drivers/spi/Kconfig | 6 + drivers/spi

Re: [RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-13 Thread Emil Renner Berthing
Hi Mark, On Tue, 13 Nov 2018 at 19:35, Mark Brown wrote: > On Mon, Nov 12, 2018 at 03:27:36PM +0100, Emil Renner Berthing wrote: > > > I know the discussions about the sifive devicetree compatible > > strings haven't come to a conclusion, so I'm sending this as > &

[PATCH 3/7] arm64: dts: rockchip: add rk3399 SPI DMAs

2018-10-10 Thread Emil Renner Berthing
Add spi dma channels as specified by the rk3399 TRM. Signed-off-by: Emil Renner Berthing --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index

[PATCH 5/7] spi: rockchip: mark use_dma as bool

2018-10-10 Thread Emil Renner Berthing
The driver data has a u32 field use_dma which is only ever used as a boolean, so change its type to reflect that. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi

[PATCH 7/7] spi: rockchip: simplify spi enable logic

2018-10-10 Thread Emil Renner Berthing
Let the dma/non-dma code paths handle the spi enable flag themselves. This removes some logic to determine if the flag should be turned on before or after dma and also don't leave the spi enabled if the dma path fails. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c

[PATCH 6/7] spi: rockchip: directly use direction constants

2018-10-10 Thread Emil Renner Berthing
The dma direction for the tx and rx dma channels never change, so just use the constants directly rather than storing them in device data. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 4/7] spi: rockchip: remove unneeded dma_caps

2018-10-10 Thread Emil Renner Berthing
We no longer need the dma_caps since the dma driver already clamps the burst length to the hardware limit, so don't request and store dma_caps in device data. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/sp

[PATCH 2/7] spi: rockchip: adjust dma watermark and burstlen

2018-10-10 Thread Emil Renner Berthing
From: Huibin Hong Signal tx dma when spi fifo is less than half full, and limit tx bursts to half the fifo length. Clamp rx burst length to 1 to avoid alignment issues. Signed-off-by: Huibin Hong Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 12 +++- 1 file

[PATCH 1/7] spi: rockchip: initialize dma_slave_config properly

2018-10-10 Thread Emil Renner Berthing
From: Huibin Hong The rxconf and txconf structs are allocated on the stack, so make sure we zero them before filling out the relevant fields. Signed-off-by: Huibin Hong Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[PATCH 0/7] Enable spi dma on Rockchip RK3399

2018-10-10 Thread Emil Renner Berthing
other rockchips. /Emil Emil Renner Berthing (5): arm64: dts: rockchip: add rk3399 SPI DMAs spi: rockchip: remove unneeded dma_caps spi: rockchip: mark use_dma as bool spi: rockchip: directly use direction constants spi: rockchip: simplify spi enable logic Huibin Hong (2): spi: rockchip

[PATCH v1 01/14] spi: rockchip: make spi_enable_chip take bool

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The spi_enable_chip function takes a boolean argument. Change the type to reflect that. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi

[PATCH v1 00/14] Rockchip SPI cleanup and use interrupts

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Hi, I took another look at the rockchip spi driver and ended up with more cleanups and implementing an interrupt handler to fill/empty the tx and rx fifos rather than busy-looping. I have two question though: The driver sets the SPI_LOOP flag in master->mode_b

[PATCH v1 10/14] spi: rockchip: set min/max speed

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The driver previously checked each transfer if the requested speed was higher than possible with the current spi clock rate and raised the clock rate accordingly. However, there is no check to see if the spi clock was actually set that high and no way to dynamically

[PATCH v1 08/14] spi: rockchip: remove master pointer from dev data

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing In almost all cases we already have a pointer to the spi master structure where we have the driver data. The only exceptions are the dma callbacks which are easily fixed by passing them the master and using spi_master_get_devdata to retrieve the driver data. Signed

[PATCH v1 13/14] spi: rockchip: support 4bit words

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The hardware supports 4, 8 and 16bit spi words, so add the missing support for 4bit words. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 41 +++--- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a

[PATCH v1 11/14] spi: rockchip: precompute rx sample delay

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Now that we no longer potentially change spi clock at runtime we can precompute the rx sample delay at probe time rather than for each transfer. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 36 ++-- 1 file

[PATCH v1 05/14] spi: rockchip: disable spi on error

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Successful transfers leave the spi disabled, so if we just make sure to disable the spi on error there should be no need to disable the spi from master->unprepare_message. This also flushes the tx and rx fifos, so no need to do that manually. Signed-off-by: E

[PATCH v1 12/14] spi: rockchip: use irq rather than polling

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Register an interrupt handler to fill/empty the tx and rx fifos rather than busy-looping. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 155 ++--- 1 file changed, 92 insertions(+), 63 deletions(-) diff --git a

[PATCH v1 07/14] spi: rockchip: don't store dma channels twice

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The spi master (aka spi controller) structure already has two fields for storing the rx and tx dma channels. Just use them rather than duplicating them in driver data. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 76

[PATCH v1 09/14] spi: rockchip: simplify use_dma logic

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing We only need to know if we're using dma when setting up the transfer, so just use a local variable for that. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --

[PATCH v1 06/14] spi: rockchip: read transfer info directly

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Just read transfer info directly from the spi device and transfer structures rather than storing it in driver data first. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 70 +- 1 file changed, 24 insertions

[PATCH v1 04/14] spi: rockchip: use atomic_t state

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The state field is currently only used to make sure only the last of the tx and rx dma callbacks issue an spi_finalize_current_transfer. Rather than using a spinlock we can get away with just turning the state field into an atomic_t. Signed-off-by: Emil Renner

[PATCH v1 14/14] spi: rockchip: support lsb-first mode

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Add missing support for lsb-first mode. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 9e47e81553a1..3912526ead66

[PATCH v1 03/14] spi: rockchip: always use SPI mode

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing The hardware supports 3 different variants of SPI and there were some code around it, but nothing to actually set it to anything but "Motorola SPI". Just drop that code and always use that mode. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockc

[PATCH v1 02/14] spi: rockchip: use designated init for dma config

2018-10-31 Thread Emil Renner Berthing
From: Emil Renner Berthing Use C99 designated initializers for dma slave config structures. This also makes sure uninitialized fields are zeroed so we don't need an explicit memset. Signed-off-by: Emil Renner Berthing --- drivers/spi/spi-rockchip.c | 26 ++ 1

[PATCH] drivers: staging: rtl8723au: get rid of unneeded memset/memcpy

2014-12-07 Thread Emil Renner Berthing
This also fixes a sparse warning. Signed-off-by: Emil Renner Berthing --- drivers/staging/rtl8723au/hal/rtl8723a_cmd.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c b/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c

[PATCH] net: usb: cdc_ncm: use new API for bh tasklet

2021-01-30 Thread Emil Renner Berthing
more users of the old API left and we can remove the data value and flag from the tasklet struct. Signed-off-by: Emil Renner Berthing --- Let me know if you know of a better way to get the usbnet device from the cdc_ncn_ctx context. drivers/net/usb/cdc_ncm.c | 12 +++- include/linux/usb

[PATCH 1/9] arcnet: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/arcnet/arcnet.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/

[PATCH 4/9] ppp: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the async and synctty drivers to use the new tasklet API n commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/ppp/ppp_async.c | 8 drivers/net/ppp/ppp_synctty.c | 8 2 files

[PATCH 0/9] drivers: net: update tasklet_init callers

2021-01-30 Thread Emil Renner Berthing
(patch1 || patch2) @ match.T *container; identifier match.tasklet; identifier match.callback; @@ - tasklet_init(&container->tasklet, callback, (unsigned long)container); + tasklet_setup(&container->tasklet, callback); Emil Renner Berthing (9): arcnet: use new tasklet API c

[PATCH 2/9] caif_virtio: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/caif/caif_virtio.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/driver

[PATCH 3/9] ifb: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/ifb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ifb.c

[PATCH 9/9] net: usb: rtl8150: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/rtl8150.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/u

[PATCH 7/9] net: usb: pegasus: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/pegasus.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drive

[PATCH 8/9] net: usb: r8152: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/r8152.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/u

[PATCH 6/9] net: usb: lan78xx: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/lan78xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drive

[PATCH 5/9] net: usb: hso: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/hso.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net

[PATCH 1/9] mmc: atmel-mci: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/atmel-mci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH 2/9] mmc: au1xmmc: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/au1xmmc.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/d

[PATCH 0/9] drivers: mmc: Update trivial tasklet_init() callers

2021-02-04 Thread Emil Renner Berthing
ier match.tasklet; identifier match.callback; @@ - tasklet_init(&container->tasklet, callback, (unsigned long)container); + tasklet_setup(&container->tasklet, callback); Emil Renner Berthing (9): mmc: atmel-mci: Use new tasklet API mmc: au1xmmc: Use new tasklet API m

[PATCH 6/9] mmc: tifm_sd: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/tifm_sd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/driver

[PATCH 5/9] mmc: s3cmci: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/s3cmci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH 9/9] mmc: wbsd: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/wbsd.c | 35 +++ 1 file changed, 15 insertions(+), 20 deletion

[PATCH 8/9] mmc: via-sdmmc: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/via-sdmmc.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/driver

[PATCH 7/9] mmc: uniphier-sd: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/uniphier-sd.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git

[PATCH 4/9] mmc: omap: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/omap.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/h

[PATCH 3/9] mmc: dw_mmc: Use new tasklet API

2021-02-04 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/dw_mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver

[PATCH] net: wan: farsync: use new tasklet API

2021-02-04 Thread Emil Renner Berthing
ather than DECLARE_TASLKLET_OLD. Signed-off-by: Emil Renner Berthing --- drivers/net/wan/farsync.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index b50cf11d197d..686a25d3b512 100644 --- a/drivers/net/wan/farsync.c +++

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-25 Thread Emil Renner Berthing
bling call from callable instruction > with modified stack frame > > Use BUG() instead of unreachable() to avoid the undefined behavior > if it does happen. > > Fixes: 65498c6ae241 ("spi: rockchip: support 4bit words") > Signed-off-by: Arnd Bergmann Acked-by: Emil Re

Re: [PATCH v1 2/2] riscv: Clean up module relocations

2020-08-05 Thread Emil Renner Berthing
On Thu, 30 Jul 2020 at 20:53, Luke Nelson wrote: > > Thanks for the patch! > > > Also RISC-V has a number of instruction pairs to > > generate 32bit immediates or jump/call offsets. Eg.: > > > > lui rd, hi20 > > addi rd, rd, lo12 > > On RV64, both hi20 from lui and lo12 from addi are sign-exten

Re: macb broken on HiFive Unleashed

2021-03-13 Thread Emil Renner Berthing
Hi Andreas On Wed, 10 Mar 2021 at 20:55, Andreas Schwab wrote: > On Mär 09 2021, claudiu.bez...@microchip.com wrote: > > I don't have a SiFive HiFive Unleashed to investigate this. Can you check > > if reverting commits on macb driver b/w 5.10 and 5.11 solves your issues: > > > > git log --onelin

[PATCH] mmc: cb710: Use new tasklet API

2021-02-08 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/mmc/host/cb710-mmc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/d

Re: [PATCH] kgdb: use new API for breakpoint tasklet

2021-01-25 Thread Emil Renner Berthing
On Mon, 25 Jan 2021 at 12:03, Daniel Thompson wrote: > > On Sat, Jan 23, 2021 at 07:42:37PM +0100, Emil Renner Berthing wrote: > > This converts the kgdb_tasklet_breakpoint to use the new API in > > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") >

[PATCH v2] drm/i915/gt: use new tasklet API for execution list

2021-01-26 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- v2: Rebased on drm-intel-next Tested on my Dell XPS 13 9300. --- drivers/gpu/drm/i915/gt/intel_engine_cs.

Re: [PATCH v2] drm/i915/gt: use new tasklet API for execution list

2021-01-26 Thread Emil Renner Berthing
On Tue, 26 Jan 2021 at 16:13, Chris Wilson wrote: > Quoting Emil Renner Berthing (2021-01-26 15:01:55) > > This converts the driver to use the new tasklet API introduced in > > commit 12cc923f1ccc ("tasklet: Introduce new initialization API") > > > >

[PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-26 Thread Emil Renner Berthing
ork_tasklet properly and set rx_work_tasklet.use_callback = true so that the callback is called as t->callback(t); without all the casting. Fixes: 6b8c7574a5f8 ("rtlwifi: fix build warning") Fixes: d3ccc14dfe95 ("rtlwifi/rtw88: convert tasklets to use new tasklet_setup() API") Si

[PATCH] drm/i915/gt: use new tasklet API in execlist selftest

2021-01-26 Thread Emil Renner Berthing
This converts the execlist selftest to use the new tasklet API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- Hi Chris, I seem to have missed some tasklist manipulation in the execlist selftest. Feel free to squash th

[PATCH 0/2] net: usbnet: convert to new tasklet API

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the usbnet driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") It is split into two commits for ease of reviewing. Emil Renner Berthing (2): net: usbnet: use tasklet_init net: u

[PATCH 2/2] net: usbnet: use new tasklet API

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/usbnet.c | 8 1 file changed, 4 insertions(+), 4 deletion

[PATCH 1/2] net: usbnet: initialize tasklet using tasklet_init

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing Initialize tasklet using tasklet_init() rather than open-coding it. Signed-off-by: Emil Renner Berthing --- drivers/net/usb/usbnet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index

[PATCH] drm/i915/gt: use new tasklet API for execution list

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- Tested on my Dell XPS 13 9300. drivers/gpu/drm/i915/gt/intel_engine_cs.

[PATCH] genirq: use new tasklet API for resend_tasklet

2021-01-23 Thread Emil Renner Berthing
From: Emil Renner Berthing This converts the resend_tasklet to use the new API in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") The new API changes the argument passed to the callback function, but fortunately the argument isn't used so it is straight

[PATCH] kgdb: use new API for breakpoint tasklet

2021-01-23 Thread Emil Renner Berthing
ASKLET() rather than DECLARE_TASKLET_OLD(). Signed-off-by: Emil Renner Berthing --- kernel/debug/debug_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index af6e8b4fb359..98d44c2bb0a4 100644 --- a/kernel/debug/deb

[PATCH] kernel/backtracetest: use new API for backtrace tasklet

2021-01-23 Thread Emil Renner Berthing
T() rather than DECLARE_TASKLET_OLD(). Signed-off-by: Emil Renner Berthing --- kernel/backtracetest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/backtracetest.c b/kernel/backtracetest.c index 370217dd7e39..70a3da716f01 100644 --- a/kernel/backtracetest

[PATCH] vt: keyboard, use new API for keyboard_tasklet

2021-01-23 Thread Emil Renner Berthing
SABLED() rather than DECLARE_TASKLET_DISABLED_OLD(). Signed-off-by: Emil Renner Berthing --- drivers/tty/vt/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c index 52922d21a49f..6c85f024bec4 100644 --- a

Re: [PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-27 Thread Emil Renner Berthing
On Wed, 27 Jan 2021 at 16:20, Kalle Valo wrote: > > Willem de Bruijn writes: > > > On Wed, Jan 27, 2021 at 5:23 AM Emil Renner Berthing > > wrote: > >> > >> In commit d3ccc14dfe95 most of the tasklets in this driver was > >> updated to the n

Re: [PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-27 Thread Emil Renner Berthing
On Wed, 27 Jan 2021 at 16:33, Kalle Valo wrote: > ... > Forgot to mention that I can remove the Fixes tags during commit, so no > need to resend just because of those. Cool, thanks. > > I can definitely see how you can reasonably disagree, but I would not > > be comfortable having code that only

[PATCH v2] vt: keyboard, use new API for keyboard_tasklet

2021-01-27 Thread Emil Renner Berthing
SABLED() rather than DECLARE_TASKLET_DISABLED_OLD(). Signed-off-by: Emil Renner Berthing --- v2: Rebased on Greg's tty/tty-next tree. --- drivers/tty/vt/keyboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.

[PATCH 2/2] net: atm: pppoatm: use new API for wakeup tasklet

2021-01-27 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- net/atm/pppoatm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/atm/pppoatm.c

[PATCH 1/2] net: atm: pppoatm: use tasklet_init to initialize wakeup tasklet

2021-01-27 Thread Emil Renner Berthing
Previously a temporary tasklet structure was initialized on the stack using DECLARE_TASKLET_OLD() and then copied over and modified. Nothing else in the kernel seems to use this pattern, so let's just call tasklet_init() like everyone else. Signed-off-by: Emil Renner Berthing --- ne

Re: [BUG] Rockchip SPI: long burst writes produce unexpected result

2019-04-07 Thread Emil Renner Berthing
Hi Vicente, On Sat, 6 Apr 2019 at 19:35, Vicente Bergas wrote: > > Hi, > i have been experiencing issues writing to NOR-Flash SPI Memories > from two RK3399-based platforms: gru-kevin and sapphire board. > For kevin, this resulted in a bricked device because that memory > is the only boot device.

Re: Asus C101P Chromeboot fails to boot with Linux 5.2

2019-07-12 Thread Emil Renner Berthing
Hi Alex, On Fri, 12 Jul 2019 at 17:02, Alex Dewar wrote: > When I try to boot the screen just gets flooded with messages like this: > http://users.sussex.ac.uk/~ad374/boot_fail.jpg Those seem to be only audit messages. You can try booting with audit=0 on the kernel command line to get rid of tho

[RFC] riscv: Add jump-label implementation

2020-07-02 Thread Emil Renner Berthing
Add basic jump-label implementation heavily based on the ARM64 version. Tested on the HiFive Unleashed. Signed-off-by: Emil Renner Berthing --- This seems to work on my HiFive Unleashed. At least boots, runs fine and the static key self-tests doesn't complain, but I'm sure I

Re: [RFC] riscv: Add jump-label implementation

2020-07-03 Thread Emil Renner Berthing
On Thu, 2 Jul 2020 at 22:07, Emil Renner Berthing wrote: > > Add basic jump-label implementation heavily based > on the ARM64 version. > > Tested on the HiFive Unleashed. > > Signed-off-by: Emil Renner Berthing > --- > > This seems to work on my HiFive Unleashed. A

Re: [RFC] riscv: Add jump-label implementation

2020-07-04 Thread Emil Renner Berthing
On Sat, 4 Jul 2020 at 13:23, Björn Töpel wrote: > On Fri, 3 Jul 2020 at 17:43, Emil Renner Berthing wrote: > > On Thu, 2 Jul 2020 at 22:07, Emil Renner Berthing wrote: > > > > > > Add basic jump-label implementation heavily based > > > on the ARM64 versi

[PATCH v1] riscv: Add jump-label implementation

2020-07-07 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version. Tested on the HiFive Unleashed board. Signed-off-by: Emil Renner Berthing --- Changes since RFC: - Use RISCV_PTR and RISCV_LGPTR macros to match struct jump_table also in 32bit kernels. - Remove unneeded branch ? 1 : 0, thanks Björn

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
On Wed, 8 Jul 2020 at 08:28, Björn Töpel wrote: > On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > > > Add jump-label implementation based on the ARM64 version. > > > > Thanks for working on this! > > > Tested on the HiFive Unleashed board. > &g

Re: [PATCH v1] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
On Wed, 8 Jul 2020 at 09:42, Björn Töpel wrote: > > On Tue, 7 Jul 2020 at 17:08, Emil Renner Berthing wrote: > > > > Add jump-label implementation based on the ARM64 version. > > > > Tested on the HiFive Unleashed board. > > > > I took your p

[PATCH v3 2/2] riscv: Add jump-label implementation

2020-07-14 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version and add CONFIG_JUMP_LABEL=y to the defconfigs. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel Tested-by: Björn Töpel --- Tested on the HiFive Unleashed board. Changes since v2: - Add missing asm/asm.h include. Reported

[PATCH v3 1/2] riscv: Support R_RISCV_ADD64 and R_RISCV_SUB64 relocs

2020-07-14 Thread Emil Renner Berthing
These are needed for the __jump_table in modules using static keys/jump-labels with the layout from HAVE_ARCH_JUMP_LABEL_RELATIVE on 64bit kernels. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel Tested-by: Björn Töpel --- Tested on the HiFive Unleashed board. No changes since v2

Re: [PATCH v0 1/1] spi: spi-rockchip: add support for spi slave_mode

2020-05-10 Thread Emil Renner Berthing
Hi Chris, On Sat, 9 May 2020 at 02:10, Chris Ruehl wrote: > > Hi Emil, > > thanks for the review and your comments > > On 8/5/2020 9:13 pm, Emil Renner Berthing wrote: > > Hi Chris, > > > > On Fri, 8 May 2020 at 10:47, Chris Ruehl wrote: > >> This p

[PATCH v2 1/2] riscv: Support R_RISCV_ADD64 and R_RISCV_SUB64 relocs

2020-07-08 Thread Emil Renner Berthing
These are needed for the __jump_table in modules using static keys/jump-labels with the layout from HAVE_ARCH_JUMP_LABEL_RELATIVE on 64bit kernels. Signed-off-by: Emil Renner Berthing --- Tested on the HiFive Unleashed board. This patch is new in v2. It fixes an error loading modules

[PATCH v2 2/2] riscv: Add jump-label implementation

2020-07-08 Thread Emil Renner Berthing
Add jump-label implementation based on the ARM64 version and add CONFIG_JUMP_LABEL=y to the defconfigs. Signed-off-by: Emil Renner Berthing Reviewed-by: Björn Töpel --- Tested on the HiFive Unleashed board. Changes since v1: - WARN and give up gracefully if the jump offset cannot be

Re: [PATCH] riscv: Select ARCH_HAS_DEBUG_VM_PGTABLE

2020-07-20 Thread Emil Renner Berthing
On Tue, 21 Jul 2020 at 06:04, Palmer Dabbelt wrote: > > On Tue, 14 Jul 2020 20:20:54 PDT (-0700), anshuman.khand...@arm.com wrote: > > > > > > On 07/15/2020 02:56 AM, Emil Renner Berthing wrote: > >> This allows the pgtable tests to be built. > >>

[PATCH] riscv: Select ARCH_HAS_DEBUG_VM_PGTABLE

2020-07-14 Thread Emil Renner Berthing
This allows the pgtable tests to be built. Signed-off-by: Emil Renner Berthing --- The tests seem to succeed both in Qemu and on the HiFive Unleashed Both with and without the recent additions in https://lore.kernel.org/linux-riscv/1594610587-4172-1-git-send-email-anshuman.khand...@arm.com

Re: [PATCH v3 0/4] Dedicated CLINT timer driver

2020-07-15 Thread Emil Renner Berthing
On Wed, 15 Jul 2020 at 09:15, Anup Patel wrote: > The current RISC-V timer driver is convoluted and implements two > distinct timers: > 1. S-mode timer: This is for Linux RISC-V S-mode with MMU. The > clocksource is implemented using TIME CSR and clockevent device > is implemented using S

[PATCH] riscv: Grab text_mutex before patching jump-labels

2020-07-23 Thread Emil Renner Berthing
Like other arch's we use patch_text_nosync or equivalent to patch the jump-labels, but also like other arch's we need to hold the text_mutex before calling that. Signed-off-by: Emil Renner Berthing --- Fixes: b6e0878a4ec8 ("riscv: Add jump-label implementation") ..that is

Re: [PATCH v2 1/3] spi: rockchip: Config spi rx dma burst size depend on xfer length

2020-07-22 Thread Emil Renner Berthing
On Wed, 22 Jul 2020 at 10:41, Jon Lin wrote: > > The burst length can be adjusted according to the transmission > length to improve the transmission rate > > Signed-off-by: Jon Lin For the whole series you can add Reviewed-by: Emil Renner Berthing Tested-by: Emil

Re: [PATCH v2 3/3] spi: rockchip: Fix error in SPI slave pio read

2020-07-22 Thread Emil Renner Berthing
On Wed, 22 Jul 2020 at 10:38, Jon Lin wrote: > > The RXFLR is possible larger than rx_left in Rockchip SPI, fix it. > > Signed-off-by: Jon Lin > Reviewed-by: Heiko Stuebner In addition to my review and test you should probably also add Fixes: 01b59ce5dac8 ("spi: rockchip: use irq rather than po

[PATCH v1 1/2] riscv: Avoid unaligned access when relocating modules

2020-07-22 Thread Emil Renner Berthing
ian RISC-V machine. Fix rcv -> rvc typo while we're at it. Signed-off-by: Emil Renner Berthing --- arch/riscv/kernel/module.c | 155 +++-- 1 file changed, 79 insertions(+), 76 deletions(-) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c

[PATCH v1 2/2] riscv: Clean up module relocations

2020-07-22 Thread Emil Renner Berthing
unts to the same: imm - hi20 may be become negative/underflow, but it doesn't change the lower 12 bits. Signed-off-by: Emil Renner Berthing --- My hope is that we can eventually factor out the code to generate immediates and instructions so it can be reused both here, in the jump-label code an

Re: [PATCH] asm-generic/mmiowb: Allow mmiowb_set_pending() when preemptible()

2020-07-16 Thread Emil Renner Berthing
man > Reported-by: Palmer Dabbelt Nice. This fixes the problems I saw both in Qemu and on the HiFive Unleashed. Btw. I was the one who originally stumbled upon this problem and send the mail to linux-riscv that Palmer CC'ed you on, so I think this ought to be Reported-by: Emil Renner Bert

Re: Applied "spi: rockchip: turn down tx dma bursts" to the spi tree

2019-06-05 Thread Emil Renner Berthing
Hi Mark On Wed, 8 May 2019 at 12:34, Mark Brown wrote: > > The patch > >spi: rockchip: turn down tx dma bursts > > has been applied to the spi tree at > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git > > All being well this means that it will be integrated into the linux

Re: Applied "spi: rockchip: turn down tx dma bursts" to the spi tree

2019-06-05 Thread Emil Renner Berthing
On Wed, 5 Jun 2019 at 21:55, Mark Brown wrote: > > On Wed, Jun 05, 2019 at 09:36:44PM +0200, Emil Renner Berthing wrote: > > On Wed, 8 May 2019 at 12:34, Mark Brown wrote: > > > >spi: rockchip: turn down tx dma bursts > > > I've tried looking in the for

[PATCH] spi: rockchip: turn down tx dma bursts

2019-04-12 Thread Emil Renner Berthing
igned to word." So this relies on fifo_len being a multiple of 16 such that the burst length (= fifo_len / 4) is a multiple of 4 and the addresses will be word-aligned. Fixes: dcfc861d24ec ("spi: rockchip: adjust dma watermark and burstlen") Signed-off-by: Emil Renner Berthing

Re: [PATCH v0 1/1] spi: spi-rockchip: add support for spi slave_mode

2020-05-08 Thread Emil Renner Berthing
Hi Chris, On Fri, 8 May 2020 at 10:47, Chris Ruehl wrote: > > This patch aim to add spi slave mode support to the rockchip driver. > Fix the wrong usage of num_cs set fix to ROCKCHIP_SPI_MAX_CS_NUM, > instead use max_native_cs flag to set the limit of native chip-select. > Enable use_gpio_descrip

Re: [PATCH v0 1/1] spi: spi-rockchip: add support for spi slave_mode

2020-05-08 Thread Emil Renner Berthing
Hi Chris, On Fri, 8 May 2020 at 15:13, Emil Renner Berthing wrote: > If you do something like this you won't need the temporary num_cs variable: > > if (of_property_read_u32(np, "num-cs", &master->num_chipselect)) > master->num_chipselect = 1; Sorry

  1   2   >