[PATCH v2 2/5] iio: adc: stm32: add dt option to set default trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Add dt option to configure it. Note: default value may be overridden later via trigger_polarity sysfs attribute. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc.c | 7 +++ 1 file changed, 7 insertions

[PATCH v2 3/5] Documentation: dt: iio: document stm32 exti trigger

2017-01-30 Thread Fabrice Gasnier
Add dt documentation for st,stm32-exti-trigger. EXTi gpio signal can be routed internally as trigger source for various IPs (e.g. for ADC or DAC conversions). Signed-off-by: Fabrice Gasnier --- .../bindings/iio/trigger/st,stm32-exti-trigger.txt | 17 + 1 file changed, 17 ins

[PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-01-30 Thread Fabrice Gasnier
EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC conversions. Configure them as interrupts to configure trigger path in HW. Note: interrupt handler isn't required here, and corresponding interrupt can be kept masked at exti controller level. Signed-off-by: Fabrice

[PATCH v2 0/5] Add EXTI GPIO trigger support to STM32 ADC

2017-01-30 Thread Fabrice Gasnier
STM32 ADC, can use GPIOs configured as EXTI line (external interrupt) as trigger source for conversions. This patchset is based on latest IIO testing branch, and adds support for EXTi GPIO triggers in IIO. It also adds a dt option to configure default trigger polarity in STM32 ADC driver. --- Chan

Re: [GIT PULL] cputime: Convert core use of cputime_t to nsecs

2017-01-30 Thread Stanislaw Gruszka
On Mon, Jan 30, 2017 at 05:46:43AM +0100, Frederic Weisbecker wrote: > Now lets admit one drawback: s390 and powerpc with > CONFIG_VIRT_CPU_ACCOUNTING_NATIVE have new cputime_t to nsecs conversion > on cputime accounting path. But this should be leveraged by the recent > changes which delay the cpu

Re: [STLinux Kernel] [PATCH 3/8] serial: st-asc: Read in all Pinctrl states

2017-01-30 Thread Peter Griffin
Hi Lee, On Fri, 27 Jan 2017, Lee Jones wrote: > On Wed, 25 Jan 2017, Peter Griffin wrote: > > > Hi Lee, > > > > On Tue, 24 Jan 2017, Lee Jones wrote: > > > > > There are now 2 possible separate/different Pinctrl states which can > > > be provided from platform data. One which encompasses the

Re: [PATCH v6 5/5] arm: mvebu: Add device tree for db-dxbc2 and db-xc3-24g4xg boards

2017-01-30 Thread Gregory CLEMENT
Hi Chris, On lun., janv. 30 2017, Chris Packham wrote: > These boards are Marvell's evaluation boards for the 98DX4251 and > 98DX3336 SoCs. > > Signed-off-by: Chris Packham Applied on mvebu/dt Thanks, Gregory > --- > > Notes: > Changes in v5: > - update license text > - use n

[PATCH] net: thunderx: avoid dereferencing xcv when NULL

2017-01-30 Thread Vincent Stehlé
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but derefer

Re: [PATCH v6 4/5] arm: mvebu: Add device tree for 98DX3236 SoCs

2017-01-30 Thread Gregory CLEMENT
Hi Chris, On lun., janv. 30 2017, Chris Packham wrote: > The Marvell 98DX3236, 98DX3336, 98DX4521 and variants are switch ASICs > with integrated CPUs. They are similar to the Armada XP SoCs but have > different I/O interfaces. > > Signed-off-by: Chris Packham > Acked-by: Rob Herring Appli

[PATCH 0/5] Add EXTI GPIO trigger support to STM32 ADC

2017-01-30 Thread Fabrice Gasnier
STM32 ADC, can use GPIOs configured as EXTI line (external interrupt) as trigger source for conversions. This patchset is based on latest IIO testing branch, and adds support for EXTi GPIO triggers in IIO. It also adds a dt option to configure default trigger polarity in STM32 ADC driver. Fabrice

Re: [PATCH v6 2/5] arm: mvebu: support for SMP on 98DX3336 SoC

2017-01-30 Thread Gregory CLEMENT
Hi Chris, On lun., janv. 30 2017, Chris Packham wrote: > Compared to the armada-xp the 98DX3336 uses different registers to set > the boot address for the secondary CPU so a new enable-method is needed. > This will only work if the machine definition doesn't define an overall > smp_ops becaus

Re: [PATCH v5 5/8] clocksource/drivers/rockchip_timer: split bc_timer into rk_timer and rk_clock_event_device

2017-01-30 Thread Daniel Lezcano
On Mon, Jan 30, 2017 at 04:55:33PM +0300, Alexander Kochetkov wrote: > > > 30 янв. 2017 г., в 16:12, Daniel Lezcano > > написал(а): > > > > I don't get the point of these changes. The patch does not explain why they > > are > > needed. > > I’d like to extract timer API from current implementa

[PATCH 07/15] phy: Add support for Qualcomm's USB HS phy

2017-01-30 Thread Kishon Vijay Abraham I
From: Stephen Boyd The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I Cc: Acked-by: Rob Herring Signed-off-by: Stephen Boyd Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 84 ++ drivers/phy/K

[PATCH 06/15] phy: Add support for Qualcomm's USB HSIC phy

2017-01-30 Thread Kishon Vijay Abraham I
From: Stephen Boyd The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I Acked-by: Rob Herring Cc: Signed-off-by: Stephen Boyd Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/phy/qcom,usb-hsic-p

[PATCH 06/14] phy: Add support for Qualcomm's USB HS phy

2017-01-30 Thread Kishon Vijay Abraham I
From: Stephen Boyd The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Kishon Vijay Abraham I Cc: Acked-by: Rob Herring Signed-off-by: Stephen Boyd Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 84 ++ drivers/phy/K

[PATCH 09/15] phy: qcom-ufs: Correct usage of regulator_get()

2017-01-30 Thread Kishon Vijay Abraham I
From: Bjorn Andersson When regulator_get() tries to resolve a regulator supply but fail to find a matching property in DeviceTree it returns a dummy regulator, if a matching supply is specified but unavailable the regulator core will return an error. Based on this we should not ignore errors upo

[PATCH 5/5] iio: adc: stm32: add exti11 gpio trigger source

2017-01-30 Thread Fabrice Gasnier
STM32F4 ADC can use exti11 (gpio) signal as trigger source for conversions. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index be0e457..0118c9c 100644 --- a/driv

GOOD NEWS

2017-01-30 Thread COMPENSATION ORDER
Dear Friend, I did not forgot your past effort and attempts to assist me, now i am happy to inform you that i have succeeded in getting those funds transferred with the help of a new partner from India. Now Contact my secretary, ask her for Seven Hundred And Fifty Thousand United States Dolla

Re: [PATCH 3/3] pinctrl: intel: Add Intel Gemini Lake pin controller support

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 11:07 AM, Mika Westerberg wrote: > This driver adds pinctrl/GPIO support for Intel Gemini Lake SoC. The > GPIO controller is based on the next generation GPIO hardware but still > compatible with the one supported by the Intel core pinctrl/GPIO driver. > > This commit incl

Re: [PATCH v2 2/2] prctl: propagate has_child_subreaper flag to every descendant

2017-01-30 Thread Oleg Nesterov
On 01/30, Pavel Tikhomirov wrote: > > On 01/30/2017 03:51 PM, Oleg Nesterov wrote: > >>+ /* > >>+* Inherit has_child_subreaper flag under the same > >>+* tasklist_lock with adding child to the process tree > >>+* for prop

Re: [PATCH v2 3/4] ARM: nommu: display vectors base

2017-01-30 Thread Russell King - ARM Linux
On Sun, Jan 22, 2017 at 08:52:12AM +0530, afzal mohammed wrote: > The exception base address is now dynamically estimated for no-MMU, > display it. As it is the case, now limit VECTORS_BASE usage to MMU > scenario. > > Signed-off-by: afzal mohammed As I wrote elsewhere... > diff --git a/arch/ar

[PATCH 1/5] Documentation: dt: iio: document stm32 adc trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Allow to configure it from dt. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/iio

Re: [PATCH 0/5] Add EXTI GPIO trigger support to STM32 ADC

2017-01-30 Thread Fabrice Gasnier
Hi all, Please discard this series. I'll send a V2. Sorry for the noise. Best regards, Fabrice On 01/30/2017 02:57 PM, Fabrice Gasnier wrote: STM32 ADC, can use GPIOs configured as EXTI line (external interrupt) as trigger source for conversions. This patchset is based on latest IIO testing br

Re: [PATCH 1/3] pinctrl: intel: Add support for hardware debouncer

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 11:07 AM, Mika Westerberg wrote: > The next generation Intel GPIO hardware has two additional registers > PADCFG2 and PADCFG3. The latter is marked as reserved but the former > includes configuration for per-pad hardware debouncer. > > This patch adds support for that in t

Re: [PATCH 14/14] ASoC: sunxi: simplify optional reset handling

2017-01-30 Thread Philipp Zabel
On Mon, 2017-01-30 at 12:30 +, Mark Brown wrote: > On Mon, Jan 30, 2017 at 12:41:16PM +0100, Philipp Zabel wrote: > > As of commit bb475230b8e5 ("reset: make optional functions really > > optional"), the reset framework API calls use NULL pointers to describe > > optional, non-present reset con

Re: [PATCH 2/3] pinctrl: intel: Add support for 1k additional pull-down

2017-01-30 Thread Linus Walleij
On Fri, Jan 27, 2017 at 11:07 AM, Mika Westerberg wrote: > The next generation Intel GPIO hardware supports additional 1k pull-down > per-pad. Add support for this to the Intel core pinctrl driver. > > Signed-off-by: Mika Westerberg > Reviewed-by: Andy Shevchenko Patch applied. And if you one

Re: [PATCH REPOST 2/2] cgroup, perf_event: make perf_event controller work on cgroup2 hierarchy

2017-01-30 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 29, 2017 at 02:35:20PM -0500, Tejun Heo escreveu: > perf_event is a utility controller whose primary role is identifying > cgroup membership to filter perf events; however, because it also > tracks some per-css state, it can't be replaced by pure cgroup > membership test. Mark the cont

[PATCH 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-01-30 Thread Fabrice Gasnier
EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC conversions. Configure them as interrupts to configure trigger path in HW. Note: interrupt handler isn't required here, and corresponding interrupt can be kept masked at exti controller level. Signed-off-by: Fabrice

Re: [PATCH 3/9] rhashtable: simplify a strange allocation pattern

2017-01-30 Thread Vlastimil Babka
On 01/30/2017 10:49 AM, Michal Hocko wrote: From: Michal Hocko alloc_bucket_locks allocation pattern is quite unusual. We are preferring vmalloc when CONFIG_NUMA is enabled. The rationale is that vmalloc will respect the memory policy of the current process and so the backing memory will get di

Re: What should the default lockdown mode be if the bootloader sentinel triggers sanitization?

2017-01-30 Thread David Howells
Matt Fleming wrote: > > Matt argues, however, that boot_params->secure_boot should be propagated > > from > > the bootloader and if the bootloader wants to set it, then we should skip > > the > > check in efi_main() and go with the bootloader's opinion. This is something > > we probably want t

[PATCH] iio: stx104: Remove unneeded struct stx104_dev code

2017-01-30 Thread William Breathitt Gray
The stx104_dev structure was used to hold private data for use in the stx104_remove function. Now that the stx104_remove function is gone, the stx104_dev structure and relevant code is no longer needed. This patch removes the unnecessary code. Signed-off-by: William Breathitt Gray --- drivers/ii

Re: [PATCH v3 03/37] treewide: Consolidate set_dma_ops() implementations

2017-01-30 Thread Russell King - ARM Linux
On Fri, Jan 20, 2017 at 01:04:03PM -0800, Bart Van Assche wrote: > Now that all set_dma_ops() implementations are identical (ignoring > BUG_ON() statements), remove the architecture specific definitions > and add a definition in . > > Signed-off-by: Bart Van Assche > Cc: Benjamin Herrenschmidt >

Re: task_is_descendant() cleanup

2017-01-30 Thread Oleg Nesterov
On 01/25, Kees Cook wrote: > > On Mon, Jan 23, 2017 at 4:52 AM, Oleg Nesterov wrote: > > On 01/23, Oleg Nesterov wrote: > >> > >> Btw task_is_descendant() looks wrong at first glance. > > > > No, I missed the 2nd ->group_leader dereference. Still this function looks > > overcomplicated and the usa

Re: [PATCH v6 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-30 Thread Linus Walleij
On Mon, Jan 30, 2017 at 12:20 AM, Chris Packham wrote: > From: Kalyan Kinthada > > This pinctrl driver supports the 98DX3236, 98DX3336 and 98DX4251 SoCs > from Marvell. > > Signed-off-by: Kalyan Kinthada > Signed-off-by: Chris Packham > Acked-by: Rob Herring > Acked-by: Sebastian Hesselbarth

Re: [PATCH 08/37] cputime: Convert task/group cputime to nsecs

2017-01-30 Thread Stanislaw Gruszka
On Sat, Jan 28, 2017 at 04:28:13PM +0100, Frederic Weisbecker wrote: > On Sat, Jan 28, 2017 at 12:57:40PM +0100, Stanislaw Gruszka wrote: > > On 32 bit architectures 64bit store/load is not atomic and if not > > protected - 64bit variables can be mangled. I do not see any protection > > (lock) betw

Re: What should the default lockdown mode be if the bootloader sentinel triggers sanitization?

2017-01-30 Thread Matt Fleming
On Mon, 30 Jan, at 12:10:29PM, David Howells wrote: > > Matt argues, however, that boot_params->secure_boot should be propagated from > the bootloader and if the bootloader wants to set it, then we should skip the > check in efi_main() and go with the bootloader's opinion. This is something > we

Re: [PATCH v5 5/8] clocksource/drivers/rockchip_timer: split bc_timer into rk_timer and rk_clock_event_device

2017-01-30 Thread Alexander Kochetkov
> 30 янв. 2017 г., в 16:12, Daniel Lezcano > написал(а): > > I don't get the point of these changes. The patch does not explain why they > are > needed. I’d like to extract timer API from current implementation. And to make code more readable I’d like to introduce 'struct rk_timer’ what can

Re: [PATCH v5 8/8] clocksource/drivers/rockchip_timer: implement clocksource timer

2017-01-30 Thread Daniel Lezcano
On Tue, Jan 24, 2017 at 03:16:43PM +0300, Alexander Kochetkov wrote: > The clock supplying the arm-global-timer on the rk3188 is coming from the > the cpu clock itself and thus changes its rate everytime cpufreq adjusts > the cpu frequency making this timer unsuitable as a stable clocksource > and

RE: Device or HBA level QD throttling creates randomness in sequetial workload

2017-01-30 Thread Kashyap Desai
Hi Jens/Omar, I used git.kernel.dk/linux-block branch - blk-mq-sched (commit 0efe27068ecf37ece2728a99b863763286049ab5) and confirm that issue reported in this thread is resolved. Now I am seeing MQ and SQ mode both are resulting in sequential IO pattern while IO is getting re-queued in block lay

Re: [PATCH v2 2/2] prctl: propagate has_child_subreaper flag to every descendant

2017-01-30 Thread Pavel Tikhomirov
On 01/30/2017 03:51 PM, Oleg Nesterov wrote: On 01/27, Pavel Tikhomirov wrote: --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1725,6 +1725,8 @@ struct task_struct { struct signal_struct *signal; struct sighand_struct *sighand; + struct list_head csr_descend

Re: [PATCH v15 2/5] tee: generic TEE subsystem

2017-01-30 Thread Jens Wiklander
On Mon, Jan 30, 2017 at 09:02:49AM +, Benjamin GAIGNARD wrote: > > > On 01/28/2017 01:19 PM, Jens Wiklander wrote: [...] > > +/** > > + * tee_shm_alloc() - Allocate shared memory > > + * @ctx: Context that allocates the shared memory > > + * @size: Requested size of shared memory > > + * @

[tip:perf/core] perf/x86/amd/uncore: Update sysfs attributes for Family17h processors

2017-01-30 Thread tip-bot for Janakarajan Natarajan
Commit-ID: da6adaea2b7ef658c61a557c28508668eac29fe1 Gitweb: http://git.kernel.org/tip/da6adaea2b7ef658c61a557c28508668eac29fe1 Author: Janakarajan Natarajan AuthorDate: Mon, 16 Jan 2017 17:36:23 -0600 Committer: Ingo Molnar CommitDate: Mon, 30 Jan 2017 12:01:18 +0100 perf/x86/amd/uncor

[tip:perf/core] perf/x86/events: Add an AMD-specific Makefile

2017-01-30 Thread tip-bot for Borislav Petkov
Commit-ID: 612f0c0b859ee99f800dc88ad470d938d90ad111 Gitweb: http://git.kernel.org/tip/612f0c0b859ee99f800dc88ad470d938d90ad111 Author: Borislav Petkov AuthorDate: Thu, 26 Jan 2017 09:08:19 +0100 Committer: Ingo Molnar CommitDate: Mon, 30 Jan 2017 12:01:19 +0100 perf/x86/events: Add an

[PATCH v3 2/3] Broadcom USB DRD Phy driver for Northstar2

2017-01-30 Thread Raviteja Garimella
This is driver for USB DRD Phy used in Broadcom's Northstar2 SoC. The phy can be configured to be in Device mode or Host mode based on the type of cable connected to the port. The driver registers to extcon framework to get appropriate connect events for Host/Device cables connect/disconnect state

[PATCH v3 0/3] Support for USB DRD Phy driver for NS2

2017-01-30 Thread Raviteja Garimella
Changes from v2: === Remove unnecessary checks for poweron as suggested in review. Changes from v1: === 1. Initialize file operations .owner field with THIS_MODULE. 2. Remove unnecessary gpio example in DT bindings documentation. This is previously acked by Rob Herring

[PATCH v3 3/3] DT nodes for Broadcom Northstar2 USB DRD Phy

2017-01-30 Thread Raviteja Garimella
This patch adds device tree nodes for USB Dual Role Device Phy for Broadcom's Northstar2 SoC. Signed-off-by: Raviteja Garimella --- arch/arm64/boot/dts/broadcom/ns2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/d

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2017-01-30 Thread Peter Zijlstra
On Fri, Jan 27, 2017 at 01:07:35PM -0800, Kees Cook wrote: > On Fri, Jan 27, 2017 at 1:58 AM, Peter Zijlstra wrote: > > Nothing much, except lack of time. I spend the last several days hunting > > bugs, that trumps new features on my todo list. > > Totally understood. I was just trying to see if

[PATCH v3 1/3] Add DT bindings documentation for NS2 USB DRD phy

2017-01-30 Thread Raviteja Garimella
This patch adds documentation for NS2 DRD Phy driver DT bindings Signed-off-by: Raviteja Garimella Acked-by: Rob Herring --- .../devicetree/bindings/phy/brcm,ns2-drd-phy.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy

Re: [PATCH] printk: fix printk.devkmsg sysctl

2017-01-30 Thread Petr Mladek
On Fri 2017-01-27 19:19:30, Borislav Petkov wrote: > + printk folk. > > On Fri, Jan 27, 2017 at 04:42:30PM +0100, Rabin Vincent wrote: > > proc_dostring() eats the '\n' and stops > > Not a problem, see diff below. > > Please do it this way instead because after a month no one will remember > wha

Re: [PATCH v5 3/8] ARM: dts: rockchip: add timer entries to rk3188 SoC

2017-01-30 Thread Daniel Lezcano
On Mon, Jan 30, 2017 at 04:13:07PM +0300, Alexander Kochetkov wrote: > > > 30 янв. 2017 г., в 15:04, Daniel Lezcano > > написал(а): > > > > There is no case when the rockchip timer is used for the clockevent. > The is already timer entry for rk3228 in the DT. And it act as clockevent. I > gues

Re: DRM Atomic property for color-space conversion

2017-01-30 Thread Ville Syrjälä
On Fri, Jan 27, 2017 at 05:23:24PM +, Brian Starkey wrote: > Hi, > > We're looking to enable the per-plane color management hardware in > Mali-DP with atomic properties, which has sparked some conversation > around how to handle YCbCr formats. > > As it stands today, it's assumed that a drive

Re: [alsa-devel] [PATCH] Sound: soc: samsung - Fix possible NULL derefrence.

2017-01-30 Thread Sylwester Nawrocki
On 01/30/2017 06:04 AM, Shailendra Verma wrote: > of_device_get_match_data could return NULL, and so can cause > a NULL pointer dereference later. > > Signed-off-by: Shailendra Verma > --- > sound/soc/samsung/i2s.c |7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git

Re: irq domain hierarchy vs. chaining w/ PCI MSI-X...

2017-01-30 Thread Thomas Gleixner
On Fri, 13 Jan 2017, David Daney wrote: > At the point where the handle_*_irq() functions call handle_irq_event(), we > need to 9optionally) do something both immediately before and after the call > to handle_irq_event(). > > In irq_chip add a function: > > void (*irq_handle)(struct irq_data

[PATCH] dt-bindings: mmc: sunxi: Document A64 eMMC compatible

2017-01-30 Thread Maxime Ripard
We introduced recently a new compatible to deal with the A64 eMMC controller, let's document its binding. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/mmc/sunxi-mmc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt

[PATCH 09/14] phy: qcom-ufs: Remove -always-on property

2017-01-30 Thread Kishon Vijay Abraham I
From: Bjorn Andersson The fact that a regulator is always-on is a property of the regulator, not a specific consumer. Implementing this in the driver leads to a system behaviour that is dependent on if the Qualcomm UFS PHY was ever (partially) probed. If the specific regulator should be always o

Re: [PATCH] spi - Fix possible NULL derefrence.

2017-01-30 Thread Mark Brown
On Mon, Jan 30, 2017 at 11:00:28AM +0100, Geert Uytterhoeven wrote: > On Mon, Jan 30, 2017 at 5:55 AM, Shailendra Verma > wrote: > > of_match_device could return NULL, and so can cause a NULL > > pointer dereference later. > Can it? The driver uses DT exclusively. > There is no legacy platform co

Re: [PATCH v5 3/8] ARM: dts: rockchip: add timer entries to rk3188 SoC

2017-01-30 Thread Alexander Kochetkov
> 30 янв. 2017 г., в 15:04, Daniel Lezcano > написал(а): > > There is no case when the rockchip timer is used for the clockevent. The is already timer entry for rk3228 in the DT. And it act as clockevent. I guess it work as backup, but I cannot test it also. In order to not break DT compatibil

Re: [PATCH v5 5/8] clocksource/drivers/rockchip_timer: split bc_timer into rk_timer and rk_clock_event_device

2017-01-30 Thread Daniel Lezcano
On Tue, Jan 24, 2017 at 03:16:40PM +0300, Alexander Kochetkov wrote: > The patch move ce field out of struct bc_timer into struct > rk_clock_event_device and rename struct bc_timer to struct rk_timer. > > The main idea for the commit is to exctact low level timer > routines from current implementa

Re: [PATCH] acpi: nfit: use %u format string specifier for unsigned ints

2017-01-30 Thread Colin Ian King
On 30/01/17 11:58, walter harms wrote: > > > Am 30.01.2017 12:25, schrieb Colin King: >> From: Colin Ian King >> >> scrub_mode and scrub_count are both unsigned ints, however, the %d >> format string specifier is being used instead of %u. Trivial fix, >> use %u. >> >> Signed-off-by: Colin Ian Ki

Re: [REGRESSION] EFI mixed mode patch triggers boot failure

2017-01-30 Thread Jiri Kosina
On Sat, 28 Jan 2017, Laura Abbott wrote: > > > Was out for a few days, reporter says the below patch does not work. > > > There was some confusion with secure boot so I've asked them to re-test > > > with efi=old_map and secure boot off. > > > > FYI, you may want to ask the reporter to try out Ji

Re: [PATCH v3 00/24] i.MX Media Driver

2017-01-30 Thread Russell King - ARM Linux
> The central issue seems to be that I think media pad links / media bus > formats should describe physical links, such as parallel or serial > buses, and the formats of pixels flowing through them, whereas Steve > would like to extend them to describe software transports and in-memory > formats.

[PATCH v3 0/7] Pad retentions support for Exynos5433

2017-01-30 Thread Marek Szyprowski
g new PMU register defines to separate patch (requested by Krzysztof Kozlowski) - rebased onto Linux next-20170130 (removed "soc: samsung: pmu: Add dummy support for Exynos5433 SoC" and "arm64: dts: exynos: Add clocks to Exynos5433 LPASS module" patches, which are already

Re: [PATCH 00/10] Add binding from PS/2 to SMBus for Synaptics and Elan

2017-01-30 Thread Benjamin Tissoires
Hi Dmitri, On Tue, Jan 10, 2017 at 5:11 PM, Benjamin Tissoires wrote: > Hi, > > Well, this is the last series which enables RMI4 over SMBus for the Thinkpad > t*40, t*50, t*60 series. Few comments on the patches: > > patches 1 to 3 allows the re-routing of the trackstick buttons from the > touch

Re: [PATCH V2 3/3] mtd: spi-nor: add support for ESMT_f25l32qa and ESMT_f25l64qa

2017-01-30 Thread Cyrille Pitchen
Hi all, Le 21/12/2016 à 08:23, John Crispin a écrit : > From: "Larry D. Pinney" > > Add Support for the ESMT_F25L32QA and ESMT_F25L64QA > These are 4MB and 8MB SPI NOR Chips from Elite Semiconductor Memory > Technology > > Acked-by: Marek Vasut > Signed-off-by: John Crispin > Signed-off-by: L

[PATCH 07/14] phy: qcom-ufs: Don't kfree devres resource

2017-01-30 Thread Kishon Vijay Abraham I
From: Bjorn Andersson Upon failing to acquire regulator supplies the qcom-ufs driver calls kfree() on the devm allocated memory used to store the name of the regulator, leading to devres corruption. Rather than switching to using the appropriate free function the patch acknowledge the fact that

Re: [3/8] x86/tsc: Store and check TSC ADJUST MSR

2017-01-30 Thread Thomas Gleixner
On Mon, 30 Jan 2017, Henning Schild wrote: > On Mon, 30 Jan 2017 11:20:25 +0100 > Thomas Gleixner wrote: > > There is nothing you can ever be sure about, but I doubt that the > > ADJUST MSR is going to vanish. > > That sounds very much like i expected. But assuming the MSR has come to > stay, the

Need a second set of eyeballs for a possible startup race condition in vc04_services/vchiq.

2017-01-30 Thread Michael Zoran
Resending to a larger e-mail list... On Mon, 2017-01-30 at 04:57 -0800, Michael Zoran wrote: > I'm looking at linux-next: > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_connected.c > > First it looks this is some kind of startup notification mechanism > and > it is used by the custom R

Re: [PATCH] sysctl: add proper unsigned int support

2017-01-30 Thread Alexey Dobriyan
On Sun, Jan 29, 2017 at 10:29 PM, Luis R. Rodriguez wrote: > Commit e7d316a02f6838 ("sysctl: handle error writing UINT_MAX to u32 fields") > added proc_douintvec() to start help adding support for unsigned int, > this however was only half the work needed, all these issues are present > with the c

[PATCH v2 2/2] iio: distance: add devantech us ranger srf04

2017-01-30 Thread Andreas Klinger
This patch adds support for the ultrasonic ranger srf04 of devantech. This device is measuring the distance of objects in a range between 1 cm and 3 meters and a theoretical resolution of 3 mm. There are two GPIOs used: - trigger: set as output to the device when the measurement should start

Re: [PATCH 09/14] mtd: nand: sunxi: simplify optional reset handling

2017-01-30 Thread Boris Brezillon
Hi Philipp, On Mon, 30 Jan 2017 12:41:11 +0100 Philipp Zabel wrote: > As of commit bb475230b8e5 ("reset: make optional functions really > optional"), the reset framework API calls use NULL pointers to describe > optional, non-present reset controls. > > This allows to return errors from devm_re

Re: next-20170125 hangs on aarch64

2017-01-30 Thread Yury Norov
5 kernel, and found it hanged on boot. The exact > >> reason is > >> panic on dereferencing of the 0xffc8 address, which is most probably > >> the > >> attempt to dereference the ENOSYS error code as the address. next-20170124 > >> works > >> f

Re: [PATCH] Gpu: drm: exynos - Fix possible NULL derefrence.

2017-01-30 Thread Javier Martinez Canillas
Hello Shailendra, The subject line is wrong, please always use the convention used in previous commits, i.e: git log --oneline drivers/gpu/drm/exynos/ On 01/30/2017 02:02 AM, Shailendra Verma wrote: > of_device_get_match_data could return NULL, and so can cause > a NULL pointer dereference later.

Re: [PATCH v2 2/2] prctl: propagate has_child_subreaper flag to every descendant

2017-01-30 Thread Oleg Nesterov
On 01/27, Pavel Tikhomirov wrote: > > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -1725,6 +1725,8 @@ struct task_struct { > struct signal_struct *signal; > struct sighand_struct *sighand; > > + struct list_head csr_descendant; > + You forgot to remove this part

[PATCH v3 2/7] pinctrl: samsung: Ensure that pad retention is disabled on driver init

2017-01-30 Thread Marek Szyprowski
When pin controller device is a part of power domain, there is no guarantee that the power domain was not turned off and then on during boot process before probing of the pin control driver. If it happened, then pin control driver should ensure that pad retention is turned off during its probe call

[PATCH v2 1/2] iio: distance: add dt binding for devantech-srf04

2017-01-30 Thread Andreas Klinger
This patch adds dt binding for devantech ultrasonic ranger srf04. The vendor "devantech" was already added to the vendor list with "[PATCH v4 1/3] iio: distance: srf08: add trivial DT binding" Signed-off-by: Andreas Klinger --- .../bindings/iio/proximity/devantech-srf04.txt | 28 +++

[PATCH v2 0/2] iio: distance: devantech srf04 us ranger

2017-01-30 Thread Andreas Klinger
This patch series adds support for the devantech srf04 ultrasonic ranger as IIO device. The device is able to recognize objects in a range of 1 cm and 3 meters. The theoretical resolution is about 3 mm, practically more or less 1 cm. Use cases for this device are level metering in tanks or distan

[PATCH v3 4/7] mfd: exynos-lpass: Remove pad retention control

2017-01-30 Thread Marek Szyprowski
Pad retention should be controlled from pin control driver, so remove it from Exynos LPASS driver. After this change, no more access to PMU regmap is needed, so remove also the code for handling PMU regmap. Signed-off-by: Marek Szyprowski Acked-by: Krzysztof Kozlowski Acked-by: Sylwester Nawrock

[PATCH v3 5/7] mfd: exynos-lpass: Add support for clocks

2017-01-30 Thread Marek Szyprowski
Exynos LPASS requires some clocks to be enabled to make any access to its registers. This patch adds code for handling such clocks. For current set of registers it is enough to keep sfr0_ctrl clock enabled. Till now it worked only because those clocks were enabled by bootloader and driver probe() h

Re: [PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-30 Thread Cyrille Pitchen
Le 27/01/2017 à 23:29, Rob Herring a écrit : > On Wed, Jan 25, 2017 at 11:38:34AM +0800, Guochun Mao wrote: >> Add "mediatek,mt2701-nor" for nor flash node's compatible. >> >> Signed-off-by: Guochun Mao >> --- >> .../devicetree/bindings/mtd/mtk-quadspi.txt|8 +++- >> 1 file change

[PATCH v16 2/3] usb: USB Type-C connector class

2017-01-30 Thread Heikki Krogerus
The purpose of USB Type-C connector class is to provide unified interface for the user space to get the status and basic information about USB Type-C connectors on a system, control over data role swapping, and when the port supports USB Power Delivery, also control over power role swapping and Alt

[PATCH v16 1/3] lib/string: add sysfs_match_string helper

2017-01-30 Thread Heikki Krogerus
Make a simple helper for matching strings with sysfs attribute files. In most parts the same as match_string(), except sysfs_match_string() uses sysfs_streq() instead of strcmp() for matching. This is more convenient when used with sysfs attributes. Signed-off-by: Heikki Krogerus Reviewed-by: Mik

[PATCH v3 6/7] mfd: exynos-lpass: Add missing remove() function

2017-01-30 Thread Marek Szyprowski
Disable device on driver remove and release allocated regmap. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Sylwester Nawrocki --- drivers/mfd/exynos-lpass.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/e

[PATCH v3 3/7] pinctrl: samsung: Add support for pad retention control for Exynos5433 SoCs

2017-01-30 Thread Marek Szyprowski
This patch adds support for retention control for Exynos5433 SoCs. Three groups of pins has been defined for retention control: common shared group for ALIVE, CPIF, eSE, FINGER, IMEM, NFC, PERIC, TOUCH pin banks and separate control for FSYS and AUD pin banks, for which PMU retention registers matc

[PATCH v16 3/3] usb: typec: add driver for Intel Whiskey Cove PMIC USB Type-C PHY

2017-01-30 Thread Heikki Krogerus
This adds driver for the USB Type-C PHY on Intel WhiskeyCove PMIC which is available on some of the Intel Broxton SoC based platforms. Signed-off-by: Heikki Krogerus Reviewed-by: Mika Westerberg Reviewed-by: Felipe Balbi --- drivers/usb/typec/Kconfig | 14 ++ drivers/usb/typec/Makefile

[PATCH v16 0/3] USB Type-C Connector class

2017-01-30 Thread Heikki Krogerus
The USB Type-C class is meant to provide unified interface to the userspace to present the USB Type-C ports in a system. Changes since v15: - "stingification" as proposed by Felipe - Checking ARRAY_SIZE in supported_accessory_modes() as proposed by Guenter Changes since v14: - Fixes proposed by M

Re: [PATCH 1/2] perf tools: Use zfree() instead of free() in parse-events.c

2017-01-30 Thread Jiri Olsa
On Mon, Jan 30, 2017 at 07:37:58PM +0900, Taeung Song wrote: > > > On 01/30/2017 06:01 PM, Jiri Olsa wrote: > > On Mon, Jan 30, 2017 at 02:23:38PM +0900, Taeung Song wrote: > > > Currently there are several parts not checking NULL > > > after allocating with zalloc() or asigning NULL value > > >

Re: [PATCH] perf tools: Create for_each_event{_system, _file} macros for tracepoints iteration

2017-01-30 Thread Jiri Olsa
On Mon, Jan 30, 2017 at 07:32:03PM +0900, Taeung Song wrote: SNIP > > looks almost the same as for_each_event_system macro, > > what's the difference other than 'ftrace' check? > > Little thing. > In parse-events.c for_each_event macro contains > tp_event_has_id() function But this function isn'

Re: [PATCH -next] mtd: nand: mediatek: remove redundant dev_err call in mtk_nfc_probe()

2017-01-30 Thread Boris Brezillon
On Tue, 17 Jan 2017 14:22:46 + Wei Yongjun wrote: > From: Wei Yongjun > > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. > Applied. Thanks, Boris > Signed-off-by: Wei Yongjun > --- > drivers/mtd/nand/mtk

Re: [PATCH 13/60] staging: lustre: obdclass: health_check to report unhealthy upon LBUG

2017-01-30 Thread Dan Carpenter
Wat? I'm sorry but this patch makes no sense at all. On Sat, Jan 28, 2017 at 07:04:41PM -0500, James Simmons wrote: > From: Bruno Faccini > > When a LBUG has occurred, without panic_on_lbug being set, > health_check sysfs file must return an unhealthy state. Why? > > Signed-off-by: Bruno Fac

Re: [PATCH 0/2] HID: cp2112: fix sleep-while-atomic regression

2017-01-30 Thread Benjamin Tissoires
On Jan 30 2017 or thereabouts, Johan Hovold wrote: > These patches fix a sleep-while-atomic and an error-handling issue > introduced by a patch that went into 4.9. > > Note that this series has only been compile tested. Tested the series, and: Reviewed-by: Benjamin Tissoires Thanks for spotting

[PATCHv4 5/5] selftests/x86: add test to check compat mmap() return addr

2017-01-30 Thread Dmitry Safonov
We can't just add segfault handler and use addr, returned by compat mmap() syscall, because the lower 4 bytes can be the same as already existed VMA. So, the test parses /proc/self/maps file, founds new VMAs those appeared after compatible sys_mmap() and checks if mmaped VMA is in that list. On fa

[PATCH v3 1/7] soc: smasung: pmu: Add register defines for pad retention control

2017-01-30 Thread Marek Szyprowski
Add PMU defines related to pad retention control. Will be later used by the Exynos pin controller driver. Signed-off-by: Marek Szyprowski --- include/linux/soc/samsung/exynos-regs-pmu.h | 16 1 file changed, 16 insertions(+) diff --git a/include/linux/soc/samsung/exynos-regs-pm

[PATCH v3 7/7] mfd: exynos-lpass: Add runtime PM support

2017-01-30 Thread Marek Szyprowski
Convert exisitng lpass-suspend/resume callbacks into runtime PM callbacks. This way Exynos LPASS driver will be ready for use with power domains enabled. LPASS will be runtime resumed/suspended as a result of its child devices runtime PM transitions. Signed-off-by: Marek Szyprowski Acked-by: Krzy

Re: [PATCH 04/14] [media] st_rc: simplify optional reset handling

2017-01-30 Thread Patrice CHOTARD
On 01/30/2017 12:41 PM, Philipp Zabel wrote: > As of commit bb475230b8e5 ("reset: make optional functions really > optional"), the reset framework API calls use NULL pointers to describe > optional, non-present reset controls. > > This allows to return errors from reset_control_get_optional and t

Re: [PATCHv2] x86/mm/cpa: avoid wbinvd() for PREEMPT

2017-01-30 Thread Peter Zijlstra
On Mon, Jan 30, 2017 at 09:41:21AM +0100, John Ogness wrote: > Although wbinvd() is faster than flushing many individual pages, it > blocks the memory bus for "long" periods of time (>100us), thus > directly causing unusually large latencies on all CPUs, regardless > of any CPU isolation features t

[PATCH v5 3/3] drivers: crypto: Enable CPT options crypto for build

2017-01-30 Thread George Cherian
Add the CPT options in crypto Kconfig and update the crypto Makefile Signed-off-by: George Cherian Reviewed-by: David Daney --- drivers/crypto/Kconfig | 1 + drivers/crypto/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 7956

[PATCH v5 2/3] drivers: crypto: Add the Virtual Function driver for CPT

2017-01-30 Thread George Cherian
Enable the CPT VF driver. CPT is the cryptographic Acceleration Unit in Octeon-tx series of processors. Signed-off-by: George Cherian Reviewed-by: David Daney --- drivers/crypto/cavium/cpt/Makefile | 3 +- drivers/crypto/cavium/cpt/cptvf.h| 135 drivers/crypto/caviu

[PATCH v5 1/3] drivers: crypto: Add Support for Octeon-tx CPT Engine

2017-01-30 Thread George Cherian
Enable the Physical Function driver for the Cavium Crypto Engine (CPT) found in Octeon-tx series of SoC's. CPT is the Cryptographic Accelaration Unit. CPT includes microcoded GigaCypher symmetric engines (SEs) and asymmetric engines (AEs). Signed-off-by: George Cherian Reviewed-by: David Daney -

[PATCH v5 0/3] Add Support for Cavium Cryptographic Acceleration Unit

2017-01-30 Thread George Cherian
This series adds the support for Cavium Cryptographic Accelerarion Unit (CPT) CPT is available in Cavium's Octeon-Tx SoC series. The series was tested with ecryptfs and dm-crypt for in kernel

Re: [PATCH 14/14] ASoC: sunxi: simplify optional reset handling

2017-01-30 Thread Mark Brown
On Mon, Jan 30, 2017 at 12:41:16PM +0100, Philipp Zabel wrote: > As of commit bb475230b8e5 ("reset: make optional functions really > optional"), the reset framework API calls use NULL pointers to describe > optional, non-present reset controls. I've only got this patch from the series, what's the

<    3   4   5   6   7   8   9   10   11   >