[PATCH v2 16/25] clk: sunxi-ng: r40: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 20/25] clk: sunxi-ng: a64: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 11/25] clk: sunxi-ng: sun5i: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 02/25] clk: Add CLK_HW_INIT_* macros using .parent_hws

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, struct clk_init_data was expanded to include .parent_hws, for clk drivers to directly list parents by pointing to their respective struct clk_hw's. Add macros that can take either one single struct clk_hw *, or an array of them, for drivers to

[PATCH v2 25/25] clk: sunxi-ng: sun8i-r: Use local parent references for SUNXI_CCU_GATE

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and SUNXI_CCU_GATE macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing SUNXI_CCU_GATE definitions to SUNXI_CCU_GATE_HWS as the parent clock is internal to this clock unit. To avoid duplicat

[PATCH v2 22/25] clk: sunxi-ng: h6-r: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 21/25] clk: sunxi-ng: h6: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 10/25] clk: sunxi-ng: a10: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 09/25] clk: sunxi-ng: sun8i-r: Use local parent references for CLK_HW_INIT_*

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_HW_INIT_* macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_HW_INIT_* definitions to describe parents using either struct clk_hw pointers or clock-names from the device tree bi

[PATCH v2 06/25] clk: fixed-factor: Add CLK_FIXED_FACTOR_HWS which takes list of struct clk_hw *

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_hws, for clk drivers to directly reference parents by clk_hw. Add a new macro, CLK_FIXED_FACTOR_HWS, that can take an array of pointers to struct clk_hw, instead of a string, as its parent. Taking a

[PATCH v2 12/25] clk: sunxi-ng: a31: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 01/25] clk: Fix debugfs clk_possible_parents for clks without parent string names

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Following the commit fc0c209c147f ("clk: Allow parents to be specified without string names"), the parent name string is not always populated. Instead, fetch the parents clk_core struct using the appropriate helper, and read its name directly. If that fails, go through the pos

[PATCH v2 19/25] clk: sunxi-ng: f1c100s: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 13/25] clk: sunxi-ng: a23: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 17/25] clk: sunxi-ng: v3s: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 15/25] clk: sunxi-ng: h3: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

Re: [PATCH 2/2] backlight: pwm_bl: Get number of brightness levels for CIE 1931 from the device tree

2019-06-11 Thread Pavel Machek
On Mon 2019-06-10 16:37:39, Matthias Kaehlcke wrote: > Commit 88ba95bedb79 ("backlight: pwm_bl: Compute brightness of LED > linearly to human eye") uses pwm_period / hweight32(pwm_period) as > as heuristic to determine the number of brightness levels when the DT > doesn't provide a brightness level

[PATCH v2 03/25] clk: Add CLK_HW_INIT_FW_NAME macro using .fw_name in .parent_data

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_data, for clk drivers that have parents referenced using a combination of device tree clock-names, clock indices, and/or clk_hw pointers. Add a CLK_HW_INIT macro for specifying a single parent from

[PATCH v2 14/25] clk: sunxi-ng: a33: Use local parent references for CLK_FIXED_FACTOR

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code and CLK_FIXED_FACTOR_{HW,FW_NAME} macros, we can reference parents locally via pointers to struct clk_hw or DT clock-names. Convert existing CLK_FIXED_FACTOR definitions to either the _HW or _FW_NAME variant based on whether the parent clock is

[PATCH v2 04/25] clk: Add CLK_HW_INIT_PARENT_DATA macro using .parent_data

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, struct clk_init_data was expanded to include .parent_data, for clk drivers that have parents referenced using a combination of device tree clock-names, clock indices, and/or struct clk_hw pointers. Add a new macro that can take a list of struct

[PATCH v2 05/25] clk: fixed-factor: Add CLK_FIXED_FACTOR_HW which takes clk_hw pointer as parent

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the new clk parenting code, clk_init_data was expanded to include .parent_hws, for clk drivers to directly reference parents by clk_hw. Add a new macro, CLK_FIXED_FACTOR_HW, that can take a struct clk_hw pointer, instead of a string, as its parent. Signed-off-by: Chen-Yu

[PATCH v2 00/25] clk: sunxi-ng: clk parent rewrite part 1

2019-06-11 Thread Chen-Yu Tsai
From: Chen-Yu Tsai Hi everyone, This is v2 of the sunxi-ng clk parent rewrite part 1. Changes since v1: - Collected Maxime's Acked-by for sunxi patches - Expanded possible_parents_show() to cover most cases - Added comment to CLK_HW_INIT_HWS detailing usage for sharing compound liter

Re: [PATCH 03/17] mm/nommu: fix the MAP_UNINITIALIZED flag

2019-06-11 Thread Vladimir Murzin
On 6/10/19 11:16 PM, Christoph Hellwig wrote: > We can't expose UAPI symbols differently based on CONFIG_ symbols, as > userspace won't have them available. Instead always define the flag, > but only repsect it based on the config option. ^^^ respect > > Signed-off-by: C

Re: [PATCH] sh: dma: Add missing IS_ERR test

2019-06-11 Thread Rolf Evers-Fischer
On Sat, 8 Jun 2019, Geert Uytterhoeven wrote: Hi Geert, thank you for your reply and your additional findings. > Hi Rolf, > > Thanks for your patch! > > On Fri, Jun 7, 2019 at 2:04 PM Rolf Evers-Fischer > wrote: > > get_dma_channel may return ERR_PTR, so a check is added. > > It may also r

Re: [PATCH 4/8] iommu/arm-smmu-v3: Add support for Substream IDs

2019-06-11 Thread Jonathan Cameron
On Mon, 10 Jun 2019 19:47:10 +0100 Jean-Philippe Brucker wrote: > At the moment, the SMMUv3 driver implements only one stage-1 or stage-2 > page directory per device. However SMMUv3 allows more than one address > space for some devices, by providing multiple stage-1 page directories. In > additio

Re: [PATCH v2 2/3] media: imx7-media-csi: add i.MX6UL support

2019-06-11 Thread Sébastien Szymanski
On 6/11/19 11:40 AM, Rui Miguel Silva wrote: > Hi Sebastien, > On Tue 11 Jun 2019 at 09:16, Sébastien Szymanski wrote: >> Hi Rui, >> >> thanks for the review! >> >> On 6/10/19 12:28 PM, Rui Miguel Silva wrote: >>> Hi Sebastien, >>> Thanks for the patch. >>> >>> On Thu 06 Jun 2019 at 16:38, Sébastie

Re: [PATCH 11/12] closures: closure_wait_event()

2019-06-11 Thread Coly Li
On 2019/6/11 3:14 上午, Kent Overstreet wrote: > Signed-off-by: Kent Overstreet Acked-by: Coly Li Thanks. Coly Li > --- > include/linux/closure.h | 22 ++ > 1 file changed, 22 insertions(+) > > diff --git a/include/linux/closure.h b/include/linux/closure.h > index 308e3802

Re: [PATCH 10/12] bcache: move closures to lib/

2019-06-11 Thread Coly Li
On 2019/6/11 3:14 上午, Kent Overstreet wrote: > Prep work for bcachefs - being a fork of bcache it also uses closures > > Signed-off-by: Kent Overstreet Acked-by: Coly Li Thanks. Coly Li > --- > drivers/md/bcache/Kconfig | 10 +-- > drivers/md/bcache/Makefile

Re: The current SME implementation fails kexec/kdump kernel booting.

2019-06-11 Thread Baoquan He
Hi Tom, On 06/11/19 at 05:52pm, lijiang wrote: > After applied Tom's patch, i changed the reserved memory(for crash kernel) to > the > above 256M(>256M), such as crashkernel=320M or 384M,512M..., the kdump kernel > can > work and successfully dump the vmcore. > > But the kdump kernel always hap

Re: [alsa-devel] [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-11 Thread Srinivas Kandagatla
On 10/06/2019 15:12, Pierre-Louis Bossart wrote: + +    if (dev_addr == SDW_BROADCAST_DEV_NUM) { +    ctrl->fifo_status = 0; +    ret = wait_for_completion_timeout(&ctrl->sp_cmd_comp, +  msecs_to_jiffies(TIMEOUT_MS)); This is odd. The SoundWire spec does not h

Re: [RFC PATCH 1/2] mmc: sdhci: Manually check card status after reset

2019-06-11 Thread Adrian Hunter
On 10/06/19 7:32 PM, Raul Rangel wrote: > On Mon, Jun 10, 2019 at 06:17:31PM +0200, Ulf Hansson wrote: >> + Adrian >> >> On Fri, 7 Jun 2019 at 18:05, Raul Rangel wrote: >>> >>> On Tue, May 28, 2019 at 09:38:20AM +0200, Ulf Hansson wrote: On Wed, 1 May 2019 at 19:55, Raul E Rangel wrote: >>>

Re: [PATCH v3 0/3] KVM: Yield to IPI target if necessary

2019-06-11 Thread Wanpeng Li
On Mon, 10 Jun 2019 at 22:34, Radim Krčmář wrote: > > 2019-05-30 09:05+0800, Wanpeng Li: > > The idea is from Xen, when sending a call-function IPI-many to vCPUs, > > yield if any of the IPI target vCPUs was preempted. 17% performance > > increasement of ebizzy benchmark can be observed in an over

Re: [PATCH 1/2] dt-bindings: pwm-backlight: Add 'max-brightness' property

2019-06-11 Thread Thierry Reding
On Mon, Jun 10, 2019 at 04:37:38PM -0700, Matthias Kaehlcke wrote: > Add an optional 'max-brightness' property, which is used to specify > the number of brightness levels (max-brightness + 1) when the node > has no 'brightness-levels' table. > > Signed-off-by: Matthias Kaehlcke > --- > .../devic

Re: [PATCH 17/17] riscv: add nommu support

2019-06-11 Thread Vladimir Murzin
On 6/10/19 11:16 PM, Christoph Hellwig wrote: > Most of the patch is just stubbing out code not needed without page > tables, but there is an interesting detail in the signals implementation: > > - The normal RISC-V syscall ABI only implements rt_sigreturn as VDSO >entry point, but the ELF VD

[RFC PATCH 1/5] dt-bindings: soundwire: add slave bindings

2019-06-11 Thread Srinivas Kandagatla
This patch adds bindings for Soundwire Slave devices which includes how SoundWire enumeration address is represented in SoundWire slave device tree nodes. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/soundwire/bus.txt | 48 +++ 1 file changed, 48 insertions(

[RFC PATCH 3/5] soundwire: add module_sdw_driver helper macro

2019-06-11 Thread Srinivas Kandagatla
This Helper macro is for SoundWire drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit() Signed-off-by: Srinivas Kandagatla --- include/linux/soundwire/

Re: [PATCH] pinctrl: qcom: Clear status bit on irq_unmask

2019-06-11 Thread tengfeif
On 2019-06-10 22:51, Stephen Boyd wrote: Quoting Linus Walleij (2019-06-07 14:08:10) On Fri, May 31, 2019 at 8:52 AM Tengfei Fan wrote: > The gpio interrupt status bit is getting set after the > irq is disabled and causing an immediate interrupt after > enablling the irq, so clear status bit

[RFC PATCH 2/5] soundwire: core: add device tree support for slave devices

2019-06-11 Thread Srinivas Kandagatla
This patch adds support to parsing device tree based SoundWire slave devices. Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/bus.c | 2 +- drivers/soundwire/bus.h | 1 + drivers/soundwire/slave.c | 54 ++- 3 files changed, 55 insertions(+), 2 d

[RFC PATCH 4/5] dt-bindings: ASoC: Add WSA881x bindings

2019-06-11 Thread Srinivas Kandagatla
This patch adds bindings for WSA8810/WSA8815 Class-D Smart Speaker Amplifier. This Amplifier also has a simple thermal sensor for over temperature and speaker protection. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,wsa881x.txt | 27 +++ 1 file changed

[RFC PATCH 5/5] ASoC: codecs: add wsa881x amplifier support

2019-06-11 Thread Srinivas Kandagatla
This patch adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier. This Amplifier is primarily interfaced with SoundWire. One WSA is used for mono speaker configuration and second one would give stereo setup. This patch is tested on SDM845 based DragonBoard DB845c. Signed-off-by: Sriniva

[RFC PATCH 0/5] ASoC: codecs: Add WSA881x Smart Speaker amplifier support

2019-06-11 Thread Srinivas Kandagatla
This patchset adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier which is SoundWire interfaced. This also adds support to some missing bits in SoundWire bus layer like Device Tree support and module_sdw_driver macro. This patchset along with DB845c machine driver and WCD934x codec dri

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Walter Wu
On Tue, 2019-06-11 at 10:47 +0200, Dmitry Vyukov wrote: > On Tue, Jun 11, 2019 at 9:05 AM Walter Wu wrote: > > > > On Mon, 2019-06-10 at 13:46 +0200, Dmitry Vyukov wrote: > > > On Mon, Jun 10, 2019 at 9:28 AM Walter Wu > > > wrote: > > > > > > > > On Fri, 2019-06-07 at 21:18 +0800, Dmitry Vyukov

Re: [PATCH 08/15] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-06-11 Thread Peter Zijlstra
On Fri, Jun 07, 2019 at 10:48:06AM -0700, Linus Torvalds wrote: > On Fri, Jun 7, 2019 at 10:34 AM Peter Zijlstra wrote: > > > > I was/am lazy and didn't want to deal with: > > > > arch/x86/include/asm/nops.h:#define GENERIC_NOP5_ATOMIC > > NOP_DS_PREFIX,GENERIC_NOP4 > > arch/x86/include/asm/nops.

RE: [PATCH 2/3] pinctrl: freescale: Add i.MX8MN pinctrl driver support

2019-06-11 Thread Aisheng Dong
> From: anson.hu...@nxp.com [mailto:anson.hu...@nxp.com] > Sent: Thursday, May 30, 2019 11:06 AM > > From: Anson Huang > > Add the pinctrl driver support for i.MX8MN. > > Signed-off-by: Anson Huang > --- > drivers/pinctrl/freescale/Kconfig | 7 + > drivers/pinctrl/freescale/Makefil

Re: [PATCH v3 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2019-06-11 Thread Daniel Thompson
On Mon, Jun 10, 2019 at 01:52:33PM -0700, Matthias Kaehlcke wrote: > Hi Pavel, > > On Sat, Jun 08, 2019 at 11:02:26PM +0200, Pavel Machek wrote: > > Hi! > > > > > > +* Note that this method is based on empirical testing on > > > > different > > > > +* devices with PWM of 8 and 16

Re: [PATCH -next] HID: logitech-dj: fix return value of logi_dj_recv_query_hidpp_devices

2019-06-11 Thread Benjamin Tissoires
On Tue, Jun 11, 2019 at 5:01 AM Yuehaibing wrote: > > Hi all, > > Friendly ping... Applied to for-5.3/logitech Thanks! Cheers, Benjamin > > On 2019/5/25 22:09, YueHaibing wrote: > > We should return 'retval' as the correct return value > > instead of always zero. > > > > Fixes: 74808f9115ce ("

RE: [PATCH 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MN by default

2019-06-11 Thread Aisheng Dong
> From: anson.hu...@nxp.com [mailto:anson.hu...@nxp.com] > Sent: Thursday, May 30, 2019 11:06 AM > > Enable CONFIG_PINCTRL_IMX8MN by default to support i.MX8MN pinctrl > driver. > > Signed-off-by: Anson Huang Nitpick: please check the alphabetical order, Otherwise: Reviewed-by: Dong Aisheng R

[PATCH V5 2/7] i2c: tegra: remove unnecessary variable init

2019-06-11 Thread Bitan Biswas
Remove variable initializations in functions that are followed by assignments before use Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers

[PATCH V5 5/7] i2c: tegra: fix msleep warning

2019-06-11 Thread Bitan Biswas
Fix checkpatch.pl WARNING for delay of approximately 1msec in flush i2c FIFO polling loop by using usleep_range(1000, 2000): WARNING: msleep < 20ms can sleep for up to 20ms; see ... Documentation/timers/timers-howto.txt + msleep(1); Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Os

[PATCH V5 6/7] i2c: tegra: fix PIO rx/tx residual transfer check

2019-06-11 Thread Bitan Biswas
Fix expression for residual bytes(less than word) transfer in I2C PIO mode RX/TX. Signed-off-by: Bitan Biswas --- drivers/i2c/busses/i2c-tegra.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 4

[PATCH V5 4/7] i2c: tegra: add spinlock definition comment

2019-06-11 Thread Bitan Biswas
Fix checkpatch.pl CHECK as follows: CHECK: spinlock_t definition without comment + spinlock_t xfer_lock; Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers

[PATCH V5 3/7] i2c: tegra: fix alignment and spacing violations

2019-06-11 Thread Bitan Biswas
Fix checkpatch.pl alignment and blank line check(s) in i2c-tegra.c Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c

[PATCH V5 7/7] i2c: tegra: remove BUG, BUG_ON

2019-06-11 Thread Bitan Biswas
Remove redundant BUG_ON calls or replace with WARN_ON_ONCE as needed. Remove BUG() and make Rx and Tx case handling similar. Add WARN_ON_ONCE check for non-zero rx_fifo_avail in tegra_i2c_empty_rx_fifo() and return new error I2C_ERR_UNEXPECTED_STATUS. Signed-off-by: Bitan Biswas --- drivers/i2c/

[PATCH V5 1/7] i2c: tegra: clean up macros

2019-06-11 Thread Bitan Biswas
Clean up macros by: 1) removing unused macros 2) replace constants by macro BIT() Signed-off-by: Bitan Biswas Reviewed-by: Dmitry Osipenko --- drivers/i2c/busses/i2c-tegra.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/busses/i2c-tegra.c b/d

[PATCH 1/2 v5] serial: mctrl_gpio: Check if GPIO property exisits before requesting it

2019-06-11 Thread Stefan Roese
This patch adds a check for the GPIOs property existence, before the GPIO is requested. This fixes an issue seen when the 8250 mctrl_gpio support is added (2nd patch in this patch series) on x86 platforms using ACPI. Here Mika's comments from 2016-08-09: " I noticed that with v4.8-rc1 serial cons

RE: [PATCH 1/3] dt-bindings: fsl: scu: Update RTC compatible string

2019-06-11 Thread Aisheng Dong
> From: Anson Huang > > Update RTC compatible string to make system controller RTC driver more > generic for all i.MX SoCs with system controller inside. > > Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng Regards Dong Aisheng

[PATCH 2/2 v5] tty/serial/8250: use mctrl_gpio helpers

2019-06-11 Thread Stefan Roese
From: Yegor Yefremov This patch permits the usage for GPIOs to control the CTS/RTS/DTR/DSR/DCD/RI signals. Changed by Stefan: Only call mctrl_gpio_init(), if the device has no ACPI companion device to not break existing ACPI based systems. Also only use the mctrl_gpio_ functions when "gpios" is

RE: [PATCH 2/3] rtc: imx-sc: Make compatible string more generic

2019-06-11 Thread Aisheng Dong
> From: anson.hu...@nxp.com [mailto:anson.hu...@nxp.com] > Sent: Tuesday, June 11, 2019 2:34 PM > > i.MX system controller RTC driver can support all i.MX SoCs with system > controller inside, this patch makes the compatible string more generic to > support other i.MX SoCs with system controller i

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-06-11 Thread Arnd Bergmann
On Tue, Jun 11, 2019 at 10:43 AM Simon Ehlen wrote: > > Am 23.04.2019 um 17:11 schrieb Arnd Bergmann: > > It turns out that the suggestion from Karsten Keil wa to remove I4L > > in 2018 after the last public ISDN networks are shut down. This has > > happened now (with a very small number of except

RE: [PATCH 3/3] arm64: dts: imx8qxp: Add fallback compatible string for RTC node

2019-06-11 Thread Aisheng Dong
> From: anson.hu...@nxp.com [mailto:anson.hu...@nxp.com] > Sent: Tuesday, June 11, 2019 2:34 PM > > The i.MX system controller RTC driver uses generic compatible string to > support all i.MX SoCs with system controller inside, this patch adds the > generic > system controller RTC compatible strin

Re: [PATCH 1/3] Documentation: dt-bindings: add the Amlogic Meson Temperature Sensor

2019-06-11 Thread Neil Armstrong
On 06/06/2019 21:16, Martin Blumenstingl wrote: > Hi Guillaume, > > thank you for working on this! > > On Tue, Jun 4, 2019 at 4:47 PM Guillaume La Roque > wrote: >> >> This adds the devicetree binding documentation for the Temperature >> Sensor found in the Amlogic Meson G12 SoCs. >> Currently

Re: [PATCH v2 4/4] watchdog: jz4740: Make probe function __init_or_module

2019-06-11 Thread Guenter Roeck
On 6/10/19 10:16 PM, Christophe Leroy wrote: Hi Paul, Le 08/06/2019 à 11:57, Paul Cercueil a écrit : Hi Christophe, Le sam. 8 juin 2019 à 9:51, Christophe Leroy a écrit : Hi Paul, Le 07/06/2019 à 18:24, Paul Cercueil a écrit : This allows the probe function to be dropped after the kernel f

Re: [PATCH v1 0/3] iio: afe: rescale: Add INFO_PROCESSED support

2019-06-11 Thread Peter Rosin
On 2019-06-11 11:56, Mylène Josserand wrote: > Hello everyone, > > You will find a small series that add the support of processed values > for iio-rescale driver. > Thanks to that, it is possible to read processed values in sysfs instead > of getting only raw and scale values. > > Here is an exam

Re: kernel BUG at fs/btrfs/volumes.c:LINE!

2019-06-11 Thread David Sterba
On Mon, Jun 10, 2019 at 04:14:04PM -0700, Eric Biggers wrote: > On Thu, Jun 07, 2018 at 06:52:13PM +0200, David Sterba wrote: > > On Thu, Jun 07, 2018 at 06:28:02PM +0200, Dmitry Vyukov wrote: > > > > Normally the GFP_NOFS allocations do not fail so I think the fuzzer > > > > environment is tuned t

Re: [PATCH v1 1/3] iio: afe: rescale: Move scale conversion to new function

2019-06-11 Thread Peter Rosin
On 2019-06-11 11:56, Mylène Josserand wrote: > To prepare the support of processed value, create a function > to convert the scale according to the voltage-divider node > used in the device-tree. > > Signed-off-by: Mylène Josserand > --- > drivers/iio/afe/iio-rescale.c | 54 > ++

Re: [PATCH 1/2] ARM: multi_v7_defconfig: add Panfrost driver

2019-06-11 Thread Neil Armstrong
On 04/06/2019 13:20, Tomeu Vizoso wrote: > With the goal of making it easier for CI services such as KernelCI to > run tests for it. > > Signed-off-by: Tomeu Vizoso > --- > arch/arm/configs/multi_v7_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/configs/multi_v7_def

Re: [PATCH 1/2] arm64: defconfig: enable Lima driver

2019-06-11 Thread Neil Armstrong
On 06/06/2019 10:56, Neil Armstrong wrote: > A bunch of arm64 boards can now use the Lima driver, let's enable it > in defconfig, it will be useful to have it enabled for KernelCI > boot and runtime testing. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/configs/defconfig | 1 + > 1 file c

[PATCH net-next] net: ethernet: ti: cpts: fix build failure for powerpc

2019-06-11 Thread Grygorii Strashko
Add dependency to TI CPTS from Common CLK framework COMMON_CLK to fix allyesconfig build for Powerpc: drivers/net/ethernet/ti/cpts.c: In function 'cpts_of_mux_clk_setup': drivers/net/ethernet/ti/cpts.c:567:2: error: implicit declaration of function 'of_clk_parent_fill'; did you mean 'of_clk_get_p

Re: [PATCH v2 2/3] KVM: X86: Provide a capability to disable cstate msr read intercepts

2019-06-11 Thread Paolo Bonzini
On 11/06/19 09:38, Wanpeng Li wrote: > MSR_CORE_C1_RES is unreadable except for ATOM platform, so I think we > can avoid the complex logic to handle C1 now. :) I disagree. Linux uses it on all platforms is available, and virtual machines that don't pass mwait through _only_ have C1, so it would b

Re: [PATCH v1 3/3] dt-bindings: iio: afe: Add hwmon example

2019-06-11 Thread Peter Rosin
On 2019-06-11 11:56, Mylène Josserand wrote: > With the support of CHAN_INFO_PROCESSED in voltage-divider, > it is possible to read the processed values directly from iio's > sysfs entries or by using iio-hwmon. Add an example for this last > use case. As I wrote in response to the cover letter, I

RE: [RFC PATCH 1/5] signal: Teach sigsuspend to use set_user_sigmask

2019-06-11 Thread David Laight
From: David Laight > Sent: 11 June 2019 10:52 ... > If I have an application that has a loop with a pselect call that > enables SIGINT (without a handler) and, for whatever reason, > one of the fd is always 'ready' then I'd expect a SIGINT > (from ^C) to terminate the program. > > A quick test pro

[RESEND PATCH net-next] net: ethernet: ti: cpts: fix build failure for powerpc

2019-06-11 Thread Grygorii Strashko
Add dependency to TI CPTS from Common CLK framework COMMON_CLK to fix allyesconfig build for Powerpc: drivers/net/ethernet/ti/cpts.c: In function 'cpts_of_mux_clk_setup': drivers/net/ethernet/ti/cpts.c:567:2: error: implicit declaration of function 'of_clk_parent_fill'; did you mean 'of_clk_get_p

Re: [PATCH v3 0/3] meson-gpio-irqc: Add support for the Meson-G12A SoC

2019-06-11 Thread Marc Zyngier
On 08/06/2019 20:04, Martin Blumenstingl wrote: > This series adds GPIO interrupt controller support for Meson-G12A SoCs. > Although the total number of pins is the same as the Meson-AXG SoC, the > GPIO banks and IRQ numbers are different. Add a new compatible string > to avoid confusion when using

Re: [PATCH/RFC 2/3] s390: improve wait logic of stop_machine

2019-06-11 Thread Heiko Carstens
On Tue, Jun 11, 2019 at 11:15:46AM +0200, Peter Zijlstra wrote: > On Sat, Jun 08, 2019 at 01:08:52PM +0200, Heiko Carstens wrote: > > --- a/arch/s390/kernel/processor.c > > +++ b/arch/s390/kernel/processor.c > > @@ -31,6 +31,7 @@ struct cpu_info { > > }; > > > > static DEFINE_PER_CPU(struct cpu

Re: [PATCH 0/4] irqchip: renesas: Use proper irq_chip name and parent

2019-06-11 Thread Marc Zyngier
On 07/06/2019 10:58, Geert Uytterhoeven wrote: > Hi all, > > Recently, Marc pointed out some common misconceptions w.r.t. the .name > and .parent_device fields in struct irq_chip. This patch series fixes > them in the Renesas interrupt controller drivers. > > The first two patches are dest

[PATCH V5 - Rebased] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory()

2019-06-11 Thread Anshuman Khandual
Hildenbrand Reviewed-by: Oscar Salvador Acked-by: Mark Rutland Acked-by: Michal Hocko Signed-off-by: Anshuman Khandual --- Changes in PATCH V5 - Rebased (from V5) - Rebased on linux-next (next-20190611) - s/__remove_memory/try_remove_memory in the subject line - s/arch_remove_memory/memblock_[free

[PATCH v1 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer

2019-06-11 Thread Dehui Sun
This commit adds mt8183 compatible node in mtk-timer binding document. Signed-off-by: Dehui Sun --- Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b/Documentation/d

[PATCH v1 0/2] add systimer node for MT8183 SoC

2019-06-11 Thread Dehui Sun
This series are based on 5.2-rc1 and add systimer node for MT8183, and this timer will serve as a wakeup-up source for cpu-idle feature. Dehui Sun (2): dt-bindings: mediatek: update bindings for MT8183 systimer arm64: dts: mt8183: add systimer0 device node Documentation/devicetree/bindings/t

[PATCH v1 2/2] arm64: dts: mt8183: add systimer0 device node

2019-06-11 Thread Dehui Sun
Add systimer0 device node for MT8183. Signed-off-by: Dehui Sun --- This patch is based on the following patches: https://patchwork.kernel.org/cover/10962385/ https://patchwork.kernel.org/patch/10983939/ --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 + 1 file changed, 9 insertions(+)

Re: [PATCH] iio: humidity: Replace older GPIO APIs with GPIO Consumer APIs for the dht11 sensor

2019-06-11 Thread Harald Geyer
Shobhit Kukreti writes: > The dht11 driver uses a single gpio to make measurements. It was > using the older global gpio numberspace. The patch replaces the > old gpio api with the new gpio descriptor based api. > > Removed header files "linux/gpio.h" and "linux/of_gpio.h" > > Signed-off-by: Shobh

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Dmitry Vyukov
On Tue, Jun 11, 2019 at 12:44 PM Walter Wu wrote: > > On Tue, 2019-06-11 at 10:47 +0200, Dmitry Vyukov wrote: > > On Tue, Jun 11, 2019 at 9:05 AM Walter Wu wrote: > > > > > > On Mon, 2019-06-10 at 13:46 +0200, Dmitry Vyukov wrote: > > > > On Mon, Jun 10, 2019 at 9:28 AM Walter Wu > > > > wrote:

Re: [PATCH] HID: input: fix a4tech horizontal wheel custom usage id

2019-06-11 Thread Nicolas Saenz Julienne
On Tue, 2019-06-11 at 10:43 +0200, Benjamin Tissoires wrote: > Hi Nicolas, > > On Mon, Jun 10, 2019 at 8:54 PM Nicolas Saenz Julienne > wrote: > > Some a4tech mice use the 'GenericDesktop.00b8' usage id to inform > > whether the previous wheel report was horizontal or vertical. Before > > c01908a

Re: [PATCH V4 6/6] i2c: tegra: remove BUG, BUG_ON

2019-06-11 Thread Dmitry Osipenko
11.06.2019 10:38, Bitan Biswas пишет: > > > On 6/10/19 2:00 PM, Dmitry Osipenko wrote: >> 10.06.2019 22:41, Bitan Biswas пишет: >>> >>> >>> On 6/10/19 11:12 AM, Dmitry Osipenko wrote: 10.06.2019 20:08, Bitan Biswas пишет: > Remove redundant BUG_ON calls or replace with WARN_ON_ONCE >

Re: [PATCH v2 2/3] KVM: X86: Provide a capability to disable cstate msr read intercepts

2019-06-11 Thread Wanpeng Li
On Tue, 11 Jun 2019 at 19:09, Paolo Bonzini wrote: > > On 11/06/19 09:38, Wanpeng Li wrote: > > MSR_CORE_C1_RES is unreadable except for ATOM platform, so I think we > > can avoid the complex logic to handle C1 now. :) > > I disagree. Linux uses it on all platforms is available, and virtual > mac

Re: [PATCH V5 7/7] i2c: tegra: remove BUG, BUG_ON

2019-06-11 Thread Dmitry Osipenko
11.06.2019 13:51, Bitan Biswas пишет: > Remove redundant BUG_ON calls or replace with WARN_ON_ONCE > as needed. Remove BUG() and make Rx and Tx case handling > similar. Add WARN_ON_ONCE check for non-zero rx_fifo_avail > in tegra_i2c_empty_rx_fifo() and return new error > I2C_ERR_UNEXPECTED_STATUS.

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Dmitry Vyukov
I should have been asked this earlier, but: what is your use-case? Could you use CONFIG_KASAN_GENERIC instead? Why not? CONFIG_KASAN_GENERIC already has quarantine. On Tue, Jun 11, 2019 at 1:32 PM Dmitry Vyukov wrote: > > On Tue, Jun 11, 2019 at 12:44 PM Walter Wu wrote: > > > > On Tue, 2019-06-

Re: [PATCH v2 2/3] KVM: LAPIC: lapic timer interrupt is injected by posted interrupt

2019-06-11 Thread Paolo Bonzini
On 06/06/19 07:31, Wanpeng Li wrote: > +static inline bool can_posted_interrupt_inject_timer(struct kvm_vcpu *vcpu) > +{ > + return posted_interrupt_inject_timer_enabled(vcpu) && > + !vcpu_halt_in_guest(vcpu); > +} > + I agree with Radim, what you want here is just use kvm_hlt_in_g

Re: [PATCH v2 0/2] ARM errata 814220

2019-06-11 Thread Benjamin Gaignard
Le mer. 24 avr. 2019 à 09:25, Benjamin Gaignard a écrit : > > Le mar. 23 avr. 2019 à 19:46, Fabio Estevam a écrit : > > > > On Wed, Feb 27, 2019 at 1:21 PM Alexandre Torgue > > wrote: > > > > > > > > > On 2/14/19 9:31 AM, Benjamin Gaignard wrote: > > > > Implement ARM errata 814220 for Cortex A7

RE: [PATCH v2 0/3] Add ST lsm6dso i3c support

2019-06-11 Thread Vitor Soares
Hi, Since the regmap-i3c.c was already applied in: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-i3c I wonder what is clean way to submit this patch set? And since the i3c-regmap was merge in From: Vitor Soares Date: Thu, Jun 06, 2019 at 16:12:01 > This pat

Re: [PATCH v1 0/3] iio: afe: rescale: Add INFO_PROCESSED support

2019-06-11 Thread Jonathan Cameron
On Tue, 11 Jun 2019 11:02:14 + Peter Rosin wrote: > On 2019-06-11 11:56, Mylène Josserand wrote: > > Hello everyone, > > > > You will find a small series that add the support of processed values > > for iio-rescale driver. > > Thanks to that, it is possible to read processed values in sysfs

Re: memory leak in create_ctx

2019-06-11 Thread Dmitry Vyukov
,On Sun, Jun 9, 2019 at 4:56 AM Hillf Danton wrote: > > > Hi > > On Sat, 08 Jun 2019 12:13:06 -0700 (PDT) syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:79c3ba32 Merge tag 'drm-fixes-2019-06-07-1' of git://anong.. > > git tree: upstream > > cons

Re: [patch 2/3] timers: do not raise softirq unconditionally (spinlockless version)

2019-06-11 Thread Anna-Maria Gleixner
On Fri, 31 May 2019, Anna-Maria Gleixner wrote: [...] > I will think about the problem and your solution a little bit more and > give you feedback hopefully on monday. I'm sorry for the delay. But now I'm able to give you a detailed feedback: The general problem is, that your solution is customi

[PATCH] ARM: dts: stm32: add sai id registers to stm32mp157c

2019-06-11 Thread Olivier Moysan
Add identification registers to address range of SAI DT parent node, for stm32mp157c. Change-Id: I696363794fab59ba8d7869b3ffbc041dacdf28de Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157c.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boo

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-11 Thread Borislav Petkov
On Tue, Jun 11, 2019 at 03:50:40PM +1000, Benjamin Herrenschmidt wrote: > Should we fix that then instead ? Sure. > What are the big issues with adding some basic locking ? being called > from NMIs ? That is one possible issue. I know we don't call the error decoding routines in NMI context on x

Re: [PATCH v2 8/8] habanalabs: enable 64-bit DMA mask in POWER9

2019-06-11 Thread Oded Gabbay
On Tue, Jun 11, 2019 at 12:59 PM Greg KH wrote: > > On Tue, Jun 11, 2019 at 12:21:44PM +0300, Oded Gabbay wrote: > > +bool hl_pci_parent_is_phb4(struct hl_device *hdev) > > +{ > > + struct pci_dev *parent_port = hdev->pdev->bus->self; > > + > > + if ((parent_port->vendor == PCI_VENDOR_ID_I

Re: [PATCH v2 2/3] media: imx7-media-csi: add i.MX6UL support

2019-06-11 Thread Rui Miguel Silva
Hi Sebastien, On Tue 11 Jun 2019 at 11:03, Sébastien Szymanski wrote: > On 6/11/19 11:40 AM, Rui Miguel Silva wrote: >> Hi Sebastien, >> On Tue 11 Jun 2019 at 09:16, Sébastien Szymanski wrote: >>> Hi Rui, >>> >>> thanks for the review! >>> >>> On 6/10/19 12:28 PM, Rui Miguel Silva wrote: Hi Se

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-11 Thread Borislav Petkov
On Tue, Jun 11, 2019 at 05:21:39PM +1000, Benjamin Herrenschmidt wrote: > So looking again ... all the registration/removal of edac devices seem > to already be protected by mutexes, so that's not a problem. > > Tell me more about what specific races you think we might have here, > I'm not sure I

Re: [PATCH v5 3/5] mtd: Add support for HyperBus memory devices

2019-06-11 Thread Vignesh Raghavendra
On 10/06/19 11:27 PM, Sergei Shtylyov wrote: > On 06/09/2019 01:32 PM, Vignesh Raghavendra wrote: > >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave >> interfaces. HyperBus is used to connect micropro

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-06-11 Thread Borislav Petkov
On Tue, Jun 11, 2019 at 10:29:55AM +0300, Hawa, Hanna wrote: > In the near future we plan to push EDAC drivers for L1/L2 and memory > controller. There's no common resources/shared data between them. Ok, you should be safe then. If you need to do more involved interaction in the future, you know w

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-11 Thread Walter Wu
On Tue, 2019-06-11 at 13:39 +0200, Dmitry Vyukov wrote: > I should have been asked this earlier, but: what is your use-case? We need KASAN to help us to detect memory corruption at mobile phone. It is powerful tool. > Could you use CONFIG_KASAN_GENERIC instead? Why not? > CONFIG_KASAN_GENERIC alre

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