[RFC PATCH] perf: Container-aware tracing support

2015-07-15 Thread Aravinda Prasad
Current tracing infrastructure such as perf and ftrace reports system wide data when invoked inside a container. It is required to restrict events specific to a container context when such tools are invoked inside a container. This RFC patch supports filtering container specific events, without

Re: [PATCH] ARM: pxa: fix dm9000 platform data regression

2015-07-15 Thread Igor Grinberg
Hi Robert, On 07/12/15 02:32, Robert Jarzmik wrote: > Since dm9000 driver added support for a vcc regulator, platform data > based platforms have their ethernet broken, as the regulator claiming > returns -EPROBE_DEFER and prevents dm9000 loading. > > This patch fixes this for all pxa boards

Re: [Xen-devel] [PATCH v2 09/20] xen/biomerge: Don't allow biovec to be merge when Linux is not using 4KB page

2015-07-15 Thread Julien Grall
Hi Konrad, On 10/07/2015 21:12, Konrad Rzeszutek Wilk wrote: On Thu, Jul 09, 2015 at 09:42:21PM +0100, Julien Grall wrote: When Linux is using 64K page granularity, every page will be slipt in multiple non-contiguous 4K MFN (page granularity of Xen). But you don't care about that on the

Re: [PATCH v2 5/5] arm64: add KASan support

2015-07-15 Thread Andrey Ryabinin
On 07/14/2015 06:04 PM, Catalin Marinas wrote: > On Fri, Jul 10, 2015 at 08:11:03PM +0300, Andrey Ryabinin wrote: +#if CONFIG_PGTABLE_LEVELS > 3 +pud_t kasan_zero_pud[PTRS_PER_PUD] __page_aligned_bss; +#endif +#if CONFIG_PGTABLE_LEVELS > 2 +pmd_t

Re: [PATCH V4 1/1] usb:serial:f81534 add F81532/534 driver

2015-07-15 Thread Peter Hung
Hi Paul & Johan Paul Bolle 於 2015/7/15 下午 04:36 寫道: Just a few nits, I'm afraid. +int f81534_gpio_request(struct gpio_chip *chip, unsigned offset) +{ + [...] +} static? Thanks Paul for point this out. And sorry for Johan. It's seems to make a new patch V5. I'll merge some minor fix

[PATCH] livepatch: Fix the issue to make livepatch enable/disable patch correctly

2015-07-15 Thread Minfei Huang
From: Minfei Huang Livepatch will obey the stacking rule to enable/disable the patch. It only allows to enable the patch, when it is the fist disabled patch, disable the patch, when it is the last enabled patch. In the livepatch code, it uses list to gather the all of the patches. And we do not

Re: [RESEND PATCH 2/2] pinctrl: introduce complex pin description

2015-07-15 Thread Ludovic Desroches
On Tue, Jul 14, 2015 at 08:13:59AM +0200, Sascha Hauer wrote: > On Wed, Jun 10, 2015 at 05:04:57PM +0200, Ludovic Desroches wrote: > > Using a string to describe a pin in the device tree can be not enough. > > Some controllers may need extra information to fully describe a pin. It > > concerns

Re: [PATCH] regulator: core: Fix memory leak in regulator_resolve_supply()

2015-07-15 Thread Javier Martinez Canillas
Hello Krzysztof, Thanks a lot for your feedback. On 07/15/2015 10:01 AM, Krzysztof Kozlowski wrote: > 2015-07-14 23:21 GMT+09:00 Javier Martinez Canillas : >> The regulator_resolve_supply() function calls set_supply() which in turn >> calls create_regulator() to allocate a supply regulator. >>

Re: [PATCH V4 1/1] usb:serial:f81534 add F81532/534 driver

2015-07-15 Thread Paul Bolle
Just a few nits, I'm afraid. On di, 2015-07-14 at 11:13 +0800, Peter Hung wrote: > --- /dev/null > +++ b/drivers/usb/serial/f81534.c > +int f81534_gpio_request(struct gpio_chip *chip, unsigned offset) > +{ > + [...] > +} static? > +void f81534_gpio_free(struct gpio_chip *chip, unsigned

Re: [PATCH RESEND] phy: tusb1210: Use devm_gpiod_get_optional for optional GPIOs

2015-07-15 Thread Axel Lin
2015-07-15 16:29 GMT+08:00 Uwe Kleine-König : > Hello, > > On Wed, Jul 15, 2015 at 01:45:44PM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 15 July 2015 12:34 PM, Axel Lin wrote: >> > 2015-06-20 15:39 GMT+08:00 Axel Lin : >> >> Also simplify the code a bit by specify direction and

[PATCH v2 2/2] staging: sm7xxfb: usr fb_read and fb_write

2015-07-15 Thread Sudip Mukherjee
Now since the Big-Endian and Little-Endian based calculations are moved into a macro we can make fb_read() and fb_write() common for both Little-Endian and Big-Endian. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 4 1 file changed, 4 deletions(-) diff --git

[PATCH v2 1/2] staging: sm7xxfb: define new macros

2015-07-15 Thread Sudip Mukherjee
Define and use some new macros to work with different situations based on little-endian and big-endian. Signed-off-by: Sudip Mukherjee --- v2: fixed empty macro drivers/staging/sm7xxfb/sm7xx.h | 19 drivers/staging/sm7xxfb/sm7xxfb.c | 48

Re: [PATCH RESEND] phy: tusb1210: Use devm_gpiod_get_optional for optional GPIOs

2015-07-15 Thread Uwe Kleine-König
Hello, On Wed, Jul 15, 2015 at 01:45:44PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 15 July 2015 12:34 PM, Axel Lin wrote: > > 2015-06-20 15:39 GMT+08:00 Axel Lin : > >> Also simplify the code a bit by specify direction and initial value for > >> output in

Re: [PATCH v2 3/9] arm: twr-k70f120m: clock driver for Kinetis SoC

2015-07-15 Thread Paul Osmialowski
Hi Linus, Thanks for all of your comments, I'll consider them during my works on the next iteration. However, I have doubts about this one: On Tue, 14 Jul 2015, Linus Walleij wrote: > On Tue, Jun 30, 2015 at 2:27 PM, Paul Osmialowski wrote: > > > Based on K70P256M150SF3RM.pdf K70 Sub-Family

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-07-15 Thread Ludovic Desroches
On Wed, Jul 15, 2015 at 09:46:42AM +0200, Ludovic Desroches wrote: > This driver fits most of my needs but I didn't do it in this way for the > two previous reasons. If it is not an issue to add a new > dt_node_to_map() implementation which should be quite close to the > mediatek one, let's do it.

Re: [PATCH 1/2] gpio: altera: kill bogus dependency on GPIO_GENERIC

2015-07-15 Thread Linus Walleij
On Fri, Jun 19, 2015 at 1:31 PM, Masahiro Yamada wrote: > The driver gpio-altera.c does not depend on gpio-generic.c at all. > Drop unneeded "select GPIO_GENERIC". > > Signed-off-by: Masahiro Yamada Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line

Re: [PATCH v7 3/9] nvmem: Add nvmem_device based consumer apis.

2015-07-15 Thread Srinivas Kandagatla
Thanks Stephen, On 14/07/15 23:06, Stephen Boyd wrote: On 07/10, Srinivas Kandagatla wrote: +static int devm_nvmem_device_match(struct device *dev, void *res, void *data) +{ + struct nvmem_device **nvmem = res; + + if (!nvmem || !*nvmem) { + WARN_ON(!nvmem ||

[PATCH v10 7/7] sched: Clean up load average references

2015-07-15 Thread Yuyang Du
For cfs_rq, we have load.weight, runnable_load_avg, and load_avg. We now start to clean up how they are used. First, as group sched_entity already largely uses load_avg, we now expand to use load_avg in all cases. Second, for CPU-wide load balancing, we choose to use runnable_load_avg in all

Re: [PATCH] regulator: core: Fix memory leak in regulator_resolve_supply()

2015-07-15 Thread Krzysztof Kozlowski
2015-07-14 23:21 GMT+09:00 Javier Martinez Canillas : > The regulator_resolve_supply() function calls set_supply() which in turn > calls create_regulator() to allocate a supply regulator. > > If an error occurs after set_supply() succeeded, the allocated regulator > has to be freed before

Re: [PATCH RESEND] phy: tusb1210: Use devm_gpiod_get_optional for optional GPIOs

2015-07-15 Thread Kishon Vijay Abraham I
Hi, On Wednesday 15 July 2015 12:34 PM, Axel Lin wrote: > 2015-06-20 15:39 GMT+08:00 Axel Lin : >> Also simplify the code a bit by specify direction and initial value for >> output in devm_gpiod_get_optional function. >> >> Signed-off-by: Axel Lin >> Acked-by: Heikki Krogerus >> Acked-by:

Re: [PATCH] ALSA: hda/realtek: Enable HP amp and mute LED on HP Folio 9480m

2015-07-15 Thread Takashi Iwai
On Wed, 15 Jul 2015 04:37:44 +0200, Keith Packard wrote: > > Takashi Iwai writes: > > > Thanks for the patch. But this looks suboptimal, unfortunately, since > > it keeps the amp always on, and more badly, it would block the power > > save of the widget root node. > > Thanks very much for

Re: [PATCH 04/13] pinctrl: tegra: Only set the gpio range if needed

2015-07-15 Thread Tomeu Vizoso
On 15 July 2015 at 05:17, Alexandre Courbot wrote: > On Tue, Jul 14, 2015 at 5:34 PM, Tomeu Vizoso > wrote: >> On 13 July 2015 at 22:14, Linus Walleij wrote: >>> On Wed, Jun 17, 2015 at 3:42 PM, Tomeu Vizoso >>> wrote: >>> If the gpio DT node has the gpio-ranges property, the range will

[PATCH v2] ARM: dts: ls1021a: audio: Add dts nodes for audio on LS1021A

2015-07-15 Thread Alison Wang
This patch adds dts nodes for audio on LS1021A. Signed-off-by: Alison Wang Signed-off-by: Shawn Guo --- Changes since v1: - Remove "clocks" container, and use a unit node name. arch/arm/boot/dts/ls1021a-qds.dts | 69 +++ arch/arm/boot/dts/ls1021a-twr.dts |

Re: [v2 1/7] gpiolib: Add support for removing registered consumer lookup table

2015-07-15 Thread Linus Walleij
On Mon, Jun 22, 2015 at 12:54 PM, Shobhit Kumar wrote: > In case we unload and load a driver module again that is registering a > lookup table, without this it will result in multiple entries. Provide > an option to remove the lookup table on driver unload > > v2: Ccing maintainers > v3: Correct

Re: [PATCH] phy: ulpi_phy: Add const qualifier to ops

2015-07-15 Thread Kishon Vijay Abraham I
Hi Axel, On Wednesday 15 July 2015 12:40 PM, Axel Lin wrote: > 2015-06-05 8:27 GMT+08:00 Axel Lin : >> The ops is never changed in ulpi_phy_create(), so make it const. > > Hi Kishon, > > Would you pick up this patch? yes.. I'll take once I start queuing the patches. Thanks Kishon -- To

[PATCH v2] ARM: dts: ls1021a: add wakeup device ftm0 node for ls1021a

2015-07-15 Thread Alison Wang
Add ftm0 node, cause of ftm0 can be set as a alarm before system going to deep sleep. Signed-off-by: Wang Dongsheng Signed-off-by: Alison Wang --- Changes since v1: - Add my SoB. - Use "ARM:" as subject prefix. arch/arm/boot/dts/ls1021a-qds.dts | 4 arch/arm/boot/dts/ls1021a.dtsi| 8

[PATCH v10 7/7] sched: Clean up load average references

2015-07-15 Thread Yuyang Du
For cfs_rq, we have load.weight, runnable_load_avg, and load_avg. We now start to clean up how they are used. First, as group sched_entity already largely uses load_avg, we now expand to use load_avg in all cases. Second, for CPU-wide load balancing, we choose to use runnable_load_avg in all

[PATCH v10 3/7] sched: Implement update_blocked_averages() for CONFIG_FAIR_GROUP_SCHED=n

2015-07-15 Thread Yuyang Du
The load and the util of idle cpus must be updated periodically in order to decay the blocked part. If CONFIG_FAIR_GROUP_SCHED is not set, the load and util of idle cpus are not decayed and stay at the values set before becoming idle. Signed-off-by: Vincent Guittot Reviewed-by: Yuyang Du ---

[PATCH v10 6/7] sched: Provide runnable_load_avg back to cfs_rq

2015-07-15 Thread Yuyang Du
The cfs_rq's load_avg is composed of runnable_load_avg and blocked_load_avg. Before this series, sometimes the runnable_load_avg is used, and sometimes the load_avg is used. Completely replacing all uses of runnable_load_avg with load_avg may be too big a leap, i.e., the blocked_load_avg is

[PATCH v10 5/7] sched: Remove task and group entity load when they are dead

2015-07-15 Thread Yuyang Du
When task exits or group is destroyed, the entity's load should be removed from its parent cfs_rq's load. Otherwise, it will take time for the parent cfs_rq to decay the dead entity's load to 0, which is not desired. Signed-off-by: Yuyang Du --- kernel/sched/fair.c | 11 ++- 1 file

[PATCH v10 4/7] sched: Init cfs_rq's sched_entity load average

2015-07-15 Thread Yuyang Du
The runnable load and utilization averages of cfs_rq's sched_entity were not initiated. Like done to a task, give new cfs_rq' sched_entity start values to heavy its load in infant time. Signed-off-by: Yuyang Du --- kernel/sched/core.c | 2 +- kernel/sched/fair.c | 11 ++-

[PATCH v10 2/7] sched: Rewrite runnable load and utilization average tracking

2015-07-15 Thread Yuyang Du
The idea of runnable load average (let runnable time contribute to weight) was proposed by Paul Turner and Ben Segall, and it is still followed by this rewrite. This rewrite aims to solve the following issues: 1. cfs_rq's load average (namely runnable_load_avg and blocked_load_avg) is updated

[PATCH v10 1/7] sched: Remove rq's runnable avg

2015-07-15 Thread Yuyang Du
The current rq->avg is not used at all since its merge into kernel, and the code is in the scheduler's hot path, so remove it. Signed-off-by: Yuyang Du Reviewed-by: Dietmar Eggemann Tested-by: Dietmar Eggemann --- kernel/sched/debug.c | 7 +-- kernel/sched/fair.c | 25

[PATCH v10 0/7] sched: Rewrite runnable load and utilization average tracking

2015-07-15 Thread Yuyang Du
Hi Peter and Ingo, Changes are made to the 10th version: 1) Include Vincent's fix to update blocked load when CONFIG_FAIR_GROUP_SCHED=n 2) Get runnable_load_avg back 3) Clean up the references to load averages a little bit Thanks a lot to Dietmar for his review, tests, and suggestions. Thanks a

Re: [PATCH] phy: Constify struct phy_ops variables

2015-07-15 Thread Patrice Chotard
Hi Axel On 07/15/2015 09:33 AM, Axel Lin wrote: The phy_ops variables are never modified after initialized in these drivers, so make them const. Signed-off-by: Axel Lin --- Note, the change for drivers/phy/phy-tusb1210.c depends on my previous patch "[PATCH] phy: ulpi_phy: Add const qualifier

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-07-15 Thread Ludovic Desroches
On Tue, Jul 14, 2015 at 07:57:49AM +0200, Sascha Hauer wrote: > On Thu, Jun 18, 2015 at 02:33:48PM +0200, Ludovic Desroches wrote: > > On Wed, Jun 17, 2015 at 09:55:56AM -0600, Stephen Warren wrote: > > > On 06/17/2015 06:38 AM, Ludovic Desroches wrote: > > > >Hi Stephen, > > > > > > > >On Mon,

[PATCH] hid_sensor_magn_3d: Fix scale for rotation from north channels

2015-07-15 Thread Reyad Attiyat
Some devices on a hid sensor hub will not report a measurement unit. This causes the rotation from north channels to have an incorrect scale value. This patch will set the unit to degrees if the maximum value is 360 when the unit exponent value is accounted for. Signed-off-by: Reyad Attiyat ---

Re: [PATCH 2/2] gpio: gpio-ftdi-cbus: add driver for FTDI CBUS GPIOs

2015-07-15 Thread Linus Walleij
On Sun, Jun 21, 2015 at 12:12 AM, Stefan Agner wrote: > This driver allows to use the CBUS pins, e.g. CBUS 0-3 on FT232R > type of devices. Note that the pins need to be configured first > by using I/O mode signal option in the EEPROM. This is _not_ the > factory default configuration of any of

[RFC PATCH 02/12] powerpc/kernel: Switch to using MAX_ERRNO

2015-07-15 Thread Michael Ellerman
Currently on powerpc we have our own #define for the highest (negative) errno value, called _LAST_ERRNO. This is defined to be 516, for reasons which are not clear. The generic code, and x86, use MAX_ERRNO, which is defined to be 4095. In particular seccomp uses MAX_ERRNO to restrict the value

[RFC PATCH 03/12] powerpc/kernel: Change the do_syscall_trace_enter() API

2015-07-15 Thread Michael Ellerman
The API for calling do_syscall_trace_enter() is currently sensible enough, it just returns the (modified) syscall number. However once we enable seccomp filter it will get more complicated. When seccomp filter runs, the seccomp kernel code (via SECCOMP_RET_ERRNO), or a ptracer (via

[RFC PATCH 07/12] powerpc: Use orig_gpr3 in syscall_get_arguments()

2015-07-15 Thread Michael Ellerman
Currently syscall_get_arguments() is used by syscall tracepoints, and collect_syscall() which is used in some debugging as well as /proc/pid/syscall. The current implementation just copies regs->gpr[3 .. 5] out, which is fine for all the current use cases. When we enable seccomp filter, that

[RFC PATCH 05/12] powerpc: Don't negate error in syscall_set_return_value()

2015-07-15 Thread Michael Ellerman
Currently the only caller of syscall_set_return_value() is seccomp filter, which is not enabled on powerpc. This means we have not noticed that our implementation of syscall_set_return_value() negates error, even though the value passed in is already negative. So remove the negation in

[RFC PATCH 06/12] powerpc: Rework syscall_get_arguments() so there is only one loop

2015-07-15 Thread Michael Ellerman
Currently syscall_get_arguments() has two loops, one for compat and one for regular tasks. In prepartion for the next patch, which changes which registers we use, switch it to only have one loop, so we only have one place to update. Signed-off-by: Michael Ellerman ---

[RFC PATCH 01/12] powerpc/kernel: Get pt_regs from r9 before calling do_syscall_trace_enter()

2015-07-15 Thread Michael Ellerman
To call do_syscall_trace_enter() we need pt_regs in r3, but we don't need to recalculate it based on r1, it's already in r9. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/entry_64.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/entry_64.S

[RFC PATCH 08/12] powerpc: Change syscall_get_nr() to return int

2015-07-15 Thread Michael Ellerman
The documentation for syscall_get_nr() in asm-generic says: Note this returns int even on 64-bit machines. Only 32 bits of system call number can be meaningful. If the actual arch value is 64 bits, this truncates to 32 bits so 0x means -1. However our implementation was never updated

[RFC PATCH 04/12] powerpc: Drop unused syscall_get_error()

2015-07-15 Thread Michael Ellerman
syscall_get_error() is unused, and never has been. It's also probably wrong, as it negates r3 before returning it, but that depends on what the caller is expecting. It also doesn't deal with compat, and doesn't deal with TIF_NOERROR. Although we could fix those, until it has a caller and it's

Re: [PATCH] phy: Drop owner assignment from platform_driver

2015-07-15 Thread Patrice Chotard
Hi Krysztof On 07/10/2015 08:26 AM, Krzysztof Kozlowski wrote: platform_driver does not need to set an owner because platform_driver_register() will set it. Signed-off-by: Krzysztof Kozlowski --- The coccinelle script which generated the patch was sent here:

[RFC PATCH 10/12] powerpc/kernel: Enable seccomp filter

2015-07-15 Thread Michael Ellerman
This commit enables seccomp filter on powerpc, now that we have all the necessary pieces in place. To support seccomp's desire to modify the syscall return value under some circumstances, we use a different ABI to the ptrace ABI. That is we use r3 as the syscall return value, and orig_gpr3 is the

[RFC PATCH 11/12] selftests/seccomp: Make seccomp tests work on big endian

2015-07-15 Thread Michael Ellerman
The seccomp_bpf test uses BPF_LD|BPF_W|BPF_ABS to load 32-bit values from seccomp_data->args. On big endian machines this will load the high word of the argument, which is not what the test wants. Borrow a hack from samples/seccomp/bpf-helper.h which changes the offset on big endian to account

[RFC PATCH 12/12] selftests/seccomp: Add powerpc support

2015-07-15 Thread Michael Ellerman
Wire up the syscall number and regs so the tests work on powerpc. Signed-off-by: Michael Ellerman --- tools/testing/selftests/seccomp/seccomp_bpf.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c

[RFC PATCH 09/12] powerpc/kernel: Add SIG_SYS support for compat tasks

2015-07-15 Thread Michael Ellerman
SIG_SYS was added in commit a0727e8ce513 "signal, x86: add SIGSYS info and make it synchronous." Because we use the asm-generic struct siginfo, we got support for SIG_SYS for free as part of that commit. However there was no compat handling added for powerpc. That means we've been advertising

[PATCH v2] serial: mxs-auart: keep the AUART unit in reset state when not in use

2015-07-15 Thread Juergen Borleis
Whenever the UART device driver gets closed from userland, the driver disables the UART unit and then stops its clock to save power. The bit which disabled the UART unit is described as:  "UART Enable. If this bit is set to 1, the UART is enabled. Data transmission and reception occurs for

[PATCH] phy: Constify struct phy_ops variables

2015-07-15 Thread Axel Lin
The phy_ops variables are never modified after initialized in these drivers, so make them const. Signed-off-by: Axel Lin --- Note, the change for drivers/phy/phy-tusb1210.c depends on my previous patch "[PATCH] phy: ulpi_phy: Add const qualifier to ops". drivers/phy/phy-armada375-usb2.c| 2

Re: [PATCH] serial: mxs-auart: keep the AUART unit in reset state when not in use

2015-07-15 Thread Juergen Borleis
Hi Stefan, On Tuesday 14 July 2015 19:33:04 Stefan Wahren wrote: > [...] > > diff --git a/drivers/tty/serial/mxs-auart.c > > b/drivers/tty/serial/mxs-auart.c index 13cf773..f42b6ad 100644 > > --- a/drivers/tty/serial/mxs-auart.c > > +++ b/drivers/tty/serial/mxs-auart.c > > @@ -858,6 +858,30 @@

[GIT PULL] ARC fixes for 4.2-rc3

2015-07-15 Thread Vineet Gupta
Hi Linus, Please pull. Thx, -Vineet ---> The following changes since commit d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754: Linux 4.2-rc1 (2015-07-05 11:01:52 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/

Re: [PATCH v2 2/2] ASoC: Drop owner assignment from platform_driver

2015-07-15 Thread Krzysztof Kozlowski
On 15.07.2015 13:21, Krzysztof Kozlowski wrote: > platform_driver does not need to set an owner because > platform_driver_register() will set it. > > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v1: > 1. None > --- D'oh! I forgot to include ack from Koro Chen given here:

RE: megaraid_sas: "FW in FAULT state!!", how to get more debug output? [BKO63661]

2015-07-15 Thread Jean Delvare
Le Friday 10 July 2015 à 19:46 +0530, Kashyap Desai a écrit : > > > > I am about to commit the patch that was successfully tested by the > > customer on > > SLES 12, but I'm a bit confused. The upstream patch you referred to is: > > > >

[PATCH v2 2/2] ASoC: Drop owner assignment from platform_driver

2015-07-15 Thread Krzysztof Kozlowski
platform_driver does not need to set an owner because platform_driver_register() will set it. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. None --- sound/soc/mediatek/mt8173-max98090.c | 1 - sound/soc/mediatek/mt8173-rt5650-rt5676.c | 1 - sound/soc/mediatek/mtk-afe-pcm.c

[PATCH v2 1/2] ASoC: Drop owner assignment from i2c_driver

2015-07-15 Thread Krzysztof Kozlowski
i2c_driver does not need to set an owner because i2c_register_driver() will set it. Signed-off-by: Krzysztof Kozlowski --- The coccinelle script which generated the patch was sent here: http://www.spinics.net/lists/kernel/msg2029903.html Changes since v1: 1. Rebased on next-20150714 2.

Re: [PATCH] phy: ulpi_phy: Add const qualifier to ops

2015-07-15 Thread Axel Lin
2015-06-05 8:27 GMT+08:00 Axel Lin : > The ops is never changed in ulpi_phy_create(), so make it const. Hi Kishon, Would you pick up this patch? Without this patch, passing a const struct phy_ops* to ulip_phy_create will have compiler warning. It should be fine to pass a const struct phy_ops* to

[PATCH] arm64: dts: sprd: adding ETM entries to Spreadtrum SC9836

2015-07-15 Thread Chunyan Zhang
Since ETMv4 driver has been merged, this patch adds ETM nodes for SC9836, and four funnel input ports to connect with ETM output ports. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts/sprd/sc9836.dtsi | 99 ++-- 1 file changed, 94 insertions(+), 5

Re: [PATCH v2 04/23] staging: rtl8192e: Remove unused enums

2015-07-15 Thread Mateusz Kulikowski
On July 15, 2015 8:34:02 AM GMT+02:00, Jakub Sitnicki wrote: >On Tue, Jul 14, 2015 at 10:04 PM CEST, Mateusz Kulikowski > wrote: >> Remove ack_policy enum and some unused RTL_DEBUG enums. >> >> Signed-off-by: Mateusz Kulikowski >> --- > >[snip] > >> diff --git

Re: [PATCH RESEND] phy: tusb1210: Use devm_gpiod_get_optional for optional GPIOs

2015-07-15 Thread Axel Lin
2015-06-20 15:39 GMT+08:00 Axel Lin : > Also simplify the code a bit by specify direction and initial value for > output in devm_gpiod_get_optional function. > > Signed-off-by: Axel Lin > Acked-by: Heikki Krogerus > Acked-by: Kishon Vijay Abraham I > --- > Hi > This patch was sent on

Purchasing/TENS massager products/Aukewel Co., ltd

2015-07-15 Thread Woody Wu
Dear Client, Have a good day! Glad to learn you're on the market of TENS massager products. We are the manufacture for TENS massager devices since 2000. Have ISO13485:2003 Medical,FDA approved and Europe CE certification. We keep good quality and reliable cooperation for global valued customers.

Re: [PATCH v2 04/23] staging: rtl8192e: Remove unused enums

2015-07-15 Thread Jakub Sitnicki
On Tue, Jul 14, 2015 at 10:04 PM CEST, Mateusz Kulikowski wrote: > Remove ack_policy enum and some unused RTL_DEBUG enums. > > Signed-off-by: Mateusz Kulikowski > --- [snip] > diff --git a/drivers/staging/rtl8192e/rtllib_debug.h > b/drivers/staging/rtl8192e/rtllib_debug.h > index

[PATCH 1/2] mm/page_owner: fix possible access violation

2015-07-15 Thread Joonsoo Kim
When I tested my new patches, I found that page pointer which is used for setting page_owner information is changed. This is because page pointer is used to set new migratetype in loop. After this work, page pointer could be out of bound. If this wrong pointer is used for page_owner, access

[PATCH 2/2] mm/page_owner: set correct gfp_mask on page_owner

2015-07-15 Thread Joonsoo Kim
Currently, we set wrong gfp_mask to page_owner info in case of isolated freepage by compaction and split page. It causes incorrect mixed pageblock report that we can get from '/proc/pagetypeinfo'. This metric is really useful to measure fragmentation effect so should be accurate. This patch fixes

[PATCH v3 10/46] usb: gadget: bcm63xx_udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/bcm63xx_udc.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c

[PATCH v3 08/46] usb: gadget: amd5536udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/amd5536udc.c | 57 ++--- 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/drivers/usb/gadget/udc/amd5536udc.c

[PATCH v3 18/46] usb: gadget: gr_udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/gr_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c index c886887..8aa2593 100644 ---

[PATCH v3 17/46] usb: gadget: goku_udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/goku_udc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 9e8d842..46b8d14 100644 ---

[PATCH v3 14/46] usb: gadget: fsl_qe_udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_qe_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index e0822f1..5fb6f8b

[PATCH 2/2] mm/cma_debug: correct size input to bitmap function

2015-07-15 Thread Joonsoo Kim
In CMA, 1 bit in bitmap means 1 << order_per_bits pages so size of bitmap is cma->count >> order_per_bits rather than just cma->count. This patch fixes it. Signed-off-by: Joonsoo Kim --- mm/cma_debug.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/cma_debug.c

Re: [PATCH RFC 0/4] change sb_writers to use percpu_rw_semaphore

2015-07-15 Thread Jan Kara
On Tue 14-07-15 14:41:13, Dave Hansen wrote: > On 07/14/2015 02:22 PM, Oleg Nesterov wrote: > >> Using my little write-1-byte test (under will-it-scale), your 4 patches > >> improves the number of writes/sec by 12%. My 3 patches improve the > >> number of writes/sec by 32%. > > I looked at it

[PATCH v3 20/46] usb: gadget: m66592-udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/m66592-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c index 309706f..e404553

[PATCH v3 23/46] usb: gadget: net2272: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2272.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index 195baf3..34ec1ec 100644 ---

[PATCH] lib/decompress: Set the compressor name to NULL on error

2015-07-15 Thread Aneesh Kumar K.V
Without this we end up using the previous name of the compressor in the loop in unpack_rootfs. For example we get errors like "compression method gzip not configured" even when we have CONFIG_DECOMPRESS_GZIP enabled. Signed-off-by: Aneesh Kumar K.V --- lib/decompress.c | 5 - 1 file

[PATCH v3 27/46] usb: gadget: pxa25x_udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pxa25x_udc.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c index

[PATCH v3 29/46] usb: gadget: r8a66597-udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/r8a66597-udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index 0293f71..baa0609

[PATCH v3 34/46] usb: musb: gadget: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/musb/musb_gadget.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 625d482f..043248a 100644 ---

Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional

2015-07-15 Thread Pavel Machek
On Tue 2015-07-14 22:24:51, Len Brown wrote: > From: Len Brown > > The Linux kernel suspend path has traditionally invoked sys_sync(). > > But sys_sync() can be expensive, and some systems do not want > to pay the cost of sys_sync() on every suspend. Have you measured how expesive it can be,

[PATCH v3 35/46] usb: renesas: gadget: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/renesas_usbhs/mod_gadget.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index dc2aa32..ed8d890

Re: perf: fuzzer triggered warning in intel_pmu_drain_pebs_nhm()

2015-07-15 Thread Stephane Eranian
On Fri, Jul 3, 2015 at 9:49 PM, Vince Weaver wrote: > On Fri, 3 Jul 2015, Peter Zijlstra wrote: > >> That said, its far too warm and I might just not be making sense. > > you need to come visit Maine! Although I am not sure the cooler weather > necessarily improves my kernel debugging skills. >

[PATCH v3 40/46] usb: gadget: epautoconf: rework ep_matches() function

2015-07-15 Thread Robert Baldyga
Rework ep_matches() function to make it shorter and more readable. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 87 + 1 file changed, 35 insertions(+), 52 deletions(-) diff --git a/drivers/usb/gadget/epautoconf.c

Re: [PATCH 0/2] ARM-OMAP2+: Deletion of unnecessary checks before two function calls

2015-07-15 Thread Tony Lindgren
* SF Markus Elfring [150625 04:35]: > From: Markus Elfring > Date: Thu, 25 Jun 2015 13:24:35 +0200 > > Some functions which release a system resource tolerate the passing > of a null pointer. I do not see a need because of this fact > that a function caller repeats a corresponding check. > >

[PATCH v2 7/8] mfd: pm8921: Implement irq_get_irqchip_state

2015-07-15 Thread Bjorn Andersson
Implement irq_chip->irq_get_irqchip_state to make it possible for PMIC block drivers to access the IRQ real time status bits. The status bits are used for various kinds of input signals, e.g. GPIO. Signed-off-by: Bjorn Andersson --- Changes since v1: - Drop extra check for !chip - Simplify

[PATCH v2 8/8] pinctrl: qcom: ssbi: Family A gpio & mpp drivers

2015-07-15 Thread Bjorn Andersson
This introduces pinctrl drivers for gpio and mpp blocks found in family A PMICs. Tested-by: Srinivas Kandagatla Signed-off-by: Bjorn Andersson

[PATCH v2 5/8] pinctrl: qcom: spmi-mpp: Add support for setting analog output level

2015-07-15 Thread Bjorn Andersson
When the MPP is configured for analog output the output level is selected by the AOUT_CTL register, this patch makes it possible to control this. Signed-off-by: Bjorn Andersson --- Changes since v1: - Assign aout_level in pmic_mpp_populate() .../devicetree/bindings/pinctrl/qcom,pmic-mpp.txt

[PATCH v3 41/46] usb: gadget: add 'ep_match' callback to usb_gadget_ops

2015-07-15 Thread Robert Baldyga
Add callback that is called by epautoconf to allow UDC driver match the best endpoint for specific descriptor. It's intended to supply mechanism which allows to get rid of chip-specific endpoint matching code from epautoconf. If gadget has set 'ep_match' callback we prefer to call it first, and

[PATCH v3 45/46] usb: gadget: goku_udc: add goku_match_ep() function

2015-07-15 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga

[PATCH v3 43/46] usb: gadget: move find_ep() from epautoconf to gadget.h

2015-07-15 Thread Robert Baldyga
Move find_ep() function to gadget.h, rename it to gadget_find_ep_by_name() and make it static inline. It can be used in UDC drivers, especially in 'match_ep' callback after moving chip-specific endpoint matching logic from epautoconf to UDC drivers. Replace all calls of find_ep() function with

[PATCH] clk: mediatek: Export CPU mux clocks for CPU frequency control

2015-07-15 Thread Pi-Cheng Chen
From: "pi-cheng.chen" This patch adds CPU mux clocks which are used by Mediatek cpufreq driver for intermediate clock source switching. Signed-off-by: Pi-Cheng Chen Reviewed-by: Daniel Kurtz --- Changes in v4: - Address comments for v3 - Rebase to the patch that adds 13mhz clock for MT8173[1]

[PATCH v3 46/46] usb: musb: gadget: add musb_match_ep() function

2015-07-15 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga

[PATCH v3 39/46] usb: gadget: epautoconf: remove ep and desc configuration from ep_matches()

2015-07-15 Thread Robert Baldyga
As function ep_matches() is used to match endpoint with usb descriptor it's highly unintuitive that it modifies endpoint and descriptor structures fields. This patch moves code configuring ep and desc from ep_matches() to usb_ep_autoconfig_ss(), so now function ep_matches() does nothing more than

[PATCH v3 42/46] usb: gadget: move ep_matches() from epautoconf to udc-core

2015-07-15 Thread Robert Baldyga
Move ep_matches() function to udc-core and rename it to usb_gadget_ep_match_desc(). This function can be used by UDC drivers in 'match_ep' callback to avoid writing lots of repetitive code. Replace all calls of ep_matches() with usb_gadget_ep_match_desc(). Signed-off-by: Robert Baldyga ---

[PATCH v3 36/46] usb: gadget: atmel_usba_udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/atmel_usba_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index

[PATCH v3 44/46] usb: gadget: net2280: add net2280_match_ep() function

2015-07-15 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga

[PATCH v3 38/46] usb: gadget: epautoconf: remove pxa quirk from ep_matches()

2015-07-15 Thread Robert Baldyga
The same effect can be achieved by using capabilities flags, so now we can get rid of handling of hardware specific limitations in generic code. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 5 - drivers/usb/gadget/udc/pxa25x_udc.c | 9 +++-- 2 files changed, 3

[PATCH v3 37/46] usb: gadget: epautoconf: add endpoint capabilities flags verification

2015-07-15 Thread Robert Baldyga
Introduce endpoint matching mechanism basing on endpoint capabilities flags. We check if endpoint supports transfer type and direction requested in ep descriptor. Since we have this new endpoint matching mechanism there is no need to have old code guessing endpoint capabilities basing on its name,

[PATCH v3 31/46] usb: gadget: s3c2410_udc: add ep capabilities support

2015-07-15 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c2410_udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c index 5d9aa81..eb3571e

<    7   8   9   10   11   12   13   14   15   16   >