[PATCH] mm/compaction: remove unnecessary order check in try_to_compact_pages()

2016-06-14 Thread Ganesh Mahendran
The caller __alloc_pages_direct_compact() already check (order == 0). So no need to check again. Signed-off-by: Ganesh Mahendran --- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index fbb7b38..500acda 100644 --- a/mm/compac

Re: [RFC v4 2/4] crypto: Introduce CRYPTO_ALG_BULK flag

2016-06-14 Thread Herbert Xu
On Wed, Jun 15, 2016 at 02:27:04PM +0800, Baolin Wang wrote: > > After some investigation, I still think we should divide the bulk > request from dm-crypt into small request (each one is 512bytes) if > this algorithm is not support bulk mode (like CBC). We have talked > with dm-crypt > maintainers

Re: [PATCH 12/12] leds: Only descend into leds directory when CONFIG_NEW_LEDS is set

2016-06-14 Thread Jacek Anaszewski
Hi Andrew, Thanks for the patch. Please address the issue [1] raised by test bot and resubmit. Thanks, Jacek Anaszewski [1] https://lkml.org/lkml/2016/6/13/1091 On 06/13/2016 10:02 PM, Andrew F. Davis wrote: When CONFIG_NEW_LEDS is not set make will still descend into the leds directory but

Re: [PATCH v2 4/9] arm64: Add platform selection for BCM2835.

2016-06-14 Thread Eric Anholt
Catalin Marinas writes: > On Thu, Jun 09, 2016 at 05:21:35PM -0700, Eric Anholt wrote: >> Catalin Marinas writes: >> > On Sat, Jun 04, 2016 at 12:55:15PM -0700, Eric Anholt wrote: >> >> Catalin Marinas writes: >> >> > On Fri, Jun 03, 2016 at 08:18:23AM +0200, Gerd Hoffmann wrote: >> >> >> +

Re: [PATCH] extcon: palmas: Fix boot up state of VBUS when using GPIO detection

2016-06-14 Thread Roger Quadros
On 15/06/16 04:57, Chanwoo Choi wrote: > On 2016년 06월 14일 23:04, Roger Quadros wrote: >> If USB cable is connected prior to boot, we don't get any interrupts >> so we must manually check the VBUS state and report it during probe. >> If we don't do it then USB controller will never know that periphe

Re: [PATCH v6v3 02/12] mm: migrate: support non-lru movable page migration

2016-06-14 Thread Anshuman Khandual
On 06/15/2016 08:02 AM, Minchan Kim wrote: > Hi, > > On Mon, Jun 13, 2016 at 03:08:19PM +0530, Anshuman Khandual wrote: >> > On 05/31/2016 05:31 AM, Minchan Kim wrote: >>> > > @@ -791,6 +921,7 @@ static int __unmap_and_move(struct page *page, >>> > > struct page *newpage, >>> > > int rc =

[PATCH 3/3] ARM:dts-Add dt node for Broadcom iproc-static-adc

2016-06-14 Thread Raveendra Padasalagi
This patch adds DT node for Broadcom's iproc-static-adc controller driver. Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm/boot/dts/bcm-cygnus.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/bcm-cygnus.d

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-14 Thread Matt Wilson
On Tue, Jun 14, 2016 at 11:27:09PM -0700, David Miller wrote: > From: Matt Wilson > Date: Tue, 14 Jun 2016 23:23:36 -0700 > > > Point taken, though existing drivers (even fairly popular ones) also > > aren't as clean as you might like. A quick look around... > > Existing drivers do undesirable t

[RESEND PATCH v2 0/5] clk: hisilicon: Fix some problems of clk-hi3519

2016-06-14 Thread Jiancheng Xue
This patch is base on branch clk-hi3519 in clk tree. It mainly fixes the following issues: 1. Add driver remove path. 2. Fix the ordering issue about clock provider being published. 3. Add error checking upon registering clocks. change log v2: -Redivided patches to make sure every patch can be co

Re: [RFC PATCH 2/3] mm, thp: convert from optimistic to conservative

2016-06-14 Thread Minchan Kim
Hello, On Sat, Jun 11, 2016 at 10:16:00PM +0300, Ebru Akagunduz wrote: > Currently, khugepaged collapses pages saying only > a referenced page enough to create a THP. > > This patch changes the design from optimistic to conservative. > It gives a default threshold which is half of HPAGE_PMD_NR >

[PATCH 2/3] iio: Add driver for Broadcom iproc-static-adc

2016-06-14 Thread Raveendra Padasalagi
This patch adds basic driver implementation for Broadcom's static adc controller used in iProc SoC's family. Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc

[PATCH v2 3/5] clk: hisilicon: add error processing for hisi_clk_register_* functions

2016-06-14 Thread Jiancheng Xue
Add error processing for hisi_clk_register_* functions. Signed-off-by: Jiancheng Xue --- drivers/clk/hisilicon/clk.c | 60 + drivers/clk/hisilicon/clk.h | 10 2 files changed, 55 insertions(+), 15 deletions(-) diff --git a/drivers/clk/hisilic

[PATCH v2 2/5] clk: hisilicon: add hisi_clk_alloc function.

2016-06-14 Thread Jiancheng Xue
Before, there was an ordering issue that the clock provider had been published in hisi_clk_init before it could provide valid clocks to consumers. hisi_clk_alloc is just used to allocate memory space for struct hisi_clock_data. It makes it possible to publish the provider after the clocks are ready

[PATCH 1/3] Documentation: DT: Add iproc-static-adc binding

2016-06-14 Thread Raveendra Padasalagi
The patch adds devicetree binding document for broadcom's iproc-static-adc controller driver. Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/iio/adc/brcm,iproc-static-adc.txt | 43 ++ 1 file changed, 43 insertions(+)

Re: [rfc patch] sched/fair: Use instantaneous load for fork/exec balancing

2016-06-14 Thread Yuyang Du
On Tue, Jun 14, 2016 at 09:58:31AM +0200, Mike Galbraith wrote: > SUSE's regression testing noticed that... > > 0905f04eb21f sched/fair: Fix new task's load avg removed from source CPU in > wake_up_new_task() > > ...introduced a hackbench regression, and indeed it does. I think this > regressio

[PATCH v2 5/5] clk: hisilicon: hi3519: add driver remove path and fix some issues

2016-06-14 Thread Jiancheng Xue
1. Add driver remove path. 2. Fix some issues. -Fix the ordering issue about clock provider being published. -Add error checking upon registering clocks. Signed-off-by: Jiancheng Xue --- drivers/clk/hisilicon/clk-hi3519.c | 116 - 1 file changed, 100 ins

[PATCH 0/3] Add Broadcom iproc-static-adc controller driver

2016-06-14 Thread Raveendra Padasalagi
This patchset contains initial driver for Broadcom's iproc static adc controller. The patchset is based on v4.7-rc1 tag and its tested on Broadcom Cygnus SoC. The patches can be fetched from iproc-adc-v1 branch of https://github.com/Broadcom/arm64-linux.git Raveendra Padasalagi (3): Documentati

[PATCH v2 4/5] clk: hisilicon: add hisi_clk_unregister_* functions

2016-06-14 Thread Jiancheng Xue
Add hisi_clk_unregister_* functions. Signed-off-by: Jiancheng Xue --- drivers/clk/hisilicon/clk.h | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/clk/hisilicon/clk.h b/drivers/clk/hisilicon/clk.h index 2575329..4e1d1af 100644 --- a/drivers/clk/hisilicon/clk.h +

[PATCH v2 1/5] reset: hisilicon: change the definition of hisi_reset_init

2016-06-14 Thread Jiancheng Xue
Change the input arguments type to struct platform_device pointer. Signed-off-by: Jiancheng Xue --- drivers/clk/hisilicon/clk-hi3519.c | 2 +- drivers/clk/hisilicon/reset.c | 19 +-- drivers/clk/hisilicon/reset.h | 5 +++-- 3 files changed, 13 insertions(+), 13 deleti

Re: [PATCH v2 4/5]nbd: make nbd device wait for its users.

2016-06-14 Thread Markus Pargmann
Hi Pranay, On Tuesday 14 June 2016 15:03:40 Pranay Srivastava wrote: > Hi Markus, > > On Tue, Jun 14, 2016 at 2:29 PM, Markus Pargmann wrote: > > > > On Thursday 02 June 2016 13:25:00 Pranay Kr. Srivastava wrote: > > > When a timeout occurs or a recv fails, then > > > instead of abruplty killing

Re: [PATCH net-next 0/2] rxrpc: Rename rxrpc source files

2016-06-14 Thread David Miller
From: David Howells Date: Mon, 13 Jun 2016 15:07:50 +0100 > Tagged thusly: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > rxrpc-rewrite-20160613 Pulled.

Re: [PATCH v3 4/8] i2c: add support for ACPI reconfigure notifications

2016-06-14 Thread Wolfram Sang
On Tue, Jun 14, 2016 at 06:17:22PM +0300, Octavian Purdila wrote: > This patch adds supports for I2C device enumeration and removal via > ACPI reconfiguration notifications that are send as a result of an > ACPI table load or unload operation. > > Signed-off-by: Octavian Purdila What happened to

Re: [RFC v4 2/4] crypto: Introduce CRYPTO_ALG_BULK flag

2016-06-14 Thread Baolin Wang
Hi Herbert, On 8 June 2016 at 10:00, Baolin Wang wrote: > Hi Herbert, > > On 7 June 2016 at 22:16, Herbert Xu wrote: >> On Tue, Jun 07, 2016 at 08:17:05PM +0800, Baolin Wang wrote: >>> Now some cipher hardware engines prefer to handle bulk block rather than one >>> sector (512 bytes) created by

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-14 Thread David Miller
From: Matt Wilson Date: Tue, 14 Jun 2016 23:23:36 -0700 > Point taken, though existing drivers (even fairly popular ones) also > aren't as clean as you might like. A quick look around... Existing drivers do undesirable things, film at 11... Yet are never a reason to accept such things in new dr

Re: [PATCH] net: hns: update the dependency

2016-06-14 Thread David Miller
From: Yisen Zhuang Date: Wed, 15 Jun 2016 14:03:33 +0800 > Hi David, > > You mean that i send this patch 3 times? > > I am sorry for this. > > I don't know why you can receive 3 times. I can only receive an email for > this patch. I got three copies, each with a different Date: field. patch

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-14 Thread Matt Wilson
On Tue, Jun 14, 2016 at 10:25:16PM -0700, David Miller wrote: > From: Netanel Belgazal > Date: Mon, 13 Jun 2016 11:46:13 +0300 > > > +#define ena_trc_dbg(format, arg...) \ > > + pr_debug("[ENA_COM: %s] " format, __func__, ##arg) > > +#define ena_trc_info(format, arg...) \ > > + pr_info("[ENA_

[PATCH v6 0/4] sched/fair: Fix attach and detach sched avgs for task group change and sched class change

2016-06-14 Thread Yuyang Du
Hi Peter, The attach/detach twice problem is worse than Vincent reported. The attach twice issue can happen not only as Vincent raised when task moves between groups, but also when switching to fair class. In addition, for newly forked task, the detach also has a problem. This patchset attempts t

[PATCH v6 4/4] sched/fair: Add inline to detach_entity_load_evg()

2016-06-14 Thread Yuyang Du
detach_entity_load_evg() is only called by detach_task_cfs_rq(), so explicitly add inline attribute to it. Signed-off-by: Yuyang Du --- kernel/sched/fair.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e9f2754..b5fba70

Re: [PATCH v2 3/6] i.MX: system.c: Replace magic numbers

2016-06-14 Thread Uwe Kleine-König
Hello, On Tue, Jun 14, 2016 at 06:29:50PM -0700, Andrey Smirnov wrote: > diff --git a/arch/arm/include/asm/hardware/cache-l2x0.h > b/arch/arm/include/asm/hardware/cache-l2x0.h > index 3a5ec1c..e0ce59c 100644 > --- a/arch/arm/include/asm/hardware/cache-l2x0.h > +++ b/arch/arm/include/asm/hardware/

linux-next: Tree for Jun 15

2016-06-14 Thread Stephen Rothwell
Hi all, Changes since 20160614: The nfs tree lost its build failure. The akpm-current tree gained a conflict against the tip tree. Non-merge commits (relative to Linus' tree): 3359 3391 files changed, 158147 insertions(+), 55472 dele

[PATCH v6 3/4] sched/fair: Skip detach sched avgs for new task when changing task groups

2016-06-14 Thread Yuyang Du
Newly forked task has not been enqueued, so should not be removed from cfs_rq in task_move_group_fair(). To do so, we identify newly forked tasks if their sum_exec_runtime is 0, an existing heuristic as per vruntime_normalized(). In addition to that, uniformly use this test in remove_entity_load_av

[PATCH v6 1/4] sched/fair: Fix attaching task sched avgs twice when switching to fair or changing task group

2016-06-14 Thread Yuyang Du
Vincent reported that the first task to a new task group's cfs_rq will be attached in attach_task_cfs_rq() and once more when it is enqueued (see https://lkml.org/lkml/2016/5/25/388). Actually, it is worse. The sched avgs can be sometimes attached twice not only when we change task groups but also

[PATCH v6 2/4] sched/fair: Move load and util avgs from wake_up_new_task() to sched_fork()

2016-06-14 Thread Yuyang Du
Move new task initialization to sched_fork(). For initial non-fair class task, the first switched_to_fair() will do the attach correctly. Suggested-by: Peter Zijlstra Signed-off-by: Yuyang Du --- kernel/sched/core.c |5 +++-- kernel/sched/fair.c | 14 +- kernel/sched/sched.h

[PATCH] ARM: dts: am437x-sk-evm: Reduce i2c0 bus speed for tps65218

2016-06-14 Thread Keerthy
From: Dave Gerlach Based on the latest timing specifications for the TPS65218 from the data sheet, http://www.ti.com/lit/ds/symlink/tps65218.pdf, document SLDS206 from November 2014, we must change the i2c bus speed to better fit within the minimum high SCL time required for proper i2c transfer.

Re: [tiL4.4-P PATCH] ARM: dts: am437x-sk-evm: Reduce i2c0 bus speed for tps65218

2016-06-14 Thread Keerthy
On Wednesday 15 June 2016 11:43 AM, Keerthy wrote: From: Dave Gerlach Based on the latest timing specifications for the TPS65218 from the data sheet, http://www.ti.com/lit/ds/symlink/tps65218.pdf, document SLDS206 from November 2014, we must change the i2c bus speed to better fit within the m

Re: [PATCH v5 1/5] sched/fair: Clean up attach_entity_load_avg()

2016-06-14 Thread Yuyang Du
On Tue, Jun 14, 2016 at 12:11:52PM +0100, Matt Fleming wrote: > On Thu, 09 Jun, at 07:15:50AM, Yuyang Du wrote: > > attach_entity_load_avg() is called (indirectly) from: > > > > - switched_to_fair(): switch between classes to fair > > - task_move_group_fair(): move between task groups > > - enq

[tiL4.4-P PATCH] ARM: dts: am437x-sk-evm: Reduce i2c0 bus speed for tps65218

2016-06-14 Thread Keerthy
From: Dave Gerlach Based on the latest timing specifications for the TPS65218 from the data sheet, http://www.ti.com/lit/ds/symlink/tps65218.pdf, document SLDS206 from November 2014, we must change the i2c bus speed to better fit within the minimum high SCL time required for proper i2c transfer.

Re: [PATCH] mfd: max77620: Fix FPS switch statements

2016-06-14 Thread Alexandre Courbot
. Returning this from max77620_config_fps() will >>> cause probe to fail. >>> >>> Signed-off-by: Rhyland Klein >>> --- >>> drivers/mfd/max77620.c | 2 ++ >>> 1 file changed, 2 insertions(+) >> >> Applied to -fixes with Thierry and Laxman

Re: [v6, 07/11] powerpc/powernv: set power_save func after the idle states are initialized

2016-06-14 Thread Shreyas B Prabhu
On 06/15/2016 11:11 AM, Michael Ellerman wrote: > On Wed, 2016-08-06 at 16:54:27 UTC, "Shreyas B. Prabhu" wrote: >> pnv_init_idle_states discovers supported idle states from the >> device tree and does the required initialization. Set power_save >> function pointer only after this initialization

Re: [PATCH] [media] v4l2-ioctl.c: fix warning due wrong check in v4l_cropcap()

2016-06-14 Thread Hans Verkuil
On 06/14/2016 10:18 PM, Javier Martinez Canillas wrote: > Commit 95dd7b7e30f3 ("[media] v4l2-ioctl.c: improve cropcap compatibility > code") tried to check if both .vidioc_cropcap and .vidioc_g_selection are > NULL ops and warn if that was the case, but unfortunately the logic isn't > correct and i

Re: [PATCH 4/4] scripts/coccinelle: require coccinelle >= 1.0.4 on device_node_continue.cocci

2016-06-14 Thread Julia Lawall
On Tue, 14 Jun 2016, Luis R. Rodriguez wrote: > Make use of the new kernel python requirements library to be able to > specify coccinelle binary version requirements. The cocci file > device_node_continue.cocci requires at least coccinelle 1.0.4. > > Signed-off-by: Luis R. Rodriguez > --- > s

Re: [PATCH 2/4] scripts: add reqs python library

2016-06-14 Thread Julia Lawall
On Tue, 14 Jun 2016, Luis R. Rodriguez wrote: > This library can be used in other python scripts to require > specific binary version requirements. It will be used first > with coccinelle's python bindings to enable coccinelle SmPL > files to specify version requirements per cocci file if it > h

RE: acpi: broken suspend to RAM with v4.7-rc1

2016-06-14 Thread Zheng, Lv
Hi, Rafael > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of > Rafael J. Wysocki > Subject: Re: acpi: broken suspend to RAM with v4.7-rc1 > > On Mon, Jun 13, 2016 at 12:07 PM, Andrey Skvortsov > wrote: > > Hi Lv, > > > > On 13 Jun, Zheng, Lv wrote: > >> > From: linux-acpi-ow.

Re: [PATCH] net: hns: update the dependency

2016-06-14 Thread Yisen Zhuang
Hi David, You mean that i send this patch 3 times? I am sorry for this. I don't know why you can receive 3 times. I can only receive an email for this patch. Thanks, Yisen 在 2016/6/15 13:26, David Miller 写道: > From: Yisen Zhuang > Date: Mon, 13 Jun 2016 19:56:27 +0800 > >> From: Kejian Yan

[PATCH 07/13] RTC: ds1307: Move chip sanity checking into a separate routine

2016-06-14 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 148 +-- 1 file changed, 79 insertions(+), 69 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index df8c78a..5e7eb13 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/

[PATCH 13/13] RTC: ds1307: Move last bits of sanity checking out of chip_configure

2016-06-14 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 106 ++- 1 file changed, 59 insertions(+), 47 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index d9693bd..4452661 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/

[PATCH 01/13] RTC: ds1307: Add DS1341 variant

2016-06-14 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 821d9c0..7e65e2e 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -35,6 +35,7 @@ enum ds_type {

[PATCH 05/13] RTC: ds1307: Convert want_irq into a predicate

2016-06-14 Thread Andrey Smirnov
Convert want_irq variable into a predicate in order to detangle various independent chunks of ds1307_probe(). Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 44 +--- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/

[PATCH 03/13] RTC: ds1307: Add DS1341 specific power-saving options

2016-06-14 Thread Andrey Smirnov
Add DS1341 specific power-saving options that allow to disable certain functional aspects of the chip in order to minimize its power consumption. Signed-off-by: Andrey Smirnov --- .../devicetree/bindings/rtc/dallas,ds1341.txt | 23 ++ drivers/rtc/rtc-ds1307.c

[PATCH 04/13] RTC: ds1307: Convert ds1307_can_wakeup_device into a predicate

2016-06-14 Thread Andrey Smirnov
Convert ds1307_can_wakeup_device in ds1307_probe into a predicate in order to make various chunks of code in that function less connected to each other. Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 35 ++- 1 file changed, 18 insertions(+), 17 delet

[PATCH 11/13] RTC: ds1307: Redefine RX8025_REG_* to minimize extra code

2016-06-14 Thread Andrey Smirnov
The only place in the driver where RX8025_REG_* are used they are always shifted and ORed the same way, so instead of repeating that idiom make it a part of symbolic constant. Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 18 ++ 1 file changed, 10 insertions(+), 8

Playing with virtually mapped stacks (with guard pages!)

2016-06-14 Thread Andy Lutomirski
Hi all- If you want to play with virtually mapped stacks, I have it more or less working on x86 in a branch here: https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/log/?h=x86/vmap_stack The core bit (virtually map the stack and fix the accounting) is just a config option, but it needs

[PATCH 08/13] RTC: ds1307: Remove register "cache"

2016-06-14 Thread Andrey Smirnov
Remove shared area used by many subroutines to store values of RTC's registers. There wasn't very much caching or sharing going on in the code and that register cache, being a semi-global variable, only created additional implicit dependencies between function and made code more confusing (there we

[PATCH 10/13] RTC: ds1307: Convert goto to a loop

2016-06-14 Thread Andrey Smirnov
Convert goto to a loop and set a hard upper limit on the number of times driver would try to make RTC work (as opposed to having an infinite retry loop). Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 151 +-- 1 file changed, 82 insertion

[PATCH 09/13] RTC: ds1307: Constify struct ds1307 where possible

2016-06-14 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 50 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 3c137ab..dbf8361 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/

[PATCH 12/13] RTC: ds1307: Report oscillator problems more intelligently

2016-06-14 Thread Andrey Smirnov
Report oscillator problems more intelligently, by printing more information about what cause the issue and not yelling "SET TIME!" at the user. Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --g

[PATCH 06/13] RTC: ds1307: Move chip configuration into a separate routine

2016-06-14 Thread Andrey Smirnov
Move chip configuration into a separate routine to improve readablity of the code. Signed-off-by: Andrey Smirnov --- drivers/rtc/rtc-ds1307.c | 172 ++- 1 file changed, 97 insertions(+), 75 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/

[PATCH 00/13] DS1341 support and code cleanup

2016-06-14 Thread Andrey Smirnov
Hi everyone, This patch set contains code to add support for DS1341 variant of the chip, as well as code to support enabling/disabling some of its power savings features. Lastly the set contains a number of code cleanups intended to improve the readability of driver's code. Any feedback is apprec

[PATCH 02/13] RTC: ds1307: Disable square wave and timers as default

2016-06-14 Thread Andrey Smirnov
Disable square wave and timers as default for DS1337/39/41 and DS3231. The rationale being that configuring a chip this way puts it into a known state with lower power consumption. While it is not very likely it is still possible that the code controlling RTCs that ran before this driver configured

Re: [PATCH v1 1/1] ipv4: Prevent malformed UFO fragments in ip_append_page

2016-06-14 Thread David Miller
From: Steven Caron Date: Mon, 13 Jun 2016 14:01:19 + > As the ip fragment offset field counts 8-byte chunks, non-final ip > fragments must be multiples of 8 bytes of payload. Depending on the > mtu and ip option sizes, ip_append_page wasn't respecting this, > notably when running NFS under

[PATCH v2 2/3] serial: 8250_dma: Export serial8250_rx_dma_flush()

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" Export serial8250_rx_dma_flush() for use by SOC UART drivers. Signed-off-by: Chuah, Kim Tatt --- drivers/tty/serial/8250/8250_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c index 7f33d1c

[PATCH v2 1/3] dmaengine: hsu: Export hsu_dma_get_status()

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" To allow other code to safely read DMA Channel Status Register (where the register attribute for Channel Error, Descriptor Time Out & Descriptor Done fields are read-clear), export hsu_dma_get_status(). hsu_dma_irq() is renamed to hsu_dma_do_irq() and requires Status Regis

[PATCH v2 3/3] serial: 8250_mid: Read RX buffer on RX DMA timeout for DNV

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" In DNV, when RX DMA is used and number of bytes received is less than transfer size, only RX DMA timeout interrupt is sent. When this happens, read the RX buffer. Signed-off-by: Chuah, Kim Tatt --- drivers/tty/serial/8250/8250_mid.c | 6 -- 1 file changed, 4 inserti

[PATCH v2 0/3] Fix DNV HSUART RX DMA timeout interrupt issue

2016-06-14 Thread Chuah Kim Tatt
From: "Chuah, Kim Tatt" These patches fix a DNV HSUART DMA issue with timeout interrupts, where RX data is stuck in buffer when RX DMA is used and the number of received bytes is less than 4096. These patches have been tested on Intel Denverton platform. Changes from v1: - Added patch "serial:

Re: [patch net-next] net: hns: add skb_reset_mac_header() after skb being alloc

2016-06-14 Thread David Miller
From: Yisen Zhuang Date: Mon, 13 Jun 2016 20:41:22 +0800 > From: Kejian Yan > > HNS receives a packet without doing anything, but it should call > skb_reset_mac_header() to initialize the header before using > eth_hdr(). > > Fixes: 0d6b425a3773c3445b0f51b2f333821beaacb619 > Signed-off-by: Keji

Re: [v6, 07/11] powerpc/powernv: set power_save func after the idle states are initialized

2016-06-14 Thread Michael Ellerman
On Wed, 2016-08-06 at 16:54:27 UTC, "Shreyas B. Prabhu" wrote: > pnv_init_idle_states discovers supported idle states from the > device tree and does the required initialization. Set power_save > function pointer only after this initialization is done This looks like a bug fix? Or is this not a co

[PATCH v2] staging: gdm724x: Replace semaphore netlink with mutex

2016-06-14 Thread Binoy Jayan
Replace semaphore netlink_mutex with mutex. Semaphores are going away in the future. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/gdm724x/netlink_k.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/staging/gdm724x/netlink_k.c

Re: [PATCH] sound: aedsp16: Change structure initialisation to C99 style

2016-06-14 Thread Takashi Iwai
On Wed, 15 Jun 2016 05:53:23 +0200, Amitoj Kaur Chawla wrote: > > Replace the in order struct initialisation style with explicit field > style. > > The Coccinelle semantic patch used to make this change is as follows: > > @decl@ > identifier i1,fld; > type T; > field list[n] fs; > @@ > > struct

Re: [PATCH net-next 0/3] r8152: code adjustment for PHY

2016-06-14 Thread David Miller
From: Hayes Wang Date: Mon, 13 Jun 2016 17:49:35 +0800 > These patches are for adjusting the code about PHY and setting speed. Series applied, thanks.

Re: [v6, 03/11] powerpc/powernv: Rename idle_power7.S to idle_power_common.S

2016-06-14 Thread Michael Ellerman
On Wed, 2016-08-06 at 16:54:23 UTC, "Shreyas B. Prabhu" wrote: > idle_power7.S handles idle entry/exit for POWER7, POWER8 and in next > patch for POWER9. Rename the file to a non-hardware specific > name. It's not common for all powerpc CPUs though. So can you call it something other than just "co

[PATCH] RTC: Add functionality to read/write rtc scratch registers

2016-06-14 Thread Keerthy
From: Russ Dill Many RTCs provide scratch registers that are maintained so long as the RTC has power. Provide a generic method to access these registers. Signed-off-by: Russ Dill Signed-off-by: Keerthy --- drivers/rtc/interface.c | 50 + driver

[PATCH v3 2/5] staging: wilc1000: Replace semaphore txq_add_to_head_cs with mutex

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_add_to_head_cs' is a simple mutex, so it should be written as one. Semaphores are going away in the future. Also, removing the timeout scenario as the error handling code does not propagate the timeout properly. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- driver

[PATCH v3 3/5] staging: wilc1000: Replace semaphore cfg_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'cfg_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +- drivers/staging/wilc1000/wilc_wlan.

[PATCH v3 4/5] staging: wilc1000: Replace semaphore sync_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'sync_event' is used as completion, so convert it to a struct completion type. Also, return -ETIME if the return value of wait_for_completion_timeout is 0. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 10 +- driv

[PATCH v3 1/5] staging: wilc1000: Replace semaphore txq_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan Reviewed-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 8 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 3 ++- drivers/staging/wilc1000/wilc_

[PATCH v3 5/5] staging: wilc1000: Remove semaphore close_exit_sync

2016-06-14 Thread Binoy Jayan
The semaphore 'close_exit_sync' does not serve any purpose other than delaying the deregistration of the device which it is trying to protect from shared access. 'up' is called only when a subdevice is closed and not when it is opened. So, the semaphore count only goes up when the device is used.

[PATCH v3 0/5] *** staging: wilc1000: Replace semaphores with mutexes or completions ***

2016-06-14 Thread Binoy Jayan
These are a set of patches [v3] which removes semaphores from: drivers/staging/wilc1000 These are part of a bigger effort to eliminate all semaphores from the linux kernel. They build correctly (individually and as a whole). NB: The changes are untested Changes w.r.t. review comments on v1 1.

Re: [PATCH] net: hns: update the dependency

2016-06-14 Thread David Miller
From: Yisen Zhuang Date: Mon, 13 Jun 2016 19:56:27 +0800 > From: Kejian Yan > > After the patchset about adding support of ACPI (commit id is 6343488) > being applied, HNS does not depend on OF. It depends on OF or ACPI, so > the Kconfig file needs to be updated. > > Signed-off-by: Kejian Yan

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-14 Thread David Miller
From: Netanel Belgazal Date: Mon, 13 Jun 2016 11:46:13 +0300 > +#define ena_trc_dbg(format, arg...) \ > + pr_debug("[ENA_COM: %s] " format, __func__, ##arg) > +#define ena_trc_info(format, arg...) \ > + pr_info("[ENA_COM: %s] " format, __func__, ##arg) > +#define ena_trc_warn(format, arg.

[PATCH v2 1/5] staging: wilc1000: Replace semaphore txq_event with completion

2016-06-14 Thread Binoy Jayan
The semaphore 'txq_event' is used as completion, so convert it to a struct completion type. Signed-off-by: Binoy Jayan --- drivers/staging/wilc1000/linux_wlan.c | 8 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 3 ++- drivers/staging/wilc1000/wilc_wlan.c | 8 +---

[PATCH v2 0/5] *** staging: wilc1000: Replace semaphores with mutexes or completions ***

2016-06-14 Thread Binoy Jayan
These are a set of patches [v2] which removes semaphores from: drivers/staging/wilc1000 These are part of a bigger effort to eliminate all semaphores from the linux kernel. They build correctly (individually and as a whole). NB: The changes are untested Changes w.r.t. review comments on v1 1.

linux-next: manual merge of the akpm-current tree with the tip tree

2016-06-14 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: ipc/sem.c between commit: 33ac279677dc ("locking/barriers: Introduce smp_acquire__after_ctrl_dep()") from the tip tree and commit: a1c58ea067cb ("ipc/sem.c: Fix complex_count vs. simple op race") from the a

Re: [PATCH v2 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates

2016-06-14 Thread Julian Anastasov
Hello, On Tue, 14 Jun 2016, Quentin Armitage wrote: > This series of patches arise from discovering that: > ipvsadm --start-daemon backup --mcast-group IPv6_address ... > would always fail. > > The first patch resolves the problem. The second and third patches are > optimizations that w

Re: [PATCH v6 10/11] cpuidle/powernv: Add support for POWER ISA v3 idle states

2016-06-14 Thread Shreyas B Prabhu
On 06/14/2016 04:59 PM, Benjamin Herrenschmidt wrote: > On Tue, 2016-06-14 at 16:17 +0530, Shreyas B Prabhu wrote: > >> >> I ignored adding this check because this is part of initcall and we are >> unlikely to run out of memory at this state. But I'll add the check in >> next version. > > Why d

Re: [PATCH v4 0/1] pstore/ram: add Device Tree bindings

2016-06-14 Thread Kees Cook
On Tue, Jun 14, 2016 at 2:59 PM, Rob Herring wrote: > On Fri, Jun 10, 2016 at 03:50:58PM -0700, Kees Cook wrote: >> This is a "v4" of Greg Hackmann's DT bindings for ramoops. This is >> what I'm going to land in the pstore tree unless there are strong and >> convincing arguments against it. :) >>

[PATCH 1/1] usb: core: of.c: fix defined but not declare warning

2016-06-14 Thread Peter Chen
The helper usb_of_get_child_node is defined at of.c, but missing its declare as a global function. Fix it by adding related header file as well as compile it on conditional of CONFIG_OF. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Alan Stern Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.

Re: [PATCH v3 2/2] media: et8ek8: Add documentation

2016-06-14 Thread Sakari Ailus
Hi Rob, On Tue, Jun 14, 2016 at 05:05:17PM -0500, Rob Herring wrote: > On Sat, Jun 11, 2016 at 06:39:53PM +0300, Ivaylo Dimitrov wrote: > > Add DT bindings description > > Not exactly the best commit msg. > > > > > Signed-off-by: Ivaylo Dimitrov > > --- > > .../bindings/media/i2c/toshiba,et8e

Re: [PATCH 1/2] f2fs: detect host-managed SMR by feature flag

2016-06-14 Thread Damien Le Moal
Jaegeuk, On 6/15/16 03:45, Jaegeuk Kim wrote: > If mkfs.f2fs gives a feature flag for host-managed SMR, we can set mode=lfs > by default. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 21 + > fs/f2fs/super.c | 14 -- > 2 files changed, 29 insertions(+),

Re: [PATCH] rtc: ds1307: Fix relying on reset value for weekday

2016-06-14 Thread Keerthy
On Tuesday 14 June 2016 08:09 PM, Alexandre Belloni wrote: On 07/06/2016 at 14:59:05 +0530, Keerthy wrote : Hi Alexandre, On Wednesday 01 June 2016 06:06 PM, Keerthy wrote: On Wednesday 01 June 2016 05:48 PM, Alexandre Belloni wrote: Hi, On 01/06/2016 at 16:19:07 +0530, Keerthy wrote :

[PATCH -next] Revert "clocksource/drivers/timer-atmel-st: Add the COMPILE_TEST option"

2016-06-14 Thread Guenter Roeck
This reverts commit 7011a4947ca61cd28a8c025b39c98861687e4fb6. When trying to build parisc:allmodconfig: drivers/clocksource/timer-atmel-st.c: In function 'at91rm9200_timer_interrupt': drivers/clocksource/timer-atmel-st.c:76:3: error: invalid use of undefined type 'struct clock_event_devic

[PATCH -next] nios2: clocksource: Fix build error

2016-06-14 Thread Guenter Roeck
gcc has trouble parsing returen. Fixes: 3e23d81046936 ("clocksource/drivers/nios2: Convert init function to return error") Cc: Daniel Lezcano Signed-off-by: Guenter Roeck --- arch/nios2/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nios2/kernel/time.c b

[PATCH] sound: aedsp16: Change structure initialisation to C99 style

2016-06-14 Thread Amitoj Kaur Chawla
Replace the in order struct initialisation style with explicit field style. The Coccinelle semantic patch used to make this change is as follows: @decl@ identifier i1,fld; type T; field list[n] fs; @@ struct i1 { fs T fld; ...}; @@ identifier decl.i1,i2,decl.fld; expression e; position bad.p

Re: [PATCH] locking/qrwlock: fix write unlock issue in big endian

2016-06-14 Thread xinhui
On 2016年06月14日 18:40, Will Deacon wrote: On Tue, Jun 14, 2016 at 02:11:48PM +0800, xinhui wrote: On 2016年06月08日 17:22, Will Deacon wrote: On Thu, Jun 02, 2016 at 06:09:08PM +0800, Pan Xinhui wrote: strcut __qrwlock has different layout in big endian machine. we need set the __qrwlock->wmode

[PATCH perf/core v11 09/23] perf probe: Show all cached probes

2016-06-14 Thread Masami Hiramatsu
From: Masami Hiramatsu perf probe --list shows all cached probes when --cache is given. Each caches are shown with on which binary that probed. e.g. - # perf probe --cache vfs_read \$params # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo \$params # perf probe --cache --list

[PATCH perf/core v11 21/23] perf probe: Support a special SDT probe format

2016-06-14 Thread Masami Hiramatsu
Support a special SDT probe format which can omit the '%' prefix only if the SDT group name starts with "sdt_". So, for example both of "%sdt_libc:setjump" and "sdt_libc:setjump" are acceptable for perf probe --add. Suggested-by: Brendan Gregg Signed-off-by: Masami Hiramatsu --- tools/perf/Docu

[PATCH perf/core v11 19/23] perf probe: Search SDT/cached event from all probe caches

2016-06-14 Thread Masami Hiramatsu
Search SDT/cached event from all probe caches if user doesn't pass any binary. With this, we don't have to specify target binary for SDT and named cached events (which start with %). E.g. without this, a target binary must be passed with -x. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\

[PATCH perf/core v11 18/23] perf probe: Allow wildcard for cached events

2016-06-14 Thread Masami Hiramatsu
Allo glob wildcard for reusing cached/SDT events. E.g. # perf probe -x /usr/lib64/libc-2.20.so -a %sdt_libc:\* This example adds probes for all SDT in libc. Note that the SDTs must have been scanned by perf buildid-cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Split off bugf

[PATCH perf/core v11 23/23] perf-test: Add a test case for SDT event

2016-06-14 Thread Masami Hiramatsu
Add a basic test case for SDT event support. This test scans an SDT event in perftools and check whether the SDT event is correctly stored into the buildid cache. Signed-off-by: Masami Hiramatsu --- tools/perf/tests/Build |1 tools/perf/tests/builtin-test.c |4 + tools/perf/tes

[PATCH perf/core v11 17/23] perf: probe-cache: Add for_each_probe_cache_entry() wrapper

2016-06-14 Thread Masami Hiramatsu
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu --- Changes in v10: - Splitted from "perf probe: Allow wildcard for cached events" --- tools/perf/util/probe-file.c |8 tools/perf/util/probe-file.h |2 ++ 2 files c

[PATCH perf/core v11 22/23] perf build: Add sdt feature detection

2016-06-14 Thread Masami Hiramatsu
Will be used to define SDT events in perf test code. Signed-off-by: Masami Hiramatsu --- tools/build/Makefile.feature |3 ++- tools/build/feature/Makefile |6 +- tools/build/feature/test-all.c |5 + tools/build/feature/test-sdt.c |7 +++ tools/perf/Makefile.perf

  1   2   3   4   5   6   7   8   9   10   >