[RFC v3] genalloc:support memory-allocation with bytes-alignment to genalloc

2015-08-03 Thread Zhao Qiang
Bytes alignment is required to manage some special RAM, so add gen_pool_first_fit_align to genalloc, meanwhile add gen_pool_alloc_data to pass data to gen_pool_first_fit_align(modify gen_pool_alloc as a wrapper) Signed-off-by: Zhao Qiang --- *v2: changes: title has been modified, original patch

Re: [linux-sunxi] [PATCH] ARM: dts: sunxi: Raise minimum CPU voltage for sun7i-a20 to a level all boards can supply

2015-08-03 Thread Timo Sigurdsson
Hi Julian, Julian Calaby schrieb am 03.08.2015 01:35: >> sun7i-a20.dtsi contains an cpufreq operating point at 0.9 volts. Most A20 >> boards >> (or all?), however, do not allow the voltage to go below 1.0V. Thus, raise >> the >> voltage for the lowest operating point to 1.0V so all boards can

Re: [PATCHv3 0/6] Staging: most: several warnings fix reported by sparse

2015-08-03 Thread Dan Carpenter
The subjects still are not unique. Greg said this earlier. If you want just do it in two patches. [patch 1] add static [patch 2] use NULL instead of zero regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v4] DocBook: Add initial documentation for IIO

2015-08-03 Thread Crt Mori
On 3 August 2015 at 10:14, Lars-Peter Clausen wrote: > On 07/31/2015 04:04 PM, Daniel Baluta wrote: >> This is intended to help developers faster find their way >> inside the Industrial I/O core and reduce time spent on IIO >> drivers development. >> >> Signed-off-by: Daniel Baluta > > Looks

[PATCH] workqueue: Add the allocation flags to function schedule_on_each_cpu_gfp

2015-08-03 Thread Minfei Huang
Rename the function schedule_on_each_cpu to schedule_on_each_cpu_gfp to add the allocation flags as parameter. In several situation in ftrace, we are nervous and never come back, once schedule_on_each_cpu fails to alloc the percpu work. Add the allocation flags __GFP_NOFAIL to guarantee it.

[PATCH V3] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

2015-08-03 Thread Wang, Biao
Consider the following case: Task A trigger lmk with a lock held, while task B try to get this lock, but unfortunately B is the very culprit task lmk select to kill. Then B will never be killed, and A will forever select B to kill. Such dead lock will trigger softlock up issue. This patch try

Re: [PATCH] scripts/kernel-doc Allow struct arguments documentation in struct body

2015-08-03 Thread Daniel Vetter
On Sat, Aug 01, 2015 at 01:22:10PM +0200, Jonathan Corbet wrote: > On Fri, 31 Jul 2015 18:06:45 -0300 > Danilo Cesar Lemes de Paula wrote: > > > Describing arguments at top of a struct definition works fine > > for small/medium size structs, but it definitely doesn't work well > > for struct

[PATCH] mm: initialize hotplugged pages as reserved

2015-08-03 Thread Mel Gorman
Commit 92923ca3aace (mm: meminit: only set page reserved in the memblock region) broke memory hotplug which expects the memmap for newly added sections to be reserved until onlined by online_pages_range(). This patch marks hotplugged pages as reserved when adding new zones. Signed-off-by: Mel

Re: [RESEND PATCH] pinctrl: at91: fix null pointer dereference

2015-08-03 Thread Linus Walleij
On Tue, Jul 28, 2015 at 9:48 AM, Ludovic Desroches wrote: > From: David Dueck > > Not all gpio banks are necessarily enabled, in the current code this can > lead to null pointer dereferences. (...) > > Signed-off-by: David Dueck > Acked-by: Ludovic Desroches > Acked-by: Alexandre Belloni >

Re: [PATCH 23/26] clk: tegra: Convert to clk_hw based provider APIs

2015-08-03 Thread Tero Kristo
On 07/31/2015 08:04 PM, Stephen Boyd wrote: We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Subject should be clk: ti: ... Other than that, seems ok to me. Also, gave clk-next + this set a quick testing on the boards

Re: [PATCH] Fix logical-not-parentheses warning

2015-08-03 Thread Takashi Iwai
On Sun, 02 Aug 2015 11:08:57 +0200, Tomer Barletz wrote: > > This fixes the following warning, that is seen with gcc 5.1: > warning: logical not is only applied to the left hand side of comparison > [-Wlogical-not-parentheses]. > > Signed-off-by: Tomer Barletz Applied, thanks. Takashi >

Re: [PATCH v4] DocBook: Add initial documentation for IIO

2015-08-03 Thread Lars-Peter Clausen
On 07/31/2015 04:04 PM, Daniel Baluta wrote: > This is intended to help developers faster find their way > inside the Industrial I/O core and reduce time spent on IIO > drivers development. > > Signed-off-by: Daniel Baluta Looks good to me. Thanks again. Reviewed-by: Lars-Peter Clausen -- To

Re: [PATCH] pinctrl: join dev_dbg strings into a single line

2015-08-03 Thread Linus Walleij
On Thu, Jul 30, 2015 at 10:27 AM, Masahiro Yamada wrote: > These are user-visible strings, so can exceed 80 columns. > > Signed-off-by: Masahiro Yamada I guess you were hit by this, not just patching around at random? Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send

Re: [PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes

2015-08-03 Thread Linus Walleij
On Mon, Aug 3, 2015 at 10:10 AM, Linus Walleij wrote: > On Thu, Jul 30, 2015 at 9:27 AM, Shaveta Leekha wrote: > >> Signed-off-by: Shaveta Leekha >> --- >> Tested on Freescale SDK 1.8, as LS1021aQDS support is not yet complete in >> upstream > (...) >> + gpio1: gpio@230 { >>

Re: [PATCH 3/3] arm/dts/ls1021a: Add GPIO controller nodes

2015-08-03 Thread Linus Walleij
On Thu, Jul 30, 2015 at 9:27 AM, Shaveta Leekha wrote: > Signed-off-by: Shaveta Leekha > --- > Tested on Freescale SDK 1.8, as LS1021aQDS support is not yet complete in > upstream (...) > + gpio1: gpio@230 { > + compatible = "fsl,ls1021a-gpio"; Please

[PATCH] x86: Clean up files of Intel Processor Trace

2015-08-03 Thread Takao Indoh
This patch just cleans up some files of Intel Processor Trace, does not change its behavior. Removing unused definition, replace a constant value with macro, etc. Signed-off-by: Takao Indoh --- arch/x86/kernel/cpu/intel_pt.h| 33 +---

Re: [PATCH 1/2] KVM: x86: set TMR when the interrupt is accepted

2015-08-03 Thread Paolo Bonzini
On 03/08/2015 04:37, Zhang, Yang Z wrote: >> > Only virtualized APIC register reads use the virtual TMR registers (SDM >> > 29.4.2 or 29.5), but these just read data from the corresponding field >> > in the virtual APIC page. > > 24.11.4 Software Access to Related Structures > In addition to

Re: [PATCH 3.12 000/124] 3.12.45-stable review

2015-08-03 Thread Jiri Slaby
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/28/2015, 03:42 PM, Guenter Roeck wrote: > On 07/28/2015 02:42 AM, Jiri Slaby wrote: >> This is the start of the stable review cycle for the 3.12.45 >> release. There are 124 patches in this series, all will be posted >> as a response to this

Re: [PATCH 1/3] drivers/gpio: Port gpio driver to ls1021a-qds platform

2015-08-03 Thread Linus Walleij
Alexander Stein and Uwe Kleine-König are working on this driver for this kernel cycle so requesting their help in reviewing these three patches. Alexander/Uwe: can you see the patches, or will Shaveta need to resend them? On Thu, Jul 30, 2015 at 9:27 AM, Shaveta Leekha wrote: > LS1021a-qds has

Re: [TRIVIAL PATCH] block: Correct misuses of 0x%

2015-08-03 Thread Joe Perches
On Mon, 2015-08-03 at 15:25 +0800, yalin wang wrote: > > On Aug 3, 2015, at 04:25, Joe Perches wrote: > > > > Correct misuse of 0x%d in logging messages. > > [] > why not use like this : dev_dbg(>pdev->dev, " Max outstanding > commands = %#x\n” ? > %#x will add 0x prefix automatically .

RE: [PATCH v2 2/2] powerpc/mpc85xx: Add FSL QorIQ DPAA FMan support to the SoC device tree(s)

2015-08-03 Thread Liberman Igal
Regards, Igal Liberman. > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, July 30, 2015 11:12 PM > To: Liberman Igal-B31950 > Cc: devicet...@vger.kernel.org; linuxppc-...@lists.ozlabs.org; Bucur > Madalin-Cristian-B32716; linux-kernel@vger.kernel.org > Subject: Re: [PATCH

Re: [PATCH 04/15] drivers: gpu: Drop unlikely before IS_ERR(_OR_NULL)

2015-08-03 Thread Daniel Vetter
On Fri, Jul 31, 2015 at 08:53:04AM -0700, Sinclair Yeh wrote: > This patch: Reviewed-by: Sinclair Yeh > > On Fri, Jul 31, 2015 at 02:08:24PM +0530, Viresh Kumar wrote: > > IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there > > is no need to do that again from its callers.

Re: [rtc-linux] [PATCH] drivers/rtc/rtc-pl031.c: reset registers in init flow

2015-08-03 Thread Linus Walleij
On Wed, Jul 29, 2015 at 1:17 PM, Leo Yan wrote: > This issue is found when i use file > kernel/power/suspend_test.c to verify the system suspend. Before the > system suspend, the flow need set 10's alarm in RTC for waken up > event. > > But what i observed the phenomenon is: > > At the init

Re: [PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

2015-08-03 Thread Joe Perches
On Mon, 2015-08-03 at 09:15 +0300, Dan Carpenter wrote: > On Mon, Aug 03, 2015 at 05:53:22AM +, Wang, Biao wrote: > > Consider the following case: > > Task A trigger lmk with a lock held, while task B try to > > get this lock, but unfortunately B is the very culprit task lmk > > select to > >

Re: [linux-sunxi] [PATCH] Input: axp20x-pek: Add module alias

2015-08-03 Thread Carlo Caione
On Mon, Aug 3, 2015 at 9:48 AM, Chen-Yu Tsai wrote: > Add a proper module alias so the driver can be autoloaded when the > parent axp20x mfd driver registers its cells. > > Signed-off-by: Chen-Yu Tsai Acked-by: Carlo Caione Thanks, -- Carlo Caione -- To unsubscribe from this list: send the

[PATCH] Input: axp20x-pek: Add module alias

2015-08-03 Thread Chen-Yu Tsai
Add a proper module alias so the driver can be autoloaded when the parent axp20x mfd driver registers its cells. Signed-off-by: Chen-Yu Tsai --- drivers/input/misc/axp20x-pek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c

[PATCHv3 5/6] Staging: most: Fix "missing static keyword" warnings

2015-08-03 Thread Adrian Remonda
This is a patch to the most/aim_cdev.c file. It makes several local functions and structures static to prevent global visibility. Signed-off-by: Adrian Remonda --- drivers/staging/most/aim-cdev/cdev.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCHv3 3/6] Staging: most: Fix "missing static keyword" warnings

2015-08-03 Thread Adrian Remonda
This is a patch to the most/hdm-usb/hdm_usb.c file. It makes several local functions and structures static to prevent global visibility. Signed-off-by: Adrian Remonda --- drivers/staging/most/hdm-usb/hdm_usb.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCHv3 2/6] Staging: most: Fix "Using plain integer as NULL pointer" warnings

2015-08-03 Thread Adrian Remonda
This patch fixes the warning generated by sparse: "Using plain integer as NULL pointer" by replacing the offending 0 with NULL. Signed-off-by: Adrian Remonda --- drivers/staging/most/mostcore/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCHv3 0/6] Staging: most: several warnings fix reported by sparse

2015-08-03 Thread Adrian Remonda
This patch series fix several warnings reported by the Sparse tool v2: Fixed patch format and comments as noted by Greg Kroah-Hartman and clear a few more warnings v3: Fixed patch format as noted by Greg Kroah-Hartman Adrian Remonda (6): Staging: most: Fix

[PATCHv3 4/6] Staging: most: Fix "Using plain integer as NULL pointer" warnings

2015-08-03 Thread Adrian Remonda
This patch fixes the warning generated by sparse: "Using plain integer as NULL pointer" by replacing the offending 0 with NULL. Signed-off-by: Adrian Remonda --- drivers/staging/most/hdm-dim2/dim2_hal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCHv3 6/6] Staging: most: Fix "Using plain integer as NULL pointer" warnings

2015-08-03 Thread Adrian Remonda
This patch fixes the warning generated by sparse: "Using plain integer as NULL pointer" by replacing the offending 0 with NULL. Signed-off-by: Adrian Remonda --- drivers/staging/most/aim-network/networking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCHv3 1/6] Staging: most: Fix "missing static keyword" warnings

2015-08-03 Thread Adrian Remonda
This is a patch to the mostcore/core.c file. It makes several local functions and structures static to prevent global visibility. Signed-off-by: Adrian Remonda --- drivers/staging/most/mostcore/core.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH v7 4/7] powerpc/powernv: detect supported nest pmus and its events

2015-08-03 Thread Madhavan Srinivasan
Parse device tree to detect supported nest pmu units. Traverse through each nest pmu unit folder to find supported events and corresponding unit/scale files (if any). The nest unit event file from Device Tree will contain the offset in the reserved memory region to get the counter data for a

[PATCH v7 2/7] powerpc/powernv: Add OPAL support for Nest PMU

2015-08-03 Thread Madhavan Srinivasan
Nest Counters can be configured via PORE Engine and OPAL provides an interface to start/stop it. OPAL side patches are posted in the skiboot mailing. Cc: Stewart Smith Cc: Jeremy Kerr Cc: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev

Re: [PATCH] PM / devfreq: event: Remove incorrect property in exynos-ppmu DT binding

2015-08-03 Thread Javier Martinez Canillas
Hello MyungJoo, On 08/03/2015 06:58 AM, MyungJoo Ham wrote: >> Hello Myungjoo, >> >> On 07/23/2015 10:30 AM, Javier Martinez Canillas wrote: >>> Hello Chanwoo, >>> >>> On 07/23/2015 10:19 AM, Chanwoo Choi wrote: Hi Javier, On 07/13/2015 03:58 PM, Javier Martinez Canillas wrote:

[PATCH v7 6/7] powerpc/powernv: generic nest pmu event functions

2015-08-03 Thread Madhavan Srinivasan
Add set of generic nest pmu related event functions to be used by each nest pmu. Add code to register nest pmus. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Madhavan

[PATCH v7 0/7] powerpc/powernv: Nest Instrumentation support

2015-08-03 Thread Madhavan Srinivasan
This patchset enables Nest Instrumentation support on powerpc. POWER8 has per-chip Nest Intrumentation which provides various per-chip metrics like memory, powerbus, Xlink and Alink bandwidth. Nest Instrumentation provides an interface (via PORE Engine) to configure and move the nest counter data

[PATCH v7 5/7] powerpc/powernv: add event attribute and group to nest pmu

2015-08-03 Thread Madhavan Srinivasan
Add code to create event/format attributes and attribute groups for each nest pmu. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan ---

[PATCH v7 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-08-03 Thread Madhavan Srinivasan
Create a file "nest-pmu.c" to contain nest pmu related functions. Code to detect nest pmu support and parser to collect per-chip reserved memory region information from device tree (DT). Detection mechanism is to look for specific property "ibm,ima-chip" in DT. For Nest pmu, device tree will have

[PATCH v7 1/7] powerpc/powernv: Data structure and macros definition

2015-08-03 Thread Madhavan Srinivasan
Create new header file "nest-pmu.h" to add the data structures and macros needed for the nest pmu support. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Daniel Axtens Cc: Stephane Eranian Signed-off-by: Madhavan

[PATCH v7 7/7] powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-08-03 Thread Madhavan Srinivasan
Adds cpumask attribute to be used by each nest pmu since nest units are per-chip. Only one cpu (first online cpu) from each chip is designated to read counters. On cpu hotplug, dying cpu is checked to see whether it is one of the designated cpus, if yes, next online cpu from the same chip is

RE: [PATCH v2 1/2] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan

2015-08-03 Thread Liberman Igal
Regards, Igal Liberman. > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, July 30, 2015 11:00 PM > To: Liberman Igal-B31950 > Cc: devicet...@vger.kernel.org; linuxppc-...@lists.ozlabs.org; Bucur > Madalin-Cristian-B32716; linux-kernel@vger.kernel.org > Subject: Re: [PATCH

Re: [PATCH 00/17] omap_hsmmc: regulator usage cleanup and fixes

2015-08-03 Thread Andreas Fenkart
Hi Kishon, Thanks for taking a look at the regulator code. Do you have a public git repository so I can pull your patches instead of cherry picking 1-by-1? /Andi 2015-07-29 13:09 GMT+02:00 Kishon Vijay Abraham I : > This patch series does the following > *) Uses devm_regulator_get_optional()

Re: [TRIVIAL PATCH] block: Correct misuses of 0x%

2015-08-03 Thread yalin wang
> On Aug 3, 2015, at 04:25, Joe Perches wrote: > > Correct misuse of 0x%d in logging messages. > > Signed-off-by: Joe Perches > --- > drivers/block/DAC960.c | 4 ++-- > drivers/block/cciss.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/block/DAC960.c

Re: your mail

2015-08-03 Thread Dan Carpenter
Returning EINVAL here is the wrong thing. Just leave the code as is. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH] MIPS: Remove all the uses of custom gpio.h

2015-08-03 Thread Ralf Baechle
On Mon, Aug 03, 2015 at 09:13:27AM +0200, Linus Walleij wrote: > Very good job being done here. > Reviewed-by: Linus Walleij > > I guess this better go in through the MIPS tree. > Given all the OpenWRT ports using MIPS this is excellent > progress for a large hobbyist community. Alban has

Re: [TRIVIAL PATCH] block: Correct misuses of 0x%

2015-08-03 Thread Johannes Thumshirn
Joe Perches writes: > Correct misuse of 0x%d in logging messages. > > Signed-off-by: Joe Perches > --- > drivers/block/DAC960.c | 4 ++-- > drivers/block/cciss.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c > index

Re: [PATCH] Staging : lustre: Struct file_operations should be const

2015-08-03 Thread Sudip Mukherjee
On Mon, Aug 03, 2015 at 11:17:06AM +0530, Shraddha Barke wrote: > Declare the file_operations structure ll_file_operations as const, as done > elsewhere in the kernel, as there are no modifications to its fields. > > Problem found using checkpatch: > > WARNING: struct file_operations should

Crypto Fixes for 4.2

2015-08-03 Thread Herbert Xu
Hi Linus: This push fixes the following issues: * A bogus BUG_ON in ixp4xx that can be triggered by a dst buffer that is an SG list. * The error handling in hwrngd may cause a crash in case of an error. * Fix a race condition in qat registration when multiple devices are present. Please

Re: [PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

2015-08-03 Thread Dan Carpenter
On Mon, Aug 03, 2015 at 09:15:56AM +0300, Dan Carpenter wrote: > > Reviewed-by: Dan Carpenter > > I don't really feel comfortable saying I reviewed this code. I just > commented on a few process issues. I don't know the subsystem well > enough to give it a seal of approval. > Biao was asking

Re: [PATCH] MIPS: Remove all the uses of custom gpio.h

2015-08-03 Thread Linus Walleij
On Thu, Jul 30, 2015 at 7:28 PM, Alban Bedel wrote: > Currently CONFIG_ARCH_HAVE_CUSTOM_GPIO_H is defined for all MIPS > machines, and each machine type provides its own gpio.h. However > only a handful really implement the GPIO API, most just forward > everythings to gpiolib. > > The Alchemy

Re: your mail

2015-08-03 Thread Sudip Mukherjee
On Mon, Aug 03, 2015 at 11:48:59AM +0530, Shraddha Barke wrote: > From b67c6c20455b04b77447ab4561e44f1a75dd978d Mon Sep 17 00:00:00 2001 > From: Shraddha Barke > Date: Mon, 3 Aug 2015 11:34:19 +0530 > Subject: [PATCH] Staging : lustre : Use -EINVAL instead of -ENOSYS You do not need these in the

[PATCH v2] mmc: dw_mmc: Fix coding style issues

2015-08-03 Thread Shawn Lin
This patch fixes the following issues reported by checkpatch.pl: - use -EINVAL instead of -ENOSYS, to fix warning message: "ENOSYS means 'invalid syscall nr' and nothing else" - split lines whose length is greater than 80 characters - avoid quoted string split across lines - use min_t instead

[PATCH V3 2/6] of/slimbus: OF helper for SLIMbus

2015-08-03 Thread Sagar Dharia
OF helper routine scans the SLIMbus DeviceTree, allocates resources, and creates slim_devices according to the hierarchy. Signed-off-by: Sagar Dharia --- Documentation/devicetree/bindings/slimbus/bus.txt | 46 ++ drivers/slimbus/slim-core.c | 75

[PATCH V3 3/6] slimbus: Add messaging APIs to slimbus framework

2015-08-03 Thread Sagar Dharia
Slimbus devices use value-element, and information elements to control device parameters (e.g. value element is used to represent gain for codec, information element is used to represent interrupt status for codec when codec interrupt fires). Messaging APIs are used to set/get these value and

[PATCH V3 4/6] slim: qcom: Add Qualcomm Slimbus controller driver

2015-08-03 Thread Sagar Dharia
This controller driver programs manager, interface, and framer devices for Qualcomm's slimbus HW block. Manager component currently implements logical address setting, and messaging interface. Interface device reports bus synchronization information, and framer device clocks the bus from the time

[PATCH V3 5/6] slimbus: Add support for 'clock-pause' feature

2015-08-03 Thread Sagar Dharia
Per slimbus specification, a reconfiguration sequence known as 'clock pause' needs to be broadcast over the bus while entering low- power mode. Clock-pause is initiated by the controller driver. To exit clock-pause, controller typically wakes up the framer device. Since wakeup precedure is

[PATCH V3 6/6] slim: qcom: Add runtime-pm support using clock-pause feature

2015-08-03 Thread Sagar Dharia
Slimbus HW mandates that clock-pause sequence has to be executed before disabling relevant interface and core clocks. Runtime-PM's autosuspend feature is used here to enter/exit low power mode for Qualcomm's Slimbus controller. Autosuspend feature enables driver to avoid changing power-modes too

[PATCH V3 1/6] SLIMbus: Device management on SLIMbus

2015-08-03 Thread Sagar Dharia
SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplexing to accommodate

[PATCH V3 0/6] Introduce framework for SLIMbus device drivers

2015-08-03 Thread Sagar Dharia
Changes since V2: * Multiple files to represent corresponding functionality of the framework per Srini's suggestion * Documentation/slimbus/summary to capture documentation * register_controller now adds slave devices as well for that controller (rather than additional step) per Mark's

[PATCH] Staging : lustre :Remove typedef from struct names

2015-08-03 Thread Shraddha Barke
The Linux kernel coding style guidelines suggest not using typedefs for structure types. This patch gets rid of the typedefs for cfs_wi_sched. Also, the name of the struct is changed to drop the _t, to make the name look less typedef-like. The following Coccinelle semantic patch detects the case:

Re: [RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-08-03 Thread Ludovic Desroches
Hi Josh, On Mon, Aug 03, 2015 at 02:40:18PM +0800, Josh Wu wrote: > Hi, Ludovic > > On 7/31/2015 11:08 PM, Ludovic Desroches wrote: > >Signed-off-by: Ludovic Desroches > >--- > > arch/arm/boot/dts/sama5d2-pinfunc.h | 760 > > > > 1 file changed, 760

Re: about ENOSYS

2015-08-03 Thread Drokin, Oleg
subject have been missing, so I filled in something. On Aug 3, 2015, at 2:18 AM, Shraddha Barke wrote: > From b67c6c20455b04b77447ab4561e44f1a75dd978d Mon Sep 17 00:00:00 2001 > From: Shraddha Barke > Date: Mon, 3 Aug 2015 11:34:19 +0530 > Subject: [PATCH] Staging : lustre : Use -EINVAL instead

Re: [RFC PATCH 2/3] ARM: at91/dt: add sama5d2 pinmux

2015-08-03 Thread Josh Wu
Hi, Ludovic On 7/31/2015 11:08 PM, Ludovic Desroches wrote: Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/sama5d2-pinfunc.h | 760 1 file changed, 760 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h diff --git

Re: [PATCH v6 0/3] Add MediaTek display PWM driver

2015-08-03 Thread YH Huang
On Fri, 2015-07-24 at 17:10 +0800, YH Huang wrote: > On Fri, 2015-07-24 at 10:42 +0200, Matthias Brugger wrote: > > On Monday, July 20, 2015 04:17:14 PM YH Huang wrote: > > > This patch series add the use of display PWM driver, documentation > > > and device tree for Mediatek SoCs. The driver is

[PATCH RESEND] 9p: do not overwrite return code when locking fails

2015-08-03 Thread Dominique Martinet
If the remote locking fail, we run a local vfs unlock that should work and return success to userland when we didn't actually lock at all. We need to tell the application that tried to lock that it didn't get it, not that all went well. Signed-off-by: Dominique Martinet --- fs/9p/vfs_file.c | 3

Re: [PATCH] mmc: dw_mmc: Fix coding style issues

2015-08-03 Thread Shawn Lin
On 2015-8-3 12:07, Jaehoon Chung wrote: Hi, Shawn. On 07/28/2015 12:06 PM, Shawn Lin wrote: This patch fixes the following issues reported by checkpatch.pl: - use -EINVAL instead of -ENOSYS, to fix warning message: "ENOSYS means 'invalid syscall nr' and nothing else" - split lines whose

linux-next: Tree for Aug 3

2015-08-03 Thread Stephen Rothwell
Hi all, Changes since 20150731: The drm-misc tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 4919 4988 files changed, 250651 insertions(+), 115613 deletions(-) I have created

Re: [PATCH v3] target: Drop iSCSI use of mutex around max_cmd_sn increment

2015-08-03 Thread Nicholas A. Bellinger
On Thu, 2015-07-23 at 14:53 -0700, Spencer Baugh wrote: > From: Roland Dreier > > In a performance profile, taking a mutex in iscsit_increment_maxcmdsn() > shows up very high. However taking a mutex around "sess->max_cmd_sn += 1" > seems pretty silly: we're not serializing against other

[no subject]

2015-08-03 Thread Shraddha Barke
>From b67c6c20455b04b77447ab4561e44f1a75dd978d Mon Sep 17 00:00:00 2001 From: Shraddha Barke Date: Mon, 3 Aug 2015 11:34:19 +0530 Subject: [PATCH] Staging : lustre : Use -EINVAL instead of -ENOSYS ENOSYS means that a nonexistent system call was called. This should not be used for invalid

Re: [PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue

2015-08-03 Thread Dan Carpenter
On Mon, Aug 03, 2015 at 05:53:22AM +, Wang, Biao wrote: > Consider the following case: > Task A trigger lmk with a lock held, while task B try to > get this lock, but unfortunately B is the very culprit task lmk select to > kill. Then B will never be killed, and A will forever select B to

[PATCH] cpupower tools: Fix error when running cpupower monitor

2015-08-03 Thread Shreyas B. Prabhu
get_cpu_topology() tries to get topology info from all cpus by reading files in the topology sysfs dir. If a cpu is offlined, since it doesn't have topology dir, this function fails and returns -1. This causes functions relying on get_cpu_topology() to fail. For example- $ cpupower monitor Cannot

[PATCH] Check return code from pdc20621_i2c_read()

2015-08-03 Thread Tomer Barletz
The variable spd0 might be used uninitialized when pdc20621_i2c_read() fails. This also generates a compilation warning with gcc 5.1. Signed-off-by: Tomer Barletz --- drivers/ata/sata_sx4.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2] arch: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

2015-08-03 Thread Ralf Baechle
On Sun, Aug 02, 2015 at 05:11:04PM +0200, Andrey Konovalov wrote: > diff --git a/arch/mips/include/asm/barrier.h b/arch/mips/include/asm/barrier.h > index 7ecba84..752e0b8 100644 > --- a/arch/mips/include/asm/barrier.h > +++ b/arch/mips/include/asm/barrier.h > @@ -133,12 +133,12 @@ > do {

RE: [PATCH] drivers: usb: fsl: Workaround for USB erratum-A005275

2015-08-03 Thread Badola Nikhil
> -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Friday, July 31, 2015 10:04 PM > To: Badola Nikhil-B46172 > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > gre...@linuxfoundation.org; Mehresh Ramneek-B31383 > Subject: Re: [PATCH] drivers:

[PATCH v2 10/10] arm64: dts: Create SoC thermal zone for Juno

2015-08-03 Thread Punit Agrawal
Setup a thermal zone driven by the SoC temperature sensor on Juno r0. Create passive trip points and bind them to cpufreq cooling devices that support the power extensions. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com

[PATCH v2 07/10] hwmon: Support sensors exported via ARM SCP interface

2015-08-03 Thread Punit Agrawal
Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Power Interface (SCPI). The supported sensor types is one of voltage, temperature, current, and power. The sensor labels and values provided by the SCP are exported via the

[PATCH v2 09/10] arm64: dts: Add sensor node to Juno dt

2015-08-03 Thread Punit Agrawal
The SCP firmware on Juno provides access to SoC sensors via the SCPI. Add the sensor nodes to the device tree to enable this support. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Rob Herring robh...@kernel.org Cc: Mark Rutland mark.rutl...@arm.com Cc: Liviu Dudau liviu.du...@arm.com Cc:

Re: [PATCH] iio: adc: vf610: Add IIO buffer support for Vybrid ADC

2015-08-03 Thread Peter Meerwald
On Mon, 3 Aug 2015, Sanchayan Maity wrote: This patch adds support for IIO buffer to the Vybrid ADC driver. IIO triggered buffer infrastructure along with iio sysfs trigger is used to leverage continuous sampling support provided by the ADC block. comments below Signed-off-by: Sanchayan

[PATCH v2 06/10] firmware: arm_scpi: Extend to support sensors

2015-08-03 Thread Punit Agrawal
ARM System Control Processor (SCP) provides an API to query and use the sensors available in the system. Extend the SCPI driver to support sensor messages. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc: Sudeep Holla sudeep.ho...@arm.com --- drivers/firmware/arm_scpi.c | 60

[PATCH v2 05/10] Documentation: add DT bindings for ARM SCPI sensors

2015-08-03 Thread Punit Agrawal
The System Control Processor (SCP) provides access to SoC sensors via the System Control and Power Interface (SCPI) Message Protocol. Add bindings to allow probing of these sensors. Also support referencing of the sensors for setting up thermal zones via the thermal DT bindings. Signed-off-by:

[PATCH v2 02/10] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-08-03 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal punit.agra...@arm.com Acked-by: Viresh Kumar

Re: [PATCH] iommu/omap: Fix debug_read_tlb() to use seq_printf()

2015-08-03 Thread Joerg Roedel
On Thu, Jul 23, 2015 at 02:26:19PM +0200, Salva Peiró wrote: The debug_read_tlb() uses the sprintf() functions directly on the buffer allocated by buf = kmalloc(count), without taking into account the size of the buffer, with the consequence corrupting the heap, depending on the count

[PATCH v2 01/10] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-08-03 Thread Punit Agrawal
The dynamic power consumption of a device is proportional to the square of voltage (V) and the clock frequency (f). It can be expressed as Pdyn = dynamic-power-coefficient * V^2 * f. The dynamic-power-coefficient property represents an indicative running time dynamic power coefficient in

[PATCH v2 03/10] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-08-03 Thread Punit Agrawal
Register passive cooling devices when initialising cpufreq on big.LITTLE systems. If the device tree provides a dynamic power coefficient for the CPUs then the bound cooling device will support the extensions that allow it to be used with all the existing thermal governors including the power

[PATCH v2 04/10] thermal: Fix thermal_zone_of_sensor_register to match documentation

2015-08-03 Thread Punit Agrawal
thermal_zone_of_sensor_register is documented as returning a pointer to either a valid thermal_zone_device on success, or a corresponding ERR_PTR() value. In contrast, the function returns NULL when THERMAL_OF is configured off. Fix this. Signed-off-by: Punit Agrawal punit.agra...@arm.com Cc:

RE: [PATCH v3 4/6] power: da9150: Add DT bindings documentation for Fuel-Gauge

2015-08-03 Thread Opensource [Adam Thomson]
On July 24, 2015 23:01, Sebastian Reichel wrote: Hi, On Tue, Jul 07, 2015 at 05:34:21PM +0100, Adam Thomson wrote: diff --git a/Documentation/devicetree/bindings/power/da9150-fg.txt b/Documentation/devicetree/bindings/power/da9150-fg.txt new file mode 100644 index 000..c3c76eb

Re: [PATCH 2/6] test_bpf: allow tests to specify an skb fragment.

2015-08-03 Thread Daniel Borkmann
On 08/03/2015 04:02 PM, Nicolas Schichan wrote: This introduce a new test-aux flag (FLAG_SKB_FRAG) to tell the populate_skb() function to add a fragment to the test skb containing the data specified in test-frag_data). Signed-off-by: Nicolas Schichan nschic...@freebox.fr Acked-by: Alexei

[PATCH v3 0/7] KVM: arm/arm64: gsi routing support

2015-08-03 Thread Eric Auger
With the advent of GICv3 ITS in-kernel emulation, KVM GSI routing appears to be requested. More specifically MSI routing is needed. irqchip routing does not sound to be really useful on arm but usage of MSI routing also mandates to integrate irqchip routing. The initial implementation of irqfd on

[PATCH v3 4/7] KVM: arm/arm64: enable irqchip routing

2015-08-03 Thread Eric Auger
This patch adds compilation and link against irqchip. On ARM, irqchip routing is not really useful since there is a single irqchip. However main motivation behind using irqchip code is to enable MSI routing code. With the support of in-kernel GICv3 ITS emulation, it now seems to be a MUST HAVE

Re: [PATCH] scripts/kernel-doc Allow struct arguments documentation in struct body

2015-08-03 Thread Daniel Vetter
On Mon, Aug 03, 2015 at 08:37:41AM -0600, Jonathan Corbet wrote: On Mon, 3 Aug 2015 10:23:19 +0200 Daniel Vetter dan...@ffwll.ch wrote: I'm wondering if we need a kernel summit session on commenting conventions, markdown-in-kerneldoc, etc? Maybe I'll stick a proposal out there.

Re: [PATCH] vmscan: reclaim_clean_pages_from_list() must count mlocked pages

2015-08-03 Thread Minchan Kim
On Mon, Aug 03, 2015 at 11:55:46PM +0900, Jaewon Kim wrote: On 2015년 08월 03일 21:27, Minchan Kim wrote: Hello, On Mon, Aug 03, 2015 at 07:18:27PM +0900, Jaewon Kim wrote: reclaim_clean_pages_from_list() decreases NR_ISOLATED_FILE by returned value from shrink_page_list(). But

[PATCH v3 7/7] KVM: arm: enable KVM_SIGNAL_MSI and MSI routing

2015-08-03 Thread Eric Auger
If the ITS modality is not available, let's simply support MSI injection by transforming the MSI.data into an SPI ID. This becomes possible to use KVM_SIGNAL_MSI ioctl and MSI routing for arm too. Signed-off-by: Eric Auger eric.au...@linaro.org --- v2 - v3: - reword the commit message - add

[PATCH v3 1/7] KVM: api: pass the devid in the msi routing entry

2015-08-03 Thread Eric Auger
On ARM, the MSI msg (address and data) comes along with out-of-band device ID information. The device ID encodes the device that writes the MSI msg. Let's convey the device id in kvm_irq_routing_msi and use KVM_MSI_VALID_DEVID flag value in kvm_irq_routing_entry to indicate the msi devid is

Re: MAINTAINERS/s5p: Kamil Debski no longer with Samsung?

2015-08-03 Thread Bartlomiej Zolnierkiewicz
Hi, On Sunday, August 02, 2015 01:40:40 PM Joe Perches wrote: On Sun, 2015-08-02 at 20:31 +, Mail Delivery System wrote: k.deb...@samsung.com: host mailin.samsung.com[203.254.224.12] said: 550 5.1.1 Recipient address rejected: User unknown (in reply to RCPT TO command) His

Re: [PATCH] Staging : lustre :Replace comma with a semicolon

2015-08-03 Thread Dan Carpenter
The spacing in the subject lines is whacky. -Subject: [PATCH] Staging : lustre :Replace comma with a semicolon +Subject: [PATCH] Staging: lustre: Replace comma with a semicolon regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: [PATCH] Check return code from pdc20621_i2c_read()

2015-08-03 Thread Sergei Shtylyov
Hello. On 08/03/2015 09:06 AM, Tomer Barletz wrote: The variable spd0 might be used uninitialized when pdc20621_i2c_read() fails. This also generates a compilation warning with gcc 5.1. Signed-off-by: Tomer Barletz barl...@gmail.com --- drivers/ata/sata_sx4.c | 14 ++ 1 file

Re: [PATCH] tty: serial: men_z135_uart.c: Fix race between IRQ and set_termios()

2015-08-03 Thread Peter Hurley
Hi Johannes, On 08/03/2015 09:58 AM, Johannes Thumshirn wrote: Fix panic caused by a race between men_z135_intr() and men_z135_set_termios(). men_z135_intr() and men_z135_set_termios() both hold the struct uart_port::lock spinlock, but men_z135_intr() does a spin_lock_irqsave() and

Re: [PATCH] vmscan: reclaim_clean_pages_from_list() must count mlocked pages

2015-08-03 Thread Jaewon Kim
On 2015년 08월 04일 00:33, Minchan Kim wrote: On Mon, Aug 03, 2015 at 11:55:46PM +0900, Jaewon Kim wrote: On 2015년 08월 03일 21:27, Minchan Kim wrote: Hello, On Mon, Aug 03, 2015 at 07:18:27PM +0900, Jaewon Kim wrote: reclaim_clean_pages_from_list() decreases NR_ISOLATED_FILE by returned

<    4   5   6   7   8   9   10   11   12   13   >