[PATCH v2 22/22] memory: omap-gpmc: Prevent GPMC_STATUS from being accessed via gpmc_regs

2015-08-07 Thread Roger Quadros
GPMC_STATUS register is private to the GPMC module and must not be accessed directly by NAND driver through the gpmc_regs. They must use gpmc_omap_get_nand_ops() instead. Signed-off-by: Roger Quadros --- drivers/memory/omap-gpmc.c | 2 +-

[PATCH v2 19/22] ARM: dts: dra7: Enable gpio & interrupt controller for gpmc node

2015-08-07 Thread Roger Quadros
The GPMC driver now implements gpiochip and irqchip so enable gpio-controller and interrupt-controller properties. With this the interrupt parent of NAND node changes so fix it accordingly. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra7-evm.dts | 1 + arch/arm/boot/dts/dra7.dtsi

Re: [PATCH] zram: fix possible race when checking idle_strm

2015-08-07 Thread Sergey Senozhatsky
On (08/07/15 17:03), Joonsoo Kim wrote: > Currently, when we enter the wait state due to lack of idle stream, > we check idle_strm list without holding the lock in expanding of > wait_event define. In this case, some one can see stale value and > process could fall into wait state without any

[PATCH v2 13/22] memory: omap-gpmc: Prevent mapping into 1st 16MB

2015-08-07 Thread Roger Quadros
We have been preventing mapping GPMC children in the first 1MB but really it has to be the first 16MB as the minimum GPMC partition size is 16MB. Also print an error message if CS mapping fails due to DT requesting address outside the GPMC map. Signed-off-by: Roger Quadros ---

Re: [PATCH v2 07/13] xtensa: implement counting and sampling perf events

2015-08-07 Thread Peter Zijlstra
On Thu, Aug 06, 2015 at 04:46:32PM -0300, Arnaldo Carvalho de Melo wrote: > Em Sat, Jul 18, 2015 at 11:30:10AM +0300, Max Filippov escreveu: > > Xtensa Performance Monitor Module has up to 8 32 bit wide performance > > counters. Each counter may be enabled independently and can count any > >

[PATCH v2 08/22] memory: omap-gpmc: Add IRQ ops for GPMC-NAND interface

2015-08-07 Thread Roger Quadros
Provide functions to enable/disable NAND IRQs, get NAND event status and clear NAND events. The NAND events of interest are TERMCOUNT and FIFOEVENT. Signed-off-by: Roger Quadros --- drivers/memory/omap-gpmc.c | 50 ++ include/linux/omap-gpmc.h | 4

[PATCH v2 09/22] mtd: nand: omap2: manage NAND interrupts

2015-08-07 Thread Roger Quadros
Manage NAND interrupts here using the GPMC IRQ ops. This causes performance in prefetch-irq mode to be increased from [ 38.252811] mtd_speedtest: eraseblock write speed is 5576 KiB/s [ 39.265259] mtd_speedtest: eraseblock read speed is 8192 KiB/s to [ 35.666446] mtd_speedtest: eraseblock

[PATCH v2 02/22] ARM: OMAP2+: gpmc: Add gpmc timings and settings to platform data

2015-08-07 Thread Roger Quadros
Add device_timings, gpmc_timings and gpmc_setting to gpmc platform data. Signed-off-by: Roger Quadros --- include/linux/omap-gpmc.h | 134 -- include/linux/platform_data/gpmc-omap.h | 139 2 files changed, 139

[PATCH v2 04/22] mtd: nand: omap2: Use gpmc_omap_get_nand_ops() to get NAND registers

2015-08-07 Thread Roger Quadros
Deprecate nand register passing via platform data and use gpmc_omap_get_nand_ops() instead. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/gpmc-nand.c | 2 -- drivers/mtd/nand/omap2.c | 9 - include/linux/platform_data/mtd-nand-omap2.h | 4 +++- 3

Re: [PATCH] memory: omap-gpmc: Don't try to save the GPMC context

2015-08-07 Thread Roger Quadros
On 05/08/15 15:24, Tomeu Vizoso wrote: > ...if there isn't one already. > > If for some reason the GPMC device hasn't been probed yet, gpmc_base is > going to be NULL. Because there's no context yet to be saved, just turn > these functions into no-ops until that device gets probed. > > Unable to

Re: [PATCH] kvm:s390:Fix assumption that kvm_set_irq_routing is always run successfully

2015-08-07 Thread Christian Borntraeger
Am 06.08.2015 um 19:05 schrieb Nicholas Krause: > This fixes the assumption that kvm_set_irq_routing is always run > successfully by instead making it equal to the variable r which > we use for returning in the function kvm_arch_vm_ioctl instead > of making r equal to zero when calling this

RE: [PATCH 2/2] gadget: Support for the usb charger framework

2015-08-07 Thread Peter Chen
> >> /** > >> * struct usb_udc - describes one usb device controller @@ -127,12 > >> +128,45 @@ void usb_gadget_giveback_request(struct usb_ep *ep, } > >> EXPORT_SYMBOL_GPL(usb_gadget_giveback_request); > >> > >> +int usb_gadget_register_notify(struct usb_gadget *gadget, > >> +

Re: [BUG]: Intel uncore boot warning introduced in 4.1

2015-08-07 Thread Peter Zijlstra
On Thu, Aug 06, 2015 at 06:10:40PM +, Liang, Kan wrote: > The issue may be caused by uncore box initialization. > > For preventing the potential issues of uncore box initialization, I once > moved the uncore_box_init() out of driver initialization in commit >

Re: [PATCH 2/5] ACPI / ARM64: remove usage of BAD_MADT_ENTRY/BAD_MADT_GICC_ENTRY

2015-08-07 Thread Marc Zyngier
Hi Al, On 06/08/15 21:59, Al Stone wrote: > Now that we have introduced the bad_madt_entry() function, and that > function is being invoked in acpi_table_parse_madt() for us, there > is no longer any need to use the BAD_MADT_ENTRY macro, or in the case > of arm64, the BAD_MADT_GICC_ENTRY, too. >

Re: [PATCH V10 4/5] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-07 Thread Ard Biesheuvel
On 6 August 2015 at 15:40, Jonathan (Zhixiong) Zhang wrote: > From: "Jonathan (Zhixiong) Zhang" > > Table 8 of UEFI 2.5 section 2.3.6.1 defines mappings from EFI > memory types to MAIR attribute encodings for arm64. > > If the physical address has memory attributes defined by EFI > memmap as

Re: [PATCH 11/31] cpufreq/sfi: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Viresh Kumar
On 07-08-15, 09:59, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda > --- > drivers/cpufreq/sfi-cpufreq.c | 4 +--- >

[PATCH] mac80211_hwsim: unregister genetlink family properly

2015-08-07 Thread Su Kang Yin
During hwsim_init_netlink(), we should call genl_unregister_family() if failed on netlink_register_notifier() since the genetlink is already registered. Signed-off-by: Su Kang Yin --- drivers/net/wireless/mac80211_hwsim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 1/4] loop: Remove unused 'bdev' argument from loop_set_capacity

2015-08-07 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/block/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index f7a4c9d..b9e12a0 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@

[PATCHv2 0/4] loop: enable different physical blocksizes

2015-08-07 Thread Hannes Reinecke
Currently the loop driver just simulates 512-byte blocks. When creating bootable images for virtual machines it might be required to use a different physical blocksize (eg 4k for S/390 DASD), as the some bootloaders (like lilo or zipl for S/390) need to know the physical block addresses of the

[PATCH 4/4] loop: Pass logical blocksize in 'lo_init[0]' ioctl field

2015-08-07 Thread Hannes Reinecke
The current LOOP_SET_STATUS64 ioctl has two unused fields 'init[2]', which can be used in conjunction with the LO_FLAGS_BLOCKSIZE flag to pass in the new logical blocksize. Signed-off-by: Hannes Reinecke --- drivers/block/loop.c | 14 -- 1 file changed, 12 insertions(+), 2

[PATCH 2/4] loop: Enable correct physical blocksize

2015-08-07 Thread Hannes Reinecke
When running on files the physical blocksize is actually 4k, so we should be announcing it as such. This is enabled with a new LO_FLAGS_BLOCKSIZE flag value to the existing ioctl. Signed-off-by: Hannes Reinecke --- drivers/block/loop.c | 9 - include/uapi/linux/loop.h | 1 + 2

[PATCH 3/4] loop: Add 'lo_logical_blocksize'

2015-08-07 Thread Hannes Reinecke
Add a new field 'lo_logical_blocksize' to hold the logical blocksize of the loop device. Signed-off-by: Hannes Reinecke --- drivers/block/loop.c | 14 +++--- drivers/block/loop.h | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/block/loop.c

Re: [PATCH] kvm:x86:Call BUG_ON marco if calls to x86_set_memory_region fail in kvm_arch_destroy

2015-08-07 Thread Paolo Bonzini
On 06/08/2015 16:13, Nicholas Krause wrote: > This fixes the calls to x86_memory_region to trigger a kernel > oopes for tracing if a bug arises in the function kvm_arch_destroy > due to the failing of any of its internal calls to x86_set_memory_region. > > Signed-off-by: Nicholas Krause > ---

linux-next: Tree for Aug 7

2015-08-07 Thread Stephen Rothwell
Hi all, Changes since 20150806: The arm-soc tree gained a build failure so I used the version from next-20150806. The slave-dma tree lost its build failure. The wireless-drivers-next tree gained a build failure so I used the version from next-20150806. The audit tree gained a conflict against

Re: [PATCH] [v2] surface pro 3: Add support driver for Surface Pro 3 buttons

2015-08-07 Thread Chen, Yu C
On Fri, 2015-08-07 at 01:27 -0700, Joe Perches wrote: > On Fri, 2015-08-07 at 15:57 +0800, Chen Yu wrote: > \ > > + ret;\ > > +}) > > This seems a bit complicated. > > The else ret = 0 isn't necessary as

Re: [PATCH RT 0/7] Linux 3.18.18-rt16-rc1

2015-08-07 Thread Wolfgang M. Reimer
Hi all, only after additionally installing my "3.18.17-rt14 locktorture: Do NOT include rwlock.h" patch I could build the kernel with CONFIG_PREEMPT_RT_FULL=y. So far kernel 3.18.18-rt16-rc1 runs fine on my lenovo notebook as well as on a server with (an already 5 year old) ASUS Z8NA-D6(C)

Re: [PATCH 0/2] Introduce usb charger framework to deal with the usb gadget power negotation

2015-08-07 Thread Baolin Wang
On 7 August 2015 at 16:31, Peter Chen wrote: > >> >> Peter, Thanks for your reviewing and comments. Now I just introduce the >> framework to review for more feedbacks and do not have a useful user to use >> it. I just can show you some example code to show how to use it. Thanks. >> > > Felipe may

Re: [PATCH 2/2] gadget: Support for the usb charger framework

2015-08-07 Thread Baolin Wang
On 7 August 2015 at 13:45, Peter Chen wrote: > On Thu, Aug 06, 2015 at 03:03:49PM +0800, Baolin Wang wrote: >> The usb charger framework is based on usb gadget, and each usb gadget >> can be one usb charger to set the current limitation. >> >> This patch adds a notifier mechanism for usb charger

Re: [PATCHv6 3/5] Staging: most: hdm-usb/hdm_usb.c. Fix "missing static keyword" warnings

2015-08-07 Thread Sudip Mukherjee
On Fri, Aug 07, 2015 at 09:40:03AM +0200, AdrianRemonda wrote: > On Thu, Aug 06, 2015 at 11:57:28PM +0200, Christian Gromm wrote: > > On Thu, 6 Aug 2015 19:34:58 +0200 > > Adrian Remonda wrote: > > > > > > Again, please keep the original alignment and start the second line > > of function

Re: [PATCH v4 09/10] PCI: ACPI: Bind GIC MSI frame to PCI host bridge

2015-08-07 Thread Hanjun Guo
On 08/04/2015 10:04 PM, Marc Zyngier wrote: On 29/07/15 11:08, Hanjun Guo wrote: From: Suravee Suthikulpanit This patch introduces pci_host_bridge_acpi_msi_domain(), which queries a GIC MSI irq-domain token and use it to retrieve an irq_domain with DOMAIN_BUS_PCI_MSI bus type, and bind it to

[PATCH] dma: omap-dma: add support for pause of non-cyclic transfers

2015-08-07 Thread Sebastian Andrzej Siewior
This DMA driver is used by 8250-omap on DRA7-evm. There is one requirement that is to pause a transfer. This is currently used on the RX side. It is possible that the UART HW aborted the RX (UART's RX-timeout) but the DMA controller starts the transfer shortly after. Before we can manually purge

Re: [PATCH] irqchip: gic-v3: Explicitly include linux/io.h

2015-08-07 Thread Marc Zyngier
Hi Ben, On 07/08/15 06:31, Ben Zhang wrote: > linux/io.h is needed because the driver uses: > readl_relaxed > writel_relaxed > writeq_relaxed > readq_relaxed > iounmap > > The header was implicitly included by an unrelated > commit 332fd7c4fef5 > ("genirq: Generic chip: Change

Re: [PATCH] staging: rtl8723au: Fix sparse warning: cast to restricted __le16

2015-08-07 Thread Johannes Postma
On 06/08/15 at 08:21am, Jes Sorensen wrote: > > Looks OK to me. Probably worth changing the *(usPtr + index) to be > usPtr[index] as well to make the code easier to read. > > Jes > Thank you for reviewing. I will make a seperate patch for that. I will send it after this one is accepted. Or

Re: [RFC PATCH 1/5] spi: introduce flag for memory mapped read

2015-08-07 Thread Vignesh R
On 08/07/2015 01:08 PM, Michal Suchanek wrote: > Now since the description is clearer it's obvious that ti-qspi cannot > work fully mmapped as fsl-qspi does because the setup has to be done > over normal spi access and using non-m25p80 devices on the same bus is > a requirement. > > The place

Re: [tip:perf/core] perf/x86: Add an MSR PMU driver

2015-08-07 Thread Peter Zijlstra
On Thu, Aug 06, 2015 at 05:59:43PM +0200, Peter Zijlstra wrote: > On Thu, Aug 06, 2015 at 08:30:08AM -0700, Andy Lutomirski wrote: > > On Thu, Aug 6, 2015 at 8:21 AM, Peter Zijlstra wrote: > > > On Tue, Aug 04, 2015 at 08:39:27PM +, Liang, Kan wrote: > > > - default: > > > -

Re: [PATCH 1/2] gadget: Introduce the usb charger framework

2015-08-07 Thread Baolin Wang
On 7 August 2015 at 13:41, Peter Chen wrote: > On Thu, Aug 06, 2015 at 03:03:48PM +0800, Baolin Wang wrote: >> This patch introduces the usb charger driver based on usb gadget that >> makes an enhancement to a power driver. It works well in practice but >> that requires a system with suitable

RE: [PATCH 0/2] Introduce usb charger framework to deal with the usb gadget power negotation

2015-08-07 Thread Peter Chen
> > Peter, Thanks for your reviewing and comments. Now I just introduce the > framework to review for more feedbacks and do not have a useful user to use > it. I just can show you some example code to show how to use it. Thanks. > Felipe may not accept the code which are no user on it, I

Re: [PATCH] [v2] surface pro 3: Add support driver for Surface Pro 3 buttons

2015-08-07 Thread Joe Perches
On Fri, 2015-08-07 at 15:57 +0800, Chen Yu wrote: > Since Surface Pro 3 does not follow the specs of "Windows ACPI Design > Guide for SoC Platform", code in drivers/input/misc/soc_array.c can > not detect these buttons on it. The comments below are all just style trivia and can be ignored

Re: [PATCH 6/7] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-08-07 Thread Roger Quadros
On 05/08/15 17:18, Kishon Vijay Abraham I wrote: > Hi Roger, > > On Wednesday 05 August 2015 01:55 PM, Roger Quadros wrote: >> On 05/08/15 11:23, Roger Quadros wrote: >>> >>> On 04/08/15 18:20, Kishon Vijay Abraham I wrote: The USB2 PHY2 has a different register map compared to USB2 PHY1

Re: [PATCH v9 6/6] block: loop: support DIO & AIO

2015-08-07 Thread Ming Lei
On Fri, Aug 7, 2015 at 3:43 AM, Christoph Hellwig wrote: > I really disagree with the per-cmd use_dio tracking. Could you explain it in a bit? > > If we know at setup time that the loop device sector size is smaller > than the sector size of the underlying device we should never allow > dio,

Re: [RFC PATCH 1/5] spi: introduce flag for memory mapped read

2015-08-07 Thread Martin Sperl
On 8/6/2015 23:33, Russell King - ARM Linux wrote: On Thu, Aug 06, 2015 at 06:14:00PM +0200, Geert Uytterhoeven wrote: Irrespective of the dummy bytes. What if the spi device is not a FLASH ROM, but some other device, which receives a data packet that accidentally looks like an m25p80 READ

Re: [PATCH v4 1/2] extcon: palmas: Support GPIO based USB ID detection

2015-08-07 Thread Roger Quadros
Hi Lee / Samuel, On 03/08/15 17:40, Roger Quadros wrote: > Some palmas based chip variants do not have OTG based ID logic. > For these variants we rely on GPIO based USB ID detection. > > These chips do have VBUS comparator for VBUS detection so we > continue to use the old way of detecting

Re: [BUG] net/ipv4: inconsistent routing table

2015-08-07 Thread Zang MingJie
IMO, the routing decision is determined, given a specific routing table and local network the result MUST be determined, independence of how/what order the routing entry is added. Now there are two ways to configure the system resulting EXACTLY the same routing table and local addresses, but the

[PATCH] ARCv2: spinlock/rwlock/atomics: reduce 1 instruction in exponential backoff

2015-08-07 Thread Vineet Gupta
The increment of delay counter was 2 instructions: Arithmatic Shfit Left (ASL) + set to 1 on overflow This can be done in 1 using ROtate Left (ROL) Suggested-by: Nigel Topham Cc: Peter Zijlstra (Intel) Cc: linux-kernel@vger.kernel.org Signed-off-by: Vineet Gupta ---

Re: [PATCH 0/2] Introduce usb charger framework to deal with the usb gadget power negotation

2015-08-07 Thread Baolin Wang
On 7 August 2015 at 13:34, Peter Chen wrote: > On Thu, Aug 06, 2015 at 03:03:47PM +0800, Baolin Wang wrote: >> Currently the Linux kernel does not provide any standard integration of this >> feature that integrates the USB subsystem with the system power regulation >> provided by PMICs meaning

[PATCH 06/31] arch/powerpc/pseries: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/powerpc/platforms/pseries/hotplug-memory.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH] coredump: Replace opencoded set_mask_bits()

2015-08-07 Thread Vineet Gupta
Cc: Alexander Viro Cc: Oleg Nesterov Cc: Peter Zijlstra (Intel) Cc: linux-fsde...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Vineet Gupta --- fs/exec.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index

[PATCH 04/31] arch/mips/bcm47xx: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/mips/bcm47xx/buttons.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 11/31] cpufreq/sfi: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/cpufreq/sfi-cpufreq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 10/31] clk/mmp: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/clk/mmp/clk-mix.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 03/31] arch/m68k/bootinfo: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/m68k/kernel/bootinfo_proc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH 05/31] arch/powerpc/nvram: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/powerpc/kernel/nvram_64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 12/31] drm/amdgpu: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

[PATCH 14/31] message/fusion: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/message/fusion/mptbase.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 15/31] misc/vmw_vmci: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/misc/vmw_vmci/vmci_datagram.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 17/31] scsi/aacraid: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/scsi/aacraid/commctrl.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

[PATCH 18/31] scsi/aic7xxx: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/scsi/aic7xxx/aic79xx_core.c | 4 ++-- drivers/scsi/aic7xxx/aic7xxx_core.c | 4 ++-- 2 files

[PATCH 22/31] fs/ntfs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- fs/ntfs/dir.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH 01/31] arch/arm/mach-lpc32xx: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/arm/mach-lpc32xx/pm.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 2/2] net, thunder, bgx: Add support for ACPI binding.

2015-08-07 Thread Tomasz Nowicki
On 07.08.2015 02:33, David Daney wrote: From: David Daney Find out which PHYs belong to which BGX instance in the ACPI way. Set the MAC address of the device as provided by ACPI tables. This is similar to the implementation for devicetree in of_get_mac_address(). The table is searched for the

[PATCH 20/31] fs/cifs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- fs/cifs/smb2pdu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH 19/31] staging/lustre: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/staging/lustre/lustre/obdclass/acl.c | 6 ++ 1 file changed, 2 insertions(+), 4

[PATCH 24/31] fs/omfs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- fs/omfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH v6 7/9] clk: mediatek: Add subsystem clocks of MT8173

2015-08-07 Thread Daniel Kurtz
On Fri, Aug 7, 2015 at 4:05 PM, Daniel Kurtz wrote: > On Fri, Aug 7, 2015 at 10:20 AM, James Liao wrote: >> Hi Sascha, >> >> On Thu, 2015-08-06 at 12:20 +0200, Sascha Hauer wrote: >>> On Thu, Aug 06, 2015 at 05:13:21PM +0800, Daniel Kurtz wrote: >>> > On Thu, Aug 6, 2015 at 5:00 PM, James Liao

[PATCH 08/31] arch/x86/intel-mid: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/x86/platform/intel-mid/sfi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 07/31] arch/x86/microcode: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/x86/kernel/cpu/microcode/amd.c | 4 +--- arch/x86/kernel/cpu/microcode/intel_early.c |

Re: [PATCH 09/31] crypto: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Herbert Xu
On Fri, Aug 07, 2015 at 09:59:15AM +0200, Andrzej Hajda wrote: > The patch was generated using fixed coccinelle semantic patch > scripts/coccinelle/api/memdup.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 > > Signed-off-by: Andrzej Hajda Actually I think you've

Re: [PATCH v6 7/9] clk: mediatek: Add subsystem clocks of MT8173

2015-08-07 Thread Daniel Kurtz
On Fri, Aug 7, 2015 at 10:20 AM, James Liao wrote: > Hi Sascha, > > On Thu, 2015-08-06 at 12:20 +0200, Sascha Hauer wrote: >> On Thu, Aug 06, 2015 at 05:13:21PM +0800, Daniel Kurtz wrote: >> > On Thu, Aug 6, 2015 at 5:00 PM, James Liao >> > wrote: >> > > Hi Sascha, >> > > >> > > On Thu,

[PATCH 02/31] arch/ia64/tioce: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- arch/ia64/sn/pci/tioce_provider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 21/31] fs/dlm: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- fs/dlm/lowcomms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 26/31] net/sched: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- net/sched/act_bpf.c | 4 +--- net/sched/cls_bpf.c | 4 +--- 2 files changed, 2 insertions(+), 6

[PATCH] zram: fix possible race when checking idle_strm

2015-08-07 Thread Joonsoo Kim
Currently, when we enter the wait state due to lack of idle stream, we check idle_strm list without holding the lock in expanding of wait_event define. In this case, some one can see stale value and process could fall into wait state without any upcoming wakeup process. Although I didn't see any

Re: [PATCH 0/4] loop: enable different physical blocksizes

2015-08-07 Thread Ming Lei
On Fri, Aug 7, 2015 at 3:45 AM, Hannes Reinecke wrote: > On 08/07/2015 09:23 AM, Ming Lei wrote: >> On Fri, Aug 7, 2015 at 2:46 AM, Hannes Reinecke wrote: >>> On 08/07/2015 07:07 AM, Ming Lei wrote: On Mon, Aug 3, 2015 at 7:00 PM, Alexander Graf wrote: > >>> >>> [ .. ] >>> > >

[PATCH 27/31] net/tipc: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- net/tipc/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 23/31] fs/ocfs2: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- fs/ocfs2/localalloc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH 29/31] sound/oxfw: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- sound/firewire/oxfw/oxfw-stream.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-)

[PATCH 13/31] memstick: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/memstick/core/mspro_block.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 28/31] net/xfrm: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- net/xfrm/xfrm_user.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH 09/31] crypto: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- crypto/echainiv.c | 7 ++- crypto/seqiv.c| 6 ++ 2 files changed, 4 insertions(+), 9

[PATCH 25/31] fs/ubifs: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- fs/ubifs/lpt.c | 6 ++ fs/ubifs/tnc.c | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-)

[PATCH 31/31] sound/soc: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- sound/soc/soc-topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 16/31] net/cavium/liquidio: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- drivers/net/ethernet/cavium/liquidio/octeon_device.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 30/31] sound/atom: use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda --- sound/soc/intel/atom/sst/sst_ipc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 00/31] use kmemdup rather than duplicating its implementation

2015-08-07 Thread Andrzej Hajda
Hi, This patchset was created using fixed version of memdup.cocci semantic patch [1]. It was compile tested only. It is based on latest linux-next. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Regards Andrzej Andrzej Hajda (31): arch/arm/mach-lpc32xx: use kmemdup rather than

Re: [PATCH v4 6/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1

2015-08-07 Thread Dong Aisheng
On Wed, Aug 05, 2015 at 06:38:42PM +0800, Haibo Chen wrote: > Currently we find that if a usdhc is choosed to boot system, then ROM > code will set the burst length enable bit of this usdhc as 0. > > This will make performance drop a lot if this usdhc's burst length is > configed. So this patch

[PATCH v3 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-07 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 532 + 3 files changed, 540 insertions(+) create mode

[PATCH v3 3/5] pci: altera: Add Altera PCIe MSI driver

2015-08-07 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera-msi.c | 309

[PATCH v3 1/5] arm: add msi.h to Kbuild

2015-08-07 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] arm: ls1021a: added SATA node in dts

2015-08-07 Thread Yuantian.Tang
From: Tang Yuantian Added SATA device node and enabled AHCI config by default. Signed-off-by: Shaohui Xie Signed-off-by: Tang Yuantian --- depends on patch: https://patchwork.kernel.org/patch/6851311/ arch/arm/boot/dts/ls1021a.dtsi | 7 +++ arch/arm/configs/ls1021a_defconfig | 2 ++

Re: [PATCH 0/4] loop: enable different physical blocksizes

2015-08-07 Thread Ming Lei
On Fri, Aug 7, 2015 at 3:48 AM, Christoph Hellwig wrote: > On Fri, Aug 07, 2015 at 03:44:58AM -0400, Ming Lei wrote: >> There shouldn't be any problem about looping over DASP which has >> 4k sector size. Also for debugging purpose, we can easily emulate 4k >> sector size disk by QEMU/virtio-blk.

[PATCH v3 5/5] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-08-07 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fd60784..32f5287 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7759,6 +7759,14 @@ F: include/linux/pci* F: arch/x86/pci/ F:

[PATCH v3 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-08-07 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 27 .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed,

[PATCH] [v2] surface pro 3: Add support driver for Surface Pro 3 buttons

2015-08-07 Thread Chen Yu
Since Surface Pro 3 does not follow the specs of "Windows ACPI Design Guide for SoC Platform", code in drivers/input/misc/soc_array.c can not detect these buttons on it. According to bios implementation, Surface Pro 3 encapsulates these buttons in a device named "VGBI", with _HID "MSHW0028". When

Re: [PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations

2015-08-07 Thread Nikolay Borisov
Hello Hugh, On 08/04/2015 09:32 AM, Hugh Dickins wrote: > Hi Michal, > > On Thu, 2 Jul 2015, Michal Hocko wrote: >> On Thu 02-07-15 10:25:51, Theodore Ts'o wrote: >>> On Wed, Jul 01, 2015 at 03:37:15PM +0200, Michal Hocko wrote: >> From: Michal Hocko >> Date: Thu, 2 Jul 2015 17:05:05 +0200 >>

Re: [PATCH 0/4] loop: enable different physical blocksizes

2015-08-07 Thread Hannes Reinecke
On 08/07/2015 09:44 AM, Ming Lei wrote: > On Fri, Aug 7, 2015 at 3:33 AM, Christoph Hellwig wrote: >> On Mon, Jul 27, 2015 at 06:40:57AM -0400, Ming Lei wrote: >>> On Fri, Jul 17, 2015 at 3:27 AM, Hannes Reinecke wrote: Currently the loop driver just simulates 512-byte blocks. When

Re: [PATCH] mm/hwpoison: fix page refcount of unkown non LRU page

2015-08-07 Thread Naoya Horiguchi
On Thu, Aug 06, 2015 at 04:09:37PM +0800, Wanpeng Li wrote: > After try to drain pages from pagevec/pageset, we try to get reference > count of the page again, however, the reference count of the page is > not reduced if the page is still not on LRU list. This patch fix it by > adding the

Re: [PATCH] surface pro 3: Add support driver for Surface Pro 3 buttons

2015-08-07 Thread Chen, Yu C
Hi, Darren and Joe, On Wed, 2015-08-05 at 16:47 -0700, Darren Hart wrote: > On Thu, Aug 06, 2015 at 11:20:44AM +, Chen, Yu C wrote: > > The commentary is useful regardless. However, I suspect Joe was > referring to the approach pairing the PRESS and RELEASE cases? > I've wrote another piece

Re: [PATCH v4 2/6] mmc: sdhci-esdhc-imx: add tuning-step seting support

2015-08-07 Thread Dong Aisheng
On Wed, Aug 05, 2015 at 06:38:38PM +0800, Haibo Chen wrote: > tuning-step is the delay cell steps in tuning procedure. The default value > of tuning-step is 1. Some boards or cards need another value to pass the > tuning procedure. For example, imx7d-sdb board need the tuning-step value > as 2,

Re: [PATCH v4 1/6] mmc: sdhci-esdhc-imx: add imx7d support and support HS400

2015-08-07 Thread Dong Aisheng
On Wed, Aug 05, 2015 at 06:38:37PM +0800, Haibo Chen wrote: > The imx7d usdhc is derived from imx6sx, the difference is that > imx7d support HS400. > > So introduce a new compatible string for imx7d and add HS400 > support for imx7d usdhc. > > Signed-off-by: Haibo Chen > --- >

Re: [PATCH 0/4] loop: enable different physical blocksizes

2015-08-07 Thread Christoph Hellwig
On Fri, Aug 07, 2015 at 03:44:58AM -0400, Ming Lei wrote: > There shouldn't be any problem about looping over DASP which has > 4k sector size. Also for debugging purpose, we can easily emulate 4k > sector size disk by QEMU/virtio-blk. > > We can support 4k sector size on loop for debugging

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