[PATCH v2] jiffies: use CLOCKSOURCE_MASK instead of constant

2016-02-06 Thread Alexander Kuleshov
The CLOCKSOURCE_MASK(32) macro expands to the same value, but makes code more readable. Signed-off-by: Alexander Kuleshov --- v2: typo fixed in commit message kernel/time/jiffies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c

Re: [PATCH net v3 0/4] net: add and use rx_nohandler stat counter

2016-02-06 Thread David Miller
From: Jarod Wilson Date: Mon, 1 Feb 2016 18:51:03 -0500 ... > It seems additional counters never came to fruition, so this is a first > attempt at creating one of them, so that we stop calling these drops, > which for users monitoring rx_dropped, causes great alarm, and renders the > counter mu

Have some confusion about the pfn_valid() ?

2016-02-06 Thread zhong jiang
Hi In my opinion, pfn_valid() is meant to be able to tell if a given PFN has valid section, and That section can contain corresponding mem_map. but, the section can be has holes, the corresponding mem_map also be allcoated, resulting in treating the PFN as valid incorrect. what's problem for t

Re: [PATCH v5] futex: Remove requirement for lock_page in get_futex_key

2016-02-06 Thread Ingo Molnar
* Davidlohr Bueso wrote: > On Fri, 05 Feb 2016, Ingo Molnar wrote: > > >So I too didn't understand that sentence at first, because the capitalization > >really throws off quick parsing of that comment, as 'MB' ususally denotes > >megabytes. > > Sure, fair enough. > > > > >So please change it

Re: [PATCH 3/5] oom: clear TIF_MEMDIE after oom_reaper managed to unmap the address space

2016-02-06 Thread Michal Hocko
On Fri 05-02-16 20:14:40, Tetsuo Handa wrote: > Michal Hocko wrote: > > On Fri 05-02-16 00:08:25, Tetsuo Handa wrote: > > > Michal Hocko wrote: > > > > > > + /* > > > > > > +* Clear TIF_MEMDIE because the task shouldn't be sitting on a > > > > > > +* reasonably reclaimable memory anymore.

4.5 Regression - mouse not working after resume from suspend

2016-02-06 Thread Chris Clayton
There seems to be a regression in resuming my laptop from a suspend to RAM or disk. The symptom is that my bluetooth mouse doesn't work after the resume. The kernel is built after a pull of Linus' tree this morning (v4.5-rc2-340-g5af9c2e). Attached is the output from dmesg showing the boot, susp

Re: [PATCH 5/5] mm, oom_reaper: implement OOM victims queuing

2016-02-06 Thread Michal Hocko
On Sat 06-02-16 14:54:24, Tetsuo Handa wrote: > Michal Hocko wrote: > > > But if we consider non system-wide OOM events, it is not very unlikely to > > > hit > > > this race. This queue is useful for situations where memcg1 and memcg2 hit > > > memcg OOM at the same time and victim1 in memcg1 cann

Re: [PATCH v2 3/3] paravirt: rename paravirt_enabled to paravirt_legacy

2016-02-06 Thread Luis R. Rodriguez
On Fri, Feb 05, 2016 at 11:11:34PM -0800, Andy Lutomirski wrote: > On Feb 5, 2016 8:30 PM, "Luis R. Rodriguez" wrote: > > > > paravirt_enabled conveys the idea that if this is set or if > > paravirt_enabled() returns true you are in a paravirtualized > > environment. This is not true by any means,

Re: [PATCH] net: smc911x: convert pxa dma to dmaengine

2016-02-06 Thread Robert Jarzmik
David Miller writes: > From: Robert Jarzmik > Date: Fri, 05 Feb 2016 22:44:56 +0100 > >> Apart from Alberto who answered he cannot test it by lack of hardware, the >> others didn't answer. >> >> So how can I move forward ? Would you want me to amend the KConfig to add a >> "&& >> !ARCH_PXA" on

Re: [PATCH v5 0/3] crypto: KEYS: convert public key to akcipher api

2016-02-06 Thread David Howells
Herbert Xu wrote: > Applied. Hmmm... That means that the crypto branch and the security branch are going to conflict. David

[PATCH] tools/vm/page-types.c: add memory cgroup dumping and filtering

2016-02-06 Thread Konstantin Khlebnikov
This adds two command line keys: -c|--cgroup path|@inodeWalk only pages owned by this memory cgroup -C|--list-cgroup Show memory cgroup inodes Signed-off-by: Konstantin Khlebnikov --- tools/vm/page-types.c | 92 ++--- 1 file

possible irq lock inversion dependency detected

2016-02-06 Thread Михаил Гаврилов
Hi! I see this message in my dmesg log. I don't know how this information is useful for developer. But I want helps to do Linux kernel better. [ 1401.201555] = [ 1401.201557] [ INFO: possible irq lock inversion dependency detected ] [ 1401.20

Re: [PATCH v4 01/17] Xen: ACPI: Hide UART used by Xen

2016-02-06 Thread Rafael J. Wysocki
On Fri, Feb 5, 2016 at 4:05 AM, Shannon Zhao wrote: > From: Shannon Zhao > > ACPI 6.0 introduces a new table STAO to list the devices which are used > by Xen and can't be used by Dom0. On Xen virtual platforms, the physical > UART is used by Xen. So here it hides UART from Dom0. > > Signed-off-by

Re: [PATCH v3 1/5] clk: sunxi: Add apb0 gates for H3

2016-02-06 Thread Jean-Francois Moine
On Fri, 5 Feb 2016 12:11:52 +0100 Maxime Ripard wrote: > However, I'd like to keep per-soc and per-clocks compatibles in the > DT, in case we need to protect a clock in the future. What do you mean by "protect a clock"? -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef

Re: [PATCH v7 04/10] ppc64 ftrace_with_regs configuration variables

2016-02-06 Thread Torsten Duwe
On Fri, Feb 05, 2016 at 05:18:34PM +0100, Petr Mladek wrote: [...] > more complicated. Whem I think about it, the change below does similar > job and looks more strightforwad: Had I only looked closer. That's exactly how I thought it would work in the first place. I'd call that a fix. Full ACK fro

Re: [PATCH v2] power: bq27xxx_battery: Restore device name

2016-02-06 Thread Pali Rohár
On Tuesday 02 February 2016 13:47:37 Ivaylo Dimitrov wrote: > Patch <703df6c097956d17a818e63961c82e8e9eef9fef> ("power: > bq27xxx_battery: Reorganize I2C into a module") has removed the > device name numbering from bq27xxx_battery_i2c_probe. Fix that by > restoring the code. > > Signed-off-by: Iva

[PATCH] crypto: mark authenticated ctr(aes) also as FIPS able

2016-02-06 Thread Marcus Meissner
(2nd try that adds missing , to build.) Signed-off-by: Marcus Meissner --- crypto/testmgr.c | 16 1 file changed, 16 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index ae8c57fd..7d66cf8 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2143,6 +2143,10 @

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-06 Thread Jonathan Cameron
On 05/02/16 21:44, Daniel Baluta wrote: > On Fri, Feb 5, 2016 at 11:02 PM, Lucas De Marchi > wrote: >> Hi Daniel, >> >> On Fri, Feb 5, 2016 at 11:17 AM, Daniel Baluta >> wrote: >>> + >>> +static const struct i2c_device_id ads1015_id[] = { >>> + {"ads1015", 0}, >>> + {} >>> +}; >> >>

[PATCH V3 0/6] Introduce CoreSight STM support

2016-02-06 Thread Chunyan Zhang
This patchset adds support for CoreSight STM IP block. It also makes a little modification to the generic STM framework to cover the CoreSight STM requirements. Full description follows the changelog. Changes from v1: - Added a definition of coresight_simple_func() in CS-STM driver to avoid th

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-06 Thread Jonathan Cameron
On 05/02/16 13:17, Daniel Baluta wrote: > The driver has sysfs readings with runtime PM support for power saving. > It also offers buffer support that can be used together with IIO software > triggers. > > Datasheet can be found here: > http://www.ti.com.cn/cn/lit/ds/symlink/ads1015.pdf > >

[PATCH V3 5/6] coresight-stm: Bindings for System Trace Macrocell

2016-02-06 Thread Chunyan Zhang
From: Mathieu Poirier The System Trace Macrocell (STM) is an IP block falling under the CoreSight umbrella. It's main purpose it so expose stimulus channels to any system component for the purpose of information logging. Bindings for this IP block adds a couple of items to the current mandatory

[PATCH V3 1/6] stm class: Add ioctl get_options interface

2016-02-06 Thread Chunyan Zhang
There is already an interface of set_options, but no get_options yet. Before setting any options, one would may want to see the current status of that option by means of get_options interface. This interface has been used in CoreSight STM driver. Signed-off-by: Chunyan Zhang --- drivers/hwtracin

[PATCH V3 2/6] stm class: Support devices with multiple instances

2016-02-06 Thread Chunyan Zhang
From: Alexander Shishkin By convention, the name of the stm policy directory in configfs consists of the device name to which it applies and the actual policy name, separated by a dot. Now, some devices already have dots in their names that separate name of the actual device from its instance ide

[PATCH V3 4/6] Documentations: Add explanations of the case for non-configurable masters

2016-02-06 Thread Chunyan Zhang
For some STM hardware (e.g. ARM CoreSight STM), the masterID associated to a source is set at the hardware level and not user configurable. Since the masterID information isn't available to SW, introducing a new value of -1 to reflect this reality. Signed-off-by: Chunyan Zhang --- Documentation/

[PATCH V3 6/6] coresight-stm: adding driver for CoreSight STM component

2016-02-06 Thread Chunyan Zhang
From: Pratik Patel This driver adds support for the STM CoreSight IP block, allowing any system compoment (HW or SW) to log and aggregate messages via a single entity. The CoreSight STM exposes an application defined number of channels called stimulus port. Configuration is done using entries i

Re: [PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-06 Thread Jonathan Cameron
On 06/02/16 11:05, Jonathan Cameron wrote: > On 05/02/16 13:17, Daniel Baluta wrote: >> The driver has sysfs readings with runtime PM support for power saving. >> It also offers buffer support that can be used together with IIO software >> triggers. >> >> Datasheet can be found here: >> http:/

[PATCH V3 3/6] stm class: provision for statically assigned masterIDs

2016-02-06 Thread Chunyan Zhang
From: Mathieu Poirier Some architecture like ARM assign masterIDs statically at the HW design phase, making masterID manipulation in the generic STM core irrelevant. This patch adds a new 'mstatic' flag to struct stm_data that tells the core that this specific STM device doesn't need explicit ma

Re: [PATCH 3/5] oom: clear TIF_MEMDIE after oom_reaper managed to unmap the address space

2016-02-06 Thread Tetsuo Handa
Michal Hocko wrote: > I am not really sure I understand what you are trying to tell here to be > honest > but no I am not going to add any timers at this stage. > Dropping TIF_MEMDIE will help to unlock OOM killer as soon as we know > the current victim is no longer interesting for the OOM killer

[PATCH 1/1] imx6q-wandboard-revb1.dts: use unique machine name

2016-02-06 Thread Heinrich Schuchardt
Downstream packages like Debian flash-install use /proc/device-tree/model to determine which dtb file to install. Hence each dts in the Linux kernel should provide a unique model identifier. https://lkml.org/lkml/2014/7/8/579 created the new file imx6q-wandboard-revb1.dts but used the same model

Re: 4.5 Regression - mouse not working after resume from suspend

2016-02-06 Thread Chris Clayton
On 06/02/16 08:37, Chris Clayton wrote: > There seems to be a regression in resuming my laptop from a suspend to RAM or > disk. The symptom is that my bluetooth > mouse doesn't work after the resume. The kernel is built after a pull of > Linus' tree this morning (v4.5-rc2-340-g5af9c2e). > > At

Re: [PATCH 00/42] x86: updated patches for kaslr and setup_data etc for v4.3

2016-02-06 Thread Baoquan He
Hi, Recently people using big box servers are also very interested in kaslr and want to have it to enhance security. So allowing kaslr be able to randomize above 4G makes much sense for different kinds of system. I would like to repost patches realted to kaslr in this patchset, and leave the rest

Re: avr32 build failures in linux-next

2016-02-06 Thread Hans-Christian Noren Egtvedt
Around Fri 05 Feb 2016 22:02:12 +0530 or thereabout, Sudip Mukherjee wrote: > On Friday 05 February 2016 09:32 PM, Guenter Roeck wrote: >>Hi, >> >>I am getting persistent build failures with av32 in linux-next. > > me too. linux-next is Torvalds master branch? >>Example for avr32:defconfig: >> >

Re: brcmfmac: sdio: Increase the default timeouts a bit

2016-02-06 Thread Kalle Valo
> On a Radxa Rock2 board with a Ampak AP6335 (Broadcom 4339 core) it seems > the card responds very quickly most of the time, unfortunately during > initialisation it sometimes seems to take just a bit over 2 seconds to > respond. > > This results intialization failing with message like: > brcm

Re: [v2] hostap: avoid uninitialized variable use in hfa384x_get_rid

2016-02-06 Thread Kalle Valo
> The driver reads a value from hfa384x_from_bap(), which may fail, > and then assigns the value to a local variable. gcc detects that > in in the failure case, the 'rlen' variable now contains > uninitialized data: > > In file included from > ../drivers/net/wireless/intersil/hostap/hostap_pci.c

Re: [v3,1/6] libertas: fix pointer bugs for PS_MODE commands

2016-02-06 Thread Kalle Valo
> struct cmd_ds_802_11_ps_mode > contains the command header and a pointer to it was > initialized with data points to the body which leads to > mis-interpretation of the cmd_ds_802_11_ps_mode.action member. > cmd[0] contains the header, &cmd[1] points beyond that. > cmdnode->cmdbuf is a pointer t

[PATCH 1/1 v2] imx6q-wandboard-revb1.dts: use unique machine name

2016-02-06 Thread Heinrich Schuchardt
Downstream packages like Debian flash-kernel use /proc/device-tree/model to determine which dtb file to install. Hence each dts in the Linux kernel should provide a unique model identifier. https://lkml.org/lkml/2014/7/8/579 created the new file imx6q-wandboard-revb1.dts but used the same model i

Re: [PATCH v8] kernel: add kcov code coverage

2016-02-06 Thread Dmitry Vyukov
On Thu, Feb 4, 2016 at 11:30 PM, Andrew Morton wrote: > On Thu, 4 Feb 2016 16:40:41 +0100 Dmitry Vyukov wrote: > >> kcov provides code coverage collection for coverage-guided fuzzing >> (randomized testing). Coverage-guided fuzzing is a testing technique >> that uses coverage feedback to determi

Re: [PATCH 07/11] ARM: dts: sunxi: Add dtsi file for AXP809 PMIC

2016-02-06 Thread Chen-Yu Tsai
On Tue, Feb 2, 2016 at 8:17 PM, Mark Brown wrote: > On Tue, Feb 02, 2016 at 06:27:40PM +0800, Chen-Yu Tsai wrote: > >> + reg_dcdc1: dcdc1 { >> + regulator-name = "dcdc1"; >> + }; > > Why is this generic DTS include specifying regulator names? My intent

Re: [PATCH v2 0/10] cpufreq: governor: ondemand/conservative data structures rework

2016-02-06 Thread Rafael J. Wysocki
On Friday, February 05, 2016 03:07:27 AM Rafael J. Wysocki wrote: > On Thursday, February 04, 2016 12:12:52 AM Rafael J. Wysocki wrote: > > Hi, > > > > A few days ago I looked at the common code used by the ondemand and > > conservative > > governors because of the deadlock issue that Viresh has

[PATCH v3 8/10] cpufreq: governor: Rename cpu_common_dbs_info to policy_dbs_info

2016-02-06 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Subject: [PATCH] cpufreq: governor: Rename cpu_common_dbs_info to policy_dbs_info The struct cpu_common_dbs_info structure represents the per-policy part of the governor data (for the ondemand and conservative governors), but its name doesn't reflect its purpose. Rename

Re: [PATCH 4/5] ARM: dts: NSP: Add SP805 Support to DT

2016-02-06 Thread Sergei Shtylyov
Hello. On 2/6/2016 1:43 AM, Jon Mason wrote: Add support for the ARM SP805 Watchdog timer to the Northstar Plus device tree. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boo

[PATCH v3 10/10] cpufreq: governor: Drop cpu argument from dbs_check_cpu()

2016-02-06 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since policy->cpu is always passed as the second argument to dbs_check_cpu(), it is not really necessary to pass it, because the function can obtain that value via its first argument just fine. Signed-off-by: Rafael J. Wysocki --- Changes from v2: - Rebase on top of htt

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-06 Thread Javier Martinez Canillas
Hello Laxman, On 02/06/2016 03:29 AM, Laxman Dewangan wrote: Hi Javier, ' On Saturday 06 February 2016 11:00 AM, Javier Martinez Canillas wrote: Hello Laxman, Sorry for not doing this before but today was a busy one. Thanks for testing. On 02/05/2016 11:37 AM, Laxman Dewangan wrote: Hi

Re: Crashes with 874bbfe600a6 in 3.18.25

2016-02-06 Thread Henrique de Moraes Holschuh
On Fri, 05 Feb 2016, Tejun Heo wrote: > On Fri, Feb 05, 2016 at 09:59:49PM +0100, Mike Galbraith wrote: > > On Fri, 2016-02-05 at 15:54 -0500, Tejun Heo wrote: > > > > > What are you suggesting? > > > > That 874bbfe6 should die. > > Yeah, it's gonna be killed. The commit is there because the be

Re: 4.5 Regression - mouse not working after resume from suspend

2016-02-06 Thread Chris Clayton
On 06/02/16 11:38, Chris Clayton wrote: > > > On 06/02/16 08:37, Chris Clayton wrote: >> There seems to be a regression in resuming my laptop from a suspend to RAM >> or disk. The symptom is that my bluetooth >> mouse doesn't work after the resume. The kernel is built after a pull of >> Linus

Re: [PATCH 1/5] mm, oom: introduce oom reaper

2016-02-06 Thread Tetsuo Handa
Michal Hocko wrote: > There is one notable exception to this, though, if the OOM victim was > in the process of coredumping the result would be incomplete. This is > considered a reasonable constrain because the overall system health is > more important than debugability of a particular application

Re: [PATCH v5 00/12] MADV_FREE support

2016-02-06 Thread Michael Kerrisk (man-pages)
Hello Minchan, On 02/05/2016 03:15 AM, Minchan Kim wrote: > On Thu, Jan 28, 2016 at 08:16:25AM +0100, Michael Kerrisk (man-pages) wrote: >> Hello Minchan, >> >> On 11/30/2015 07:39 AM, Minchan Kim wrote: >>> In v4, Andrew wanted to settle in old basic MADV_FREE and introduces >>> new stuffs(ie, la

Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-06 Thread Laxman Dewangan
On Saturday 06 February 2016 06:31 PM, Javier Martinez Canillas wrote: Hello Laxman, On 02/06/2016 03:29 AM, Laxman Dewangan wrote: So the issue is that when we create mapping, we can not delete the irq_chip. I saw one function from irq framework irq_dispose_mapping(unsigned int virq).

Re: avr32 build failures in linux-next

2016-02-06 Thread Måns Rullgård
Hans-Christian Noren Egtvedt writes: >>>Example for avr32:defconfig: >>> >>>fs/built-in.o: In function `anon_inode_getfile': >>>(.text+0x2ae90): relocation truncated to fit: R_AVR32_21S against >>>`.text'+296c0 >>> >>>All builds but avr32:allnoconfig fail with such truncated relocations. > > Weir

[PATCH] MIPS: pci-mt7620: Fix return value check in mt7620_pci_probe()

2016-02-06 Thread weiyj_lk
From: Wei Yongjun In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- arch/mips/pci/pci-mt7620.c | 8 1 file changed, 4 insertions(+),

[PATCH] ARM: zx: Fix return value check in zx296702_pd_probe()

2016-02-06 Thread weiyj_lk
From: Wei Yongjun In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- arch/arm/mach-zx/zx296702-pm-domain.c | 4 ++-- 1 file changed, 2 insertio

Re: [PATCH v5 0/3] crypto: KEYS: convert public key to akcipher api

2016-02-06 Thread Herbert Xu
On Sat, Feb 06, 2016 at 10:00:21AM +, David Howells wrote: > > Hmmm... That means that the crypto branch and the security branch are going > to conflict. I thought you were OK with it going in now as you said that you'll fix it up later. Sorry for the misunderstanding. Do you want me to re

Re: [PATCH v8 6/9] dax: add support for fsync/msync

2016-02-06 Thread Dmitry Monakhov
Ross Zwisler writes: > To properly handle fsync/msync in an efficient way DAX needs to track dirty > pages so it is able to flush them durably to media on demand. Please see coments below > > The tracking of dirty pages is done via the radix tree in struct > address_space. This radix tree is alr

Re: [PATCH 3/5] oom: clear TIF_MEMDIE after oom_reaper managed to unmap the address space

2016-02-06 Thread Tetsuo Handa
Michal Hocko wrote: > On Thu 04-02-16 15:43:19, Michal Hocko wrote: > > On Thu 04-02-16 23:22:18, Tetsuo Handa wrote: > > > Michal Hocko wrote: > > > > From: Michal Hocko > > > > > > > > When oom_reaper manages to unmap all the eligible vmas there shouldn't > > > > be much of the freable memory h

[PATCH] staging: rtl8712: Fix Comparison with constant warning.

2016-02-06 Thread Pinkesh Badjatiya
Fix Comparisons with constant on the left side of the test. Checkpatch.pl warning. -- WARNING: Comparisons should place the constant on the right side of the test 296: FILE: ./rtl8712_cmd.c:296: while ((0 != r8712_read32(pAdapter, IOCMD_CTRL_REG)) && Signed-off-by: Pinkesh Badjatiya ---

[PATCH V4 0/6] rtc: max77686: make max77686 rtc driver as IP driver

2016-02-06 Thread Laxman Dewangan
Based on discussion on patch series of MAX77620 when adding separate driver for max77620 RTC, it is discussed to reuse the max77686 driver for all CHips MAX77802, MAX77686 and MAX77620. For this, the rtc-max77686 need to make as IP driver independent of their MFD parent driver. This series makes t

[PATCH V4 4/6] rtc: max77686: avoid reference of parent device info multiple places

2016-02-06 Thread Laxman Dewangan
Get rid of referring parent device info for register access all the places by making regmap as part of max77686 rtc device info. This will also remove the need of storing parent device info in max77686 rtc device info as this is no more required. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlo

[PATCH V4 5/6] mfd: max77686: do not set i2c client data for rtc i2c client

2016-02-06 Thread Laxman Dewangan
There is different RTC I2C address for RTC block in MAX77686. Driver is creating dummy i2c client for this address to access the register of this IP block. As there is no call to i2c_get_clientdata() for rtc_i2c client, there is no need to store pointer and hence removing the call to set client da

[PATCH V4 6/6] rtc: max77686: move initialisation of rtc regmap, irq chip locally

2016-02-06 Thread Laxman Dewangan
To make RTC block of MAX77686/MAX77802 as independent driver, move the registration of i2c device, regmap for register access and irq_chip for interrupt support inside the RTC driver. Removed the same initialisation from MFD driver. Having this change will allow to reuse this driver for different

[PATCH V4 3/6] rtc: max77686: use rtc regmap to access RTC registers

2016-02-06 Thread Laxman Dewangan
rtc_regmap should be used to access all RTC registers instead of parent regmap regardless of what chip or property have it. This makes the register access uniform and extendible for other chips. Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzy

[PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-06 Thread Laxman Dewangan
Before removing irq domains, it is require to unmap all mapped interrupt from that domain. Currently there is API to map the interrupt on chip as regmap_irq_get_virq() for creating mapping. Add equivalent API to dispose the mapped irq in irq domains. Signed-off-by: Laxman Dewangan CC: Krzysztof K

[PATCH V4 2/6] rtc: max77686: fix checkpatch error

2016-02-06 Thread Laxman Dewangan
Fix following check patch error in rtc-max77686 driver: - Alignment should match open parenthesis. - braces {} should be used on all arms of this statement. - Prefer using the BIT macro Signed-off-by: Laxman Dewangan CC: Krzysztof Kozlowski CC: Javier Martinez Canillas Tested-by: Krzysztof Kozl

Re: [PATCH] staging: rtl8712: Fix Comparison with constant warning.

2016-02-06 Thread Larry Finger
On 02/06/2016 08:41 AM, Pinkesh Badjatiya wrote: Fix Comparisons with constant on the left side of the test. Checkpatch.pl warning. -- WARNING: Comparisons should place the constant on the right side of the test 296: FILE: ./rtl8712_cmd.c:296: while ((0 != r8712_read32(pAdapter, IOCMD_CTR

[PATCH] rdma: amso1100: c2_provider: Use netdev_dbg()

2016-02-06 Thread Amitoj Kaur Chawla
Replace generic pr_debug() with netdev_dbg() for net devices. Found using Coccinelle. The semantic patch used to find this is as follows: // @@ expression e; identifier f,i; position p; @@ f(...,struct net_device *i,...) { ... - pr_debug@p(e); + netdev_dbg(i, e); ... } // Signed-off-by: A

Re: [PATCH 5/5] mm, oom_reaper: implement OOM victims queuing

2016-02-06 Thread Tetsuo Handa
Michal Hocko wrote: > On Sat 06-02-16 14:54:24, Tetsuo Handa wrote: > > Michal Hocko wrote: > > > > But if we consider non system-wide OOM events, it is not very unlikely > > > > to hit > > > > this race. This queue is useful for situations where memcg1 and memcg2 > > > > hit > > > > memcg OOM at

Re: [PATCH] MIPS: pci-mt7620: Fix return value check in mt7620_pci_probe()

2016-02-06 Thread John Crispin
On 06/02/2016 15:24, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function devm_ioremap_resource() returns > ERR_PTR() and never returns NULL. The NULL test in the return > value check should be replaced with IS_ERR(). > > Signed-off-by: Wei Yongjun Hi, thanks for th

Re: avr32 build failures in linux-next

2016-02-06 Thread Guenter Roeck
On 02/06/2016 03:57 AM, Hans-Christian Noren Egtvedt wrote: Around Fri 05 Feb 2016 22:02:12 +0530 or thereabout, Sudip Mukherjee wrote: On Friday 05 February 2016 09:32 PM, Guenter Roeck wrote: Hi, I am getting persistent build failures with av32 in linux-next. me too. linux-next is Torval

[PATCH 6/6] ARM: multi_v7_defconfig: Enable MUSB HDRC driver with Allwinner glue

2016-02-06 Thread Chen-Yu Tsai
Allwinner SoCs typically have a Mentor Graphics Inventra MUSB high speed dual role controller for USB OTG. Now that the issue with MUSB and USB gadget registration order has been resolved, we can enable this driver in dual role mode. This patch only enables the driver core and Allwinner platform

[PATCH 2/6] ARM: sunxi_defconfig: Enable A10 audio codec driver

2016-02-06 Thread Chen-Yu Tsai
The A10 audio codec driver supports the on-chip audio codec found on Allwinner A10, A10s, A13, A20 SoCs. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/sunxi_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig in

[PATCH 4/6] ARM: sunxi_defconfig: Enable INPUT_EVDEV so axp20x-pek can be used

2016-02-06 Thread Chen-Yu Tsai
sunxi_defconfig already enables INPUT_AXP20X_PEK, but the device is not exposed to userspace. Enable INPUT_EVDEV so it is. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunx

[PATCH 3/6] ARM: sunxi_defconfig: Enable MUSB HDRC driver with Allwinner glue

2016-02-06 Thread Chen-Yu Tsai
Allwinner SoCs typically have a Mentor Graphics Inventra MUSB dual role controller for USB OTG. Now that the issue with MUSB and USB gadget registration order has been resolved, we can enable this driver in dual role mode. This requires the NOP USB transceiver driver, which is also enabled. Signe

[PATCH 1/6] ARM: sunxi_defconfig: Enable sunxi IR driver

2016-02-06 Thread Chen-Yu Tsai
A consumer IR receiver is commonly found on Allwinner SoC based development boards and set top boxes. The driver has been available for some time. Enable it by default. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/sunxi_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/a

[PATCH 5/6] ARM: multi_v7_defconfig: Enable A10 audio codec driver as module

2016-02-06 Thread Chen-Yu Tsai
The A10 audio codec driver supports the on-chip audio codec found on Allwinner A10, A10s, A13, A20 SoCs. Build it as a module, since it is not critical. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi

[PATCH 0/6] ARM: defconfig: Enable recently merged drivers for sunxi

2016-02-06 Thread Chen-Yu Tsai
Hi everyone, This series enables drivers for devices that are likely to be used on sunxi. This includes the IR receiver, audio codec, USB OTG, and also enabling input device interface in userspace so the power button works. The patches are self-explanatory. MUSB for USB OTG is enabled only now b

Re: [PATCH v5 2/3] pci, pci-thunder-pem: Add PCIe host driver for ThunderX processors.

2016-02-06 Thread Bjorn Helgaas
Hi David, I don't have time today to look at this thoroughly, but I think I did see one actual bug and a possible way to make this more readable. I think reading difficulty increases as at least the square of the maximum indent level :) Bjorn On Fri, Feb 05, 2016 at 03:41:14PM -0800, David Dane

Re: [PATCH v6 3/3] gpio: tps65086: Add GPO driver for the TPS65086 PMIC

2016-02-06 Thread Andrew F. Davis
On 02/05/2016 08:43 AM, Linus Walleij wrote: On Mon, Jan 25, 2016 at 4:50 PM, Andrew F. Davis wrote: Add support for the TPS65086 PMIC GPOs. TPS65086 has four configurable GPOs that can be used for several purposes. These are output only. Signed-off-by: Andrew F. Davis (...) +static inlin

[PATCH] gpio: tps65086: Add GPO driver for the TPS65086 PMIC

2016-02-06 Thread Andrew F. Davis
Add support for the TPS65086 PMIC GPOs. TPS65086 has four configurable GPOs that can be used for several purposes. These are output only. Signed-off-by: Andrew F. Davis --- This is the last component of the tps65086 series, other parts have been taken already, this will probably need to be taken

[PATCH 1/1] support for NXP tda2014x & Newport Media nm120/130/131 tuners

2016-02-06 Thread Буди Романто, AreMa Inc
Signed-off-by: Буди Романто, AreMa Inc --- drivers/media/tuners/Kconfig| 14 ++ drivers/media/tuners/Makefile | 2 + drivers/media/tuners/nm131.c| 272 ++ drivers/media/tuners/nm131.h| 13 ++ drivers/media/tuners/tda2014x.c | 356 +

[PATCH v3 2/3] clocksource: Add NPS400 timers driver

2016-02-06 Thread Noam Camus
From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano Cc: Rob Herring Cc: Thomas Gleixner Cc: Joh

[PATCH v3 1/3] soc: Support for EZchip SoC

2016-02-06 Thread Noam Camus
From: Noam Camus This header file is for NPS400 SoC. It includes macros for accessing memory mapped registers. These are functional registers that core can use to configure SoC. Signed-off-by: Noam Camus --- include/soc/nps/common.h | 150 ++ 1 file

Re: avr32 build failures in linux-next

2016-02-06 Thread Guenter Roeck
On 02/06/2016 06:01 AM, Måns Rullgård wrote: Hans-Christian Noren Egtvedt writes: Example for avr32:defconfig: fs/built-in.o: In function `anon_inode_getfile': (.text+0x2ae90): relocation truncated to fit: R_AVR32_21S against `.text'+296c0 All builds but avr32:allnoconfig fail with such trun

[PATCH v3 3/3] irqchip: add nps Internal and external irqchips

2016-02-06 Thread Noam Camus
From: Noam Camus Adding EZchip NPS400 support. NPS internal interrupts are internally handled at Multi Thread Manager (MTM) that is signaled for deactivating an interrupt. External interrupts is handled also at Global Interrupt Controller (GIC) e.g. serial and network devices. Signed-off-by: Noa

Re: [PATCH v8 0/5] mfd: tps65912: Driver rewrite with DT support

2016-02-06 Thread Andrew F. Davis
On 02/02/2016 09:03 AM, Andrew F. Davis wrote: On 01/28/2016 07:30 AM, Lee Jones wrote: On Thu, 28 Jan 2016, Mark Brown wrote: On Thu, Jan 28, 2016 at 12:04:23PM +, Lee Jones wrote: On Thu, 28 Jan 2016, Mark Brown wrote: Please be more specific? What is it that you are looking for bey

[PATCH v3 0/3] Adding NPS400 drivers

2016-02-06 Thread Noam Camus
From: Noam Camus Change Log-- v3 irqchip - Fix ARM build failure by adding missing include of linux/irq.h clocksource -- Avoid 64bit arch's to build driver by adding new dependency !PHYS_ADDR_T_64BIT This is since we use explicit io access of 32 bit. So for test

Re: [PATCH] watchdog: w83627hf: Added NCT6102D support.

2016-02-06 Thread Guenter Roeck
On 02/04/2016 06:58 PM, Rob Kramer wrote: As used in (and tested on) the ASRock IMB-150 board. Implementation is identical to other NCT chips, just with different registers. Signed-off-by: Rob Kramer Reviewed-by: Guenter Roeck --- drivers/watchdog/Kconfig| 1 + drivers/watchdog

Re: [PATCH] drm/gma500: remove helper function

2016-02-06 Thread Patrik Jakobsson
On Tue, Feb 2, 2016 at 7:05 AM, Sudip Mukherjee wrote: > We were getting build warning about: > drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:2: warning: initialization > from incompatible pointer type > > The callback to dpms was pointing to a helper function which had a > return type of

Re: [PATCH] watchdog: w83627hf: Added NCT6102D support.

2016-02-06 Thread Guenter Roeck
On 02/04/2016 06:58 PM, Rob Kramer wrote: As used in (and tested on) the ASRock IMB-150 board. Implementation is identical to other NCT chips, just with different registers. Signed-off-by: Rob Kramer Rob, your patch is whitespace damaged (tabs replaced with spaces) and can not be applied. P

Re: [PATCH] MIPS: Differentiate between 32 and 64 bit ELF header

2016-02-06 Thread Maciej W. Rozycki
On Mon, 1 Feb 2016, Daniel Wagner wrote: > >> Depending on the configuration either the 32 or 64 bit version of > >> elf_check_arch() is defined. parse_crash_elf32_headers() does > >> some basic verification of the ELF header via elf_check_arch(). > >> parse_crash_elf64_headers() does it via vmcor

Re: avr32 build failures in linux-next

2016-02-06 Thread Måns Rullgård
Guenter Roeck writes: > On 02/06/2016 06:01 AM, Måns Rullgård wrote: >> Hans-Christian Noren Egtvedt writes: >> > Example for avr32:defconfig: > > fs/built-in.o: In function `anon_inode_getfile': > (.text+0x2ae90): relocation truncated to fit: R_AVR32_21S against > `.text'+29

[PATCH v2 4/5] ARM: dts: NSP: Add SP804 Support to DT

2016-02-06 Thread Jon Mason
Add support for the ARM SP804 timer to the Northstar Plus device tree. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi index ee03bee..63a0a53 100644

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-06 Thread Fu Wei
Hi Guenter, On 6 February 2016 at 07:54, Guenter Roeck wrote: > On 02/05/2016 10:21 AM, Fu Wei wrote: >> >> On 5 February 2016 at 22:42, Guenter Roeck wrote: >>> >>> On 02/05/2016 01:51 AM, Fu Wei wrote: Hi Guenter, On 4 February 2016 at 13:17, Guenter Roeck wrote:

Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration

2016-02-06 Thread Jonathan Cameron
On 04/02/16 17:45, Lars-Peter Clausen wrote: > On 02/04/2016 03:50 PM, Cristina Moraru wrote: >> Replace non standard meas_conf attribute with the standard IIO >> calibbias attribute. >> >> API for setting bias measurement configuration: >> >> 0 - Normal measurement configuration (default): In norm

Re: [RFC PATCH 1/2] iio: hmc5843 Add channel attribute for bias configuration

2016-02-06 Thread Jonathan Cameron
On 05/02/16 09:58, Daniel Baluta wrote: > On Thu, Feb 4, 2016 at 7:45 PM, Lars-Peter Clausen wrote: >> On 02/04/2016 03:50 PM, Cristina Moraru wrote: >>> Replace non standard meas_conf attribute with the standard IIO >>> calibbias attribute. >>> >>> API for setting bias measurement configuration:

Re: [PATCH v3] iio: adc: Add TI ADS1015 ADC driver support

2016-02-06 Thread Jonathan Cameron
On 04/02/16 12:51, Daniel Baluta wrote: >> Would it be more consistent to handle the mutex outside of the switch above >> similar >> to how it is handled in ads1015_write_raw? >> >> Also the ads1015_set_power_state(data, false) is called either way so why >> not just >> use one call? >> > > I do

Re: [PATCH v3 2/2] iio: pressure: ms5611: Add triggered buffer support

2016-02-06 Thread Jonathan Cameron
On 03/02/16 16:50, Daniel Baluta wrote: > This will be used together with an external trigger (e.g hrtimer > based software trigger). > > Signed-off-by: Daniel Baluta Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to play with it. Thanks, Jonathan

Re: [PATCH v3 1/2] iio: pressure: ms5611: Add IIO_CHAN_INFO_SCALE to mask

2016-02-06 Thread Jonathan Cameron
On 03/02/16 16:50, Daniel Baluta wrote: > This allows data exported via buffer interface to be converted > to standard units in userspace. > > Signed-off-by: Daniel Baluta Applied. > --- > drivers/iio/pressure/ms5611_core.c | 18 -- > 1 file changed, 16 insertions(+), 2 deletions

Re: [REGRESSION] mm: filemap_map_pages NULL pointer dereference

2016-02-06 Thread Jeremiah Mahler
Andrew, On Fri, Feb 05, 2016 at 02:19:40PM -0800, Andrew Morton wrote: > On Fri, 5 Feb 2016 10:05:02 -0800 Jeremiah Mahler wrote: > [...] > > unable to handle kernel NULL pointer dereference > > This should fix it up. > [...] > > include/linux/radix-tree.h |6 +++--- > 1 file changed,

Re: [PATCH] Staging:iio:Remove exceptional & on function name

2016-02-06 Thread Jonathan Cameron
On 05/02/16 03:53, Bhumika Goyal wrote: > In this file,function names are otherwise used as pointers without &. > Found using coccinelle. > // > @r@ > identifier f; > @@ > > f(...) { ... } > @@ > identifier r.f; > @@ > > - &f > + f > // > > Signed-off-by: Bhumika Goyal Nice little bit of tidy

sound: heap out-of-bounds write in dummy_systimer_prepare

2016-02-06 Thread Dmitry Vyukov
Hello, I am still seeing these eap out-of-bounds writes in dummy_systimer_prepare. Even when we've disabled the hrtimer sysctl. The fuzzer does not change sysctls at the moment and I think we've overlooked a very simple possibility that can happen when sysctls are not changed (i.e. triggered by an

Re: [PATCH net] net: dsa: mv88e6xxx: fix software VLAN deletion

2016-02-06 Thread Andrew Lunn
On Fri, Feb 05, 2016 at 02:04:39PM -0500, Vivien Didelot wrote: > The current bridge code calls switchdev_port_obj_del on a VLAN port even > if the corresponding switchdev_port_obj_add call returned -EOPNOTSUPP. > > If the DSA driver doesn't return -EOPNOTSUPP for a software port VLAN in > its por

  1   2   >