Re: [PATCH] [v2] ARM: omap1: add nand_chip declaration

2018-10-05 Thread Miquel Raynal
Hi Arnd, Arnd Bergmann wrote on Wed, 26 Sep 2018 16:20:16 +0200: > Recent MTD changes caused a minor build regression on OMAP1: > > In file included from arch/arm/mach-omap1/devices.c:31: > arch/arm/mach-omap1/common.h:85:39: error: 'struct nand_chip' declared inside > parameter list will not

Re: [PATCH 2/2] ARM: ixp4xx: include linux/mtd/platnand.h

2018-10-05 Thread Miquel Raynal
Hi Arnd, Arnd Bergmann wrote on Wed, 26 Sep 2018 15:04:39 +0200: > The platform_nand_data structure definition is required for ixdp425 > but has now moved to a new header file: > > arch/arm/mach-ixp4xx/ixdp425-setup.c:98:15: error: variable > 'ixdp425_flash_nand_data' has initializer but incom

[PATCH 03/13] clocksource/drivers/sh_cmt: Convert to SPDX identifiers

2018-10-05 Thread Daniel Lezcano
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto Reviewed-by: Simon Horman Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_cmt.c | 10 +- 1 file changed, 1 insertion(+), 9 dele

[PATCH 01/13] clocksource: Convert to using %pOFn instead of device_node.name

2018-10-05 Thread Daniel Lezcano
From: Rob Herring In preparation to remove the node name pointer from struct device_node, convert printf users to use the %pOFn format specifier. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Michal Simek Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Rob Herring Signed-off-by: Daniel

[PATCH 13/13] clocksource/drivers/dw_apb: Add reset control

2018-10-05 Thread Daniel Lezcano
From: Dinh Nguyen Add code to retrieve the reset property from the dw-apb timers and if the property is available, the safe operation is to assert the timer into reset, and followed by a deassert of the timer reset (brings the timer out of reset). This patch is needed for systems where the bootl

[PATCH 11/13] clocksource/drivers: Unify the names to timer-* format

2018-10-05 Thread Daniel Lezcano
In order to make some housekeeping in the directory, this patch renames drivers to the timer-* format in order to unify their names. There is no functional changes. Acked-by: Uwe Kleine-König Acked-by: Vladimir Zapolskiy Acked-by: Liviu Dudau Signed-off-by: Daniel Lezcano --- MAINTAINERS

[PATCH 12/13] clocksource: Remove obsolete CLOCKSOURCE_OF_DECLARE

2018-10-05 Thread Daniel Lezcano
The macro CLOCKSOURCE_OF_DECLARE was renamed more TIMER_OF_DECLARE, and we kept an alias CLOCKSOURCE_OF_DECLARE in order to smooth the transition for drivers. This change was done 1.5 year ago, we can reasonably remove this backward compatible macro as it is no longer used anywhere. Signed-off-by

[PATCH 07/13] clocksource/drivers/sh_cmt: Fix clocksource width for 32-bit machines

2018-10-05 Thread Daniel Lezcano
From: Sergei Shtylyov The driver seems to abuse *unsigned long* not only for the (32-bit) register values but also for the 'sh_cmt_channel::total_cycles' which needs to always be 64-bit -- as a result, the clocksource's mask is needlessly clamped down to 32-bits on the 32-bit machines... Fixes:

[PATCH 06/13] clocksource/drivers/sh_cmt: Fixup for 64-bit machines

2018-10-05 Thread Daniel Lezcano
From: Sergei Shtylyov When trying to use CMT for clockevents on R-Car gen3 SoCs, I noticed that 'max_delta_ns' for the broadcast timer (CMT) was shown as 1000 in /proc/timer_list. It turned out that when calculating it, the driver did 1 << 32 (causing what I think was undefined behavior) resultin

[PATCH 09/13] dt-bindings: timer: renesas: cmt: document R-Car gen3 support

2018-10-05 Thread Daniel Lezcano
From: Sergei Shtylyov Document support for the R-Car gen3 CMT types 0/1 bindings -- they seem to be the same CMT types 0/1 as in the R-Car gen2 SoCs. Also document R8A779{7|8}0 bindings as these are the R-Car gen3 SoCs for which the initial support was done. Signed-off-by: Sergei Shtylyov Revi

[PATCH 10/13] clocksource/drivers/sh_cmt: Add R-Car gen3 support

2018-10-05 Thread Daniel Lezcano
From: Sergei Shtylyov Add support for the R-Car gen3 CMT types 0/1 -- they seem to be the same CMT types 0/1 as in R-Car gen2 SoCs. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_cmt.c | 8 1 file changed, 8 in

[PATCH 08/13] clocksource/drivers/sh_cmt: Properly line-wrap sh_cmt_of_table[] initializer

2018-10-05 Thread Daniel Lezcano
From: Sergei Shtylyov There's no good reason for the sh_cmt_of_table[] initializer to violate the 80-column limit, especially after the commit 8d50e9476bb4 ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated") partially fixed it -- fix the R-Car gen2 related entries as well. Sign

[PATCH 02/13] clocksource/drivers/renesas-ostm: Convert to SPDX identifiers

2018-10-05 Thread Daniel Lezcano
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto Reviewed-by: Simon Horman Signed-off-by: Daniel Lezcano --- drivers/clocksource/renesas-ostm.c | 11 +-- 1 file changed, 1 insertion(+),

Re: [PATCH net-next v3] wireless-drivers: rtnetlink wifi simulation device

2018-10-05 Thread Sergey Matyukevich
Hi Cody, > drivers/net/wireless/Kconfig | 7 + > drivers/net/wireless/Makefile| 2 + > drivers/net/wireless/virt_wifi.c | 618 +++ > 3 files changed, 627 insertions(+) > create mode 100644 drivers/net/wireless/virt_wifi.c I did a quick check of your patch

[PATCH 05/13] clocksource/drivers/sh_tmu: Convert to SPDX identifiers

2018-10-05 Thread Daniel Lezcano
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto Reviewed-by: Simon Horman Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_tmu.c | 10 +- 1 file changed, 1 insertion(+), 9 dele

[PATCH 04/13] clocksource/drivers/sh_mtu2: Convert to SPDX identifiers

2018-10-05 Thread Daniel Lezcano
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto Reviewed-by: Simon Horman Signed-off-by: Daniel Lezcano --- drivers/clocksource/sh_mtu2.c | 10 +- 1 file changed, 1 insertion(+), 9 del

Re: [PATCH RT] tty: serial: pl011: fix warning about uninitialized variable

2018-10-05 Thread Sebastian Andrzej Siewior
On 2018-09-24 10:29:01 [+0200], Kurt Kanzenbach wrote: > Silence the following gcc warning: > > drivers/tty/serial/amba-pl011.c: In function ‘pl011_console_write’: > ./include/linux/spinlock.h:260:3: warning: ‘flags’ may be used uninitialized > in this function [-Wmaybe-uninitialized] >_raw_s

Re: [GIT PULL] Qualcomm Device Tree updates for 4.20

2018-10-05 Thread Arnd Bergmann
On Fri, Oct 5, 2018 at 4:28 PM Andy Gross wrote: > On Tue, Oct 02, 2018 at 11:36:11AM +0200, Arnd Bergmann wrote: > > On Sun, Sep 30, 2018 at 8:38 PM Andy Gross wrote: > > I also get this one warning (both with and without your patches): > > > > arch/arm/boot/dts/qcom-apq8064-arrow-sd-600eval.dtb

Re: [GIT PULL] Qualcomm ARM64 DT updates for 4.20

2018-10-05 Thread Andy Gross
On Tue, Oct 02, 2018 at 11:30:29AM +0200, Arnd Bergmann wrote: > On Sun, Sep 30, 2018 at 8:38 PM Andy Gross wrote: > > > > The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: > > > > Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) > > > > are available in the git repository a

[PATCH 2/3] staging: greybus: loopback.c: do insertion in O(n) instead of O(n lg n)

2018-10-05 Thread Rasmus Villemoes
"Append to the list and do a merge sort" is not really an insertion sort. While a few more lines of code, we can keep the list sorted doing at most n comparisons by iterating until we find the first element strictly greater than gb. Signed-off-by: Rasmus Villemoes --- I have no idea if the perfor

[PATCH 3/3] staging: greybus: loopback.c: simplify prototype of gb_loopback_bus_id_compare

2018-10-05 Thread Rasmus Villemoes
gb_loopback_bus_id_compare only has a single caller, and it no longer needs to have a prototype compatible with being a callback for list_sort. Signed-off-by: Rasmus Villemoes --- drivers/staging/greybus/loopback.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/driver

Re: [GIT PULL] Qualcomm Device Tree updates for 4.20

2018-10-05 Thread Andy Gross
On Tue, Oct 02, 2018 at 11:36:11AM +0200, Arnd Bergmann wrote: > On Sun, Sep 30, 2018 at 8:38 PM Andy Gross wrote: > > > > The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: > > > > Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) > > > > are available in the git repository a

[PATCH 1/3] staging: greybus: loopback.c: remove unused gb_loopback::lbid

2018-10-05 Thread Rasmus Villemoes
It's not obvious how the code prevents adding more than 31 elements to the list and thus invoking undefined behaviour in the 1 << new_lbid expression, and in practice causing ->lbid values to repeat every 32 elements. But the definition of struct gb_loopback is local to loopback.c, and the lbid fi

Re: [PATCH v3] sched/rt : return accurate release rq lock info

2018-10-05 Thread Steven Rostedt
On Sat, 6 Oct 2018 06:22:11 +0800 Peng Hao wrote: > find_lock_lowest_rq may or not releease rq lock when return > lowest_rq=NULL, but it is fuzzy. > If not releasing rq lock, it is unnecessary to re-call > pick_next_pushable_task. > When CONFIG_PREEMPT=n, not releasing rq lock and return > lowest

Re: [PATCH v4 3/3] gpiolib: Show correct direction from the beginning

2018-10-05 Thread Jeffrey Hugo
On 10/5/2018 12:52 AM, Ricardo Ribalda Delgado wrote: Hi On Fri, Oct 5, 2018 at 12:26 AM Jeffrey Hugo wrote: On 10/2/2018 9:21 AM, Jeffrey Hugo wrote: On 10/2/2018 8:08 AM, Ricardo Ribalda Delgado wrote: Current code assumes that the direction is input if direction_input function is set. Thi

Re: [PATCH] irqchip/gic-v3-its: Add early memory allocation errata

2018-10-05 Thread Matthias Brugger
On 05/10/2018 15:42, Marc Zyngier wrote: > On 05/10/18 13:33, Matthias Brugger wrote: >> >> >> On 05/10/2018 12:55, Marc Zyngier wrote: >>> Hi Matthias, >>> >>> On 04/10/18 23:11, Matthias Brugger wrote: Friendly reminder, if anyone has any comment on the patch :) On 9/12/18 11:52

Re: [PATCH] perf record: use unmapped IP for inline callchain cursors

2018-10-05 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 02, 2018 at 09:39:49AM +0200, Milian Wolff escreveu: > Signed-off-by: Milian Wolff > Cc: Arnaldo Carvalho de Melo > Reported-by: Ravi Bangoria > # Tested-by: > # Reviewed-by: > # Suggested-b: > Fixes: bfe16b0653 ("perf report: Don't crash on invalid inline debug > information") No,

[PATCH v3] sched/rt : return accurate release rq lock info

2018-10-05 Thread Peng Hao
find_lock_lowest_rq may or not releease rq lock when return lowest_rq=NULL, but it is fuzzy. If not releasing rq lock, it is unnecessary to re-call pick_next_pushable_task. When CONFIG_PREEMPT=n, not releasing rq lock and return lowest_rq=null frequently happens in a simple test case: Four differen

Re: [PATCH 32/39] x86/pgtable/pae: Use separate kernel PMDs for user page-table

2018-10-05 Thread Arnd Bergmann
On Wed, Jul 18, 2018 at 11:43 AM Joerg Roedel wrote: > arch/x86/mm/pgtable.c | 100 > -- > 1 file changed, 81 insertions(+), 19 deletions(-) > > diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c > index db6fb77..8e4e63d 100644 > --- a/arch

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-05 Thread Ricardo Ribalda Delgado
Hi again Boris On Fri, Oct 5, 2018 at 2:10 PM Boris Brezillon wrote: > > On Fri, 5 Oct 2018 14:04:52 +0200 > Ricardo Ribalda Delgado wrote: > > > Hi Boris > > On Fri, Oct 5, 2018 at 12:12 PM Boris Brezillon > > wrote: > > > > > > On Fri, 5 Oct 2018 11:54:18 +0200 > > > Ricardo Ribalda Delgado

Re: [PATCH V10 5/8] clocksource: add C-SKY SMP timer

2018-10-05 Thread Guo Ren
Hi Daniel, On Fri, Oct 05, 2018 at 03:48:58PM +0200, Daniel Lezcano wrote: > On 04/10/2018 19:22, Guo Ren wrote: > > This timer is used by SMP system and use mfcr/mtcr instruction > > to access the regs. > > > > Changelog: > > - Add rollback for timer_of_cleanup. > > - Use request_percpu_irq se

Re: [PATCH] mmc: tifm_sd: Mark expected switch fall-through

2018-10-05 Thread Ulf Hansson
On 5 October 2018 at 11:54, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case, I replaced the > "deliberate fall-through" comment with a proper "fall through" > at the

Re: [PATCH V5 01/24] mmc: mmci: Change struct members from bool to u8

2018-10-05 Thread Ulf Hansson
On 5 October 2018 at 15:22, Ludovic Barre wrote: > From: Ludovic Barre > > Recent versions of checkpatch have a new warning based on a documented > preference of Linus to not use bool in structures due to wasted space and > the size of bool is implementation dependent. For more information, see

Re: [PATCH] mmc: meson-mx-sdio: mark expected switch fall-through

2018-10-05 Thread Ulf Hansson
On 5 October 2018 at 12:09, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case, I replaced the "fall-through:" > comment with a proper "fall through", which is what GCC

[PATCH v9 3/3]: perf record: extend trace writing to multi AIO

2018-10-05 Thread Alexey Budankov
Multi AIO trace writing allows caching more kernel data into userspace memory postponing trace writing for the sake of overall profiling data thruput increase. It could be seen as kernel data buffer extension into userspace memory. With aio-cblocks option value different from 0, current defaul

[PATCH v9 2/3]: perf record: enable asynchronous trace writing

2018-10-05 Thread Alexey Budankov
Trace file offset is calculated and updated linearly after enqueuing aio write at record__aio_pushfn(). record__aio_sync() blocks till completion of started AIO operation and then proceeds. record__mmap_read_sync() implements a barrier for all incomplete aio write requests. Signed-off-by: Ale

Re: linux-next: Tree for Oct 5

2018-10-05 Thread Guenter Roeck
On Fri, Oct 05, 2018 at 04:39:43PM +1000, Stephen Rothwell wrote: > Hi all, > > Changes since 20181004: > > I added a supplied patch to the dma-mapping tree to fix overnight boot > problems. > > I added a supplied patch to the nfs tree to fix an overnight build > problem. > > The nfsd tree gain

Re: [PATCH V10 5/8] clocksource: add C-SKY SMP timer

2018-10-05 Thread Daniel Lezcano
On 04/10/2018 19:22, Guo Ren wrote: > This timer is used by SMP system and use mfcr/mtcr instruction > to access the regs. > > Changelog: > - Add rollback for timer_of_cleanup. > - Use request_percpu_irq separate from time_of. > - Remove #define CPUHP_AP_CSKY_TIMER_STARTING. > - Add CPUHP_AP_C

Re: [PATCH] perf record: use unmapped IP for inline callchain cursors

2018-10-05 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 03, 2018 at 09:05:37AM +0530, Ravi Bangoria escreveu: > LGTM. > Tested-by: Ravi Bangoria So, I've added this as a 'git rebase -i' 'fixup', i.e. kept the commit log message for the patch this patch fixes, and combined the two into just one patch so that we don't pollute the bisect hi

[PATCH v9 1/3]: perf util: map data buffer for preserving collected data

2018-10-05 Thread Alexey Budankov
The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov --- Changes in v10: - moved specific code to perf_mmap__aio_mmap(), perf_mmap__aio_mun

Re: [PATCH V5 02/24] mmc: mmci: create common mmci_dma_setup/release

2018-10-05 Thread Ulf Hansson
On 5 October 2018 at 15:22, Ludovic Barre wrote: > From: Ludovic Barre > > This patch creates a common mmci_dma_setup/release which calls > dma_setup/release callbacks of mmci_host_ops and manages > common features like use_dma... If there is a fallbacks to > pio mode, dma functions must check us

Re: [PATCH] irqchip/gic-v3-its: Add early memory allocation errata

2018-10-05 Thread Marc Zyngier
On 05/10/18 13:33, Matthias Brugger wrote: On 05/10/2018 12:55, Marc Zyngier wrote: Hi Matthias, On 04/10/18 23:11, Matthias Brugger wrote: Friendly reminder, if anyone has any comment on the patch :) On 9/12/18 11:52 AM, matthias@kernel.org wrote: From: Matthias Brugger Some hardwar

[PATCH v10 0/3]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-10-05 Thread Alexey Budankov
Currently in record mode the tool implements trace writing serially. The algorithm loops over mapped per-cpu data buffers and stores ready data chunks into a trace file using write() system call. At some circumstances the kernel may lack free space in a buffer because the other buffer's half

[PATCH v3] Neutis N5 support

2018-10-05 Thread Aleksandr Aleksandrov
This patch addes Neutis N5 support. Emlid Neutis N5 is a SoM based on Allwinner H5. The patch includes device tree file for Dev board and dtsi file for SoM needs. Changes from v1: separate dts file: dtsi for SoM and motherboard dts file that inlcudes dtsi file. Changes from v2 (5 oct 2018): - put

Re: [PATCH] arm_pmu: Delete incorrect cache event mapping for some armv8_pmuv3 events.

2018-10-05 Thread Will Deacon
On Fri, Oct 05, 2018 at 01:09:33AM +0530, Ganapatrao Kulkarni wrote: > On Thu, Oct 4, 2018 at 5:51 PM Will Deacon wrote: > > On Thu, Oct 04, 2018 at 11:12:09AM +0530, Ganapatrao Kulkarni wrote: > > > can you please pull this patch? > > > > I still don't like the idea of just removing events like t

[PATCH V5 08/24] mmc: mmci: add dma_finalize callback

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds dma_finalize callback at mmci_host_ops to allow to call specific variant. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 19 --- drivers/mmc/host/mmci.h | 3 ++- drivers/mmc/host/mmci_qcom_dml.c | 1 + 3 files

[PATCH V5 00/24] mmc: mmci: add sdmmc variant for stm32

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre The goal of this serie is to add support of sdmmc for stm32. Be to able to add this new variant it is needed to do some changes in mmci core: -Internalize specific needs of legacy dmaengine. -Create and setup dma_priv pointer. -Create generic callbacks which share some feature

[PATCH V5 06/24] mmc: mmci: add get_next_data callback

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds get_next_data callback to mmci_host_ops. Generic mmci_get_next_data factorizes next_cookie check and the host ops call. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 16 ++-- drivers/mmc/host/mmci.h | 2 ++ drivers

[PATCH v3] arm64: new board - Emlid Neutis N5

2018-10-05 Thread Aleksandr Aleksandrov
Emlid Neutis N5 is a SoM based on Allwinner H5, has a WiFi & BT module, DDR3 RAM and eMMC. - add neutis n5 dtsi file for SoM needs - add neutis devboard dts file - add neutis devboard target to dtb makefile - new vendor prefix - emlid Signed-off-by: Aleksandr Aleksandrov Cc: Maxime Ripard ---

[PATCH V5 16/24] mmc: mmci: add variant property to define irq pio mask

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch allows to define specific pio mask for variants. Needed to support the STM32 sdmmc variant which has some bits with different meaning (bits: 21,20,13,12,9) Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 13 +++-- drivers/mmc/host/mmci.h | 5 +

[PATCH V5 20/24] mmc: mmci: add optional reset property

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds a optional reset management. STM32 sdmmc variant needs to reset hardware block during the power cycle procedure (for re-initialization). Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 7 +++ drivers/mmc/host/mmci.h | 2 ++ 2 files changed, 9

[PATCH V5 17/24] mmc: mmci: add variant property to write datactrl before command

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds a boolean property to allow to write datactrl before to send command, whatever the command type (read or write). Needed to support the STM32 sdmmc variant. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 6 -- drivers/mmc/host/mmci.h | 2 ++ 2

[PATCH V5 15/24] mmc: mmci: add variant property to define dpsm bit

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds datactrl variant property to define dpsm enable bit. Needed to support the STM32 variant (STM32 has no dpsm enable bit). Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 15 --- drivers/mmc/host/mmci.h | 2 ++ 2 files changed, 14 inser

[PATCH V5 21/24] mmc: mmci: add clock divider for stm32 sdmmc

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre The STM32 sdmmc variant has a different clock divider. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 2 ++ drivers/mmc/host/mmci.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 72d16a3..6115c71 10

[PATCH V5 24/24] mmc: mmci: add stm32 sdmmc variant

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds a stm32 sdmmc variant, rev 1.1. Introduces a new Manufacturer id "0x53, ascii 'S' to define new stm32 sdmmc family with clean range of amba revision/configurations bits (corresponding to sdmmc_ver register with major/minor fields). Add 2 variants properties: -d

[PATCH V5 07/24] mmc: mmci: add dma_start callback

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds dma_start callback to mmci_host_ops. Create a generic mmci_dma_start function which regroup common action between variant. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 69 +++- drivers/mmc/host/mmci.

[PATCH V5 13/24] mmc: mmci: expand startbiterr to irqmask and error check

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre All variants don't pretend to have a startbiterr. -While data error check, if status register return an error (like MCI_DATACRCFAIL) we must avoid to check MCI_STARTBITERR (if not desired). -expand start_err to MCI_IRQENABLE to avoid to set this bit by default. Signed-off-by

[PATCH V5 14/24] mmc: mmci: add variant properties to define cpsm & cmdresp bits

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds command variant properties to define cpsm enable bit and responses. Needed to support the STM32 variant (shift of cpsm bit, specific definition of commands response). Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 47 +

[PATCH V5 22/24] mmc: mmci: add stm32 sdmmc registers

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds stm32 sdmmc specific registers. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.h | 56 + 1 file changed, 56 insertions(+) diff --git a/drivers/mmc/host/mmci.h b/drivers/mmc/host/mmci.h index e2ea8a5..a

[PATCH V5 11/24] mmc: mmci: add set_clk/pwrreg callbacks

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds set_clkreg and set_pwrreg callbacks at mmci_host_ops to allow to call specific variant. extends visibility of mmci_write_clk/pwrreg functions to be used into specific file variant. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 16 ---

[PATCH V5 23/24] dt-bindings: mmci: add stm32 sdmmc variant

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds properties for stm32 sdmmc variant. Signed-off-by: Ludovic Barre Acked-by: Rob Herring --- Documentation/devicetree/bindings/mmc/mmci.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmci.txt b/Docum

[PATCH V5 18/24] mmc: mmci: add variant property to not read datacnt

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds a boolean property to not read datacnt register. Needed to support the STM32 sdmmc variant. MMCIDATACNT register should be read only after the data transfer is completed. When reading after an error event the read data count value may be different from the real

[PATCH V5 03/24] mmc: mmci: introduce dma_priv pointer to mmci_host

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre -Introduces dma_priv pointer to define specific needs for each dma engine. This patch is needed to prepare sdmmc variant with internal dma which not use dmaengine API. -Moves next cookie to mmci host structure to share same cookie management between all variants. Signed-off-b

[PATCH V5 02/24] mmc: mmci: create common mmci_dma_setup/release

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch creates a common mmci_dma_setup/release which calls dma_setup/release callbacks of mmci_host_ops and manages common features like use_dma... If there is a fallbacks to pio mode, dma functions must check use_dma. error management: -mmci_dmae_setup fail if Tx and Rx

[PATCH V5 19/24] dt-bindings: mmci: add optional reset property

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds a optional reset management. Signed-off-by: Ludovic Barre Acked-by: Rob Herring --- Documentation/devicetree/bindings/mmc/mmci.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/mmci.txt b/Documentation/devicetree

[PATCH V5 12/24] mmc: mmci: add datactrl block size variant property

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch allows to define a datactrl block size by variant, requested by STM32 sdmmc variant. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 13 +++-- drivers/mmc/host/mmci.h | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH V5 09/24] mmc: mmci: add dma_error callback

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds dma_error callback at mmci_host_ops to allow to call specific variant. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 26 +++--- drivers/mmc/host/mmci.h | 2 ++ drivers/mmc/host/mmci_qcom_dml.c | 1 + 3 fil

[PATCH V5 05/24] mmc: mmci: add prepare/unprepare_data callbacks

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds prepare/unprepare callbacks to mmci_host_ops. Like this mmci_pre/post_request can be generic, mmci_prepare_data and mmci_unprepare_data provide common next_cookie management. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 101 +++

[PATCH V5 10/24] mmc: mmci: add validate_data callback

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch adds validate_data callback at mmci_host_ops to check specific constraints of variant. Move mmci_validate_data function to regroup mmci_host_ops interfaces. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 39 +-- dri

[PATCH V5 04/24] mmc: mmci: merge prepare data functions

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre This patch merges the prepare data functions. This allows to define a single access to prepare data service. This prepares integration for mmci host ops. Signed-off-by: Ludovic Barre --- drivers/mmc/host/mmci.c | 19 +++ 1 file changed, 7 insertions(+), 12 d

[PATCH V5 01/24] mmc: mmci: Change struct members from bool to u8

2018-10-05 Thread Ludovic Barre
From: Ludovic Barre Recent versions of checkpatch have a new warning based on a documented preference of Linus to not use bool in structures due to wasted space and the size of bool is implementation dependent. For more information, see the email thread at https://lkml.org/lkml/2017/11/21/384 f

[PATCH] x86/olpc: Fix build error with CONFIG_MFD_CS5535=m

2018-10-05 Thread Borislav Petkov
On Thu, Oct 04, 2018 at 06:08:08PM +0200, Lubomir Rintel wrote: > On OLPC XO-1 we're discovering the RTC via device tree from the arch > initcall. Don't let the PC platform register another one from its > device initcall, it's not going to work: Btw, a build fix ontop: --- From: Borislav Petkov

Re: KASAN: use-after-scope in ext4_group_desc_csum

2018-10-05 Thread Jan Glauber
On Fri, Oct 05, 2018 at 01:13:52PM +0200, Dmitry Vyukov wrote: > On Fri, Oct 5, 2018 at 12:16 PM, Jan Glauber wrote: > > Hi, > > > > I'm getting below warning when I enable CONFIG_KASAN_EXTRA=y on a arm64 > > ThunderX2 system. > > As far as I can tell this is present since KASAN_EXTRA was introdu

Re: [PATCH 2/3] x86/vdso: Rearrange do_hres() to improve code generation

2018-10-05 Thread Andy Lutomirski
> On Oct 4, 2018, at 11:00 PM, Thomas Gleixner wrote: > >> On Thu, 4 Oct 2018, Andy Lutomirski wrote: >> index 18c8a78d1ec9..419de7552c2f 100644 >> --- a/arch/x86/entry/vdso/vclock_gettime.c >> +++ b/arch/x86/entry/vdso/vclock_gettime.c >> @@ -147,10 +147,9 @@ notrace static int do_hres(clocki

[PATCH] memstick: tifm_ms: mark expected switch fall-through

2018-10-05 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1357317 ("Missing break in switch") Addresses-Coverity-ID: 1460342 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/memstick/host/tifm_ms.

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-05 Thread Ingo Molnar
* Borislav Petkov wrote: > On Fri, Oct 05, 2018 at 11:31:08AM +0200, Ingo Molnar wrote: > > > > * Nadav Amit wrote: > > > > > > Are you using defconfig or a reasonable distro-config for your tests? > > > > > > I think it is best to take the kernel and run localyesconfig for testing. > > >

[GIT PULL 01/16] stm class: Rework policy node fallback

2018-10-05 Thread Alexander Shishkin
Currently, if no matching policy node can be found for a trace source, we'll try to use "default" policy node, then, if that doesn't exist, we'll pick the first node, in order of creation. If that also fails, we'll allocate M/C range from the beginning of the device's M/C range. This makes it diff

[GIT PULL 13/16] stm class: SPDX-ify the documentation

2018-10-05 Thread Alexander Shishkin
Add the SPDX header to the STM class documentation. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- Documentation/trace/stm.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/trace/stm.rst b/Documentation/trace/stm.rst index 944994fd6368..99f99963e5e7 10064

[GIT PULL 11/16] stm class: Document the MIPI SyS-T protocol usage

2018-10-05 Thread Alexander Shishkin
Add a document describing MIPI SyS-T protocol driver usage. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- Documentation/trace/sys-t.rst | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/trace/sys-t.rst diff --git a/D

[GIT PULL 03/16] stm class: Clean up stp_configfs_init

2018-10-05 Thread Alexander Shishkin
Minor code shortening, no functional changes. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- drivers/hwtracing/stm/policy.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index 530448bd5a

[GIT PULL 14/16] stm class: heartbeat: Fix whitespace

2018-10-05 Thread Alexander Shishkin
Fix whitespace in the code for better readability, no functional changes. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- drivers/hwtracing/stm/heartbeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/stm/heartbeat.c b/drivers/hwtracing

[GIT PULL 10/16] stm class: p_sys-t: Document the configfs interface

2018-10-05 Thread Alexander Shishkin
This adds ABI documentation for the new configfs attributes that come with the MIPI SyS-T protocol driver. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- .../ABI/testing/configfs-stp-policy-p_sys-t | 41 +++ 1 file changed, 41 insertions(+) create mode 10064

[GIT PULL 09/16] stm class: p_sys-t: Add support for CLOCKSYNC packets

2018-10-05 Thread Alexander Shishkin
This adds support for CLOCKSYNC SyS-T packets, that establish correlation between the transport clock (STP timestamps) and SyS-T timestamps. These packets are sent periodically to allow the decoder to keep both time sources in sync. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --

[GIT PULL 12/16] stm class: Update documentation to match the new identification rules

2018-10-05 Thread Alexander Shishkin
The rules and order of identification of trace sources against the "stp-policy" have changed; update the documentation to reflect that. Signed-off-by: Alexander Shishkin --- Documentation/trace/stm.rst | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) d

[GIT PULL 08/16] stm class: Add MIPI SyS-T protocol support

2018-10-05 Thread Alexander Shishkin
This adds support for MIPI SyS-T protocol as specified in an open standard [1]. In addition to marking message boundaries, it also supports tagging messages with the source UUID, to provide better distinction between trace sources, including payload length and timestamp in the message's metadata.

[GIT PULL 15/16] lib: Add memcat_p(): paste 2 pointer arrays together

2018-10-05 Thread Alexander Shishkin
This adds a helper to paste 2 pointer arrays together, useful for merging various types of attribute arrays. There are a few places in the kernel tree where this is open coded, and I just added one more in the STM class. The naming is inspired by memset_p() and memcat(), and partial credit for it

[GIT PULL 16/16] stm class: Use memcat_p()

2018-10-05 Thread Alexander Shishkin
Instead of a local copy, use the memcat_p() helper to merge policy node attributes. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- drivers/hwtracing/stm/policy.c | 29 + 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/drivers/hwtracing

[GIT PULL 05/16] stm class: Add a helper for writing data packets

2018-10-05 Thread Alexander Shishkin
Add a helper to write a sequence of bytes as STP data packets. This is used by protocol drivers to output their metadata, as well as the actual data payload. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- drivers/hwtracing/stm/core.c | 51 +++-

[GIT PULL 07/16] stm class: Switch over to the protocol driver

2018-10-05 Thread Alexander Shishkin
Now that the default framing protocol is factored out into its own driver, switch over to using the driver for writing data. To that end, make the policy code require a valid protocol name (or absence thereof, which is equivalent to "p_basic"). Also, to make transition easier, make stm class reque

[GIT PULL 02/16] stm class: Clarify configfs root type/operations names

2018-10-05 Thread Alexander Shishkin
The current naming of stp-policy root type and group ops is confusing, rename them for better readability. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- drivers/hwtracing/stm/policy.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/hwt

[GIT PULL 04/16] stm class: Introduce framing protocol drivers

2018-10-05 Thread Alexander Shishkin
At the moment, the stm class applies a certain STP framing pattern to the data as it is written to the underlying STM device. In order to allow different framing patterns (aka protocols), this patch introduces the concept of STP protocol drivers, defines data structures and APIs for the protocol dr

[GIT PULL 06/16] stm class: Factor out default framing protocol

2018-10-05 Thread Alexander Shishkin
The STP framing pattern that the stm class implicitly applies to the data payload is, in fact, a protocol. This patch moves the relevant code out of the stm core into its own driver module. Signed-off-by: Alexander Shishkin Tested-by: Mathieu Poirier --- drivers/hwtracing/stm/Kconfig | 15 +++

[GIT PULL 00/16] stm class: Updates for 4.20

2018-10-05 Thread Alexander Shishkin
following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm.git tags/stm-for-greg-20181005 for you to fetch changes up to

Re: [PATCH] arm_pmu: Delete incorrect cache event mapping for some armv8_pmuv3 events.

2018-10-05 Thread Will Deacon
On Fri, Oct 05, 2018 at 01:27:08PM +0100, John Garry wrote: > On 04/10/2018 13:22, Will Deacon wrote: > >Hi Ganapat, > > > >On Thu, Oct 04, 2018 at 11:12:09AM +0530, Ganapatrao Kulkarni wrote: > >>can you please pull this patch? > > > >I still don't like the idea of just removing events like this,

Re: [PATCH] MAINTAINERS: mail to Baoyou Xie bounces, so remove

2018-10-05 Thread Wolfram Sang
On Fri, Oct 05, 2018 at 02:35:16PM +0200, Geert Uytterhoeven wrote: > Hi Wolfram, > > On Fri, Oct 5, 2018 at 2:30 PM Wolfram Sang wrote: > > No activity since late 2017 and I couldn't find a new email address. > > > > Signed-off-by: Wolfram Sang > > --- > > > > This patch can be happily dropped,

Re: [PATCH] MAINTAINERS: mail to Baoyou Xie bounces, so remove

2018-10-05 Thread Geert Uytterhoeven
Hi Wolfram, On Fri, Oct 5, 2018 at 2:30 PM Wolfram Sang wrote: > No activity since late 2017 and I couldn't find a new email address. > > Signed-off-by: Wolfram Sang > --- > > This patch can be happily dropped, of course, if someone knows a new > contact (and assuming still interest in this main

Re: [PATCH] irqchip/gic-v3-its: Add early memory allocation errata

2018-10-05 Thread Matthias Brugger
On 05/10/2018 12:55, Marc Zyngier wrote: > Hi Matthias, > > On 04/10/18 23:11, Matthias Brugger wrote: >> Friendly reminder, if anyone has any comment on the patch :) >> >> On 9/12/18 11:52 AM, matthias@kernel.org wrote: >>> From: Matthias Brugger >>> >>> Some hardware does not implement t

[PATCH] MAINTAINERS: mail to Baoyou Xie bounces, so remove

2018-10-05 Thread Wolfram Sang
No activity since late 2017 and I couldn't find a new email address. Signed-off-by: Wolfram Sang --- This patch can be happily dropped, of course, if someone knows a new contact (and assuming still interest in this maintainership). MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a

Re: [PATCH] arm_pmu: Delete incorrect cache event mapping for some armv8_pmuv3 events.

2018-10-05 Thread John Garry
On 04/10/2018 13:22, Will Deacon wrote: Hi Ganapat, On Thu, Oct 04, 2018 at 11:12:09AM +0530, Ganapatrao Kulkarni wrote: can you please pull this patch? I still don't like the idea of just removing events like this, especially when other architectures (including some x86 and Power CPUs afaict

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-05 Thread Boris Brezillon
On Fri, 5 Oct 2018 14:04:52 +0200 Ricardo Ribalda Delgado wrote: > Hi Boris > On Fri, Oct 5, 2018 at 12:12 PM Boris Brezillon > wrote: > > > > On Fri, 5 Oct 2018 11:54:18 +0200 > > Ricardo Ribalda Delgado wrote: > > > > > Hi Boris > > > > > > Just seen that you already did the rebase at > >

<    1   2   3   4   5   6   7   >