Re: [PATCH v2 16/19] ARC: [plat-eznps] Use dedicated cpu_relax()

2015-11-09 Thread Vineet Gupta
On Monday 09 November 2015 04:15 PM, Peter Zijlstra wrote: > On Mon, Nov 09, 2015 at 10:22:27AM +, Vineet Gupta wrote: >> On Monday 09 November 2015 03:35 PM, Peter Zijlstra wrote: >>> On Sat, Nov 07, 2015 at 12:52:34PM +0200, Noam Camus wrote: diff --git

Re: [PATCH v4 0/6] virtio core DMA API conversion

2015-11-09 Thread Paolo Bonzini
On 09/11/2015 13:15, Michael S. Tsirkin wrote: > Well that's not exactly true. I think we would like to make > it possible to put virtio devices behind an IOMMU on x86, > but if this means existing guests break, then many people won't be able > to use this option: having to find out which kernel

Re: [PATCH] Input: parkbd - Drop bogus __init from parkbd_allocate_serio()

2015-11-09 Thread Sudip Mukherjee
On Sat, Nov 07, 2015 at 04:53:23PM +0100, Geert Uytterhoeven wrote: > WARNING: vmlinux.o(.text+0x1056606): Section mismatch in reference from the > function parkbd_attach() to the function .init.text:parkbd_allocate_serio() > The function parkbd_attach() references > the function __init

Re: [PATCH 18/26] Input: synaptics-rmi4: Add SPI transport driver

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:41 AM, Andrew Duggan wrote: > Add a transport driver for devices using RMI4 over SPI. > > Signed-off-by: Andrew Duggan > .../devicetree/bindings/input/rmi4/rmi_spi.txt | 57 +++ Split off bindings in a separate

[PATCH v2 1/4] iio: adc: add IMX7D ADC driver support

2015-11-09 Thread Haibo Chen
Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC driver support, and the driver only support ADC software trigger. Signed-off-by: Haibo Chen --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/imx7d_adc.c |

Re: [PATCH V2 1/6] dmaengine: tegra-apb: Correct runtime-pm usage

2015-11-09 Thread Andy Shevchenko
On Mon, Nov 9, 2015 at 3:23 PM, Jon Hunter wrote: > The tegra-apb DMA driver enables runtime-pm but never calls > pm_runtime_get/put and hence the runtime-pm callbacks are never invoked. > The driver manages the clocks by directly calling clk_prepare_enable() > and

Re: [PATCH V2 1/3] scsi: mptxsas: try 64 bit DMA when 32 bit DMA fails

2015-11-09 Thread Sinan Kaya
On 11/9/2015 2:09 AM, Hannes Reinecke wrote: On 11/09/2015 02:57 AM, Sinan Kaya wrote: Current code gives up when 32 bit DMA is not supported. This problem has been observed on systems without any memory below 4 gig. This patch tests 64 bit support before bailing out to find a working

[PATCH RESEND] net: Documentation: Fix default value tcp_limit_output_bytes

2015-11-09 Thread Niklas Cassel
Commit c39c4c6abb89 ("tcp: double default TSQ output bytes limit") updated default value for tcp_limit_output_bytes Signed-off-by: Niklas Cassel --- Documentation/networking/ip-sysctl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 0/5] memcg/kmem: switch to white list policy

2015-11-09 Thread Michal Hocko
On Sat 07-11-15 23:07:04, Vladimir Davydov wrote: > Hi, > > Currently, all kmem allocations (namely every kmem_cache_alloc, kmalloc, > alloc_kmem_pages call) are accounted to memory cgroup automatically. > Callers have to explicitly opt out if they don't want/need accounting > for some reason.

Re: [RFC PATCH v6 00/17] ILP32 for ARM64

2015-11-09 Thread Arnd Bergmann
On Monday 09 November 2015 15:33:51 Andreas Schwab wrote: > Arnd Bergmann writes: > > > On Monday 09 November 2015 14:23:59 Andreas Schwab wrote: > >> Yury Norov writes: > >> > >> > This is what I run: > >> >

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-09 Thread Doug Anderson
Hi, On Mon, Nov 9, 2015 at 1:57 AM, Yunzhi Li wrote: > It seems that we are debugging two different issues, your new patch which > rewrite > the microframe scheduler doesn't resolve my problem. My patch fix chrome-os > issue > #46547 not related to the particular Microsoft

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-09 Thread Jacob Pan
On Mon, 09 Nov 2015 11:56:51 + Punit Agrawal wrote: > > actually, I was suggesting to start considering idle injection once > > frequency capped to the energy efficient point, which can be much > > higher than the lowest frequency. The idea being, deep idle power is >

[PATCH 2/3] clocksource/drivers/h8300_timer8: Separate the Kconfig option from the arch

2015-11-09 Thread Daniel Lezcano
The current Kconfig option is the H8300 arch option. In order to comply to the current rule, let's create a specific option for the timer8 and select it from the arch's Kconfig. Signed-off-by: Daniel Lezcano --- arch/h8300/Kconfig | 1 +

[GIT PULL] c6x updates for v4.4

2015-11-09 Thread Mark Salter
The following changes since commit 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f:   Linux 4.3-rc1 (2015-09-12 16:35:56 -0700) are available in the git repository at:   git://linux-c6x.org/git/projects/linux-c6x-upstreaming.git for-linux-next for you to fetch changes up to

[PATCH] dma: mic_x100: add missing spin_unlock

2015-11-09 Thread Saurabh Sengar
spin lock should be released while returning from function Signed-off-by: Saurabh Sengar --- drivers/dma/mic_x100_dma.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c index

Re: [PATCH 00/26] Consolidate patches and add support for new devices

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:34 AM, Andrew Duggan wrote: > NOTE: This patch set applies to synaptics-rmi4 branch in > Dmitry Torokhov's input tree. (...) > This patchset applies cleanly to the synaptics-rmi4 branch, but does not > successfully build because the synaptics-rmi4

Re: [PATCH v4 3/3] sched: optimize migration by forcing rmb() and updating to be called once

2015-11-09 Thread Peter Zijlstra
On Sat, Oct 24, 2015 at 01:16:21AM +0900, byungchul.p...@lge.com wrote: > +++ b/kernel/sched/core.c > @@ -1264,6 +1264,8 @@ EXPORT_SYMBOL_GPL(set_cpus_allowed_ptr); > > void set_task_cpu(struct task_struct *p, unsigned int new_cpu) > { > + unsigned int prev_cpu = task_cpu(p); > + > #ifdef

Re: [PATCH v4 5/5] pwm-pca9685: enable ACPI device found on Galileo Gen2

2015-11-09 Thread Andy Shevchenko
On Fri, 2015-10-23 at 12:16 +0300, Andy Shevchenko wrote: > There is a chip connected to i2c bus on Intel Galileo Gen2 board. > Enable it via > ACPI ID INT3492. Thierry, ping? > > Cc: Thierry Reding > Signed-off-by: Andy Shevchenko

Re: [PATCH v5 2/6] arm64: ftrace: fix a stack tracer's output under function graph tracer

2015-11-09 Thread Jungseok Lee
On Nov 6, 2015, at 3:44 PM, AKASHI Takahiro wrote: Hi Akashi, > Function graph tracer modifies a return address (LR) in a stack frame > to hook a function return. This will result in many useless entries > (return_to_handler) showing up in a stack tracer's output. > > This patch replaces such

Re: [PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN

2015-11-09 Thread Hannes Reinecke
On 11/09/2015 02:53 PM, Laurent Vivier wrote: > QEMU allows until 32 LUNs. > > Signed-off-by: Laurent Vivier > --- > drivers/scsi/ibmvscsi/ibmvscsi.c | 9 - > drivers/scsi/ibmvscsi/ibmvscsi.h | 1 + > 2 files changed, 9 insertions(+), 1 deletion(-) > Nothing to do

Re: [PATCH 22/26] Input: synaptics-rmi4 - Add F30 support

2015-11-09 Thread Benjamin Tissoires
Hey Linus, first thanks for the reviews. Much appreciated. On Mon, Nov 9, 2015 at 2:32 PM, Linus Walleij wrote: > On Fri, Nov 6, 2015 at 12:42 AM, Andrew Duggan wrote: > >> From: Benjamin Tissoires >> >> RMI4

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-09 Thread Ulf Hansson
On 9 November 2015 at 14:23, Ludovic Desroches wrote: > On Fri, Nov 06, 2015 at 04:59:29PM +0100, Ludovic Desroches wrote: >> When there is a vmmc regulator, only SD Bus Power is set to 1 in the >> Power Control Register. It means SD Bus Voltage Select field is set to

Re: [PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN

2015-11-09 Thread Laurent Vivier
On 09/11/2015 15:04, Hannes Reinecke wrote: > On 11/09/2015 02:53 PM, Laurent Vivier wrote: >> QEMU allows until 32 LUNs. >> >> Signed-off-by: Laurent Vivier >> --- >> drivers/scsi/ibmvscsi/ibmvscsi.c | 9 - >> drivers/scsi/ibmvscsi/ibmvscsi.h | 1 + >> 2 files

[PATCH] iio: adc: mxs-lradc: Prefer using the BIT macro

2015-11-09 Thread Nizam Haider
Replaces bit shifting on 1 with the BIT(x) macro Signed-off-by: Nizam Haider --- drivers/staging/iio/adc/mxs-lradc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/mxs-lradc.c b/drivers/staging/iio/adc/mxs-lradc.c index

[PATCH v4 2/3] ibmvscsi: display default value for max_id, max_lun and max_channel.

2015-11-09 Thread Laurent Vivier
As devices with values greater than that are silently ignored, this gives some hints to the sys admin to know why he doesn't see his devices... Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-)

[PATCH] unix: avoid use-after-free in ep_remove_wait_queue

2015-11-09 Thread Rainer Weikusat
An AF_UNIX datagram socket being the client in an n:1 association with some server socket is only allowed to send messages to the server if the receive queue of this socket contains at most sk_max_ack_backlog datagrams. This implies that prospective writers might be forced to go to sleep despite

[PATCH v4 3/3] ibmvscsi: Allow to configure maximum LUN

2015-11-09 Thread Laurent Vivier
This patch allows to define the maximum LUN numbers. As defined in 4.6.9 of SAM-4, the encoding of LUN is on 5 bits (max_lun=32) and the current value is only 8. Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 9 -

[PATCH v4 1/3] ibmvscsi: make parameters max_id and max_channel read-only

2015-11-09 Thread Laurent Vivier
The value of the parameter is never re-read by the driver, so a new value is ignored. Let know the user he can't modify it by removing writable attribute. Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-11-09 Thread Greg KH
On Mon, Nov 09, 2015 at 09:20:24PM +0800, maomao wrote: > Fix up block comments to make a trailing */ on a separate line > > Signed-off-by: maomao I need a "real" name here, and on the From: line in order to be able to accept this. Is this how you sign legal documents?

[PATCH v4 0/3] ibmvscsi parameter cleanup

2015-11-09 Thread Laurent Vivier
v4 udpates 3/3 description max_lun can be less or equal to 32 v3 checks that max_lun is less or equal to 31 v2 of this series only fix the format type of max_lun: drivers/scsi/ibmvscsi/ibmvscsi.c:2298:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'u64 {aka

[PATCH v2 2/4] n_tty: Ignore all read data when closing

2015-11-09 Thread Peter Hurley
On final port close (and thus final tty close), only output flow control requests in the input data should be processed. Ignore all other input data, including parity errors, overruns and breaks. Signed-off-by: Peter Hurley --- drivers/tty/n_tty.c | 2 -- 1 file

[PATCH v2 4/4] tty: Remove drivers' extra tty_ldisc_flush()

2015-11-09 Thread Peter Hurley
The tty_port_close_start() helper already flushes the tty and ldisc buffers on final close; tty drivers which use this helper need not repeat tty_ldisc_flush(). Signed-off-by: Peter Hurley --- drivers/char/pcmcia/synclink_cs.c | 3 --- drivers/tty/amiserial.c

[PATCH v2 3/4] tty: Abstract and encapsulate tty->closing behavior

2015-11-09 Thread Peter Hurley
tty->closing is exclusively used to cause the N_TTY line discipline to drop further input on final tty close (except XON/XOFF output flow control changes). In turn, this prevents the line discipline from generating new tty driver i/o requests (eg., when echoing) after the tty driver has performed

[PATCH v2 0/4] Replace tty->closing

2015-11-09 Thread Peter Hurley
Hi Greg, This series cleans up a messy and poorly documented mechanism required at tty final close to prevent drivers from crashing after h/w shutdown. Without special handling, N_TTY echoing will cause driver i/o requests _after_ h/w shutdown, which typically crashes the driver. Currently, the

[PATCH] net: caif: check return value of alloc_netdev

2015-11-09 Thread Rasmus Villemoes
I don't know if dev can actually be NULL here, but the test should be above alloc_netdev(), to avoid leaking the struct net_device in case dev is actually NULL. And of course the return value from alloc_netdev should be tested. Signed-off-by: Rasmus Villemoes --- Maybe

Re: [PATCH 06/26] Input: synaptics-rmi4 - add a reset callback

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:38 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > When a device is physically reset, the transport layer may need to reset > its state too and also do extra work to make the device accessible on the > bus.

[GIT PULL] ext2 changes for 4.4-rc1

2015-11-09 Thread Jan Kara
Hello Linus, could you please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git for_linus to get fixes for DAX for ext2 and a minor fixup for ext4 Kconfig description (leftover from ext3 removal). Top of the tree is 5726b27b09cc. The full shortlog is: Jean Delvare

Re: [PATCH 12/26] Input: synaptics-rmi4: Use generic interrupt handling

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:40 AM, Andrew Duggan wrote: > Currently the RMI4 driver expects the device to have a GPIO and manages > the that GPIO internally. However, this duplicates functionality which > could be handled by more generic interrupt handling code. Also, some >

Re: [PATCH 19/26] Input: synaptics-rmi4: Add support for packet register descriptors

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:41 AM, Andrew Duggan wrote: > Newer RMI functions make use of packet registers. Packet registers contain > several bytes of data at a RMI address instead of just a single byte. > Packet registers may also contain subpackets which may or may not be

Re: [PATCH 22/26] Input: synaptics-rmi4 - Add F30 support

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:42 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > RMI4 Function 0x30 provides support for GPIOs, LEDs and mechanical > buttons. In particular, the mechanical button support is used in > an increasing

Re: [PATCH] mmc: add ifdef around fault_create_debugfs_attr()

2015-11-09 Thread Ulf Hansson
On 6 November 2015 at 13:15, Adrien Schildknecht wrote: > FAIL_MMC_REQUEST can be used without FAULT_INJECTION_DEBUG_FS. > In this case fault_create_debugfs_attr() will always return an error and > lead to the deletion of the whole debugfs directory. > > This patch makes

Re: [RFC V2] iommu: correct group reference count

2015-11-09 Thread Peng Fan
Hi Will, On Mon, Nov 09, 2015 at 10:10:59AM +, Will Deacon wrote: >On Mon, Nov 09, 2015 at 02:13:28PM +0800, Peng Fan wrote: >> The basic flow for iommu_group_for_dev is: >> iommu_group_get_for_dev >> |-> iommu_group_get : increase reference count by 1. >> return

Re: [PATCH V3 3/4] dmaselftest: add memcpy selftest support functions

2015-11-09 Thread Timur Tabi
Sinan Kaya wrote: And why kmalloc anyway? Why not leave it on the stack? char src[] = "hello world"; ? I need to call dma_map_single on this address to convert it to a DMA address. That's why. And you can't do that with an object that's on the stack? -- Sent by an employee of the

[PATCH v3 1/3] ibmvscsi: make parameters max_id and max_channel read-only

2015-11-09 Thread Laurent Vivier
The value of the parameter is never re-read by the driver, so a new value is ignored. Let know the user he can't modify it by removing writable attribute. Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v3 0/3] ibmvscsi parameter cleanup

2015-11-09 Thread Laurent Vivier
v3 checks that max_lun is less or equal to 31 v2 of this series only fix the format type of max_lun: drivers/scsi/ibmvscsi/ibmvscsi.c:2298:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'u64 {aka long long unsigned int}' [-Wformat=] "Maximum ID: %d Maximum

[PATCH] mmc: core: set regulator not found message as debug

2015-11-09 Thread Ludovic Desroches
Turn the informative message about no vmmc/vqmmc regulator found in debug one. There is no need to indicate that something optional is missing. Moreover, it can bring confusion, people who doesn't know it is optional may consider these messages as warnings or errors. Signed-off-by: Ludovic

Re: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-09 Thread Mark Brown
On Mon, Nov 09, 2015 at 12:28:39PM +, Opensource [Adam Thomson] wrote: > On November 8, 2015 10:34, Mark Brown wrote: > > What I'm trying to figure out here is if this depends on the audio > > routing at runtime or if it's got dedicated configuration? > This feature is available for any/all

[PATCH] mvneta: add FIXED_PHY dependency

2015-11-09 Thread Arnd Bergmann
The fixed_phy infrastructure is done in a way that is optional, by providing 'static inline' helper functions doing nothing in include/linux/phy_fixed.h for all its APIs. However, three out of the four users (DSA, BCMGENET, and SYSTEMPORT) always 'select FIXED_PHY', presumably because they need

Re: [RFC/PATCH] media: omap3isp: Set maximum DMA segment size

2015-11-09 Thread Laurent Pinchart
Hello everybody, Ping ? On Tuesday 13 October 2015 16:18:36 Laurent Pinchart wrote: > The maximum DMA segment size controls the IOMMU mapping granularity. Its > default value is 64kB, resulting in potentially non-contiguous IOMMU > mappings. Configure it to 4GB to ensure that buffers get mapped

Re: [PATCH] mips: sb1250_swarm_defconfig: disable IDE subsystem

2015-11-09 Thread Maciej W. Rozycki
On Mon, 14 Sep 2015, Bartlomiej Zolnierkiewicz wrote: > This patch disables deprecated IDE subsystem in sb1250_swarm_defconfig > (no IDE host drivers are selected in this config so there is no valid > reason to enable IDE subsystem itself). Someone forgot to enable BLK_DEV_PLATFORM, it would

Re: [RFC PATCH v6 00/17] ILP32 for ARM64

2015-11-09 Thread Andreas Schwab
Arnd Bergmann writes: > On Monday 09 November 2015 14:23:59 Andreas Schwab wrote: >> Yury Norov writes: >> >> > This is what I run: >> > https://github.com/norov/glibc/tree/thunderx-ilp32-32time_toff_t >> >> That doesn't work for me: >> >>

Re: [PATCH V2 1/3] scsi: mptxsas: try 64 bit DMA when 32 bit DMA fails

2015-11-09 Thread Arnd Bergmann
On Monday 09 November 2015 09:07:36 Sinan Kaya wrote: > > On 11/9/2015 3:59 AM, Arnd Bergmann wrote: > > On Monday 09 November 2015 08:09:39 Hannes Reinecke wrote: > >> On 11/09/2015 02:57 AM, Sinan Kaya wrote: > >>> Current code gives up when 32 bit DMA is not supported. > >>> This problem has

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-09 Thread Andy Shevchenko
On Mon, Nov 9, 2015 at 12:13 PM, Sascha Hauer wrote: > This adds support for the Mediatek thermal controller found on MT8173 > and likely other SoCs. > The controller is a bit special. It does not have its own ADC, instead > it controls the on-SoC AUXADC via AHB bus

Re: [PATCH 5/5] Account certain kmem allocations to memcg

2015-11-09 Thread Michal Hocko
On Sat 07-11-15 23:07:09, Vladimir Davydov wrote: > This patch marks those kmem allocations that are known to be easily > triggered from userspace as __GFP_ACCOUNT, which makes them accounted to > memcg. For the list, see below: > > - threadinfo > - task_struct > - task_delay_info > - pid >

Re: [PATCH V2] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq

2015-11-09 Thread punit vara
On Mon, Nov 9, 2015 at 3:53 PM, Sudip Mukherjee wrote: > On Mon, Nov 09, 2015 at 03:43:38PM +0530, punit vara wrote: >> On Mon, Nov 9, 2015 at 3:31 PM, glen lee wrote: >> > >> > >> > On 2015년 11월 09일 18:05, punit vara wrote: >> >> >> >> On Mon, Nov

Re: [PATCH] iio: adc: mxs-lradc: Prefer using the BIT macro

2015-11-09 Thread kbuild test robot
Hi Nizam, [auto build test WARNING on staging/staging-testing] [also build test WARNING on v4.3 next-20151109] url: https://github.com/0day-ci/linux/commits/Nizam-Haider/iio-adc-mxs-lradc-Prefer-using-the-BIT-macro/20151109-222735 config: sparc64-allyesconfig (attached as .config) reproduce

Re: [PATCH] mips: sb1250_swarm_defconfig: disable IDE subsystem

2015-11-09 Thread Ralf Baechle
On Mon, Nov 09, 2015 at 02:33:19PM +, Maciej W. Rozycki wrote: > On Mon, 14 Sep 2015, Bartlomiej Zolnierkiewicz wrote: > > > This patch disables deprecated IDE subsystem in sb1250_swarm_defconfig > > (no IDE host drivers are selected in this config so there is no valid > > reason to enable

Re: [PATCH v4 3/3] ibmvscsi: Allow to configure maximum LUN

2015-11-09 Thread Hannes Reinecke
On 11/09/2015 03:47 PM, Laurent Vivier wrote: > This patch allows to define the maximum LUN numbers. > As defined in 4.6.9 of SAM-4, the encoding of LUN is > on 5 bits (max_lun=32) and the current value is only 8. > > Signed-off-by: Laurent Vivier > --- >

Re: [PATCH v2 2/2] gpio: zynq: Implement irq_pm_(get|put)

2015-11-09 Thread Grygorii Strashko
Hi Soren, On 11/04/2015 10:16 PM, Soren Brinkmann wrote: > The driver uses runtime PM to leverage low power techniques. For > use-cases using GPIO as interrupt the device needs to be in an > appropriate state. > > Reported-by: John Linn > Signed-off-by: Soren Brinkmann

Re: [PATCH 1/9] Staging: lustre: dir: Replace function calls

2015-11-09 Thread Dan Carpenter
If we ever need the wrapper, we can add it again. These wrappers only hurt readability because they trick you into thinking there is some reference counting or something but it's just an ordinary kfree(). regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe

RE: [PATCH 2/2] ASoC: codecs: Add da7218 codec driver

2015-11-09 Thread Opensource [Adam Thomson]
On November 8, 2015 10:34, Mark Brown wrote: > > > Hang on, is this just recording a DC value with the ADC and then looking > > > at that? > > > The RMS of the Mic signal is taken and compared to the trigger level set. If > > it's above that level then an IRQ is raised. > > What I'm trying to

Re: [PATCH 09/26] Input: synaptics-rmi4 - f11: clean up rmi_f11_finger_handler

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:39 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > abs_bit and rel_bits should not be computed at each iteration of the for > loop. > finger_press_count is unused. > Break out rmi_f11_parse_finger_state in

Re: [PATCH 10/26] Input: synaptics-rmi4 - f11: allow the top software button property to be set

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:39 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > Currently, in PS/2 we only have the PNPIds list to detect the property. > Unfortunately, it looks like the information is not embeded in the RMI4 > protocol

Re: [PATCH 11/26] Input: synaptics-rmi4 - f11: add support for kernel tracking

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:39 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > Kernel tracking is used in 2 use cases: > - filter out jumps when the sensor is not relieable enough > - provide a MT protocol B when the sensor is

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-09 Thread Ludovic Desroches
On Fri, Nov 06, 2015 at 04:59:29PM +0100, Ludovic Desroches wrote: > When there is a vmmc regulator, only SD Bus Power is set to 1 in the > Power Control Register. It means SD Bus Voltage Select field is set to 0 > that is a reserved value. The SD Host Controller specification says: > 'SD Bus

Re: [kernel-hardening] Re: [PATCH] video: constify geode ops structures

2015-11-09 Thread Dan Carpenter
Yeah, that's tricky and I don't have an answer but marking things as const is a worth while in itself because it makes static some analysis easier. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-09 Thread Jacob Pan
On Mon, 9 Nov 2015 15:15:34 +0100 Peter Zijlstra wrote: > On Mon, Nov 09, 2015 at 11:56:51AM +, Punit Agrawal wrote: > > Jacob Pan writes: > > > My take is that RT and throttling will never go well together > > > since they are

Re: [PATCH v4 3/3] ibmvscsi: Allow to configure maximum LUN

2015-11-09 Thread Laurent Vivier
On 09/11/2015 15:50, Hannes Reinecke wrote: > On 11/09/2015 03:47 PM, Laurent Vivier wrote: >> This patch allows to define the maximum LUN numbers. >> As defined in 4.6.9 of SAM-4, the encoding of LUN is >> on 5 bits (max_lun=32) and the current value is only 8. >> >> Signed-off-by: Laurent

Re: [PATCH 0/4] dm verity: add support for error correction

2015-11-09 Thread Austin S Hemmelgarn
On 2015-11-07 10:18, Mikulas Patocka wrote: On Fri, 6 Nov 2015, Sami Tolvanen wrote: On Fri, Nov 06, 2015 at 12:23:29PM -0500, Mikulas Patocka wrote: Do you have some real case where such error corrections increase longevity of some device? Yes, there have been several cases where

Re: [PATCH 15/26] Input: synaptics-rmi4: Remove unused debugfs code

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:40 AM, Andrew Duggan wrote: > Previous versions of the driver reported statistics in debugfs. > But that code has been removed and debugfs is no longer used. This > patch removes all remaining debugfs code. > > Signed-off-by: Andrew Duggan

Re: [PATCH 14/26] Input: synaptics-rmi4: Clean up Makefile

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:40 AM, Andrew Duggan wrote: > The Makefile contained commands for a different build environment. These > should be removed and are not needed in the upstream kernel. > > Signed-off-by: Andrew Duggan Acked-by: Linus Walleij

Re: [PATCH] dmaengine: pl330: Fix race in residue reporting

2015-11-09 Thread Sjoerd Simons
On Sat, 2015-11-07 at 21:40 +0900, Krzysztof Kozlowski wrote: > W dniu 06.11.2015 o 20:11, Sjoerd Simons pisze: > > When a transfer completes there is a small window between the > > descriptor > > being unset as the current active one in the thread and it being > > marked > > as done. This causes

Re: [PATCH 24/26] Input: synaptics-rmi4: use device managed memory for the data packet buffer

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:42 AM, Andrew Duggan wrote: > The data packet should use device managed memory since the buffer is > retained until the device goes away. > > Signed-off-by: Andrew Duggan Squash into F11 patch. Acked-by: Linus Walleij

Re: [PATCH 23/26] Input: synaptics-rmi4: move structures and definitions to rmi.h

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:42 AM, Andrew Duggan wrote: > Move all of the structures and function definitions needed by hid-rmi > into rmi.h so that they can be accessed by hid-rmi. > > Signed-off-by: Andrew Duggan Should be squashed into the core

Re: [PATCH v10 01/22] perf tools: Add 'perf-config' command

2015-11-09 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 09, 2015 at 11:32:54AM +0900, Taeung Song escreveu: > The perf configuration file contains many variables to change various > aspects of each of its tools, including output, disk usage, etc. > But looking through state of configuration is difficult and > there's no knowing what kind of

Re: [PATCH 1/3] context_tracking: remove duplicate enabled check

2015-11-09 Thread Rik van Riel
On 10/27/2015 09:39 PM, Paolo Bonzini wrote: > All calls to context_tracking_enter and context_tracking_exit > are already checking context_tracking_is_enabled, except the > context_tracking_user_enter and context_tracking_user_exit > functions left in for the benefit of assembly calls. > > Pull

Re: [PATCH v10 01/22] perf tools: Add 'perf-config' command

2015-11-09 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 09, 2015 at 10:58:06AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Nov 09, 2015 at 11:32:54AM +0900, Taeung Song escreveu: > > The perf configuration file contains many variables to change various > > aspects of each of its tools, including output, disk usage, etc. > > But

[PATCH 3/3] clocksource/drivers/h8300: Increase the compilation test coverage

2015-11-09 Thread Daniel Lezcano
Add the COMPILE_TEST option so the drivers can be compiled on different architecture with the 'allyesconfig' kernel configuration. Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-)

[PATCH 1/3] h8300: Rename ctlr_out/in[bwl] to raw_read/write[bwl]

2015-11-09 Thread Daniel Lezcano
For the sake of consistency, let rename all ctrl_out/in calls to the write/read calls so we have the same API consistent with the other architectures hence open the door for the increasing of the test compilation coverage. The unsigned long coercive cast is removed because all variables are set

Re: [PATCH] perf symbols/KCORE: Rebuild rbtree when adjusting symbols for kcore

2015-11-09 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 09, 2015 at 10:26:13AM +0200, Adrian Hunter escreveu: > On 06/11/15 20:51, Arnaldo Carvalho de Melo wrote: > > Em Fri, Nov 06, 2015 at 03:59:29PM +0200, Adrian Hunter escreveu: > >> The problem is when the order in memory (in kallsyms) is different > >> to the order on the dso (kcore).

Re: [PATCH v4 1/3] ibmvscsi: make parameters max_id and max_channel read-only

2015-11-09 Thread James Bottomley
On Mon, 2015-11-09 at 15:47 +0100, Laurent Vivier wrote: > The value of the parameter is never re-read by the driver, > so a new value is ignored. Let know the user he > can't modify it by removing writable attribute. This isn't correct. They're read in every time a new SCSI host is bound. I

Re: [PATCH v4 0/6] virtio core DMA API conversion

2015-11-09 Thread Michael S. Tsirkin
On Thu, Oct 29, 2015 at 06:09:45PM -0700, Andy Lutomirski wrote: > This switches virtio to use the DMA API unconditionally. I'm sure > it breaks things, but it seems to work on x86 using virtio-pci, with > and without Xen, and using both the modern 1.0 variant and the > legacy variant. > > This

[PATCH v2 1/4] tty: rocket: Remove private close_wait

2015-11-09 Thread Peter Hurley
This driver's private completion variable, close_wait, is no longer used for wait since "tty: Remove ASYNC_CLOSING checks in open()/hangup"; remove. Signed-off-by: Peter Hurley --- drivers/tty/rocket.c | 2 -- drivers/tty/rocket_int.h | 1 - 2 files changed, 3

[patch v2] vfio/pci: make an array larger

2015-11-09 Thread Dan Carpenter
Smatch complains about a possible out of bounds error: drivers/vfio/pci/vfio_pci_config.c:1241 vfio_cap_init() error: buffer overflow 'pci_cap_length' 20 <= 20 The problem is that pci_cap_length[] was defined as large enough to hold "PCI_CAP_ID_AF + 1" elements. The code in

Re: [PATCH] mmc: MMC_GOLDFISH should depend on HAS_DMA

2015-11-09 Thread Ulf Hansson
On 9 November 2015 at 10:36, Geert Uytterhoeven wrote: > If NO_DMA=y: > > ERROR: dma_unmap_sg [drivers/mmc/host/android-goldfish.ko] undefined! > ERROR: dma_alloc_coherent [drivers/mmc/host/android-goldfish.ko] > undefined! > ERROR: dma_map_sg

Re: [PATCH 02/26] Input: synaptics-rmi4 - add a common input device in rmi_driver

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:36 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > When .unified_input is set to true in the platform data, the > functions should rely on the common input node created by rmi_driver > to forward events

Re: [PATCH 01/26] Input: synaptics-rmi4 - embed the function modules in rmi_core

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:36 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > the function modules can not be auto-loaded by udev. So at boot, the > functions are not there and the device is not properly populated. > Force the

Re: [PATCH v2 16/19] ARC: [plat-eznps] Use dedicated cpu_relax()

2015-11-09 Thread Peter Zijlstra
On Mon, Nov 09, 2015 at 05:57:25PM +0530, Vineet Gupta wrote: > From e29de8efa621b825891dcc744c84965b38f6b868 Mon Sep 17 00:00:00 2001 > From: Vineet Gupta > Date: Mon, 9 Nov 2015 17:48:34 +0530 > Subject: [PATCH] ARC: cpu_relax() to be compiler barrier even for UP > >

Re: [PATCH 05/26] Input: synaptics-rmi4 - call rmi_driver_process_config_requests in enable_sensor

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:37 AM, Andrew Duggan wrote: > From: Benjamin Tissoires > > The SMBus devices have their IRQs disabled after a reset. We need to > configure them by calling rmi_driver_process_config_request() when > enabling the

Re: [PATCH 13/26] Input: synaptics-rmi4: Add device tree support for RMI4 I2C devices

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:40 AM, Andrew Duggan wrote: > Add devicetree binding for I2C devices and add bindings for optional > parameters in the function drivers. Parameters for function drivers are > defined in child nodes for each of the functions. > > Signed-off-by:

[PATCH V2 1/6] dmaengine: tegra-apb: Correct runtime-pm usage

2015-11-09 Thread Jon Hunter
The tegra-apb DMA driver enables runtime-pm but never calls pm_runtime_get/put and hence the runtime-pm callbacks are never invoked. The driver manages the clocks by directly calling clk_prepare_enable() and clk_unprepare_disable(). Fix this by replacing the clk_prepare_enable() and

[PATCH V2 4/6] dmaengine: tegra-apb: Only save channel state for those in use

2015-11-09 Thread Jon Hunter
Currently the tegra-apb DMA driver suspend/resume helpers, save and restore the registers for all channels regardless of whether they are in use or not. Change this so that only channels that have been allocated and configured are saved and restored. Signed-off-by: Jon Hunter

[PATCH V2 2/6] dmaengine: tegra-apb: Use dev_get_drvdata()

2015-11-09 Thread Jon Hunter
In the tegra_dma_runtime_suspend/resume functions, the pdev structure is not needed, and so just call dev_get_drvdata() to get the device data structure. Signed-off-by: Jon Hunter --- drivers/dma/tegra20-apb-dma.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

Re: [PATCH 20/26] Input: synaptics-rmi4: Create common functions for 2D sensors

2015-11-09 Thread Linus Walleij
On Fri, Nov 6, 2015 at 12:42 AM, Andrew Duggan wrote: > RMI4 defines two functions for 2D sensors. This patch moves some of the > code which is shared between the two functions into a new file to avoid > duplicating the code on rmi_f11.c and rmi_f12.c. > > Signed-off-by:

[PATCH v2 4/4] ARM: dts: imx7d-sdb: add ADC support

2015-11-09 Thread Haibo Chen
Add ADC support for imx7d-sdb board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 432aaf5..b2c4536 100644 ---

[PATCH v3 3/3] ibmvscsi: Allow to configure maximum LUN

2015-11-09 Thread Laurent Vivier
QEMU allows until 32 LUNs. Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 9 - drivers/scsi/ibmvscsi/ibmvscsi.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c

[PATCH v3 2/3] ibmvscsi: display default value for max_id, max_lun and max_channel.

2015-11-09 Thread Laurent Vivier
As devices with values greater than that are silently ignored, this gives some hints to the sys admin to know why he doesn't see his devices... Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-)

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-09 Thread Tomasz Nowicki
On 06.11.2015 14:22, Jiang Liu wrote: On 2015/11/6 20:40, Tomasz Nowicki wrote: On 06.11.2015 12:46, Jiang Liu wrote: On 2015/11/6 18:37, Tomasz Nowicki wrote: On 06.11.2015 09:52, Jiang Liu wrote: Sure, ARM64 (0-16M IO space) QEMU example: DWordIO (ResourceProducer, MinFixed, MaxFixed,

Re: [PATCH v2 00/20] Fix handling of compat_siginfo_t

2015-11-09 Thread Oleg Nesterov
On 11/07, Andy Lutomirski wrote: > > On Wed, Nov 4, 2015 at 4:50 PM, Amanieu d'Antras wrote: > > One issue that isn't resolved in this series is sending signals between a > > 32-bit > > process and 64-bit process. Sending a si_int will work correctly, but a > > si_ptr > >

Re: [PATCH] perf tools: Correct typing errors about '-' or '_' in config variable.

2015-11-09 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 09, 2015 at 07:54:35PM +0900, Taeung Song escreveu: > To improve perf config usability, we should probably also recognize > underscores in perf config entries, i.e. the following variants > should both work: as suggested by Ingo Molnar > > print_percent = 1 >

  1   2   3   4   5   6   7   8   9   10   >