Re: [PATCH 0/2] staging: COMEDI: checkpatch.pl cleanups in comedi.h

2015-12-11 Thread Ian Abbott
On 10/12/15 14:57, Moritz König wrote: This patchset fixes all the warnings and legitimate checks of checkpatch.pl in comedi.h. The following warnings were fixed: * WARNING: Block comments use * on subsequent lines * WARNING: Block comments use a trailing */ on a separate line The following

[PATCH net] stmmac: dwmac-sunxi: Call exit cleanup function in probe error path

2015-12-11 Thread Chen-Yu Tsai
dwmac-sunxi has 2 callbacks that were called from stmmac_platform as part of the probe and remove sequences. Ater the conversion of dwmac-sunxi into a standalone platform driver, the .init function is called before calling into the stmmac driver core, but .exit is not called to clean up if stmmac

Re: [RFC PATCH 5/8] arm64: parse cpu capacity from DT

2015-12-11 Thread Juri Lelli
Hi, On 10/12/15 14:15, Dietmar Eggemann wrote: > On 23/11/15 14:28, Juri Lelli wrote: > > With the introduction of cpu capacity bindings, CPU capacities can now be > > extracted from DT. Add parsing of such information at boot time. Also, > > store such information using per CPU variables, as we d

Re: [RFC PATCH 2/8] Documentation: arm: define DT cpu capacity bindings

2015-12-11 Thread Juri Lelli
Hi, On 10/12/15 14:14, Dietmar Eggemann wrote: > On 01/12/15 11:20, Juri Lelli wrote: > > Hi Vincent, > > > > On 30/11/15 10:59, Vincent Guittot wrote: > >> Hi Juri, > >> > >> On 24 November 2015 at 11:54, Juri Lelli wrote: > > [...] > > > +== >

Re: [PATCH] MAINTAINERS: Add missing platform maintainers for dts files

2015-12-11 Thread Sudeep Holla
On 10/12/15 23:38, Rob Herring wrote: Platform dts files need to be reviewed primarily by the platform maintainers as dts files typically go in thru their trees. Add the missing paths where there are existing maintainers listed. Signed-off-by: Rob Herring --- MAINTAINERS | 20 ++

Re: [RFC PATCH 3/8] arm: parse cpu capacity from DT

2015-12-11 Thread Juri Lelli
Hi, On 10/12/15 14:14, Dietmar Eggemann wrote: > On 23/11/15 14:28, Juri Lelli wrote: > > With the introduction of cpu capacity bindings, CPU capacities can now be > > extracted from DT. Add parsing of such information at boot time. We keep > > code that can produce same information, based on diff

Re: [PATCH 1/2] usb: serial: remove redundant conditions

2015-12-11 Thread Johan Hovold
On Fri, Dec 11, 2015 at 06:46:41AM -0300, Geyslan G. Bem wrote: > This patch removes redundant conditions. > > (!A || (A && B)) is the same as (!A || B). > > Tested by compilation only. > Caught by cppcheck. > > Signed-off-by: Geyslan G. Bem You forgot to update the commit summary (to include

Re: [PATCH v1 7/8] ARM: dts: rockchip: add core rk3228 dtsi

2015-12-11 Thread Heiko Stübner
Hi Jeffy, Am Freitag, 11. Dezember 2015, 09:53:59 schrieb Jeffy Chen: > On 2015-12-10 8:32, Heiko Stuebner wrote: > > Am Mittwoch, 9. Dezember 2015, 17:04:12 schrieb Jeffy Chen: > >> Initial release for rk3228 shared dtsi. > >> > >> Signed-off-by: Jeffy Chen > >> --- > >> > >> arch/arm/boot/d

Re: [PATCH] hisi_sas: use platform_get_irq()

2015-12-11 Thread John Garry
On 10/12/2015 20:08, Rob Herring wrote: On Thu, Dec 10, 2015 at 9:02 AM, John Garry wrote: It is preferred that drivers use platform_get_irq() instead of irq_of_parse_and_map(), so replace. You may be able to stop including of_irq.h with this change. Otherwise, Right, I don't think it is r

Re: [PATCH] net/macb: add support for resetting PHY using GPIO

2015-12-11 Thread Sascha Hauer
On Fri, Dec 11, 2015 at 10:40:22AM +0100, Gregory CLEMENT wrote: > Hi Sascha, > > On ven., déc. 11 2015, Sascha Hauer wrote: > > > On Thu, Dec 10, 2015 at 04:08:08PM +0100, Gregory CLEMENT wrote: > >> Hi Sascha, > >> > >> On jeu., déc. 10 2015, Sascha Hauer wrote: > >> > >> > Hi Gregory,

Re: [PATCH] kvm: x86: move tracepoints outside extended quiescent state

2015-12-11 Thread Borislav Petkov
On Thu, Dec 10, 2015 at 07:15:19PM +0100, Paolo Bonzini wrote: > Yeah, wait_lapic_expire also have to be moved before __kvm_guest_enter. Yeah, v2 doesn't splat on the Intel box anymore but the AMD box still has, and it is a different problem. With the v2 applied, it still explodes, see below. And

Re: [PATCH 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-11 Thread Dan Carpenter
On Thu, Dec 10, 2015 at 04:14:18PM -0800, K. Y. Srinivasan wrote: > + ret = vmbus_sendpacket(device->channel, vstor_packet, > +(sizeof(struct vstor_packet) - > +vmscsi_size_delta), > +(unsigned long)request, > +

Re: [PATCH 1/2] usb: serial: remove redundant conditions

2015-12-11 Thread Geyslan G. Bem
2015-12-11 7:13 GMT-03:00 Johan Hovold : > On Fri, Dec 11, 2015 at 06:46:41AM -0300, Geyslan G. Bem wrote: >> This patch removes redundant conditions. >> >> (!A || (A && B)) is the same as (!A || B). >> >> Tested by compilation only. >> Caught by cppcheck. >> >> Signed-off-by: Geyslan G. Bem > >

[PATCH v2 1/2] drm: make drm_dev_set_unique() not use a format string

2015-12-11 Thread Nicolas Iooss
drm_dev_set_unique() uses a format string to define the unique name of a device. This feature is not used as currently all the calls to this function either use "%s" as a format string or directly use dev_name(). Even though this second kind of call does not introduce security problems, because t

[PATCH v2 2/2] drm: use dev_name as default unique name in drm_dev_alloc()

2015-12-11 Thread Nicolas Iooss
The following code pattern exists in some DRM drivers: ddev = drm_dev_alloc(&driver, parent_dev); drm_dev_set_unique(ddev, dev_name(parent_dev)); (Sometimes dev_name(ddev->dev) is used, which is the same.) As suggested in http://lists.freedesktop.org/archives/dri-devel/2015-December/0964

RE: [f2fs-dev] [PATCH 5/7] f2fs: enhance multithread dio write performance

2015-12-11 Thread Chao Yu
Hi Yunlei, > -Original Message- > From: He YunLei [mailto:heyun...@huawei.com] > Sent: Thursday, September 17, 2015 8:40 AM > To: Chao Yu > Cc: 'Jaegeuk Kim'; linux-kernel@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 5/7] f2fs: enhance multith

Re: [RFC] kprobe'ing conditionally executed instructions

2015-12-11 Thread Jon Medhurst (Tixy)
On Fri, 2015-12-11 at 00:05 -0500, David Long wrote: > There is a moderate amount of code already in kprobes on ARM and the > current ARMv8 patch to deal with conditional execution of instructions. > One aspect of how this is handled is that instructions that fail their > predicate and are not (

[PATCH 2/2] mfd: arizona: Update binding docs for selecting mono/stereo outputs

2015-12-11 Thread Charles Keepax
Update the device tree binding documentation to include the wlf,out-mono property that is used to specify whether each output is a mono or stereo output. Signed-off-by: Charles Keepax --- Documentation/devicetree/bindings/mfd/arizona.txt | 4 1 file changed, 4 insertions(+) diff --git a/Do

[PATCH 1/2] mfd: arizona: Add device tree binding to specify mono outputs

2015-12-11 Thread Charles Keepax
Add device tree bindings to support specifying outputs from the chip as mono outputs. Whilst we are doing it change the out_mono pdata from a bool to an int, because Sparse gets upset about using ARRAY_SIZE on bools. Signed-off-by: Charles Keepax --- drivers/mfd/arizona-core.c| 10 ++

Re: [PATCH 1/2] usb: serial: remove redundant conditions

2015-12-11 Thread Johan Hovold
On Fri, Dec 11, 2015 at 07:25:51AM -0300, Geyslan G. Bem wrote: > 2015-12-11 7:13 GMT-03:00 Johan Hovold : > > On Fri, Dec 11, 2015 at 06:46:41AM -0300, Geyslan G. Bem wrote: > >> This patch removes redundant conditions. > >> > >> (!A || (A && B)) is the same as (!A || B). > >> > >> Tested by comp

Re: [PATCH] net/macb: add support for resetting PHY using GPIO

2015-12-11 Thread Russell King - ARM Linux
On Fri, Dec 11, 2015 at 11:21:30AM +0100, Sascha Hauer wrote: > On Fri, Dec 11, 2015 at 10:40:22AM +0100, Gregory CLEMENT wrote: > > So I see 2 options: > > > > - leaving the phy-reset-gpios property in the ethernet node. Thanks to > > this we can use the gpiod functions, and it is still possibl

Re: [PATCH] staging: gdm72xx: fix address space parse warnings

2015-12-11 Thread Okash Khawaja
Thanks, that's a cleaner approach. Apologies for delayed reply as I'm in middle of a house move. I'll send an updated patch soon. Okash > On 2 Dec 2015, at 13:17, Dan Carpenter wrote: > > Probably it's better to create a different struct: > > struct udata_s { >unsigned int size; >void

[PATCH v2] net/macb: add support for resetting PHY using GPIO

2015-12-11 Thread Gregory CLEMENT
With device tree it is no more possible to reset the PHY at board level. Furthermore, doing in the driver allow to power down the PHY when the network interface is no more used. This reset can't be done at the PHY driver level. The PHY must be able to answer the to the mii bus scan to let the kern

Re: [RFC] kprobe'ing conditionally executed instructions

2015-12-11 Thread Russell King - ARM Linux
On Fri, Dec 11, 2015 at 10:27:13AM +, Jon Medhurst (Tixy) wrote: > On Fri, 2015-12-11 at 00:05 -0500, David Long wrote: > > There is a moderate amount of code already in kprobes on ARM and the > > current ARMv8 patch to deal with conditional execution of instructions. > > One aspect of how th

Re: radeon -Wmaybe-uninitialized crap

2015-12-11 Thread Borislav Petkov
On Mon, Dec 07, 2015 at 06:10:02PM +0100, Borislav Petkov wrote: > On Mon, Dec 07, 2015 at 04:15:22PM +, Deucher, Alexander wrote: > > Odd. Nothing related to these variables has changed in years. > > Odd indeed. Building that same config on two other boxes doesn't trip > those up so it must

Re: [PATCH] kvm: x86: move tracepoints outside extended quiescent state

2015-12-11 Thread Paolo Bonzini
On 11/12/2015 11:22, Borislav Petkov wrote: > On Thu, Dec 10, 2015 at 07:15:19PM +0100, Paolo Bonzini wrote: >> Yeah, wait_lapic_expire also have to be moved before __kvm_guest_enter. > > Yeah, v2 doesn't splat on the Intel box anymore but the AMD box still > has, and it is a different problem.

Re: [PATCH 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-11 Thread Dan Carpenter
On Thu, Dec 10, 2015 at 04:14:19PM -0800, K. Y. Srinivasan wrote: > @@ -753,27 +740,62 @@ static int storvsc_channel_init(struct hv_device > *device, bool is_fc) > VM_PKT_DATA_INBAND, > VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED); >

[PATCH 6/9] drivers: tty: 68328serial.c: Use tabs for indentation

2015-12-11 Thread Frederik Völkel
The patch replaces the spaces used for indentation at some points with tabs. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 82 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/tty/

[PATCH 9/9] drivers: tty: 68328serial.c: Move trailing statements to next line

2015-12-11 Thread Frederik Völkel
This patch moves trailing statements to the next line as checkpatch suggests. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/68328serial.c b/dr

[PATCH 3/9] drivers: tty: 68328serial.c: Do not initialize statics to 0

2015-12-11 Thread Frederik Völkel
This patch removes an initialization of a static to 0 as checkpatch suggests. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/

[PATCH 0/9] Fix checkpatch errors

2015-12-11 Thread Frederik Völkel
This patch series fixes all checkpatch error in 68328serial.c except 5 trailing whitespace errors we are unsure how to fix. Checkpatch warnings are unfixed. Maybe we send an patch series witch fix these warnings later on. Frederik Völkel (9): drivers: tty: 68328serial.c: Add missing spaces(check

[PATCH 8/9] drivers: tty: 68328serial.c: Use use same indentation for switch/case

2015-12-11 Thread Frederik Völkel
This patch fixes an indentation checkpatch error so switch and case have the same indentation. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 60 1 file changed, 30 insertions(+), 30 deletions(-) diff --

[PATCH 2/9] drivers: tty: 68328serial.c: remove unnecessary spaces(checkpatch)

2015-12-11 Thread Frederik Völkel
This patch removes unnecessary spaces reported by checkpatch. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328seria

[PATCH 5/9] drivers: tty: 68328serial.c: Remove parentheses after return

2015-12-11 Thread Frederik Völkel
This patch removes parentheses after return as checkpatch suggests. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328seria

[PATCH 1/9] drivers: tty: 68328serial.c: Add missing spaces(checkpatch)

2015-12-11 Thread Frederik Völkel
This patch adds missing spaces reported by checkpatch. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 92 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/tty/serial/68328serial.c b

[PATCH 7/9] drivers: tty: 68328serial.c: remove trailing whitespaces

2015-12-11 Thread Frederik Völkel
This patch removes trailing whitespaces reported by checkpatch. Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- 5 trailing whitespaces issues are still left. We are not sure how to fix them. --- drivers/tty/serial/68328serial.c | 88 1 file

[PATCH 4/9] drivers: tty: 68328serial.c: Fix "foo * bar" should be "foo *bar"

2015-12-11 Thread Frederik Völkel
This patch fixes checkpatch errors "foo * bar" should be "foo *bar". Signed-off-by: Frederik Völkel Signed-off-by: Lukas Braun --- drivers/tty/serial/68328serial.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/tty/serial/68328serial.c

Re: [PATCH] MAINTAINERS: Add missing platform maintainers for dts files

2015-12-11 Thread Sebastian Hesselbarth
On 11.12.2015 00:38, Rob Herring wrote: Platform dts files need to be reviewed primarily by the platform maintainers as dts files typically go in thru their trees. Add the missing paths where there are existing maintainers listed. Signed-off-by: Rob Herring --- MAINTAINERS | 20 ++

Re: [PATCH v2] usb: gadget: ether: Allow changing the MTU

2015-12-11 Thread Mike Looijmans
Just a "ping" reminder, I'd like to inquire about the status of this patch... On 30-11-15 12:18, Mike Looijmans wrote: The gadget ethernet driver supports changing the MTU, but only allows this when the USB cable is removed. The comment indicates that this is because the "peer won't know". Even

Re: Generic DT binding for IPIs

2015-12-11 Thread Qais Yousef
On 12/11/2015 12:39 AM, David Gibson wrote: On Thu, Dec 10, 2015 at 10:20:49AM +, Qais Yousef wrote: The IPIs have two properties that are different from a regular interrupts: 1. An IPI is not only received, it could also be sent. Any interrupt is sent by the device, received by an i

[PATCH v2 0/2] modify the number of masters

2015-12-11 Thread Chunyan Zhang
sw_end represents the last software master, sw_start is index of the first master, so the number of software masters should be sw_end - sw_start + 1. This patchset simply modified the similar issue in two modules. Changes since V1: * Split the only one patch of V1 into two separated patches accor

[PATCH v2 1/2] stm: the number of masters should be (sw_end - sw_start + 1)

2015-12-11 Thread Chunyan Zhang
sw_end represents the last software master, sw_start is index of the first master, so the number of software masters should be sw_end - sw_start + 1. Signed-off-by: Chunyan Zhang --- drivers/hwtracing/stm/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracin

[PATCH v2 2/2] intel_th: the number of masters should be (sw_end - sw_start + 1)

2015-12-11 Thread Chunyan Zhang
sw_end represents the last software master, sw_start is index of the first master, so the number of software masters should be sw_end - sw_start + 1. Signed-off-by: Chunyan Zhang --- drivers/hwtracing/intel_th/sth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtr

4.4-rc: 28 bioset threads on small notebook

2015-12-11 Thread Pavel Machek
Hi! I know it is normal to spawn 8 threads for every single function, root 1069 0.0 0.0 0 0 ?SDec08 0:00 [scsi_eh_0] root 1070 0.0 0.0 0 0 ?S< Dec08 0:00 [scsi_tmf_0] root 1073 0.0 0.0 0 0 ?SDec08 0:00 [scsi_e

Re: Linux 4.3.2

2015-12-11 Thread Jörg-Volker Peetz
Greg KH wrote on 12/11/15 00:40: > I'm announcing the release of the 4.3.2 kernel. > > This release fixes a bug with regards to X.509 certificates, more > details can be found in the commit log. If you don't use these > certificates, no need to upgrade from 4.3.1. Note, the bug is also in > 4.3.

Some confusion about the period of updating new function in

2015-12-11 Thread Minfei Huang
ftrace Reply-To: Hi, Steven. There is a confusion which blocks my step to go further for ftrace. Does ftrace guarantee that the replaced function is finished while ftrace is replacing the functions? In the other word, is there a possible that new function starts to run, while old function is al

Re: [PATCH] staging: gdm72xx: fix address space parse warnings

2015-12-11 Thread Dan Carpenter
On Fri, Dec 11, 2015 at 10:33:13AM +, Okash Khawaja wrote: > Thanks, that's a cleaner approach. Apologies for delayed reply as I'm in > middle of a house move. I'll send an updated patch soon. > Someone already fixed it. Thanks. regards, dan carpenter -- To unsubscribe from this list: sen

[PATCH] devcoredump: add scatterlist support

2015-12-11 Thread Johannes Berg
From: Aviya Erenfeld Add scatterlist support (dev_coredumpsg) to allow drivers to avoid vmalloc() like dev_coredumpm(), while also avoiding the module reference that the latter function requires. This internally uses dev_coredumpm() with function inside the devcoredump module, requiring removing

Re: [RFCv6 PATCH 03/10] sched: scheduler-driven cpu frequency selection

2015-12-11 Thread Juri Lelli
Hi Steve, On 08/12/15 22:19, Steve Muckle wrote: > From: Michael Turquette > > Scheduler-driven CPU frequency selection hopes to exploit both > per-task and global information in the scheduler to improve frequency > selection policy, achieving lower power consumption, improved > responsiveness/p

Re: [PATCH] ARM: dts: imx53: fix EIM_D27/29 pad UART2 configuration

2015-12-11 Thread Shawn Guo
On Mon, Dec 07, 2015 at 02:48:04PM +0100, linux-kernel-...@beckhoff.com wrote: > From: Patrick Brünn > > On Tue, Dec 1, 2015 at 20:52:25 PST, shawn...@kernel.org wrote: > > On Thu, Nov 26, 2015 at 11:59:15AM +0100, linux-kernel-...@beckhoff.com > > wrote: > >> MX53_PAD_EIM_D27__UART2_RXD_MUX and

Re: [PATCH v3 4/4] printk/nmi: Increase the size of NMI buffer and make it configurable

2015-12-11 Thread Geert Uytterhoeven
On Wed, Dec 9, 2015 at 2:21 PM, Petr Mladek wrote: > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -866,6 +866,28 @@ config LOG_CPU_MAX_BUF_SHIFT > 13 => 8 KB for each CPU > 12 => 4 KB for each CPU > > +config NMI_LOG_BUF_SHIFT > + int "Temporary

Re: [RFCv6 PATCH 07/10] sched/fair: jump to max OPP when crossing UP threshold

2015-12-11 Thread Juri Lelli
Hi Steve, On 08/12/15 22:19, Steve Muckle wrote: > Since the true utilization of a long running task is not detectable > while it is running and might be bigger than the current cpu capacity, > create the maximum cpu capacity head room by requesting the maximum > cpu capacity once the cpu usage pl

Re: [PATCH] X.509: Fix the time validation [ver #3]

2015-12-11 Thread David Howells
Greg Kroah-Hartman wrote: > David, any reason you didn't put a cc: stable in the commit for it to be > picked up in the stable releases? I did cc it to stable. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: brcmfmac: only lock and unlock fws if fws is not null

2015-12-11 Thread Kalle Valo
> From: Colin Ian King > > There is a null ptr check for fws to set bcmc_credit_check, however, > there a lock and unlock on fws should only performed if fwts is > also not null to also avoid a potential null pointer deference. > > Signed-off-by: Colin Ian King > Acked-by: Arend van Spriel T

Re: [PATCH v2 2/4] rockchip: add clock controller for rk3228

2015-12-11 Thread Heiko Stübner
Hi Jeffy, Am Freitag, 11. Dezember 2015, 09:30:50 schrieb Jeffy Chen: > Add the clock tree definition for the new rk3228 SoC. > > Signed-off-by: Jeffy Chen applied to my clk branch for 4.5 [0], with minimal cosmetic adjustments to two gates and shortening of the copyright lines. Heiko [0]

Re: [PATCH] staging: gdm72xx: fix address space parse warnings

2015-12-11 Thread Okash Khawaja
> On 11 Dec 2015, at 10:52, Dan Carpenter wrote: > >> On Fri, Dec 11, 2015 at 10:33:13AM +, Okash Khawaja wrote: >> Thanks, that's a cleaner approach. Apologies for delayed reply as I'm in >> middle of a house move. I'll send an updated patch soon. > > Someone already fixed it. Thanks. >

rcu_preempt self-detected stall on CPU from 4.4-rc4, since 3.17

2015-12-11 Thread Ross Green
I have been getting these stalls in kernels going back to 3.17. This stall occurs usually under light load but often requires several days to show itself. I have not found any simple way to trigger the stall. Indeed heavy workloads seems not to show the fault. Anyone have any thoughts here? The

Re: [PATCH v2 14/14] perf tools: Move subcommand framework and related utils to libapi

2015-12-11 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 10, 2015 at 03:35:24PM -0600, Josh Poimboeuf escreveu: > On Thu, Dec 10, 2015 at 08:54:45AM -0600, Josh Poimboeuf wrote: > > On Thu, Dec 10, 2015 at 10:40:39AM +0900, Namhyung Kim wrote: > > > > - usage.c: used in several places for die() and error(), but these are > > > > trivial fun

[PATCH 1/3] ARCv2: intc: Fix random perf irq disabling in SMP setup

2015-12-11 Thread Vineet Gupta
As part of fixing another perf issue, observed that after a perf run, the interrupt got disabled on one/more cores. | [ARCLinux]# cat /proc/interrupts | grep perf | 20:0 0 0 0 ARCv2 core Intc 20 ARC perf counters | | [ARCLinux]# perf record -c 2 /sbin/hackbench | Running

[PATCH 2/3] ARC: intc: No need to clear IRQ_NOAUTOEN

2015-12-11 Thread Vineet Gupta
arc_request_percpu_irq() is called by all cores to request/enable percpu irq. It has some "prep" calls needed by genirq: - setup percpu devid - disable IRQ_NOAUTOEN However given that enable_percpu_irq() is called enayways, latter can be avoided. We are now left with irq_set_percpu_devid() quir

[PATCH 3/3] ARCv2: perf: Ensure perf intr gets enabled on all cores

2015-12-11 Thread Vineet Gupta
This was the second perf intr issue perf sampling on multicore requires intr to be enabled on all cores. ARC perf probe code used helper arc_request_percpu_irq() which calls - request_percpu_irq() on core0 - enable_percpu_irq() on all all cores (including core0) genirq requires that request be

Re: [RFCv6 PATCH 10/10] sched: rt scheduler sets capacity requirement

2015-12-11 Thread Juri Lelli
On 08/12/15 22:19, Steve Muckle wrote: > From: Vincent Guittot > > RT tasks don't provide any running constraints like deadline ones > except their running priority. The only current usable input to > estimate the capacity needed by RT tasks is the rt_avg metric. We use > it to estimate the CPU c

Re: percpu irq APIs and perf

2015-12-11 Thread Marc Zyngier
On Fri, 11 Dec 2015 05:26:02 + Vineet Gupta wrote: Hi Vineet, > Hi Marc, > > On Thursday 10 December 2015 03:26 PM, Marc Zyngier wrote: > > Hi Vinnet, > > > > On 10/12/15 09:25, Vineet Gupta wrote: > >> Hi Marc / Daniel / Jason, > >> > >> I had a couple of questions about percpu irq API, ho

[PATCH v3 01/36] Documentation: usb: update usb-tools repository address

2015-12-11 Thread Robert Baldyga
It seems that gitotious repository is no longer accessible, so we replace it with address to active repository. Signed-off-by: Robert Baldyga --- Documentation/usb/gadget-testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/usb/gadget-testing.txt b/Docum

[PATCH v3 06/36] usb: gadget: composite: introduce new descriptors format

2015-12-11 Thread Robert Baldyga
Introduce new structures designed to contain information about descriptors. It splits descriptors in two categories: 1. Entity descs - interface and endpoint descriptors 2. Vendor descs - all other vendor and class specific descriptors Entity descriptors are embedded in hierarchy of structures whi

[PATCH v3 07/36] usb: gadget: composite: add functions for descriptors handling

2015-12-11 Thread Robert Baldyga
Introduce functions and macros allowing to create and assign descriptors to function easily. Macros build structure hierarchy using pointers to USB descriptors, while functions assigning them to gadget make a deep copy. It allows for easy conversion of USB functions to make them using new descripto

[PATCH v3 04/36] usb: gadget: f_loopback: free requests in loopback_disable()

2015-12-11 Thread Robert Baldyga
USB requests in Loopback function are allocated in loopback_get_alt() function, so we prefer to free them rather in loopback_disable() than in loopback_complete() when request is completed with error. It provides better symetry in resource management and improves code readability. Signed-off-by: R

[PATCH v3 19/36] usb: gadget: configfs: add new composite API support

2015-12-11 Thread Robert Baldyga
Handle functions using new API properly. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/configfs.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 0557f80..153adf7 100644 --- a/drivers/usb/gadge

[PATCH v3 14/36] usb: gadget: composite: introduce clear_alt() operation

2015-12-11 Thread Robert Baldyga
Introduce clear_alt() callback, which is called when prevoiusly set altsetting is cleared. This can take place in two situations: - when another altsetting is selected, - during function disable. Thanks to symetry to set_alt(), clear_alt() simplifies managing of resources allocated in set_alt(). I

[PATCH v3 21/36] usb: gadget: f_sourcesink: convert to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Change set_alt() implementation and implement clear_alt() operation. Get rid of get_alt() callback, as now USB_REQ_GET_INTERFACE is handled automatically by composite framwework. Remove unnecessary boilerplate code.

[PATCH v3 10/36] usb: gadget: composite: handle vendor descs

2015-12-11 Thread Robert Baldyga
After binding all configurations in gadget, call prep_vendor_descs() for each function which uses new API and implements this callback. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/composite.c | 31 +++ include/linux/usb/composite.h | 2 ++ 2 files changed,

[PATCH v3 26/36] usb: gadget: f_acm: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH] ASoC: wm8974: set cache type for regmap

2015-12-11 Thread Mans Rullgard
Attempting to use this codec driver triggers a BUG() in regcache_sync() since no cache type is set. The register map of this device is fairly small and has few holes so a flat cache is suitable. Signed-off-by: Mans Rullgard --- sound/soc/codecs/wm8974.c | 1 + 1 file changed, 1 insertion(+) di

[PATCH v3 36/36] usb: gadget: f_mass_storage: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_mass_storage.c | 91 +--- driv

[PATCH v3 32/36] usb: gadget: f_phonet: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH v3 34/36] usb: gadget: f_uac1: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

Re: [PATCHv3 5/5] arm-cci: CCI-500: Work around PMU counter writes

2015-12-11 Thread Suzuki K. Poulose
On 10/12/15 15:42, Mark Rutland wrote: On Tue, Nov 17, 2015 at 06:03:27PM +, Suzuki K. Poulose wrote: The CCI PMU driver sets the event counter to the half of the maximum value(2^31) it can count before we start the counters via pmu_event_set_period(). This is done to give us the best chance

[PATCH v3 28/36] usb: gadget: f_ncm: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH v3 33/36] usb: gadget: f_subset: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH v3 29/36] usb: gadget: f_printer: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH v3 35/36] usb: gadget: f_uac2: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH v3 25/36] usb: gadget: f_hid: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Move cdev initialization to hidg_alloc(). Remove boilerplate code. Signed-off

Re: [tip:locking/core] sched/wait: Fix signal handling in bit wait helpers

2015-12-11 Thread Paul Turner
On Thu, Dec 10, 2015 at 5:09 AM, Peter Zijlstra wrote: > On Thu, Dec 10, 2015 at 08:30:01AM +1100, NeilBrown wrote: >> On Wed, Dec 09 2015, Peter Zijlstra wrote: >> >> > On Wed, Dec 09, 2015 at 12:06:33PM +1100, NeilBrown wrote: >> >> On Tue, Dec 08 2015, Peter Zijlstra wrote: >> >> >> >> >> >> >>

[PATCH v3 27/36] usb: gadget: f_eem: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH v3 22/36] usb: gadget: f_ecm: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Get rid of get_alt() which now is handled automatically. Remove boilerplate co

Re: rcu_preempt self-detected stall on CPU from 4.4-rc4, since 3.17

2015-12-11 Thread Peter Zijlstra
On Fri, Dec 11, 2015 at 10:17:33PM +1100, Ross Green wrote: > I have been getting these stalls in kernels going back to 3.17. > > This stall occurs usually under light load but often requires several > days to show itself. I have not found any simple way to trigger the > stall. Indeed heavy worklo

[PATCH v3 31/36] usb: gadget: f_obex: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadg

[PATCH v3 23/36] usb: gadget: f_rndis: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Implement prep_vendor_descs() to supply class specific descriptors. Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Change USB request lifetime management - now it's all

[PATCH v3 30/36] usb: gadget: f_serial: conversion to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Change set_alt() implementation and implement clear_alt() operation. Remove boilerplate code. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_serial.c | 122 +++-- 1 fi

[PATCH v3 24/36] usb: gadget: f_hid: handle requests lifetime properly

2015-12-11 Thread Robert Baldyga
So far USB requests allocated in hidg_set_alt() were not freed. Now we free them in case of hidg_set_alt() failure (when we are not able to allocate and enqueue all the requests) or in hidg_disable() function. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/function/f_hid.c | 22 +++

[PATCH v3 20/36] usb: gadget: f_loopback: convert to new API

2015-12-11 Thread Robert Baldyga
Generate descriptors in new format and attach them to USB function in prep_descs(). Change set_alt() implementation and implement clear_alt() operation. Remove unnecessary boilerplate code. Call usb_config_do_bind() in legacy gadget zero, because it uses usb_add_config_only() instead of usb_add_co

Re: [PATCH 1/3] ARM: dts: rockchip: correct the name of REG8 for rk3288-evb-act8846

2015-12-11 Thread Heiko Stübner
Hi Chris Am Donnerstag, 10. Dezember 2015, 13:46:37 schrieb Chris Zhong: > According to the schematic, the name of REG8 should be vcc_tp, rather > than vcca_tp. > > Signed-off-by: Chris Zhong applied all 3 to my dts32 branch for 4.5 [after making ARM in patch3 upper case ;-) ] Thanks for keep

[PATCH v3 18/36] usb: gadget: composite: enable adding USB functions using new API

2015-12-11 Thread Robert Baldyga
Enable adding USB functions which use new API. Check if all necessary function ops are supplied and call prep_descs() to allow function register it's entity descriptors. Notice that bind() function is not called for USB functions using new API, as now bind procedure is handled for them in composite

[PATCH v3 15/36] usb: gadget: composite: handle get_alt() automatically

2015-12-11 Thread Robert Baldyga
As now we store current altsetting number for each interface, we can handle USB_REQ_GET_INTERFACE automatically. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/composite.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/us

[PATCH v3 16/36] usb: gadget: composite: add usb_function_get_ep() function

2015-12-11 Thread Robert Baldyga
Introduce function returning endpoint of given index in active altsetting of specified interface. It's intended to be used in set_alt() callback to obtain endpoints of currently selected altsetting. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/composite.c | 33 +++

Re: brcm80211: fix compare_const_fl.cocci warnings

2015-12-11 Thread Kalle Valo
> Move constants to the right of binary operators. > > Generated by: scripts/coccinelle/misc/compare_const_fl.cocci > > Signed-off-by: Fengguang Wu > Signed-off-by: Julia Lawall Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this list: send the line "unsubscr

[PATCH v3 17/36] usb: gadget: composite: add usb_get_interface_id() function

2015-12-11 Thread Robert Baldyga
Introduce function returning id of interface at given index in function. The id value is equal bInterfaceNumber field in interface descriptor. This value can be useful during preparation of class or vendor specific descriptors in prep_vendor_descs() callback. It can be also necessary to handle some

Re: [PATCH 1/6] Input: psmouse - use switch statement in psmouse_process_byte()

2015-12-11 Thread Pali Rohár
On Saturday 28 November 2015 21:13:51 Dmitry Torokhov wrote: > Instead of a series mostly exclusive "if" statements testing protocol type > of the mouse let's use "switch" statement. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Pali Rohár -- Pali Rohár pali.ro...@gmail.com -- To unsubscrib

[PATCH v3 13/36] usb: gadget: composite: enable eps before calling set_alt() callback

2015-12-11 Thread Robert Baldyga
Change set_alt() behavior for functions using new API. Before we call set_alt() callback, we disable endpoints of previously selected altsetting, and enable endpoints of currently selected altsetting, which reduces amount of boilerplate code in USB functions. We also calculate index of interface i

[PATCH v3 12/36] usb: gadget: composite: disable eps before calling disable() callback

2015-12-11 Thread Robert Baldyga
Changes meaning of disable() operation for functions using new API. Before calling disable() callback composite automatically disables endpoints of active altsettings of given USB function. This reduces amount of boilerplate code in USB functions. Signed-off-by: Robert Baldyga --- drivers/usb/ga

<    1   2   3   4   5   6   7   8   9   >