[PATCH v3 0/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-14 Thread Lu Baolu
Hi, This patch series is about to add a sysfs attribute, through which users can disable or enable USB3 LPM (link power management) from a USB port. Once LPM is disabled from the USB port, LPM between the downstreaming device and the hub port will not be activated. This helps users to use any LPM-

[PATCH v3 2/3] usb: core: lpm: add sysfs node for usb3 lpm permit

2015-11-14 Thread Lu Baolu
USB3 LPM is default on in Linux kernel if both xHCI host controller and the USB devices declare to be LPM-capable. Unfortunately, some devices are known to work well with LPM disabled, but to be broken if LPM is enabled, although it declares the LPM capability. Users won't be able to use this kind

[PATCH v3 3/3] usb: core: lpm: remove usb3_lpm_enabled in usb_device

2015-11-14 Thread Lu Baolu
Commit 8306095fd2c1 ("USB: Disable USB 3.0 LPM in critical sections.") adds usb3_lpm_enabled member to struct usb_device. There is no reference to this member now. Hence, it could be removed. Signed-off-by: Lu Baolu --- include/linux/usb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/inc

[PATCH v3 1/3] usb: core: lpm: fix usb3_hardware_lpm sysfs node

2015-11-14 Thread Lu Baolu
Commit 655fe4effe0f ("usbcore: add sysfs support to xHCI usb3 hardware LPM") introduced usb3_hardware_lpm sysfs node. This doesn't show the correct status of USB3 U1 and U2 LPM status. This patch fixes this by replacing usb3_hardware_lpm with two nodes, usb3_hardware_lpm_u1 (for U1) and usb3_hardw

Re: [PATCH] Staging: iio: iio_simple_dummy_buffer: Typo in comments area

2015-11-14 Thread Lars-Peter Clausen
On 11/14/2015 03:44 AM, Nizam Haider wrote: > Fix simple typo in comments > > Signed-off-by: Nizam Haider Thanks for the patch. > --- > drivers/staging/iio/iio_simple_dummy_buffer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/iio/iio_simple_dummy_b

[PATCH] ftrace/x86: Fix missing ops arg on static function tracing

2015-11-14 Thread Namhyung Kim
The commit f1ab00af816e ("ftrace/x86: Get rid of ftrace_caller_setup") moved code that loads ftrace_ops into 3rd parameter but it missed to do for static tracing. Signed-off-by: Namhyung Kim --- arch/x86/kernel/mcount_64.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/mc

Re: [PATCH v3 2/7] spi: imx: replace fixed timeout with calculated one

2015-11-14 Thread Anton Bondarenko
On 11.11.2015 09:12, Sascha Hauer wrote: On Tue, Nov 10, 2015 at 09:20:06PM +0100, Anton Bondarenko wrote: On 05.11.2015 09:47, Sascha Hauer wrote: @@ -890,12 +891,40 @@ static void spi_imx_dma_tx_callback(void *cookie) complete(&spi_imx->dma_tx_completion); } +static int spi_imx_

Re: [PATCH v3 1/7] spi: imx: Fix DMA transfer

2015-11-14 Thread Anton Bondarenko
On 05.11.2015 17:51, Anton Bondarenko wrote: On 05.11.2015 09:34, Sascha Hauer wrote: On Sun, Nov 01, 2015 at 03:41:35PM +0100, Anton Bondarenko wrote: From: Anton Bondarenko RX DMA tail data handling doesn't work correctly in many cases with current implementation. It happens because SPI co

Re: [PATCH v3 7/7] spi: imx: defer spi initialization, if DMA engine is pending

2015-11-14 Thread Anton Bondarenko
On 05.11.2015 17:18, Anton Bondarenko wrote: On 05.11.2015 09:59, Sascha Hauer wrote: On Sun, Nov 01, 2015 at 03:41:41PM +0100, Anton Bondarenko wrote: From: Anton Bondarenko If SPI device supports DMA mode, but DMA controller is not yet available due to e.g. a delay in the corresponding ke

Re: [PATCH v3 6/7] spi: imx: return error from dma channel request

2015-11-14 Thread Anton Bondarenko
On 05.11.2015 17:00, Anton Bondarenko wrote: On 05.11.2015 09:56, Sascha Hauer wrote: On Sun, Nov 01, 2015 at 03:41:40PM +0100, Anton Bondarenko wrote: From: Anton Bondarenko On SDMA initialization return exactly the same error, which is reported by dma_request_slave_channel_reason(), it is

Re: [PATCH v3 6/7] spi: imx: return error from dma channel request

2015-11-14 Thread Anton Bondarenko
On 05.11.2015 17:00, Anton Bondarenko wrote: On 05.11.2015 09:56, Sascha Hauer wrote: On Sun, Nov 01, 2015 at 03:41:40PM +0100, Anton Bondarenko wrote: From: Anton Bondarenko On SDMA initialization return exactly the same error, which is reported by dma_request_slave_channel_reason(), it is

Re: [PATCH v3 5/7] spi: imx: Add support for loopback for ECSPI controllers

2015-11-14 Thread Anton Bondarenko
On 01.11.2015 15:41, Anton Bondarenko wrote: From: Anton Bondarenko Support for ECSPI loopback for IMX51,IMX53 and IMX6Q using TEST register. Signed-off-by: Mohsin Kazmi Signed-off-by: Anton Bondarenko --- drivers/spi/spi-imx.c | 19 --- 1 file changed, 16 insertions(+),

Re: [PATCH v3 4/7] spi: imx: add function to check for IMX51 family controller

2015-11-14 Thread Anton Bondarenko
On 01.11.2015 15:41, Anton Bondarenko wrote: From: Anton Bondarenko Similar to other controller type checks add check function for IMX51. This also includes IMX53 and IMX6. Signed-off-by: Anton Bondarenko --- drivers/spi/spi-imx.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletio

Re: [PATCH 1/2] KVM: kvm_is_visible_gfn can be boolean

2015-11-14 Thread Amos Jianjun Kong
On Sat, Nov 14, 2015 at 11:21 AM, Yaowei Bai wrote: > This patch makes kvm_is_visible_gfn return bool due to this particular > function only using either one or zero as its return value. > > No functional change. > > Signed-off-by: Yaowei Bai Hi Yaowei, > --- > include/linux/kvm_host.h | 2 +-

Re: [PATCH v3 3/7] spi: imx: add support for all SPI word width for DMA transfer

2015-11-14 Thread Anton Bondarenko
On 01.11.2015 15:41, Anton Bondarenko wrote: From: Anton Bondarenko DMA transfer for SPI was limited to up to 8 bits word size until now. Sync in SPI burst size and DMA bus width is necessary to correctly support other BPW supported by HW. Signed-off-by: Anton Bondarenko --- drivers/spi/s

[PATCH 2/9] GenWQE: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/misc/genwqe/card_base.c |2 +- 1 file c

[PATCH 8/9] mpt3sas: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/scsi/mpt3sas/mpt3sas_scsih.c |2 +- 1 f

[PATCH 9/9] vfio-pci: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/vfio/pci/vfio_pci.c |2 +- 1 file chang

[PATCH 7/9] crypto: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/crypto/qat/qat_common/adf_aer.c |2 +-

[PATCH 6/9] be2iscsi: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/scsi/be2iscsi/be_main.c |2 +- 1 file c

[PATCH 1/9] net: cavium: liquidio: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/net/ethernet/cavium/liquidio/lio_main.c |

[PATCH 3/9] cxgb4/cxgb4vf/csiostor: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/scsi/csiostor/csio_init.c |2 +- 1 file

[PATCH 5/9] sfc: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/net/ethernet/sfc/efx.c |2 +- 1 file ch

[PATCH 4/9] bfa: constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
This pci_error_handlers structure is never modified, like all the other pci_error_handlers structures, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- There are no dependencies between these patches. drivers/scsi/bfa/bfad.c |2 +- 1 file changed,

[PATCH 0/9] constify pci_error_handlers structures

2015-11-14 Thread Julia Lawall
Constify never-modified pci_error_handlers structures. --- drivers/crypto/qat/qat_common/adf_aer.c |2 +- drivers/misc/genwqe/card_base.c |2 +- drivers/net/ethernet/cavium/liquidio/lio_main.c |2 +- drivers/net/ethernet/sfc/efx.c |2 +- d

Re: Endless getdents() in vfat filesystem

2015-11-14 Thread Richard Weinberger
On Sat, Nov 14, 2015 at 2:19 AM, Vegard Nossum wrote: > Hi, > > Using the attached disk image I observe that getdents() never returns > the end of the directory, i.e. mounting the disk image on a loopback > device and running 'ls' under strace shows an endless stream of: > > getdents(3, /* 2 entri

[GIT PULL] sound fixes for 4.4-rc1

2015-11-14 Thread Takashi Iwai
Linus, please pull sound fixes for v4.4-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-fix-4.4-rc1 The topmost commit is 2db1a57986d37653583e67ccbf13082aadc8f25d sound fixes for 4.4-rc1 Her

[RFC PATCH 0/3] x86, kvm: Unify CPUID computation and fix MSR accessing

2015-11-14 Thread Borislav Petkov
From: Borislav Petkov Hi all, so this is something which should help fixing the MSR access to IC_CFG on AMD. The usefulness should come, however, from the unification and the additional family, model, stepping helpers in kvm in case one wants to know those of the guest CPU. Who knows, might be

[RFC PATCH 1/3] x86/cpu: Unify CPU family, model, stepping calculation

2015-11-14 Thread Borislav Petkov
From: Borislav Petkov Add generic functions which calc family, model and stepping from the CPUID_1.EAX leaf and stick them into the library we have. No functionality change. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/cpu.h| 3 +++ arch/x86/include/asm/microcode.h

[RFC PATCH 3/3] x86/cpu/amd, kvm: Satisfy guest kernel reads of IC_CFG MSR

2015-11-14 Thread Borislav Petkov
From: Borislav Petkov The kernel accesses IC_CFG MSR (0xc0011021) on AMD because it checks whether the way access filter is enabled on some F15h models, and, if so, disables it. kvm doesn't handle that MSR access and complains about it, which can get really noisy in dmesg when one starts kvm gue

[RFC PATCH 2/3] kvm: Add accessors for guest CPU's family, model, stepping

2015-11-14 Thread Borislav Petkov
From: Borislav Petkov Those give the family, model and stepping of the guest vcpu. Signed-off-by: Borislav Petkov Cc: Paolo Bonzini --- arch/x86/kvm/cpuid.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/x86/kvm/cpuid.h b/arch/x86/kvm/cpuid.h inde

Re: [PATCH v5 0/9] samsung: pmu: split up SoC specific PMU data

2015-11-14 Thread Krzysztof Kozlowski
W dniu 13.11.2015 o 18:29, Pankaj Dubey pisze: > This patch series is a part of continuation work from following series > [1], [2], [3] and [4] > > 1: exynos: Move pmu driver to driver/soc folder and add exynos7 support >http://www.spinics.net/lists/linux-samsung-soc/msg39797.html from Amit >

Re: [PATCH v5 9/9] drivers: soc: Add support for Exynos PMU driver

2015-11-14 Thread Krzysztof Kozlowski
W dniu 14.11.2015 o 00:36, Pankaj Dubey pisze: > On 13 November 2015 at 15:58, Krzysztof Kozlowski > wrote: >> >> On 13.11.2015 18:29, Pankaj Dubey wrote: >>> This patch moves Exynos PMU driver implementation from "arm/mach-exynos" >>> to "drivers/soc/samsung". This driver is mainly used for setti

Re: [PATCH v2 4/6] slab: add SLAB_ACCOUNT flag

2015-11-14 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 05:17:41PM +0100, Michal Hocko wrote: > On Tue 10-11-15 21:34:05, Vladimir Davydov wrote: > > Currently, if we want to account all objects of a particular kmem cache, > > we have to pass __GFP_ACCOUNT to each kmem_cache_alloc call, which is > > inconvenient. This patch intro

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

2015-11-14 Thread Linus Walleij
On Wed, Nov 11, 2015 at 8:10 PM, Andrew Duggan wrote: > I don't know of any non touchpad devices which use F30 and I think it's > unlikely that there would be any. I think it's really meant for controlling > the buttons and LEDs which are on the touchpad PCB. There probably isn't > much reason to

[PATCH] h8300: Replace read/write to ioread/write

2015-11-14 Thread Yoshinori Sato
read[bwl] and write[bwl] is only little-endian I/O. But h8300's peripheral of big-endian. So use ioread/write. And h8300 specific __raw_read/write is same of generic. It can remove. Signed-off-by: Daniel Lezcano Signed-off-by: Yoshinori Sato --- arch/h8300/include/asm/io.h | 45 --

Re: [PATCH 01/14] mm: memcontrol: export root_mem_cgroup

2015-11-14 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 06:41:20PM -0500, Johannes Weiner wrote: > A later patch will need this symbol in files other than memcontrol.c, > so export it now and replace mem_cgroup_root_css at the same time. > > Signed-off-by: Johannes Weiner > Acked-by: Michal Hocko Reviewed-by: Vladimir Davydov

Re: [PATCH 02/14] mm: vmscan: simplify memcg vs. global shrinker invocation

2015-11-14 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 06:41:21PM -0500, Johannes Weiner wrote: ... > diff --git a/mm/vmscan.c b/mm/vmscan.c > index a4507ec..e4f5b3c 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -411,6 +411,10 @@ static unsigned long shrink_slab(gfp_t gfp_mask, int nid, > struct shrinker *shrinker; >

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-14 Thread Mark Brown
On Sat, Nov 14, 2015 at 08:44:00AM +0100, Pavel Machek wrote: > Obviously I'll need to use the existing interfaces, or extend them as > needed. I'd expect subsystem maintainer to know if the existing > interfaces are ok or what needs to be fixed, but it seems you either > don't know how your subsy

[PATCH] lustre: constify inode_operations structures

2015-11-14 Thread Julia Lawall
The inode_operations structures are never modified, so declare them as const, like all the other inode_operations structures. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/staging/lustre/lustre/llite/file.c |2 +- drivers/staging/lustre/lustre/llite/ll

[PATCH] Orangefs: constify inode_operations structures

2015-11-14 Thread Julia Lawall
The inode_operations structures are never modified, so declare them as const, like all the other inode_operations structures. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- fs/orangefs/inode.c|2 +- fs/orangefs/namei.c|2 +- fs/orangefs/pvfs2-kernel.h

Re: Endless getdents() in vfat filesystem

2015-11-14 Thread Vegard Nossum
On 11/14/2015 11:32 AM, Richard Weinberger wrote: On Sat, Nov 14, 2015 at 2:19 AM, Vegard Nossum wrote: Hi, Using the attached disk image I observe that getdents() never returns the end of the directory, i.e. mounting the disk image on a loopback device and running 'ls' under strace shows an e

Re: [PATCH 03/14] net: tcp_memcontrol: properly detect ancestor socket pressure

2015-11-14 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 06:41:22PM -0500, Johannes Weiner wrote: > When charging socket memory, the code currently checks only the local > page counter for excess to determine whether the memcg is under socket > pressure. But even if the local counter is fine, one of the ancestors > could have brea

[PATCH] comedi: ni_6527: Fix coding style - use BIT macro

2015-11-14 Thread Ranjith Thangavel
BIT macro is used for defining BIT location instead of shifting operator - coding style issue Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/ni_6527.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/staging/comedi/d

[PATCH] comedi: pcmmio: Fix coding style - use BIT macro

2015-11-14 Thread Ranjith Thangavel
BIT macro is used for defining BIT location instead of shifting operator - coding style issue Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/pcmmio.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/comedi/drivers/p

Re: [PATCH 11/14] mm: memcontrol: do not account memory+swap on unified hierarchy

2015-11-14 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 06:41:30PM -0500, Johannes Weiner wrote: > The unified hierarchy memory controller doesn't expose the memory+swap > counter to userspace, but its accounting is hardcoded in all charge > paths right now, including the per-cpu charge cache ("the stock"). > > To avoid adding y

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

2015-11-14 Thread Andy Shevchenko
On Fri, Nov 13, 2015 at 6:39 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 clk_unprepare_disable(). > > Fi

Re: [PATCH 10/14] mm: memcontrol: generalize the socket accounting jump label

2015-11-14 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 06:41:29PM -0500, Johannes Weiner wrote: > The unified hierarchy memory controller is going to use this jump > label as well to control the networking callbacks. Move it to the > memory controller code and give it a more generic name. > > Signed-off-by: Johannes Weiner Re

RE: [PATCH v2] alarmtimer: fix unexpected rtc interrupt when system resume from S3

2015-11-14 Thread Lee, Zhuo-hao
>If you could, please CC me on future submissions? I need to add an entry to >MAINTAINERS >for alarmtimers. :) Ok, I will do that on the future submissions :) >> Before the system go to suspend (S3), if user create a timer with >> clockid CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM and set a "lar

Re: [PATCH v2 2/2] i2c: mediatek: fix i2c multi transfer issue in high speed mode

2015-11-14 Thread Daniel Kurtz
On Mon, Nov 9, 2015 at 1:43 PM, Liguo Zhang wrote: > For platform with auto restart support, when doing i2c multi transfer > in high speed, for example, doing write-then-read transfer, the master > code will occupy the first transfer, and the second transfer will be > the read transfer, the write

[PATCH v3 1/5] Staging: dgnc: dgnc_neo.c: usleep_range is preferred over udelay

2015-11-14 Thread Nizam Haider
Fix ceckpatch warning Signed-off-by: Nizam Haider --- drivers/staging/dgnc/dgnc_neo.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 8106f52..cf5bfc7 100644 --- a/drivers/staging/dgnc/dgnc_neo

[PATCH v3 5/5] Staging: dgnc: dgnc_tty: Typo error dgnc_wmove comment

2015-11-14 Thread Nizam Haider
Fix Typo errror in the comment section of dgnc_wmove Signed-off-by: Nizam Haider --- drivers/staging/dgnc/dgnc_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 48e4b90..b79eab0 100644 --- a/drivers/s

[PATCH v3 2/5] Staging: dgnc: dgnc_neo.c: Logical continuations should be on the previous line

2015-11-14 Thread Nizam Haider
Fix Checkpatch warning CHECK: Logical continuations should be on the previous line Signed-off-by: Nizam Haider --- drivers/staging/dgnc/dgnc_neo.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c inde

[PATCH v3 3/5] Staging: dgnc: dgnc_neo.c: Spaces preferred around operators

2015-11-14 Thread Nizam Haider
Fix Checkpatch warning CHECK: spaces preferred around that ' ' Signed-off-by: Nizam Haider --- drivers/staging/dgnc/dgnc_neo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 76d9376..93ec375 100644

[PATCH v3 4/5] Staging: dgnc: dgnc_neo.c Braces {} should be used on all arms of this statement

2015-11-14 Thread Nizam Haider
Fix Checlpatch warning HECK: braces {} should be used on all arms of this statement Signed-off-by: Nizam Haider --- drivers/staging/dgnc/dgnc_neo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 93ec

Re: Endless getdents() in vfat filesystem

2015-11-14 Thread OGAWA Hirofumi
Vegard Nossum writes: > On 11/14/2015 11:32 AM, Richard Weinberger wrote: >> On Sat, Nov 14, 2015 at 2:19 AM, Vegard Nossum >> wrote: >>> Hi, >>> >>> Using the attached disk image I observe that getdents() never returns >>> the end of the directory, i.e. mounting the disk image on a loopback >>

Re: Endless getdents() in vfat filesystem

2015-11-14 Thread Richard Weinberger
Am 14.11.2015 um 15:28 schrieb OGAWA Hirofumi: > Vegard Nossum writes: > >> On 11/14/2015 11:32 AM, Richard Weinberger wrote: >>> On Sat, Nov 14, 2015 at 2:19 AM, Vegard Nossum >>> wrote: Hi, Using the attached disk image I observe that getdents() never returns the end of th

Re: [PATCH 02/14] mm: vmscan: simplify memcg vs. global shrinker invocation

2015-11-14 Thread Johannes Weiner
On Sat, Nov 14, 2015 at 03:36:50PM +0300, Vladimir Davydov wrote: > On Thu, Nov 12, 2015 at 06:41:21PM -0500, Johannes Weiner wrote: > > @@ -2432,20 +2447,6 @@ static bool shrink_zone(struct zone *zone, struct > > scan_control *sc, > > } > > } while ((memcg = mem_cg

[PATCH v2 net] raw: increment correct SNMP counters for ICMP messages

2015-11-14 Thread Ben Cartwright-Cox
Sending ICMP packets with raw sockets ends up in the SNMP counters logging the type as the first byte of the IPv4 header rather than the ICMP header. This is fixed by adding the IP Header Length to the casting into a icmphdr struct. Signed-off-by: Ben Cartwright-Cox Acked-by: Eric Dumazet --- n

Re: [PATCH 03/14] net: tcp_memcontrol: properly detect ancestor socket pressure

2015-11-14 Thread Johannes Weiner
On Sat, Nov 14, 2015 at 03:45:52PM +0300, Vladimir Davydov wrote: > On Thu, Nov 12, 2015 at 06:41:22PM -0500, Johannes Weiner wrote: > > When charging socket memory, the code currently checks only the local > > page counter for excess to determine whether the memcg is under socket > > pressure. But

Re: [PATCH] scsi: hpsa: fix multiple issues in path_info_show

2015-11-14 Thread Rasmus Villemoes
On Wed, Oct 28 2015, Don Brace wrote: > On 10/27/2015 05:16 PM, Rasmus Villemoes wrote: >> I'm not familiar with this code, but path_info_show() (added in >> 8270b86243658 "hpsa: add sysfs entry path_info to show box and >> bay information") seems to be broken in multiple ways. >> [snip] >> >> We

Re: [PATCH v3 2/5] tty: Introduce SER_RS485_SOFTWARE read-only flag for struct serial_rs485

2015-11-14 Thread One Thousand Gnomes
> I specifically asked for it. > > I can think of 2 reasons that userspace wants to know: > 1. Because the characteristics of the software emulation are unacceptable so >the application wants to terminate w/error rather than continue. But that could equally be true of hardware. In fact your s

Re: [PATCH 1/3] dell_wmi: Support new hotkeys on the XPS 13 Skylake

2015-11-14 Thread Andy Lutomirski
On Nov 14, 2015 1:27 AM, "Pali Rohár" wrote: > > On Friday 13 November 2015 21:49:30 Andy Lutomirski wrote: > > The XPS 13 Skylake has an rfkill button and a switchvideomode button > > that aren't enumerated in the DMI table AFAICT. Add a table listing > > extra un-enumerated hotkeys. To avoid b

Re: [PATCH v3 2/5] Staging: dgnc: dgnc_neo.c: Logical continuations should be on the previous line

2015-11-14 Thread Andy Shevchenko
On Sat, Nov 14, 2015 at 4:40 PM, Nizam Haider wrote: > Fix Checkpatch warning > CHECK: Logical continuations should be on the previous line > + (brd->vpd[0x10] != 0x82)) || /* long resource name tag (PCI-66 > files)*/ You may fix commentary line here (should be space before asterisk

Re: [PATCH 1/3] dell_wmi: Support new hotkeys on the XPS 13 Skylake

2015-11-14 Thread Pali Rohár
On Saturday 14 November 2015 16:48:25 Andy Lutomirski wrote: > On Nov 14, 2015 1:27 AM, "Pali Rohár" wrote: > > On Friday 13 November 2015 21:49:30 Andy Lutomirski wrote: > > > The XPS 13 Skylake has an rfkill button and a switchvideomode > > > button that aren't enumerated in the DMI table AFAICT

Re: [PATCH 05/14] net: tcp_memcontrol: protect all tcp_memcontrol calls by jump-label

2015-11-14 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 06:41:24PM -0500, Johannes Weiner wrote: > Move the jump-label from sock_update_memcg() and sock_release_memcg() > to the callsite, and so eliminate those function calls when socket > accounting is not enabled. I don't believe this patch's necessary, because these functions

[PATCH] brcmfmac: constify brcmf_bus_ops structures

2015-11-14 Thread Julia Lawall
The brcmf_bus_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/net/wireless/brcm80211/brcmfmac/bus.h |2 +- drivers/net/wireless/brcm80211/brcmfmac/pcie.c |2 +- drivers/net/wireless/brcm80211/brcmfm

USB: ti_usb_3410_5052: Add Honeywell HGI80 ID

2015-11-14 Thread David Woodhouse
The Honeywell HGI80 is a wireless interface to the evohome connected thermostat. It uses a TI 3410 USB-serial port. Signed-off-by: David Woodhouse Cc: sta...@vger.kernel.org diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index e9da41d..2694df2 100644

[PATCH] comedi: dmm32at: Fix coding style - use BIT macro

2015-11-14 Thread Ranjith Thangavel
BIT macro is used for defining BIT location instead of shifting operator, usleep_range is preferred over udelay - coding style issue Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/dmm32at.c | 104 +++--- 1 file changed, 52 insertions(+), 52 deletions

[PATCH] net: dsa: Delete an unnecessary check before the function call "put_device"

2015-11-14 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 14 Nov 2015 17:58:00 +0100 The put_device() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- net/ds

[PATCH] comedi: gsc_hpdi: Fix coding style - use kernel type definitions for variables

2015-11-14 Thread Ranjith Thangavel
kernel type definitions are preferred for variables over standard type definitions Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/gsc_hpdi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/comedi/drivers/gsc_hpdi.c

[PATCH] mmc: pwrseq: constify mmc_pwrseq_ops structures

2015-11-14 Thread Julia Lawall
The mmc_pwrseq_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/mmc/core/pwrseq.h|2 +- drivers/mmc/core/pwrseq_emmc.c |2 +- drivers/mmc/core/pwrseq_simple.c |2 +- 3 files changed, 3 i

Re: [PATCH] Staging: iio: iio_simple_dummy_buffer: Typo in comments area

2015-11-14 Thread Jonathan Cameron
On 14/11/15 09:28, Lars-Peter Clausen wrote: > On 11/14/2015 03:44 AM, Nizam Haider wrote: >> Fix simple typo in comments >> >> Signed-off-by: Nizam Haider > > Thanks for the patch. > >> --- >> drivers/staging/iio/iio_simple_dummy_buffer.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-

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

2015-11-14 Thread Alan Stern
On Fri, 13 Nov 2015, Doug Anderson wrote: > To handle things smarter, I think I need to research how to deal with > hubs attached to hubs attached to hubs. For instance: > > dwc2 > -> multi_tt hub > -> single_tt hub > -> device 1 > -> device 2 > -> single_tt hub >

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

2015-11-14 Thread Jonathan Cameron
On 09/11/15 13:28, Haibo Chen wrote: > 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 Hi Haibo, A few comments inline in addition to Lars' ones. One small point is that whilst

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

2015-11-14 Thread Jonathan Cameron
On 13/11/15 09:52, Lars-Peter Clausen wrote: > On 11/13/2015 10:39 AM, Haibo Chen wrote: > [...] +static void imx7d_adc_feature_config(struct imx7d_adc *info) +{ + info->adc_feature.clk_pre_div = IMX7D_ADC_ANALOG_CLK_PRE_DIV_4; + info->adc_feature.avg_num = IMX7D_ADC_AVERAGE_N

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-14 Thread Pavel Machek
Hi! > > Obviously I'll need to use the existing interfaces, or extend them as > > needed. I'd expect subsystem maintainer to know if the existing > > interfaces are ok or what needs to be fixed, but it seems you either > > don't know how your subsystem works, or are not willing to tell me. > > I

Re: [PATCH 1/3] iio: mma8452: add freefall detection for Freescale's accelerometers

2015-11-14 Thread Jonathan Cameron
On 11/11/15 18:38, Martin Kepplinger wrote: > This adds freefall event detection to the supported devices. It adds > the in_accel_x&y&z_mag_falling_en iio event attribute, which activates > freefall mode. > > In freefall mode, the current acceleration values of all activated axis > are added and i

Re: [Gta04-owner] [PATCH 10/13] twl4030_charger: add software controlled linear charging mode.

2015-11-14 Thread Pavel Machek
Hi! > > > Pavel Machek writes: > > > > On Thu 2015-07-30 10:11:24, NeilBrown wrote: > > > >> > > > >> Add a 'continuous' option for usb charging which enables > > > >> the "linear" charging mode of the twl4030. > > > >> > > > >> Linear charging does a good job with not-so-reliable power sources

Re: [PATCH] MAINTAINERS: update DT binding doc locations

2015-11-14 Thread Benjamin Gaignard
2015-11-05 20:41 GMT+01:00 Rob Herring : > After the recent moving of DT binding documents, some maintainers entries > are stale. Update them to the new locations. > > In bindings/fb/, there were only 2 files and I'm assuming the FB > maintainers don't want to be copied on all of bindings/display/.

[PATCH] [media] lirc_imon: do not leave imon_probe() with mutex held

2015-11-14 Thread Alexey Khoroshilov
Commit af8a819a2513 ("[media] lirc_imon: simplify error handling code") lost mutex_unlock(&context->ctx_lock), so imon_probe() exits with the context->ctx_lock mutex acquired. The patch adds mutex_unlock(&context->ctx_lock) back. Found by Linux Driver Verification project (linuxtesting.org). Sig

Re: Endless getdents() in vfat filesystem

2015-11-14 Thread OGAWA Hirofumi
Richard Weinberger writes: >>> Yes, it does fixes the problem here, but I can't really comment on the >>> correctness of the patch. >>> >>> Thanks for the quick reponse, >> >> I made cleanup and made sure fake_offset is corrected. >> >> Richard, Signed-off-by was missed in your patch, so I adde

[PATCH] Staging: dgnc: dgnc_neo.c: Coding Style issue (should be space before asterisk).

2015-11-14 Thread Nizam Haider
Patch will add a space in commentary line. Signed-off-by: Nizam Haider --- drivers/staging/dgnc/dgnc_neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 3cf4783..4ef157f 100644 --- a/drivers/staging/dgn

[PATCH] [media] hdmi: added functions for MPEG InfoFrames

2015-11-14 Thread Enric Balletbo i Serra
The MPEG Source (MS) InfoFrame is in EIA/CEA-861B. It describes aspects of the compressed video stream that were used to produce the uncompressed video. The patch adds functions to work with MPEG InfoFrames. Signed-off-by: Enric Balletbo i Serra --- drivers/video/hdmi.c | 156 ++

[PATCH] Staging: dgnc: dgnc_neo.c: Coding Style issue (should be space before asterisk).

2015-11-14 Thread Nizam Haider
From: Nizam Haider Patch will add a space in commentary line. Signed-off-by: Nizam Haider --- drivers/staging/dgnc/dgnc_neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 3cf4783..4ef157f 100644 ---

Re: [RFC 4/4] iio: ina2xx: add SOFTWARE buffer mode using an iio kfifo.

2015-11-14 Thread Jonathan Cameron
On 12/11/15 10:18, Marc Titinger wrote: > On 10/11/2015 19:23, Lars-Peter Clausen wrote: >> On 11/10/2015 05:07 PM, Marc Titinger wrote: >>> Capture the active scan_elements into a kfifo. >>> The capture thread will compute the remaining time until the next capture >>> tick, and do an active wait (

Re: [PATCH 1/3] iio: mma8452: add freefall detection for Freescale's accelerometers

2015-11-14 Thread Martin Kepplinger
Am 2015-11-14 um 19:03 schrieb Jonathan Cameron: > On 11/11/15 18:38, Martin Kepplinger wrote: >> This adds freefall event detection to the supported devices. It adds >> the in_accel_x&y&z_mag_falling_en iio event attribute, which activates >> freefall mode. >> >> In freefall mode, the current acce

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-14 Thread Mark Brown
On Sat, Nov 14, 2015 at 06:59:16PM +0100, Pavel Machek wrote: > Well, mfd_core.c seems to call regulator_bulk_register_supply_alias() > with device that does not have dev_name initialized. OK, that'll be the problem then - we're not mapping the supply into the individual child device but rather s

Re: [RFC v2 1/2] iio: ina2xx: add direct IO support for TI INA2xx Power Monitors

2015-11-14 Thread Jonathan Cameron
On 12/11/15 12:57, Marc Titinger wrote: > Basic support or direct IO raw read, with averaging attribute. > Values are RAW, INT_PLUS_MICRO (Volt/Ampere/Watt). > > Output of iio_info: > > iio:device0: ina226 > 4 channels found: > power3: (input) > 1 channel-specific attr

Re: [PATCH 1/3] iio: mma8452: add freefall detection for Freescale's accelerometers

2015-11-14 Thread Jonathan Cameron
On 14/11/15 18:45, Martin Kepplinger wrote: > Am 2015-11-14 um 19:03 schrieb Jonathan Cameron: >> On 11/11/15 18:38, Martin Kepplinger wrote: >>> This adds freefall event detection to the supported devices. It adds >>> the in_accel_x&y&z_mag_falling_en iio event attribute, which activates >>> freef

[PATCH] net-ipv6: Delete unnecessary checks before the function call "kfree_skb"

2015-11-14 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 14 Nov 2015 19:55:00 +0100 The kfree_skb() function tests whether its argument is NULL and then returns immediately. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- net/ip

[PATCH] mac802154: Delete an unnecessary check before the function call "kfree_skb"

2015-11-14 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 14 Nov 2015 20:22:41 +0100 The kfree_skb() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- net/mac

Re: [PATCH v8] Documentation: add Device tree bindings for hwmon/nct7802

2015-11-14 Thread Constantine Shulyupin
On Thu, Nov 12, 2015 at 7:26 PM, Rob Herring wrote: > On Mon, Oct 26, 2015 at 10:24:17PM +0200, Constantine Shulyupin wrote: >> From: Constantine Shulyupin >> +Optional subnodes: >> + >> +Sensor subnodes properties: >> + - "compatible", allowed values: >> + - "nuvoton,nct7802" > > This shoul

Re: [RFC] perf x86 intel: Question about pebs_data_source data

2015-11-14 Thread Andi Kleen
> I'm probably misunderstanding SDM (wouldn't be the first time) what do I miss? Hi Jiri, We checked the history, and it appears the SDM was not updated when the definition of the bits changed (around Sandy Bridge, possibly Westmere). So perf is correct for newer CPUs, but not for older, and we h

Re: ARM Linux Kernel Update

2015-11-14 Thread Satay Epic
Thanks Arnd. I will try it out. On Fri, Nov 13, 2015 at 1:40 AM, Arnd Bergmann wrote: > On Thursday 12 November 2015 22:43:53 Albino B Neto wrote: >> 2015-11-12 21:46 GMT-02:00 Satay Epic : >> > Hello, >> > >> > I've an ARM SL3516 board with Linux 2.6.15 and I've tool-chain setup. >> > I could a

Re: [PATCH] MAINTAINERS: update DT binding doc locations

2015-11-14 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Nov 6, 2015, at 3:41 AM, Rob Herring wrote: > > After the recent moving of DT binding documents, some maintainers entries > are stale. Update them to the new locations. > > In bindings/fb/, there were only 2 files and I'm assuming the FB > maintainers don't want to be copied on all of bind

Re: [PATCH v3] PM / suspend: replacing printk

2015-11-14 Thread Pavel Machek
On Wed 2015-10-28 08:54:01, Saurabh Sengar wrote: > replacing printk(s) with appropriate pr_info and pr_err > in order to fix checkpatch.pl warnings > > Signed-off-by: Saurabh Sengar Acked-by: Pavel Machek > @@ -245,7 +245,7 @@ static int suspend_test(int level) > { > #ifdef CONFIG_PM_DEBUG

[PATCH] mei: bus: use scnprintf in *_show

2015-11-14 Thread Rasmus Villemoes
There's no reason to duplicate the logic provided by scnprintf(). Signed-off-by: Rasmus Villemoes --- drivers/misc/mei/bus.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index 0b05aa938799..630bdf1f8bcb 1

[PATCH] HID: core: use scnprintf in modalias_show()

2015-11-14 Thread Rasmus Villemoes
scnprintf() exists to provide these semantics, so we might as well use it. Signed-off-by: Rasmus Villemoes --- drivers/hid/hid-core.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index c6f7a694f67a..efa3660e23a0 100644

[PATCH] Bluetooth-cmtp: Delete an unnecessary check before the function call "kfree_skb"

2015-11-14 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 14 Nov 2015 22:00:27 +0100 The kfree_skb() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- net/blu

  1   2   3   >