[GIT PULL] Please pull powerpc/linux.git powerpc-5.1-6 tag

2019-04-27 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Linus, Please pull some more powerpc fixes for 5.1. I was 50/50 on whether these were worthy of sending at rc6, but decided I would send them as they're in obscure areas of the code and they do fix user-visible bugs. cheers The following change

Re: [PATCH stable v4.4 00/52] powerpc spectre backports for 4.4

2019-04-27 Thread Michael Ellerman
Diana Madalina Craciun writes: > Hi Michael, > > There are some missing NXP Spectre v2 patches. I can send them > separately if the series will be accepted. I have merged them, but I did > not test them, I was sick today and incapable of doing that. No worries, there's no rush :) Sorry I missed

Re: [PATCH stable v4.4 00/52] powerpc spectre backports for 4.4

2019-04-27 Thread Michael Ellerman
Greg KH writes: > On Mon, Apr 22, 2019 at 12:19:45AM +1000, Michael Ellerman wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi Greg/Sasha, >> >> Please queue up these powerpc patches for 4.4 if you have no objections. > > why? Do you, or someone else, really care about spectr

[PATCH V4] ASoC: fsl_esai: Add pm runtime function

2019-04-27 Thread S.j. Wang
Add pm runtime support and move clock handling there. Close the clocks at suspend to reduce the power consumption. fsl_esai_suspend is replaced by pm_runtime_force_suspend. fsl_esai_resume is replaced by pm_runtime_force_resume. Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen --- Changes in

Re: [PATCH V3] ASoC: fsl_esai: Add pm runtime function

2019-04-27 Thread S.j. Wang
Hi Mark > On Fri, Apr 26, 2019 at 10:51:15AM +, S.j. Wang wrote: > > > On Mon, Apr 22, 2019 at 02:31:55AM +, S.j. Wang wrote: > > > > Add pm runtime support and move clock handling there. > > > > Close the clocks at suspend to reduce the power consumption. > > > > > fsl_esai_suspend is r

[PATCH V6] ASoC: fsl_esai: Fix missing break in switch statement

2019-04-27 Thread S.j. Wang
case ESAI_HCKT_EXTAL and case ESAI_HCKR_EXTAL should be independent of each other, so replace fall-through with break. Fixes: 43d24e76b698 ("ASoC: fsl_esai: Add ESAI CPU DAI driver") Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen Cc: --- Changes in V6 - resend base one for-5.2 Changes in

Re: [PATCH 2/3 v2] ASoC: fsl_sai: Add support for runtime pm

2019-04-27 Thread Mark Brown
On Fri, Apr 26, 2019 at 03:10:10PM +0300, Daniel Baluta wrote: > The only patch left in the series that needs to be applied is this: > https://www.spinics.net/lists/alsa-devel/msg89733.html > I will reply also to that email, to be easier for you to find it. Content free pings don't help... si

Re: [PATCH V3] ASoC: fsl_esai: Add pm runtime function

2019-04-27 Thread Mark Brown
On Fri, Apr 26, 2019 at 10:51:15AM +, S.j. Wang wrote: > > On Mon, Apr 22, 2019 at 02:31:55AM +, S.j. Wang wrote: > > > Add pm runtime support and move clock handling there. > > > Close the clocks at suspend to reduce the power consumption. > > > fsl_esai_suspend is replaced by pm_runtime_

Re: [PATCH v2 9/9] dpaa_eth: fix SG frame cleanup

2019-04-27 Thread Joakim Tjernlund
On Sat, 2019-04-27 at 10:10 +0300, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Fix issue with the entry indexing in the sg frame cleanup code being > off-by-1. This problem showed up when doing some basic iperf tests and > manifested in traffic coming to a halt. > > Signed-off-by:

Re: [PATCH 2/4] dt-bindings: doc: Reflect new NVMEM of_get_mac_address behaviour

2019-04-27 Thread Florian Fainelli
On 4/26/2019 4:06 PM, Petr Štetiar wrote: > As of_get_mac_address now supports NVMEM under the hood, we should > update the bindings documentation with the new nvmem-cell* properties. > While at it, fix also other missing properties supported by > of_get_mac_address. > > Signed-off-by: Petr Šte

Re: [PATCH 2/4] dt-bindings: doc: Reflect new NVMEM of_get_mac_address behaviour

2019-04-27 Thread Andrew Lunn
> diff --git a/Documentation/devicetree/bindings/net/ethernet.txt > b/Documentation/devicetree/bindings/net/ethernet.txt > index 2974e63..1e2bc9a 100644 > --- a/Documentation/devicetree/bindings/net/ethernet.txt > +++ b/Documentation/devicetree/bindings/net/ethernet.txt > @@ -10,6 +10,8 @@ Documen

Re: [PATCH v2 7/9] dpaa_eth: fix iova handling for contiguous frames

2019-04-27 Thread Christoph Hellwig
On Sat, Apr 27, 2019 at 10:10:29AM +0300, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > The driver relies on the no longer valid assumption that dma addresses > (iovas) are identical to physical addressees and uses phys_to_virt() to > make iova -> vaddr conversions. Fix this by addin

Re: [PATCH 2/4] dt-bindings: doc: Reflect new NVMEM of_get_mac_address behaviour

2019-04-27 Thread Andrew Lunn
> diff --git a/Documentation/devicetree/bindings/net/macb.txt > b/Documentation/devicetree/bindings/net/macb.txt > index 8b80515..92c5642 100644 > --- a/Documentation/devicetree/bindings/net/macb.txt > +++ b/Documentation/devicetree/bindings/net/macb.txt > @@ -26,15 +26,15 @@ Required properties:

Re: [PATCH v2 3/9] fsl/fman: backup and restore ICID registers

2019-04-27 Thread David Miller
From: laurentiu.tu...@nxp.com Date: Sat, 27 Apr 2019 10:10:25 +0300 > @@ -1914,7 +1936,10 @@ static int fman_reset(struct fman *fman) > static int fman_init(struct fman *fman) > { > struct fman_cfg *cfg = NULL; > - int err = 0, i, count; > + int err = 0, count; > +#ifdef CONFIG_PPC

Re: [PATCH 10/41] drivers: tty: serial: sb1250-duart: fix missing parentheses

2019-04-27 Thread Greg KH
On Sat, Apr 27, 2019 at 02:51:51PM +0200, Enrico Weigelt, metux IT consult wrote: > Fix checkpatch warning: > > ERROR: Macros with complex values should be enclosed in parentheses > #911: FILE: drivers/tty/serial/sb1250-duart.c:911: > +#define SERIAL_SB1250_DUART_CONSOLE &sbd_con

Re: [PATCH 01/41] drivers: tty: serial: dz: use dev_err() instead of printk()

2019-04-27 Thread Greg KH
On Sat, Apr 27, 2019 at 02:51:42PM +0200, Enrico Weigelt, metux IT consult wrote: > Using dev_err() instead of printk() for more consistent output. > (prints device name, etc). > > Signed-off-by: Enrico Weigelt > --- > drivers/tty/serial/dz.c | 8 Do you have this hardware to test any

Re: [PATCH 05/41] drivers: tty: serial: dz: use pr_info() instead of incomplete printk()

2019-04-27 Thread Greg KH
On Sat, Apr 27, 2019 at 02:51:46PM +0200, Enrico Weigelt, metux IT consult wrote: > Fix the checkpatch warning: > > WARNING: printk() should include KERN_ facility level > #934: FILE: dz.c:934: > + printk("%s%s\n", dz_name, dz_version); > > Signed-off-by: Enrico Weigelt > --- > dri

Re: [PATCH 01/41] drivers: tty: serial: dz: use dev_err() instead of printk()

2019-04-27 Thread Greg KH
On Sat, Apr 27, 2019 at 02:51:42PM +0200, Enrico Weigelt, metux IT consult wrote: > Using dev_err() instead of printk() for more consistent output. > (prints device name, etc). > > Signed-off-by: Enrico Weigelt Your "From:" line does not match the signed-off-by line, so I can't take any of thes

Re: [PATCH 37/41] drivers: tty: serial: 8250: simplify io resource size computation

2019-04-27 Thread John Paul Adrian Glaubitz
On 4/27/19 2:52 PM, Enrico Weigelt, metux IT consult wrote: > Simpily io resource size computation by setting mapsize field. Here's a typo Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-be

[PATCH 40/41] drivers: tty: serial: helper for setting mmio range

2019-04-27 Thread Enrico Weigelt, metux IT consult
Introduce a little helpers for settings the mmio range from an struct resource or start/len parameters with less code. (also setting iotype to UPIO_MEM) Also converting drivers to use these new helpers as well as fetching mapsize field instead of using hardcoded values. (the runtime overhead of th

[PATCH 24/41] drivers: tty: serial: timbuart: use dev_err() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/timbuart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/timbuart.c b/drivers/tty/serial/timbuart.c index 19d

[PATCH 27/41] drivers: tty: serial: sunzilog: fix formatting issues

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings: WARNING: Use #include instead of #38: FILE: drivers/tty/serial/sunzilog.c:38: +#include WARNING: line over 80 characters #109: FILE: drivers/tty/serial/sunzilog.c:109: +#define ZILOG_CHANNEL_FROM_PORT(PORT) ((struct zilog_channel __iomem *

[PATCH 35/41] drivers: tty: serial: 8250: add mapsize to platform data

2019-04-27 Thread Enrico Weigelt, metux IT consult
Adding a mapsize field for the 8250 port platform data struct, so we can now set the resource size (eg. *1) and don't need funny runtime detections like serial8250_port_size() anymore. For now, serial8250_port_size() is called everytime we need the io resource size. That function checks which chip

[PATCH 41/41] drivers: tty: serial: lpc32xx_hs: fill mapsize and use it

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fill the struct uart_port->mapsize field and use it, insteaf of hardcoded values in many places. This makes the code layout a bit more consistent and easily allows using generic helpers for the io memory handling. Candidates for such helpers could be eg. the request+ioremap and iounmap+release com

[PATCH 36/41] drivers: tty: serial: 8250: store mmio resource size in port struct

2019-04-27 Thread Enrico Weigelt, metux IT consult
The io resource size is currently recomputed when it's needed but this actually needs to be done once (or drivers could specify fixed values) Simplify that by doing this computation only once and storing the result into the mapsize field. serial8250_register_8250_port() is now called only once on

[PATCH 34/41] drivers: tty: serial: zs: fill mapsize and use it

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fill the struct uart_port->mapsize field and use it, insteaf of hardcoded values in many places. This makes the code layout a bit more consistent and easily allows using generic helpers for the io memory handling. Candidates for such helpers could be eg. the request+ioremap and iounmap+release com

[PATCH 33/41] drivers: tty: serial: zs: use dev_err() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/zs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/zs.c b/drivers/tty/serial/zs.c index b03d3e4..adbfe79

[PATCH 30/41] drivers: tty: serial: ioc4_serial: use dev_warn() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_warn() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/ioc4_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/ioc4_serial.c b/drivers/tty/serial/ioc4_serial.c i

[PATCH 06/41] drivers: tty: serial: sb1250-duart: use dev_err() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/sb1250-duart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/sb1250-duart.c b/drivers/tty/serial/sb1250-d

[PATCH 01/41] drivers: tty: serial: dz: use dev_err() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/dz.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/dz.c b/drivers/tty/serial/dz.c index 7b57e84..96e35a

[PATCH 25/41] drivers: tty: serial: timbuart: fix formatting issues

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings: WARNING: Missing a blank line after declarations #43: FILE: drivers/tty/serial/timbuart.c:43: + u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; + iowrite32(ier, port->membase + TIMBUART_IER); WARNING: Missing a blank line after declara

[PATCH 07/41] drivers: tty: serial: sb1250-duart: include instead of

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warning: WARNING: Use #include instead of #41: FILE: drivers/tty/serial/sb1250-duart.c:41: +#include Signed-off-by: Enrico Weigelt --- drivers/tty/serial/sb1250-duart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sb1250-du

[PATCH 28/41] drivers: tty: serial: sunzilog: fix includes

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warning: WARNING: Use #include instead of #38: FILE: drivers/tty/serial/sunzilog.c:38: +#include Signed-off-by: Enrico Weigelt --- drivers/tty/serial/sunzilog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sunzilog.c b/driv

[PATCH 09/41] drivers: tty: serial: sb1250-duart: fill mapsize and use it

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fill the struct uart_port->mapsize field and use it, insteaf of hardcoded values in many places. This makes the code layout a bit more consistent and easily allows using generic helpers for the io memory handling. Candidates for such helpers could be eg. the request+ioremap and iounmap+release com

[PATCH 20/41] drivers: tty: serial: cpm_uart: use dev_err()/dev_warn() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_err()/dev_warn() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/cpm_uart/cpm_uart_core.c | 6 +++--- drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) di

[PATCH 10/41] drivers: tty: serial: sb1250-duart: fix missing parentheses

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warning: ERROR: Macros with complex values should be enclosed in parentheses #911: FILE: drivers/tty/serial/sb1250-duart.c:911: +#define SERIAL_SB1250_DUART_CONSOLE&sbd_console Signed-off-by: Enrico Weigelt --- drivers/tty/serial/sb1250-duart.c | 2 +- 1 file

[PATCH 08/41] drivers: tty: serial: sb1250-duart: fix checkpatch warning on printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
checkpatch complaints: WARNING: printk() should include KERN_ facility level #698: FILE: drivers/tty/serial/sb1250-duart.c:698: + printk(err); WARNING: printk() should include KERN_ facility level #706: FILE: drivers/tty/serial/sb1250-duart.c:706: +

[PATCH 22/41] drivers: tty: serial: cpm_uart: fix logging calls

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings by using pr_err(): WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... #109: FILE: drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c:109: + printk(KERN_ERR WARNING: Prefer [subsys

[PATCH 15/41] drivers: tty: serial: uartlite: fix use fix bare 'unsigned'

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #562: FILE: drivers/tty/serial/uartlite.c:562: + unsigned retries = 100; WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #574: FILE: drivers/tty/serial/uartlite.c:574: +

[PATCH 14/41] drivers: tty: serial: uartlite: remove unnecessary braces

2019-04-27 Thread Enrico Weigelt, metux IT consult
checkpatch complains: WARNING: braces {} are not necessary for any arm of this statement #489: FILE: drivers/tty/serial/uartlite.c:489: + if (oops_in_progress) { [...] + } else [...] Signed-off-by: Enrico Weigelt --- drivers/tty/serial/uartlite.c | 4 ++-- 1 file cha

[PATCH 17/41] drivers: tty: serial: apbuart: fix logging calls

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings: WARNING: Prefer using '"%s...", __func__' to using 'apbuart_console_setup', this function's name, in a string #491: FILE: drivers/tty/serial/apbuart.c:491: + pr_debug("apbuart_console_setup co=%p, co->index=%i, options=%s\n", WARNING: Prefer [subsystem

[PATCH 21/41] drivers: tty: serial: cpm_uart: fix includes

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fixing checkpatch warning: WARNING: Use #include instead of #25: FILE: drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c:25: +#include WARNING: Use #include instead of +#include WARNING: Use #include instead of +#include Signed-off-by: Enrico Weigelt --- drivers

[PATCH 37/41] drivers: tty: serial: 8250: simplify io resource size computation

2019-04-27 Thread Enrico Weigelt, metux IT consult
Simpily io resource size computation by setting mapsize field. Some of the special cases handled by serial8250_port_size() can be simplified by putting this data to corresponding platform data or probe function. Signed-off-by: Enrico Weigelt --- arch/mips/alchemy/common/platform.c | 1 + driver

[PATCH 39/41] drivers: tty: serial: pmac_zilog: fill mapsize and use it

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fill the struct uart_port->mapsize field and use it, insteaf of hardcoded values in many places. This makes the code layout a bit more consistent and easily allows using generic helpers for the io memory handling. Candidates for such helpers could be eg. the request+ioremap and iounmap+release com

[PATCH 38/41] drivers: tty: serial: xilinx_uartps: fill mapsize and use it

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fill the struct uart_port->mapsize field and use it, insteaf of hardcoded values in many places. This makes the code layout a bit more consistent and easily allows using generic helpers for the io memory handling. Candidates for such helpers could be eg. the request+ioremap and iounmap+release com

[PATCH 31/41] drivers: tty: serial: ioc4_serial: use pr_*() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
This fixes a bunch of checkpatch warnings: WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... #930: FILE: drivers/tty/serial/ioc4_serial.c:930: + printk(KERN_ERR WARNING: Prefer [subsystem eg: net

[PATCH 23/41] drivers: tty: serial: cpm_uart: fix styling issues

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch errors: ERROR: else should follow close brace '}' #121: FILE: drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c:121: + } + else WARNING: line over 80 characters #150: FILE: drivers/tty/serial/cpm_uart/cpm_uart_cpm2.c:150: +

[PATCH 32/41] drivers: tty: serial: 21285: define's for address/size, use mapsize field

2019-04-27 Thread Enrico Weigelt, metux IT consult
Instead of hardcoding raw numbers, add define's for the mmio address/size. Also fill the mapsize field and use it on mem request/release calls, for more consistency and allowing generic helpers to be used later. Signed-off-by: Enrico Weigelt --- drivers/tty/serial/21285.c | 12 +--- 1 fi

[PATCH 29/41] drivers: tty: serial: sunzilog: cleanup logging

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warning: WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... #1238: FILE: drivers/tty/serial/sunzilog.c:1238: + printk(KERN_INFO "Console: ttyS%d (SunZilog zs%d)\n", Signed-off-by: Enrico We

[PATCH 03/41] drivers: tty: serial: dz: fix missing parentheses

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warning: ERROR: Macros with complex values should be enclosed in parentheses #912: FILE: dz.c:912: +#define SERIAL_DZ_CONSOLE&dz_console Signed-off-by: Enrico Weigelt --- drivers/tty/serial/dz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 26/41] drivers: tty: serial: sunzilog: use dev_info() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_info() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/sunzilog.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/sunzilog.c b/drivers/tty/serial/sunzilog.c inde

serial drivers polishing

2019-04-27 Thread Enrico Weigelt, metux IT consult
Hello folks, here's another attempt of polishing the serial drivers: * lots of minor cleanups to make checkpatch happier (eg. formatting, includes, inttypes, ...) * use appropriate logging helpers instead of printk() * consequent use of mapsize/mapbase fields: the basic idea is, all driver

[PATCH 05/41] drivers: tty: serial: dz: use pr_info() instead of incomplete printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix the checkpatch warning: WARNING: printk() should include KERN_ facility level #934: FILE: dz.c:934: + printk("%s%s\n", dz_name, dz_version); Signed-off-by: Enrico Weigelt --- drivers/tty/serial/dz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tt

[PATCH 12/41] drivers: tty: serial: uartlite: use dev_dbg() instead of pr_debug()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_dbg() instead of pr_debg() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/uartlite.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c inde

[PATCH 11/41] drivers: tty: serial: sb1250-duart: fix formatting error

2019-04-27 Thread Enrico Weigelt, metux IT consult
checkpatch complains: ERROR: space required before the open parenthesis '(' #659: FILE: drivers/tty/serial/sb1250-duart.c:659: + if(refcount_dec_and_test(&duart->map_guard)) Just add this missing space to make checkpatch happy. Signed-off-by: Enrico Weigelt --- drivers/tty/serial

[PATCH 19/41] drivers: tty: serial: apbuart: fix code formatting

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings: WARNING: line over 80 characters #9: FILE: drivers/tty/serial/apbuart.c:9: + * Copyright (C) 2006 Daniel Hellstrom , Aeroflex Gaisler AB WARNING: line over 80 characters #11: FILE: drivers/tty/serial/apbuart.c:11: + * Copyright (C) 2009 Kristoff

[PATCH 02/41] drivers: tty: serial: dz: include instead of

2019-04-27 Thread Enrico Weigelt, metux IT consult
fixing checkpatch warning: WARNING: Use #include instead of #55: FILE: dz.c:55: +#include Signed-off-by: Enrico Weigelt --- drivers/tty/serial/dz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/dz.c b/drivers/tty/serial/dz.c index 96e35af..fd4f0

[PATCH 04/41] drivers: tty: serial: dz: fix use fix bare 'unsigned'

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #103: FILE: dz.c:103: +static u16 dz_in(struct dz_port *dport, unsigned offset) WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #110: FILE: dz.c:110: +static void dz_out(struct dz_po

[PATCH 18/41] drivers: tty: serial: apbuart: use dev_info() instead of printk()

2019-04-27 Thread Enrico Weigelt, metux IT consult
Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt --- drivers/tty/serial/apbuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/apbuart.c b/drivers/tty/serial/apbuart.c index d2b86f7.

[PATCH 13/41] drivers: tty: serial: uartlite: fill mapsize and use it

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fill the struct uart_port->mapsize field and use it, insteaf of hardcoded values in many places. This makes the code layout a bit more consistent and easily allows using generic helpers for the io memory handling. Candidates for such helpers could be eg. the request+ioremap and iounmap+release com

[PATCH 16/41] drivers: tty: serial: uartlite: fix overlong lines

2019-04-27 Thread Enrico Weigelt, metux IT consult
Fix checkpatch warnings: WARNING: line over 80 characters #283: FILE: drivers/tty/serial/uartlite.c:283: + ret = request_irq(port->irq, ulite_isr, IRQF_SHARED | IRQF_TRIGGER_RISING, WARNING: Missing a blank line after declarations #577: FILE: drivers/tty/serial/uartlite.c:5

Re: [PATCH v10 00/18] Introduce the Counter subsystem

2019-04-27 Thread Jonathan Cameron
On Thu, 25 Apr 2019 21:36:24 +0200 Greg KH wrote: > On Sun, Apr 07, 2019 at 03:25:50PM +0100, Jonathan Cameron wrote: > > On Tue, 2 Apr 2019 15:30:35 +0900 > > William Breathitt Gray wrote: > > > > > Changes in v10: > > > - Fix minor typographical errors in documentation > > > - Merge th

Why is suspend with s2idle available on POWER8 systems?

2019-04-27 Thread Paul Menzel
Dear Linux folks, Updating an IBM S822LC from Ubuntu 18.10 to 19.04 some user space stuff seems to have changed, so that going into sleep/suspend is enabled. That raises two questions. 1. Is suspend actually supported on a POWER8 processor? Apr 27 10:18:13 power NetworkManager[7534]: [1

Re: BUG: crash in __tlb_remove_page_size with STRICT_KERNEL_RWX on BOOK3S_32

2019-04-27 Thread christophe leroy
Le 26/04/2019 à 19:07, Segher Boessenkool a écrit : On Fri, Apr 26, 2019 at 05:38:50PM +0300, Serge Belyshev wrote: ---[ Instruction Block Address Translation ]--- 0: 0xc000-0xc07f 0x Kernel EXEC coherent 1: 0xc080-0xc087 0x0080 Kernel EXEC coherent 2: - 3:

[PATCH v2 9/9] dpaa_eth: fix SG frame cleanup

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor Fix issue with the entry indexing in the sg frame cleanup code being off-by-1. This problem showed up when doing some basic iperf tests and manifested in traffic coming to a halt. Signed-off-by: Laurentiu Tudor Acked-by: Madalin Bucur --- drivers/net/ethernet/freescale/d

[PATCH v2 8/9] dpaa_eth: fix iova handling for sg frames

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor The driver relies on the no longer valid assumption that dma addresses (iovas) are identical to physical addressees and uses phys_to_virt() to make iova -> vaddr conversions. Fix this also for scatter-gather frames using the iova -> phys conversion function added in the prev

[PATCH v2 7/9] dpaa_eth: fix iova handling for contiguous frames

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor The driver relies on the no longer valid assumption that dma addresses (iovas) are identical to physical addressees and uses phys_to_virt() to make iova -> vaddr conversions. Fix this by adding a function that does proper iova -> phys conversions using the iommu api and upda

[PATCH v2 5/9] dpaa_eth: defer probing after qbman

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor Enabling SMMU altered the order of device probing causing the dpaa1 ethernet driver to get probed before qbman and causing a boot crash. Add predictability in the probing order by deferring the ethernet driver probe after qbman and portals by using the recently introduced qb

[PATCH v2 3/9] fsl/fman: backup and restore ICID registers

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor During probing, FMAN is reset thus losing all its register settings. Backup port ICID registers before reset and restore them after, similarly to how it's done on powerpc / PAMU based platforms. This also has the side effect of disabling the old code path (liodn backup/resto

[PATCH v2 6/9] dpaa_eth: base dma mappings on the fman rx port

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor The dma transactions initiator is the rx fman port so that's the device that the dma mappings should be done. Previously the mappings were done through the MAC device which makes no sense because it's neither dma-able nor connected in any way to smmu. Signed-off-by: Laurent

[PATCH v2 4/9] fsl/fman: add API to get the device behind a fman port

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor Add an API that retrieves the 'struct device' that the specified fman port probed against. The new API will be used in a subsequent iommu enablement related patch. Signed-off-by: Laurentiu Tudor Acked-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_port.c

[PATCH v2 1/9] soc/fsl/qman: fixup liodns only on ppc targets

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor ARM SoCs use SMMU so the liodn fixup done in the qman driver is no longer making sense and it also breaks the ICID settings inherited from u-boot. Do the fixups only for PPC targets. Signed-off-by: Laurentiu Tudor --- drivers/soc/fsl/qbman/qman_ccsr.c | 2 +- drivers/soc/

[PATCH v2 2/9] soc/fsl/qbman_portals: add APIs to retrieve the probing status

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor Add a couple of new APIs to check the probing status of the required cpu bound qman and bman portals: 'int bman_portals_probed()' and 'int qman_portals_probed()'. They return the following values. * 1 if qman/bman portals were all probed correctly * 0 if qman/bman porta

[PATCH v2 0/9] Prerequisites for NXP LS104xA SMMU enablement

2019-04-27 Thread laurentiu . tudor
From: Laurentiu Tudor This patch series contains several fixes in preparation for SMMU support on NXP LS1043A and LS1046A chips. Once these get picked up, I'll submit the actual SMMU enablement patches consisting in the required device tree changes. This patch series contains only part of the pr