Re: [PATCH v7 0/3] DMA: Freescale: Add support for 8-channel DMA engine

2013-08-20 Thread Hongbo Zhang
Hi DT maintainers, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell, could you please have a look at [1/3] and [2/3] of these patch set. These patches have been fully reviewed by Scott Wood, and the DMA maintainer Vinod needs a Acted-by: from DT maintainers. Thanks. On 08/20

Re: [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise.

2013-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2013 at 11:19:06PM +0200, dl...@gmx.de wrote: > From: Jan-Simon M??ller > > Author: PaX Team > ML-Post: > http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html > URL: http://llvm.linuxfoundation.org > > Merge: Jan-Simon M??ller > > Descriptio

Re: [PATCH net-next v4] net: cpsw: Add support for wake-on-lan for cpsw

2013-08-20 Thread David Miller
From: ujhely...@gmail.com Date: Tue, 20 Aug 2013 07:59:38 +0200 > From: Matus Ujhelyi > > Some phy's can be configured to enable wake on lan (e.g. at803x or marvell > 88E1318S). > There is no way how to enable wol on CPSW with such connected phys. This patch > adds this support. It is provided

[PATCH v2 2/5] devicetree: serial: Document msm_serial bindings

2013-08-20 Thread Stephen Boyd
The msm serial device bindings were added to the DTS files but never documented. Let's document them now and also fix things up so that it's clearer what hardware is supported. Instead of using hsuart (for high speed uart), let's use uartdm because that matches the actual name of the hardware. Also

[PATCH v2 0/5] Document msm_serial bindings and support newer uartdms

2013-08-20 Thread Stephen Boyd
This patchset aligns the msm_serial driver more with downstream usage and also documents the msm_serial driver's DT binding. Along the way we update the clock names and add support for newer UARTDM hardware that isn't part of a GSBI and make the console layer use the extra registers in UARTDM. Cha

[PATCH v2 5/5] msm_serial: Send more than 1 character on the console w/ UARTDM

2013-08-20 Thread Stephen Boyd
We recently added support to send more than one character at a time for UARTDM hardware but we didn't add the same support in the console code path. Add support here to speed up console messages on UARTDM hardware. Cc: David Brown Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c

[PATCH v2 3/5] msm_serial: Add support for non-GSBI UARTDM devices

2013-08-20 Thread Stephen Boyd
Not all UARTDM hardware is part of a GSBI complex. Add support for these devices and fix a bug where we assumed uartdm meant the hardware was part of a GSBI complex. Cc: David Brown Signed-off-by: Stephen Boyd --- drivers/tty/serial/msm_serial.c | 10 -- 1 file changed, 8 insertions(+),

[PATCH v2 1/5] msm_serial: Switch clock consumer strings and simplify code

2013-08-20 Thread Stephen Boyd
In downstream kernel we've standardized the clock consumer names that MSM device drivers use. Replace the uart specific clock names in this driver with the more standard 'core' and 'iface' names. Also simplify the code by assuming that clk_prepare_enable and clk_disable_unprepare() will properly ch

[PATCH v2 4/5] ARM: dts: msm: Update uartdm compatible strings

2013-08-20 Thread Stephen Boyd
Let's follow the ratified DT binding and use uartdm instead of hsuart. This does break backwards compatibility but this shouldn't be a problem because the uart driver isn't probing on these devices without adding clock support (which isn't merged so far). Cc: David Brown Signed-off-by: Stephen Bo

Re: [PATCH 9/9] tcm_qla2xxx: Add special case for COMPARE_AND_WRITE data_direction

2013-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2013 at 08:08:00PM +, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > Add a special case for COMPARE_AND_WRITE for the reverse data direction > mapping used for pci_map_sg() + friends. A low level driver is an even worse place to hardcode a specific cdb opcode. A

Re: [PATCH 6/9] target: Allow sbc_ops->execute_rw() to accept SGLs + data_direction

2013-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2013 at 08:07:57PM +, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > COMPARE_AND_WRITE expects to be able to send down a DMA_FROM_DEVICE > to obtain the necessary READ payload for comparision against the > first half of the WRITE payload containing the verify user

Re: [PATCH] drivers:net:ifb: Fixed coding style error:assignment in if statement

2013-08-20 Thread David Miller
From: Sanil Kumar D Date: Tue, 20 Aug 2013 05:09:37 +0530 > + if (skb == NULL) { "!skb" is preferred. > + if (skb == NULL) { Likewise. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordom

Re: [PATCH 5/9] target: Skip ->queue_data_in() callbacks for COMPARE_AND_WRITE

2013-08-20 Thread Christoph Hellwig
> @@ -1832,7 +1832,8 @@ static void transport_complete_qf(struct se_cmd *cmd) > ret = cmd->se_tfo->queue_data_in(cmd); > break; > case DMA_TO_DEVICE: > - if (cmd->t_bidi_data_sg) { > + if (cmd->t_bidi_data_sg && > + cmd->t_ta

Re: [PATCH 1/9] scsi: Add CDB definition for COMPARE_AND_WRITE

2013-08-20 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: linux-next: build failure after merge of the final tree

2013-08-20 Thread Jeremy Kerr
Hi all, > Yes, I agree. The other filesystems that take an Opt_uid as well do use > current_user_ns() and not init_user_ns. They also do a uid_valid() > check and fail the mount (or fallback to GLOBAL_ROOT_UID). So I think > that would look like this: Looks good to me. Builds and mounts as expect

Re: [PATCH] Fix stack corruption on some architectures

2013-08-20 Thread David Miller
Please submit this with a more appropriate subject line. After '[PATCH] ' there should be a subsystem or driver name prefix, followed up a semicolon. Here it could be "hso: ", so something like: [PATCH] hso: Fix stack corruption on some architectures. -- To unsubscribe from this list: send the

[PATCH 3/3 v3] blackfin: pinctrl-adi2: Enable PINCTRL framework for BF54x and BF60x.

2013-08-20 Thread Sonic Zhang
From: Sonic Zhang - Remove unused macro MAX_RESOURCES - Override blackfin legacy peripheral pinmux request and free APIs by devm_pinctrl_get_select_default() to init the peripheral portmux setting. v2-chagnes: - Move pinctrl soc data out of blackfin arch folder. Signed-off-by: Sonic Zhang ---

[PATCH 2/3 v3] blackfin: gpio: Remove none gpio lib code.

2013-08-20 Thread Sonic Zhang
From: Sonic Zhang - Remove non gpio lib code from blackfin architecture. - Limit the lagecy blackfin gpio driver to bf5xx processors only. - Remove unused definition of the pint power functions. Signed-off-by: Sonic Zhang --- arch/blackfin/Kconfig| 7 ++ arch/blackfin/include/asm

Re: [PATCH 5/7] bcm63xx_enet: replace devm_request_and_ioremap by devm_ioremap_resource

2013-08-20 Thread David Miller
From: Julia Lawall Date: Mon, 19 Aug 2013 13:20:39 +0200 > From: Julia Lawall > > Use devm_ioremap_resource instead of devm_request_and_ioremap. > > This was done using the semantic patch > scripts/coccinelle/api/devm_ioremap_resource.cocci > > The relevant call to platform_get_resource was m

[PATCH v6 2/5] zsmalloc: add more comment

2013-08-20 Thread Minchan Kim
From: Nitin Cupta This patch adds lots of comments and it will help others to review and enhance. Signed-off-by: Seth Jennings Signed-off-by: Nitin Gupta Signed-off-by: Minchan Kim --- drivers/staging/zsmalloc/zsmalloc-main.c | 66 +- drivers/staging/zsmalloc/zs

[PATCH v6 4/5] mm: export unmap_kernel_range

2013-08-20 Thread Minchan Kim
Now zsmalloc needs exported unmap_kernel_range for building it as module. In detail, here it is. https://lkml.org/lkml/2013/1/18/487 We didn't send patch to make unmap_kernel_range exportable at that time. Because zram is staging stuff and we didn't think make VM function exportable for staging st

[PATCH v6 1/5] zsmalloc: add Kconfig for enabling page table method

2013-08-20 Thread Minchan Kim
Zsmalloc has two methods 1) copy-based and 2) pte based to access objects that span two pages. You can see history why we supported two approach from [1]. But it was bad choice that adding hard coding to select arch which want to use pte based method because there are lots of SoC in an architecure

[PATCH v7 0/5] zram/zsmalloc promotion

2013-08-20 Thread Minchan Kim
It's 7th trial of zram/zsmalloc promotion. I rewrote cover-letter totally based on previous discussion. The main reason to prevent zram promotion was no review of zsmalloc part while Jens, block maintainer, already acked zram part. At that time, zsmalloc was used for zram, zcache and zswap so eve

Re: [PATCH v1] seq_file: Fix overflow condition in seq_commit

2013-08-20 Thread Arun KS
Hi Al Viro, On Tue, Aug 20, 2013 at 7:34 PM, Al Viro wrote: > On Tue, Aug 20, 2013 at 08:36:22AM +0100, Al Viro wrote: > >> Aha. _That_ is a bug, all right - dynamic_dname() is simply not suitable >> for that kind of uses. ashmem.c is certainly abusing shmem_file_setup(); >> feeding that kind o

Re: [PATCH] kernel/rcutree.c: deem to be lazy if there are no callbacks.

2013-08-20 Thread Chen Gang
If we still doubt about it, but can not find a suitable way to fix it (neither of us are familiar with it). Is it suitable to use BUG_ON() for it (the diff may like below) ? ---diff begin--- diff --git a/kernel/rcutree.c b/kernel/rcutree.c

[PATCH v11 3/8] usb: phy: twl4030: use the new generic PHY framework

2013-08-20 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. For powering on and powering off the PHY, power_on and power_off ops are used. Once the MUSB OMAP glue is adapted to the new framework, the suspend and resume ops of usb phy library will be removed. Also twl4030-usb driver is moved to drivers/ph

[PATCH v11 5/8] ARM: dts: omap: update usb_otg_hs data

2013-08-20 Thread Kishon Vijay Abraham I
Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework. Also updated the Documentation to include the binding information. The PHY binding information can be found at Documentation/devicetree/bindings/phy/phy-bindings

[PATCH v11 4/8] arm: omap3: twl: add phy consumer data in twl4030_usb_data

2013-08-20 Thread Kishon Vijay Abraham I
The PHY framework uses the phy consumer data populated in platform data in the case of non-dt boot to return the reference to the PHY when the controller (PHY consumer) requests for it. So populated the phy consumer data in the platform data of twl usb. Signed-off-by: Kishon Vijay Abraham I ---

[PATCH v11 2/8] usb: phy: omap-usb2: use the new generic PHY framework

2013-08-20 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. Now the power off and power on are done in omap_usb_power_off and omap_usb_power_on respectively. The omap-usb2 driver is also moved to driver/phy. However using the old USB PHY library cannot be completely removed because OTG is intertwined wi

Re: [PATCH 0/3] mm: shmem: check the return value of mpol_to_str()

2013-08-20 Thread Chen Gang
On 08/21/2013 01:31 PM, Cyrill Gorcunov wrote: > On Wed, Aug 21, 2013 at 10:21:22AM +0800, Chen Gang wrote: >> mpol_to_str() may fail, and not fill the buffer (e.g. -EINVAL), so need >> check about it, or buffer may not be zero based, and next seq_printf() >> will cause issue. >> >> Signed-off-by:

[PATCH v11 7/8] usb: phy: omap-usb2: remove *set_suspend* callback from omap-usb2

2013-08-20 Thread Kishon Vijay Abraham I
Now that omap-usb2 is adapted to the new generic PHY framework, *set_suspend* ops can be removed from omap-usb2 driver. Signed-off-by: Kishon Vijay Abraham I Acked-by: Felipe Balbi Reviewed-by: Sylwester Nawrocki --- drivers/phy/phy-omap-usb2.c | 25 - 1 file changed,

[PATCH v11 1/8] drivers: phy: add generic PHY framework

2013-08-20 Thread Kishon Vijay Abraham I
The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. For dt-boot, the PHY drivers should also register *PHY provider* with the framework. PHY drivers should create the PHY by

[PATCH v11 6/8] usb: musb: omap2430: use the new generic PHY framework

2013-08-20 Thread Kishon Vijay Abraham I
Use the generic PHY framework API to get the PHY. The usb_phy_set_resume and usb_phy_set_suspend is replaced with power_on and power_off to align with the new PHY framework. musb->xceiv can't be removed as of now because musb core uses xceiv.state and xceiv.otg. Once there is a separate state mach

[PATCH v11 8/8] usb: phy: twl4030-usb: remove *set_suspend* and *phy_init* ops

2013-08-20 Thread Kishon Vijay Abraham I
Now that twl4030-usb is adapted to the new generic PHY framework, *set_suspend* and *phy_init* ops can be removed from twl4030-usb driver. Signed-off-by: Kishon Vijay Abraham I Acked-by: Felipe Balbi Reviewed-by: Sylwester Nawrocki --- drivers/phy/phy-twl4030-usb.c | 57 ++---

[PATCH v11 0/8] PHY framework

2013-08-20 Thread Kishon Vijay Abraham I
Added a generic PHY framework that provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. This framework will be of use only to devices that uses external PHY (PHY functionality is not embedded w

Re: [PATCH 0/9] [RFC v2] safely drop directory dentry on failed revalidate

2013-08-20 Thread Al Viro
On Thu, Aug 08, 2013 at 05:24:41PM +0200, Miklos Szeredi wrote: > Here's a series for fixing issues with d_drop on a directory dentry with > children and adding support for such dropped directories in fuse. > > This one fixes a couple of issues I found with the previous incarnation and > split out

Re: Proposed stable release changes

2013-08-20 Thread Willy Tarreau
On Tue, Aug 20, 2013 at 05:49:24PM -0700, Greg KH wrote: > On Tue, Aug 20, 2013 at 08:41:23PM -0400, Josh Boyer wrote: > > On Tue, Aug 20, 2013 at 7:57 PM, Greg KH wrote: > > >> I like this overall. The only thing I might change is "wait for -rc2" > > >> for patches tagged with CC: stable that go

Re: [PATCH V8 00/33] loop: Issue O_DIRECT aio using bio_vec

2013-08-20 Thread Sedat Dilek
On Wed, Aug 21, 2013 at 2:14 AM, Stephen Rothwell wrote: > Hi Dave, > > On Tue, 20 Aug 2013 14:13:15 -0500 Dave Kleikamp > wrote: >> >> Would you be willing to pick up >> git://github.com/kleikamp/linux-shaggy.git for-next >> into linux-next? > > I have added that from today. > >> There will be

Re: [PATCH 0/3] mm: shmem: check the return value of mpol_to_str()

2013-08-20 Thread Cyrill Gorcunov
On Wed, Aug 21, 2013 at 10:21:22AM +0800, Chen Gang wrote: > mpol_to_str() may fail, and not fill the buffer (e.g. -EINVAL), so need > check about it, or buffer may not be zero based, and next seq_printf() > will cause issue. > > Signed-off-by: Chen Gang > Cc: Cyrill Gorcunov Looks good to me,

Re: Proposed stable release changes

2013-08-20 Thread Willy Tarreau
On Tue, Aug 20, 2013 at 04:12:32PM -0700, Greg KH wrote: > On Wed, Aug 21, 2013 at 12:58:15AM +0200, Willy Tarreau wrote: > > Hi Greg, > > > > On Tue, Aug 20, 2013 at 03:40:32PM -0700, Greg KH wrote: > > > Hi all, > > > > > > Given that I had to just revert a patch in the recent stable releases >

[PATCH v8 1/1] input: ideapad_slidebar: new input driver

2013-08-20 Thread Andrey Moiseev
v8: added `extended = false;` line ideapad_slidebar is a new driver which enables slidebars on some Lenovo IdeaPad laptops (the slidebars work with SlideNav/Desktop Navigator under Windows) Fixes this: https://bugzilla.kernel.org/show_bug.cgi?id=16004 Registers 'IdeaPad Slidebar' input device an

Re: [RFC PATCH 2/4] openrisc: remove undefined of_get_cpu_node declaration

2013-08-20 Thread Jonas Bonn
On 08/16/13 11:41, Sudeep KarkadaNagesha wrote: On 15/08/13 18:09, Sudeep KarkadaNagesha wrote: From: Sudeep KarkadaNagesha This patch removes the declaration of the function 'of_get_cpu_node' which is not defined for openrisc. This is in preparation to move it's definition from PPC to DT comm

Re: linux-next: build failure after merge of the final tree

2013-08-20 Thread Dwight Engen
On Tue, 20 Aug 2013 22:46:30 +0200 Arnd Bergmann wrote: > On Tuesday 20 August 2013, Dwight Engen wrote: > > diff --git a/arch/powerpc/platforms/cell/spufs/inode.c > > b/arch/powerpc/platforms/cell/spufs/inode.c index f390042..90fb308 > > 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c > >

Re: [PATCH v2 0/8] turbostat: Build fixes, 32-bit support, and cleanups

2013-08-20 Thread Mike Frysinger
Acked-by: Mike Frysinger -mik -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v2 6/8] turbostat: Factor out common function to open file and exit on failure

2013-08-20 Thread Mike Frysinger
On Tue, Aug 20, 2013 at 8:20 PM, Josh Triplett wrote: > +FILE *fopen_or_die(const char *path, const char *mode) > +{ > + FILE *filep = fopen(path, "r"); not a big deal, but would be nice to add the "e" flag -mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [BUG REPORT]kernel panic with kmemcheck config

2013-08-20 Thread Dave Hansen
On 08/20/2013 07:45 PM, Libin wrote: > [3.158023] [ cut here ] > [3.162626] WARNING: CPU: 0 PID: 1 at > arch/x86/mm/kmemcheck/kmemcheck.c:634 kmemcheck_fault+0xb1/0xc0() ... > [3.314877] [] ? kmemcheck_trap+0x17/0x30 > [3.320507] <> <#DB> [] do_debug+0x1

Re: [PATCH v2 2/4] mm/sparse: introduce alloc_usemap_and_memmap

2013-08-20 Thread Yinghai Lu
On Tue, Aug 20, 2013 at 8:11 PM, Wanpeng Li wrote: > Hi Yinghai, > On Tue, Aug 20, 2013 at 05:02:17PM -0700, Yinghai Lu wrote: - /* ok, last chunk */ - sparse_early_usemaps_alloc_node(usemap_map, pnum_begin, NR_MEM_SECTIONS, - usema

linux-next: manual merge of the trivial tree with the wireless tree

2013-08-20 Thread Stephen Rothwell
Hi Jiri, Today's linux-next merge of the trivial tree got a conflict in drivers/net/wireless/iwlwifi/mvm/time-event.c between commit 057397943eee ("iwlwifi: mvm: disconnect if time event scheduling fails") from the wireless tree and commit 0b1587b18bfe ("treewide: Fix typo in printk") from the tri

Re: [PATCH 1/3] ARM: imx6q: refactor some ldb related clocks

2013-08-20 Thread Liu Ying
On 08/20/2013 11:40 PM, Fabio Estevam wrote: > On Tue, Aug 20, 2013 at 5:38 AM, Liu Ying wrote: > >> diff --git a/Documentation/devicetree/bindings/clock/imx6q-clock.txt >> b/Documentation/devicetree/bindings/clock/imx6q-clock.txt >> index 5a90a72..90e923e 100644 >> --- a/Documentation/devicetre

linux-next: manual merge of the trivial tree with the net-next tree

2013-08-20 Thread Stephen Rothwell
Hi Jiri, Today's linux-next merge of the trivial tree got a conflict in drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c between commit 068a8d197e00 ("qlcnic: Replace poll mode mailbox interface with interrupt based mailbox interface") from the tree and commit 0b1587b18bfe ("treewide: Fix typo

Re: [PATCH] kernel: user_namespace: always set the return parameter 'new_cred' when call unshare_userns() successfully.

2013-08-20 Thread Chen Gang
On 08/20/2013 10:37 PM, Oleg Nesterov wrote: > On 08/20, Serge Hallyn wrote: >> >> Quoting Chen Gang (gang.c...@asianux.com): >>> When unshare_userns() succeed, recommend to always set the return >>> parameter which may be used by caller. >>> >>> The caller has rights to call it with 'new_cred' uni

Re: [PATCH 0/3] refactor some ldb related clocks

2013-08-20 Thread Liu Ying
On 08/21/2013 09:59 AM, Shawn Guo wrote: > Hi Ying, > > On Tue, Aug 20, 2013 at 06:08:48PM +0800, Liu Ying wrote: >>> While I admit to having introduced the combination of 1/3.5 fixed >>> divider and configurable 1/1,1/2 divder clocks to describe this >>> fractional divider for the reasons you sta

Re: rfc: trivial patches and slow deaths?

2013-08-20 Thread Joe Perches
On Tue, 2013-08-20 at 20:36 -0500, Rob Landley wrote: > On 08/20/2013 07:22:36 PM, Joe Perches wrote: > > I'm also saying that the trivial tree should > > have some visibility about whether or not a > > patch or series will be handled by the trivial > > maintainer or not. [] > > Jiri has not respon

linux-next: manual merge of the trivial tree with the crypto tree

2013-08-20 Thread Stephen Rothwell
Hi Jiri, Today's linux-next merge of the trivial tree got a conflict in drivers/crypto/ux500/hash/hash_core.c between commit 69d2884debaa ("crypto: ux500 - Fix logging, make arrays const, neatening") from the crypto tree and commit 0b1587b18bfe ("treewide: Fix typo in printk") from the trivial tre

Re: [PATCH] kernel/futex.c: notice the return value after rt_mutex_finish_proxy_lock() fails

2013-08-20 Thread Chen Gang
On 08/21/2013 12:19 AM, Darren Hart wrote: > HopingOn Tue, 2013-08-20 at 11:07 +0800, Chen Gang wrote: > > > Hi Chen, > >> rt_mutex_finish_proxy_lock() can return failure code (e.g. -EINTR, >> -ETIMEDOUT). >> >> Original implementation has already noticed about it, but not check it >> before nex

[PATCH] irq: add irq handler function name in ftrace

2013-08-20 Thread Li Fei
At present, irq handler function name is not printed out when irq_handler_entry is added into trace event, which is inconvenient for debugging. In order to improve the debugging efficiency, print out the handler function name in irq_handler_entry. Signed-off-by: Li Fei Acked-by: Liu Chuansheng -

Re: [PATCH] bcache: Remove use of down/up_read_non_owner()

2013-08-20 Thread Kent Overstreet
On Tue, Aug 20, 2013 at 10:41:53PM -0400, Steven Rostedt wrote: > > I get that there's a problem, but the bcache code REALLY IS USING THE > > RWSEM AS A LOCK; the answer isn't to open code the lock! > > Actually, it is using it as a semaphore. The problem with Linux > was that it only had spin loc

Re: [PATCH v3 trivial 0/7] Miscellaneous Trivialities

2013-08-20 Thread Michael Witten
On Tue, 20 Aug 2013 19:19:37 -0500, Rob Landley wrote: > Because some people actually read the commit logs and changes that > don't do anything add noise for no benefit? (Your fourth change was a > single typo fix. The previous three changes _combined_ were less > valuable than that single typo fi

Re: [PATCH 5/8] rcu: eliminate deadlock for rcu read site

2013-08-20 Thread Lai Jiangshan
On 08/21/2013 11:17 AM, Paul E. McKenney wrote: > On Sat, Aug 10, 2013 at 08:07:15AM -0700, Paul E. McKenney wrote: >> On Sat, Aug 10, 2013 at 11:43:59AM +0800, Lai Jiangshan wrote: > > [ . . . ] > >>> So I have to narrow the range of suspect locks. Two choices: >>> A) don't call rt_mutex_unlock(

Re: [PATCH 5/8] rcu: eliminate deadlock for rcu read site

2013-08-20 Thread Paul E. McKenney
On Sat, Aug 10, 2013 at 08:07:15AM -0700, Paul E. McKenney wrote: > On Sat, Aug 10, 2013 at 11:43:59AM +0800, Lai Jiangshan wrote: [ . . . ] > > So I have to narrow the range of suspect locks. Two choices: > > A) don't call rt_mutex_unlock() from rcu_read_unlock(), only call it > >from rcu_pr

[PATCH 2/4] ARM: dts: Add Freescale ftm pwm node for VF610.

2013-08-20 Thread Xiubo Li
Signed-off-by: Xiubo Li --- arch/arm/boot/dts/vf610.dtsi | 83 +++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index 67d929c..b3a0b6e 100644 --- a/arch/arm/boot/dts/vf610.dtsi ++

[PATCH 3/4] ARM: dts: Enables ftm pwm device for Vybrid VF610 TOWER board.

2013-08-20 Thread Xiubo Li
Signed-off-by: Xiubo Li --- arch/arm/boot/dts/vf610-twr.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index b3905f5..6f93d8d 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/arch/arm/boot/dts/vf610-tw

[PATCH 4/4] Documentation: Add device tree bindings for Freescale FTM PWM

2013-08-20 Thread Xiubo Li
Signed-off-by: Xiubo Li --- .../devicetree/bindings/pwm/fsl-ftm-pwm.txt| 52 ++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/fsl-ftm-pwm.txt diff --git a/Documentation/devicetree/bindings/pwm/fsl-ftm-pwm.txt b/Documentati

[PATCH 1/4] pwm: add freescale ftm pwm driver support

2013-08-20 Thread Xiubo Li
Add freescale ftm pwm driver support. The ftm pwm device can be found on Vybrid VF610 and Layerscape LS-1 SoCs. Signed-off-by: Xiubo Li Signed-off-by: Jingchang Lu --- drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-fsl-ftm.c | 586 +

[PATCH 0/4] Add freescale ftm pwm driver for Vybrid VF610 TOWER

2013-08-20 Thread Xiubo Li
Hello, This patch series is the freescale ftm pwm implementation. There are 8 channels most supported by the ftm pwm, and there are two pwm modes: - Center-Aligned PWM (CPWM) mode - Edge-Aligned PWM (EPWM) mode This implementation is only compatible with device tree definition. Please feel free

Re: [PATCH tip/core/rcu 1/5] rcu: Add duplicate-callback tests to rcutorture

2013-08-20 Thread Paul E. McKenney
On Wed, Aug 21, 2013 at 10:40:15AM +0800, Lai Jiangshan wrote: > On 08/21/2013 02:38 AM, Paul E. McKenney wrote: > > On Tue, Aug 20, 2013 at 06:02:39PM +0800, Lai Jiangshan wrote: > >> On 08/20/2013 10:51 AM, Paul E. McKenney wrote: > >>> From: "Paul E. McKenney" > >>> > >>> This commit adds a obj

Re: [PATCH RFC v2 1/2] qspinlock: Introducing a 4-byte queue spinlock implementation

2013-08-20 Thread Waiman Long
On 08/20/2013 11:31 AM, Alexander Fyodorov wrote: Hi Waiman, I'm not subscribed to the lkml so I'm writing to you instead. In your patch you put smp_wmb() at the end of spin_unlock(): +static __always_inline void queue_spin_unlock(struct qspinlock *lock) +{ + /* +* This unlock fu

[PATCH 3/3] mm/shmem.c: check the return value of mpol_to_str()

2013-08-20 Thread Chen Gang
mpol_to_str() may fail, and not fill the buffer (e.g. -EINVAL), so need check about it, or buffer may not be zero based, and next seq_printf() will cause issue. Signed-off-by: Chen Gang Cc: Cyrill Gorcunov --- mm/shmem.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --gi

Re: [PATCH] bcache: Remove use of down/up_read_non_owner()

2013-08-20 Thread Steven Rostedt
On Tue, 20 Aug 2013 19:19:00 -0700 Kent Overstreet wrote: > On Tue, Aug 20, 2013 at 11:16:02AM -0400, Steven Rostedt wrote: > > > I _really_ disagree with this approach. I had a feeling you would love it. > > I get that there's a problem, but the bcache code REALLY IS USING THE > RWSEM AS A

Re: [PATCH tip/core/rcu 1/5] rcu: Add duplicate-callback tests to rcutorture

2013-08-20 Thread Lai Jiangshan
On 08/21/2013 02:38 AM, Paul E. McKenney wrote: > On Tue, Aug 20, 2013 at 06:02:39PM +0800, Lai Jiangshan wrote: >> On 08/20/2013 10:51 AM, Paul E. McKenney wrote: >>> From: "Paul E. McKenney" >>> >>> This commit adds a object_debug option to rcutorture to allow the >>> debug-object-based checks f

Re: [PATCH] idr: Use this_cpu_ptr() for percpu_ida

2013-08-20 Thread Kent Overstreet
On Tue, Aug 20, 2013 at 10:07:42PM -0400, Tejun Heo wrote: > Hello, Kent. > > On Tue, Aug 20, 2013 at 07:01:32PM -0700, Kent Overstreet wrote: > > I think Tejun and I might be at a bit of an impasse with the ida rewrite > > itself, but I don't think there were any outstanding objections to the > >

[PATCH 1/3] fs/proc/task_mmu.c: check the return value of mpol_to_str()

2013-08-20 Thread Chen Gang
mpol_to_str() may fail, and not fill the buffer (e.g. -EINVAL), so need check about it, or buffer may not be zero based, and next seq_printf() will cause issue. The failure return need after mpol_cond_put() to match get_vma_policy(). Signed-off-by: Chen Gang Cc: Cyrill Gorcunov --- fs/proc/ta

[PATCH] pinctrl: rockchip: Simplify for loop iteration

2013-08-20 Thread Axel Lin
Just return once a match found makes the code simpler and shorter. Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-rockchip.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c in

Re: [PATCH] kernel/module.c: use scnprintf() instead of sprintf()

2013-08-20 Thread Chen Gang
On 08/20/2013 02:04 PM, Rusty Russell wrote: > Chen Gang writes: > >> For some strings, they are permitted to be larger than PAGE_SIZE, so >> need use scnprintf() instead of sprintf(), or it will cause issue. >> >> One case is: >> >> if a module version is crazy defined (length more than PAGE_S

[PATCH 2/3] mm/shmem.c: let shmem_show_mpol() return value.

2013-08-20 Thread Chen Gang
Let shmem_show_mpol() return value, since it may fail. Signed-off-by: Chen Gang Cc: Cyrill Gorcunov --- mm/shmem.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index 75010ba..e59d332 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -883,1

[Device-tree] mailing list responsiveness and discoverability

2013-08-20 Thread Brian Norris
Hello device tree maintainers, I (sub)maintain the Linux MTD subsystem and hang out on the linux-...@infradead.org mailing list. I have been seeing an increasing number of submissions that involve device-tree changes. Many of these changes are ill thought out and may even cause ABI breakage. Acco

[PATCH] cpuset: fix a regression in validating config change

2013-08-20 Thread Li Zefan
It's not allowed to clear masks of a cpuset if there're tasks in it, but it's broken: # mkdir /cgroup/sub # echo 0 > /cgroup/sub/cpuset.cpus # echo 0 > /cgroup/sub/cpuset.mems # echo $$ > /cgroup/sub/tasks # echo > /cgroup/sub/cpuset.cpus (should fail) This bug was introduced by commi

[PATCH 0/3] mm: shmem: check the return value of mpol_to_str()

2013-08-20 Thread Chen Gang
mpol_to_str() may fail, and not fill the buffer (e.g. -EINVAL), so need check about it, or buffer may not be zero based, and next seq_printf() will cause issue. Signed-off-by: Chen Gang Cc: Cyrill Gorcunov --- fs/proc/task_mmu.c |4 +++- mm/shmem.c | 16 ++-- 2 files c

Re: [PATCH 04/10] sched, fair: Shrink sg_lb_stats and play memset games

2013-08-20 Thread Joonsoo Kim
On Wed, Aug 21, 2013 at 11:08:29AM +0900, Joonsoo Kim wrote: > On Mon, Aug 19, 2013 at 06:01:02PM +0200, Peter Zijlstra wrote: > > +static inline void init_sd_lb_stats(struct sd_lb_stats *sds) > > +{ > > + /* > > +* struct sd_lb_stats { > > +* struct sched_group * busiest;

Re: [PATCH] bcache: Remove use of down/up_read_non_owner()

2013-08-20 Thread Kent Overstreet
On Tue, Aug 20, 2013 at 11:16:02AM -0400, Steven Rostedt wrote: > > The down/up_read_non_owner() is a nasty hack in the API of the rwsem > operations. It was once removed, but then resurrected for use with > bcache. Not only is the API an abomination to the rwsem API, it also > prevents bcache fro

Re: [PATCH 00/10] Various load-balance cleanups/optimizations -v2

2013-08-20 Thread Joonsoo Kim
On Mon, Aug 19, 2013 at 06:00:58PM +0200, Peter Zijlstra wrote: > > After poking at them a little more I feel somewhat more confident. > > I found one more bug, but this one was my own fault, we should also clear > sds->busiest_stat.avg_load because update_sd_pick_busiest() reads that before > we

RE: [PATCH] LMK: Optimize lowmem_shrink

2013-08-20 Thread Ma, Xindong
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Tuesday, August 20, 2013 4:30 PM > To: Ma, Xindong > Cc: gre...@linuxfoundation.org; ccr...@android.com; > de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] LMK: Optimize lowm

Re: [PATCH 04/10] sched, fair: Shrink sg_lb_stats and play memset games

2013-08-20 Thread Joonsoo Kim
On Mon, Aug 19, 2013 at 06:01:02PM +0200, Peter Zijlstra wrote: > +static inline void init_sd_lb_stats(struct sd_lb_stats *sds) > +{ > + /* > + * struct sd_lb_stats { > + * struct sched_group * busiest; // 0 8 > + * struct sched_group *

Re: [PATCH] idr: Use this_cpu_ptr() for percpu_ida

2013-08-20 Thread Tejun Heo
Hello, Kent. On Tue, Aug 20, 2013 at 07:01:32PM -0700, Kent Overstreet wrote: > I think Tejun and I might be at a bit of an impasse with the ida rewrite > itself, but I don't think there were any outstanding objections to the > percpu ida code itself - and this is a standalone version. The percpu

Re: [PATCH] kernel/params.c: use scnprintf() instead of sprintf()

2013-08-20 Thread Chen Gang
On 08/20/2013 02:05 PM, Rusty Russell wrote: > Chen Gang writes: > >> For some strings (e.g. version string), they are permitted to be larger >> than PAGE_SIZE (although meaningless), so recommend to use scnprintf() >> instead of sprintf(). > > Applied. > Thanks. > Thanks, > Rusty. > >> >> S

Re: [PATCH] idr: Use this_cpu_ptr() for percpu_ida

2013-08-20 Thread Kent Overstreet
On Tue, Aug 20, 2013 at 02:29:56PM -0700, Andrew Morton wrote: > On Tue, 20 Aug 2013 14:19:06 -0700 "Nicholas A. Bellinger" > wrote: > > > On Thu, 2013-08-08 at 14:32 +, Christoph Lameter wrote: > > > On Wed, 7 Aug 2013, Kent Overstreet wrote: > > > > > > > One thing that was bugging me - I

Re: [PATCH 0/3] refactor some ldb related clocks

2013-08-20 Thread Shawn Guo
Hi Ying, On Tue, Aug 20, 2013 at 06:08:48PM +0800, Liu Ying wrote: > > While I admit to having introduced the combination of 1/3.5 fixed > > divider and configurable 1/1,1/2 divder clocks to describe this > > fractional divider for the reasons you state, I think the correct > > solution would be t

[PATCH] reboot: perform warm/cold reset correctly for CF9 type

2013-08-20 Thread Li Fei
In current implementation for reboot type CF9 and CF9_COND, warm and cold reset are not differentiated, and both are performed by writing 0x06 to port 0xCF9 as warm reset. It's not correct. This commit will differentiate warm and cold reset, and perform them correctly as below: For warm reset, wri

[PATCH 3/3] mmc:memstick:rtsx: Modify copyright comments

2013-08-20 Thread wei_wang
From: Wei WANG Update copyright date, and remove author address. Signed-off-by: Wei WANG --- drivers/memstick/host/rtsx_pci_ms.c |3 +-- drivers/mmc/host/rtsx_pci_sdmmc.c |3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/memstick/host/rtsx_pci_ms.c b/dri

[PATCH] LMK: Optimize lowmem_shrink

2013-08-20 Thread Leon Ma
From: Leon Ma Date: Mon, 19 Aug 2013 14:22:38 +0800 Subject: [PATCH] LMK: Optimize lowmem_shrink. By comparing with selected_oom_score_adj instead of min_score_adj, we may do less calculation. Signed-off-by: Leon Ma --- drivers/staging/android/lowmemorykiller.c | 12 1 files cha

[PATCH 2/3] mmc:rtsx:Clear SD_CLK toggle enable bit if switching voltage fail

2013-08-20 Thread wei_wang
From: Wei WANG If switching voltage fails, SD_CLK toggle enable bit should been cleared so that SD host can control SD clock automatically. Signed-off-by: Wei WANG --- drivers/mmc/host/rtsx_pci_sdmmc.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/h

[PATCH 1/3] mfd:mmc:rtsx: Change default tx phase

2013-08-20 Thread wei_wang
From: Wei WANG The default phase can meet most cards' requirement, but it is not the optimal one. In some extreme situation, the rx phase point produced by the following tuning process will drift quite a distance. Before tuning UHS card, this patch will set a more proper initial tx phase point, w

[PATCH 0/3] Fix sd3.0 issues for Realtek card reader

2013-08-20 Thread wei_wang
From: Wei WANG Wei WANG (3): mfd:mmc:rtsx: Change default tx phase mmc:rtsx:Clear SD_CLK toggle enable bit if switching voltage fail mmc:memstick:rtsx: Modify copyright comments drivers/memstick/host/rtsx_pci_ms.c |3 +- drivers/mfd/rtl8411.c |4 ++ drivers/mfd/rts52

Re: [PATCH 1/3] ARM: imx6q: refactor some ldb related clocks

2013-08-20 Thread Shawn Guo
On Tue, Aug 20, 2013 at 02:18:27PM -0700, Mike Turquette wrote: > Quoting Fabio Estevam (2013-08-20 08:40:52) > > On Tue, Aug 20, 2013 at 5:38 AM, Liu Ying wrote: > > > > > diff --git a/Documentation/devicetree/bindings/clock/imx6q-clock.txt > > > b/Documentation/devicetree/bindings/clock/imx6q-

Re: rfc: trivial patches and slow deaths?

2013-08-20 Thread Rob Landley
On 08/20/2013 07:22:36 PM, Joe Perches wrote: On Tue, 2013-08-20 at 19:10 -0500, Rob Landley wrote: > The important question is does he want to handle patches that you're > flipping out about not going in before the next merge window because > they are SO IMPORTANT that the trivial tree must prom

Re: [PATCH v3 3/5] mm: Notify filesystems when it's time to apply a deferred cmtime update

2013-08-20 Thread Dave Chinner
On Tue, Aug 20, 2013 at 05:47:10PM -0700, Andy Lutomirski wrote: > On Tue, Aug 20, 2013 at 3:43 PM, Dave Chinner wrote: > > On Tue, Aug 20, 2013 at 02:54:01PM -0700, Andy Lutomirski wrote: > >> On Tue, Aug 20, 2013 at 2:48 PM, Dave Chinner wrote: > >> > On Tue, Aug 20, 2013 at 09:42:34AM -0700, A

Re: [PATCH 1/3] ARM: OMAP2+: hwmod-data: Add SSI information

2013-08-20 Thread Paul Walmsley
Hi Sebastian On Sun, 11 Aug 2013, Sebastian Reichel wrote: > From: Sebastian Reichel > > This patch adds Synchronous Serial Interface (SSI) hwmod support for > OMAP34xx SoCs. a few comments: - please add your Signed-off-by: to the patch description, per Documentation/SubmittingPatches - ple

Re: [PATCH] kernel/module.c: use scnprintf() instead of sprintf()

2013-08-20 Thread Rusty Russell
Chen Gang writes: > For some strings, they are permitted to be larger than PAGE_SIZE, so > need use scnprintf() instead of sprintf(), or it will cause issue. > > One case is: > > if a module version is crazy defined (length more than PAGE_SIZE), > 'modinfo' command is still OK (print full con

Re: [PATCH] kernel/params.c: use scnprintf() instead of sprintf()

2013-08-20 Thread Rusty Russell
Chen Gang writes: > For some strings (e.g. version string), they are permitted to be larger > than PAGE_SIZE (although meaningless), so recommend to use scnprintf() > instead of sprintf(). Applied. Thanks, Rusty. > > Signed-off-by: Chen Gang > --- > kernel/params.c |7 --- > 1 files

Re: [PATCH] Kconfig: Remove hotplug enable hints in CONFIG_KEXEC help texts

2013-08-20 Thread Stephen Rothwell
Hi Geert, On Tue, 20 Aug 2013 21:38:03 +0200 Geert Uytterhoeven wrote: > > commit 40b313608ad4ea655addd2ec6cdd106477ae8e15 ("Finally eradicate > CONFIG_HOTPLUG") removed remaining references to CONFIG_HOTPLUG, but missed > a few plain English references in the CONFIG_KEXEC help texts. > > Remov

  1   2   3   4   5   6   7   8   >