Re: [PATCH 1/3] mfd: support stmpe1801 18 bits enhanced port expander

2013-04-09 Thread Linus Walleij
On Tue, Apr 9, 2013 at 10:35 AM, Jean-Nicolas Graux wrote: > Provides support for 1801 variant of stmpe gpio port expanders. > This chip has 18 gpios configurable as GPI, GPO, keypad matrix, > special key or dedicated key function. > > Note that special/dedicated key function is not supported

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Linus Walleij
On Tue, Apr 9, 2013 at 1:39 PM, Daniel Tang wrote: >>> +union reg_clk_speed { >>> + unsigned long raw; >>> + struct { >>> + unsigned long __padding0:1; >>> + unsigned long base_cpu_ratio:7; >>> + unsigned long is_base_27mhz:1; >>> +

Re: [PATCH 2/2] mfd: db8500-prcmu: Support platform dependant device selection

2013-04-09 Thread Lee Jones
On Thu, 04 Apr 2013, Lee Jones wrote: > The main aim for this cycle is to have the u8540 booting to a > console. However, the u8540 doesn't support all of the u8500 > platform devices yet. After this stage is complete we can then > fill in the inadequacies, such as specific clock support at a >

Re: [PATCH 1/2] dma: of: Add generic xlate function for matching by channel id

2013-04-09 Thread Vinod Koul
On Sat, Mar 30, 2013 at 09:38:54AM +0100, Lars-Peter Clausen wrote: > On 03/29/2013 10:49 PM, Vinod Koul wrote: > > On Mon, Mar 25, 2013 at 02:16:51PM +0100, Lars-Peter Clausen wrote: > >> This patch adds a new generic of dma xlate callback function which will > >> match a > >> channel by its id.

Re: [patch v3 6/8] sched: consider runnable load average in move_tasks

2013-04-09 Thread Vincent Guittot
On 9 April 2013 12:38, Alex Shi wrote: > On 04/09/2013 04:58 PM, Vincent Guittot wrote: >> How do you ensure that runnable_avg_period and runnable_avg_sum are >> coherent ? an update of the statistic can occur in the middle of your >> sequence. >>> > >>> > Thanks for your question,

Re: Re: drm/i915: new warning (regression) in 3.7.10 and 3.8.3

2013-04-09 Thread Tomas Melin
On Mon, 18 Mar 2013 09:32:51 +0100, Daniel Vetter wrote: > > On Sat, Mar 16, 2013 at 01:28:50PM +0100, Richard Cochran wrote: >> >> I have an Acer Aspire One netbook, and on it I get the following >> warning when closing and opening the lid. I think this warning first >> appeared in 3.7. >> >>

[PATCH] powerpc/crypto: Add property for 'era' in SEC dts crypto node

2013-04-09 Thread Vakul Garg
The crypto node now contains a new property 'fsl,sec-era'. This is required so that applications can retrieve era info without having to be able to read SEC's register space. Signed-off-by: Vakul Garg --- arch/powerpc/boot/dts/fsl/pq3-sec4.4-0.dtsi |1 +

Re: [PATCH v9 1/2] ARM: davinci: dm365: add support for v4l2 video display

2013-04-09 Thread Prabhakar Lad
Sekhar, On Tue, Apr 9, 2013 at 5:18 PM, Sekhar Nori wrote: > On 4/8/2013 2:47 PM, Prabhakar lad wrote: >> From: Lad, Prabhakar >> >> Create platform devices for various video modules like venc,osd, >> vpbe and v4l2 driver for dm365. >> >> Signed-off-by: Lad, Prabhakar >> Acked-by: Sekhar Nori

[PATCH] Add option to disable kernel compression

2013-04-09 Thread Christian Ruppert
Until now, kernel compression can only be disabled by deselecting HAVE_ in the architecture Kconfig. However, some users/platforms within the same architecture might want to use compression while others might want to disable it. This patch is a solution to the dilemma. Signed-off-by: Christian

Re: [PATCH v9 1/2] ARM: davinci: dm365: add support for v4l2 video display

2013-04-09 Thread Sekhar Nori
On 4/8/2013 2:47 PM, Prabhakar lad wrote: > From: Lad, Prabhakar > > Create platform devices for various video modules like venc,osd, > vpbe and v4l2 driver for dm365. > > Signed-off-by: Lad, Prabhakar > Acked-by: Sekhar Nori > --- > diff --git a/arch/arm/mach-davinci/davinci.h

Re: mfd: Core driver for Winbond chips

2013-04-09 Thread Wim Van Sebroeck
Hi Guenter, > I was waiting for feedback from Wim, who submitted a similar driver, about his > thoughts. Key question is how to reserve access to the shared resource - > either > through an exported function in the mfd driver requesting a mutex, or through > request_muxed_region(). I am going

[PATCH v2.1 5/5] ACPI / LPSS: add support of shared clock

2013-04-09 Thread Andy Shevchenko
From: "Rafael J. Wysocki" The DMA controller in Lynxpoint is using the LPSS root clock as a functional clock to work properly. Proposed patch adds support of the shared clock. It also avoids hardcoding the name of the DMA device in clk-lpt.c and the name of the root clock in acpi_lpss.c.

Re: [PATCH 1/2] dmaengine: mpc512x_dma: use generic DMA DT bindings

2013-04-09 Thread Anatolij Gustschin
On Mon, 08 Apr 2013 12:46:47 +0200 Lars-Peter Clausen wrote: ... > > +static struct dma_chan *mpc_dma_xlate(struct of_phandle_args *dma_spec, > > + struct of_dma *ofdma) > > +{ > > + int count = dma_spec->args_count; > > + struct mpc_dma *mdma =

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Daniel Tang
Hi, Thanks for your comments! They're much appreciated. Just to bring you up to speed, we decided to begin reimplementing the machine from scratch and slowly pull things in from the original patch. Arnd pointed out a lot of fundamental issues with our patch so we thought it'd be better to

Re: mfd: Core driver for Winbond chips

2013-04-09 Thread Wim Van Sebroeck
Hi Samuel, > > MFD core driver for various variants of Winbond/Nuvoton SuperIO chips. > > > > Signed-off-by: Guenter Roeck > > --- > > drivers/mfd/Kconfig | 22 +++ > > drivers/mfd/Makefile |1 + > > drivers/mfd/w83627hf-core.c | 324 > >

Re: [PATCH] checkpatch: Check block comments outside of net

2013-04-09 Thread Matthijs Kooijman
Hi Joe, On Tue, Apr 09, 2013 at 04:32:54AM -0700, Joe Perches wrote: > > Note that this patch rejects /** comments, since those are not mentioned > > in Codingstyle. They are used in practice though (around 1000 occurences > > in kernel/ alone), so perhaps they should be allowed and documented? >

Re: mfd: Core driver for Winbond chips

2013-04-09 Thread Guenter Roeck
On Tue, Apr 09, 2013 at 11:37:01AM +0200, Samuel Ortiz wrote: > Hi Guenter, > > On Sat, Mar 23, 2013 at 10:49:14AM -0700, Guenter Roeck wrote: > > MFD core driver for various variants of Winbond/Nuvoton SuperIO chips. > > > > Signed-off-by: Guenter Roeck > > --- > > drivers/mfd/Kconfig

Re: [PATCH v2 5/5] ACPI / LPSS: add support of shared clock

2013-04-09 Thread Rafael J. Wysocki
On Tuesday, April 09, 2013 02:05:47 PM Andy Shevchenko wrote: > From: "Rafael J. Wysocki" Well, that should be From: Rafael J. Wysocki > > The DMA controller in Lynxpoint is using the LPSS root clock as a functional > clock to work properly. Proposed patch adds support of the shared clock.

Re: [PATCH v3 3/3] ARM: davinci: da850: add EHRPWM & ECAP DT node

2013-04-09 Thread Sekhar Nori
On 4/9/2013 2:12 PM, Philip, Avinash wrote: > On Mon, Apr 08, 2013 at 18:39:57, Nori, Sekhar wrote: >> >> On 4/8/2013 2:39 PM, Philip, Avinash wrote: >>> On Tue, Apr 02, 2013 at 14:03:34, Nori, Sekhar wrote: On 3/25/2013 1:19 PM, Philip Avinash wrote: > Add da850 EHRPWM & ECAP DT node.

Re: [PATCH] x86, amd, mce: Prevent potential cpu-online oops

2013-04-09 Thread Steffen Persvold
On 4/9/2013 12:24 PM, Borislav Petkov wrote: On Tue, Apr 09, 2013 at 11:45:44AM +0200, Steffen Persvold wrote: Hmm, yes of course. This of course breaks on our slave servers when the shared mechanism doesn't work properly (i.e NB not visible). Then all cores gets individual kobjects and there

Re: [PATCH] checkpatch: Check block comments outside of net

2013-04-09 Thread Joe Perches
On Tue, 2013-04-09 at 13:19 +0200, Matthijs Kooijman wrote: > There was some code checking block comments in net/ and drivers/net/, > but nothing to check the regular block comment style. [] > Note that this patch rejects /** comments, since those are not mentioned > in Codingstyle. They are used

Re: linux-next: build warning after merge of the final tree (probably arm-soc tree related)

2013-04-09 Thread Russell King - ARM Linux
On Tue, Apr 09, 2013 at 11:21:24AM +0200, Arnd Bergmann wrote: > On Tuesday 09 April 2013, Stephen Rothwell wrote: > > After merging the final tree, today's linux-next build (arm defconfig) > > produced these warnings: > > > > arch/arm/mach-cns3xxx/Kconfig:2:warning: choice value used outside its

[PATCH] checkpatch: Check block comments outside of net

2013-04-09 Thread Matthijs Kooijman
There was some code checking block comments in net/ and drivers/net/, but nothing to check the regular block comment style. The end of a block comment is the same as inside net, so that check can just be generalized. The start of block comment must not have any comment after the leading /*,

Re: Version number policy!

2013-04-09 Thread Theodore Ts'o
On Mon, Apr 08, 2013 at 06:51:10PM -0700, Adrian Chadd wrote: > > But then you end up with people making filesystems which aren't > necessarily backwards compatible (and aren't aware of this), then try > to share with other extX implementations; or boot an older Linux > kernel (eg plugging an

[PATCH v2] checkpatch: Check block comments outside of net

2013-04-09 Thread Matthijs Kooijman
There was some code checking block comments in net/ and drivers/net/, but nothing for regular comments. The end of a block comment is the same as inside net, so that check can just be generalized. The start of block comment must not have any comment after the leading /*, which requires a new

Re: [PATCH 08/10] mm: vmscan: Have kswapd shrink slab only once per priority

2013-04-09 Thread Mel Gorman
On Tue, Apr 09, 2013 at 03:53:25PM +0900, Joonsoo Kim wrote: > Hello, Mel. > Sorry for too late question. > No need to apologise at all. > On Sun, Mar 17, 2013 at 01:04:14PM +, Mel Gorman wrote: > > If kswaps fails to make progress but continues to shrink slab then it'll > > either discard

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Linus Walleij
On Sun, Apr 7, 2013 at 11:23 PM, Arnd Bergmann wrote: > On Sunday 07 April 2013, Daniel Tang wrote: >> Here's an updated patch that enables support for the LCD. >> >> I looked into drivers/video/of_display_timing.c but it doesn't have the >> fields to describe the >> PL11x specific options

[PATCH] module: add kset_obj_exists() and use it

2013-04-09 Thread Veaceslav Falico
Add a new function, kset_obj_exists(), which is identical to kset_find_obj() but doesn't take a reference to the kobject found and only returns bool if found/not found. The main purpose would be to avoid the possible race scenario, when we could get the reference in between the kref_put() and

[PATCH 02/10] mm: vmscan: Obey proportional scanning requirements for kswapd

2013-04-09 Thread Mel Gorman
Simplistically, the anon and file LRU lists are scanned proportionally depending on the value of vm.swappiness although there are other factors taken into account by get_scan_count(). The patch "mm: vmscan: Limit the number of pages kswapd reclaims" limits the number of pages kswapd reclaims but

[PATCH 03/10] mm: vmscan: Flatten kswapd priority loop

2013-04-09 Thread Mel Gorman
kswapd stops raising the scanning priority when at least SWAP_CLUSTER_MAX pages have been reclaimed or the pgdat is considered balanced. It then rechecks if it needs to restart at DEF_PRIORITY and whether high-order reclaim needs to be reset. This is not wrong per-se but it is confusing to follow

[PATCH 0/10] Reduce system disruption due to kswapd V2

2013-04-09 Thread Mel Gorman
Posting V2 of this series got delayed due to trying to pin down an unrelated regression in 3.9-rc where interactive performance is shot to hell. That problem still has not been identified as it's resisting attempts to be reproducible by a script for the purposes of bisection. For those that

[PATCH 07/10] mm: vmscan: Block kswapd if it is encountering pages under writeback

2013-04-09 Thread Mel Gorman
Historically, kswapd used to congestion_wait() at higher priorities if it was not making forward progress. This made no sense as the failure to make progress could be completely independent of IO. It was later replaced by wait_iff_congested() and removed entirely by commit 258401a6 (mm: don't wait

[PATCH 06/10] mm: vmscan: Have kswapd writeback pages based on dirty pages encountered, not priority

2013-04-09 Thread Mel Gorman
Currently kswapd queues dirty pages for writeback if scanning at an elevated priority but the priority kswapd scans at is not related to the number of unqueued dirty encountered. Since commit "mm: vmscan: Flatten kswapd priority loop", the priority is related to the size of the LRU and the zone

[PATCH 04/10] mm: vmscan: Decide whether to compact the pgdat based on reclaim progress

2013-04-09 Thread Mel Gorman
In the past, kswapd makes a decision on whether to compact memory after the pgdat was considered balanced. This more or less worked but it is late to make such a decision and does not fit well now that kswapd makes a decision whether to exit the zone scanning loop depending on reclaim progress.

[PATCH 08/10] mm: vmscan: Have kswapd shrink slab only once per priority

2013-04-09 Thread Mel Gorman
If kswaps fails to make progress but continues to shrink slab then it'll either discard all of slab or consume CPU uselessly scanning shrinkers. This patch causes kswapd to only call the shrinkers once per priority. Signed-off-by: Mel Gorman Reviewed-by: Michal Hocko Acked-by: Rik van Riel ---

Re: [PATCH v8 0/2] ARM: davinci: dm355: add support for vpbe display

2013-04-09 Thread Sekhar Nori
On 4/8/2013 6:26 PM, Mauro Carvalho Chehab wrote: > Em Mon, 8 Apr 2013 17:17:34 +0530 > Sekhar Nori escreveu: > >> Hi Maruo, >> >> On 4/8/2013 4:26 PM, Mauro Carvalho Chehab wrote: >>> Hi Sekhar, >>> >>> Em Mon, 8 Apr 2013 16:06:24 +0530 >>> Sekhar Nori escreveu: >>> On 4/8/2013 2:56 PM,

[PATCH 10/10] mm: vmscan: Move logic from balance_pgdat() to kswapd_shrink_zone()

2013-04-09 Thread Mel Gorman
balance_pgdat() is very long and some of the logic can and should be internal to kswapd_shrink_zone(). Move it so the flow of balance_pgdat() is marginally easier to follow. Signed-off-by: Mel Gorman --- mm/vmscan.c | 112 +--- 1 file

[PATCH 09/10] mm: vmscan: Check if kswapd should writepage once per pgdat scan

2013-04-09 Thread Mel Gorman
Currently kswapd checks if it should start writepage as it shrinks each zone without taking into consideration if the zone is balanced or not. This is not wrong as such but it does not make much sense either. This patch checks once per pgdat scan if kswapd should be writing pages. Signed-off-by:

[PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-09 Thread Mel Gorman
The number of pages kswapd can reclaim is bound by the number of pages it scans which is related to the size of the zone and the scanning priority. In many cases the priority remains low because it's reset every SWAP_CLUSTER_MAX reclaimed pages but in the event kswapd scans a large number of pages

[PATCH 05/10] mm: vmscan: Do not allow kswapd to scan at maximum priority

2013-04-09 Thread Mel Gorman
Page reclaim at priority 0 will scan the entire LRU as priority 0 is considered to be a near OOM condition. Kswapd can reach priority 0 quite easily if it is encountering a large number of pages it cannot reclaim such as pages under writeback. When this happens, kswapd reclaims very aggressively

Re: [RFC PATCH arm: initial TI-Nspire support]

2013-04-09 Thread Linus Walleij
On Thu, Apr 4, 2013 at 11:01 AM, Daniel Tang wrote: (I suspect I duplicate a lot of Arnd's comments, I haven't really checked. If we contradict each other, point it out so we can discuss.) > +config ARCH_NSPIRE > + bool "TI-NSPIRE based" > + depends on MMU > + select

[PATCH v2 1/5] dma: acpi-dma: introduce ACPI DMA helpers

2013-04-09 Thread Andy Shevchenko
There is a new generic API to get a DMA channel for a slave device (commit 9a6cecc8 "dmaengine: add helper function to request a slave DMA channel"). In similar fashion to the DT case (commit aa3da644 "of: Add generic device tree DMA helpers") we introduce helpers to the DMAC drivers which are

[PATCH v2 5/5] ACPI / LPSS: add support of shared clock

2013-04-09 Thread Andy Shevchenko
From: "Rafael J. Wysocki" The DMA controller in Lynxpoint is using the LPSS root clock as a functional clock to work properly. Proposed patch adds support of the shared clock. It also avoids hardcoding the name of the DMA device in clk-lpt.c and the name of the root clock in acpi_lpss.c.

[PATCH v2 2/5] dmaengine: call acpi_dma_request_slave_channel as well

2013-04-09 Thread Andy Shevchenko
The slave device could be enumerated by ACPI. In that case the dma_request_slave_channel should use the acpi_dma_request_slave_channel() helper. Signed-off-by: Andy Shevchenko Reviewed-by: Mika Westerberg Acked-by: Rafael J. Wysocki --- drivers/dma/dmaengine.c | 6 ++ 1 file changed, 6

[PATCH v2 3/5] dma: acpi-dma: parse CSRT to extract additional resources

2013-04-09 Thread Andy Shevchenko
Since we have CSRT only to get additional DMA controller resources, let's get rid of drivers/acpi/csrt.c and move its logic inside ACPI DMA helpers code. Signed-off-by: Andy Shevchenko Signed-off-by: Mika Westerberg Acked-by: Rafael J. Wysocki Signed-off-by: Andy Shevchenko ---

[PATCH v2 4/5] dw_dmac: add ACPI support

2013-04-09 Thread Andy Shevchenko
Since we have proper ACPI DMA helpers implemented, the driver may use it. This patch introduces custom filter function together with acpi_device_id table. Signed-off-by: Mika Westerberg Signed-off-by: Andy Shevchenko --- drivers/dma/dw_dmac.c | 68

Re: [PATCH 0/2] hfs/hfsplus: Modernize logging styles

2013-04-09 Thread Vyacheslav Dubeyko
On Tue, 2013-04-09 at 03:39 -0700, Joe Perches wrote: > On Tue, 2013-04-09 at 11:08 +0400, Vyacheslav Dubeyko wrote: > > On Mon, 2013-04-08 at 09:37 -0700, Joe Perches wrote: > > > Joe Perches (2): > > > hfs/hfsplus: Convert dprint to hfs_dbg > > > hfs/hfsplus: Convert printks to pr_ > [] > >

[PATCH v2 0/5] dmaengine: add ACPI DMA helpers and use them in dw_dmac

2013-04-09 Thread Andy Shevchenko
There is a patch series which introduces ACPI DMA helpers in similar way like we have for DeviceTree. In addition it applies this to the first user, namely dw_dmac driver. Since v1: - address one Vinod's comment - replace 5/6 & 6/6 by 5/5 from Rafael - tested on Intel Lynxpoint system Andy

[PATCH] max77693: added device tree support

2013-04-09 Thread Andrzej Hajda
max77693 mfd main device uses only wakeup field from max77693_platform_data. This field is mapped to wakeup-source common property in device tree. Signed-off-by: Andrzej Hajda Reviewed-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- Hi Samuel, This is "max77693: added device tree

[PATCH Resend 1/2] mfd: omap-usb-host: Convert to devm_ioremap_resource()

2013-04-09 Thread Sachin Kamat
Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages; so all explicit error messages can be removed from the failure code paths. Signed-off-by: Sachin Kamat

[PATCH Resend 2/2] mfd: omap-usb-tll: Convert to devm_ioremap_resource()

2013-04-09 Thread Sachin Kamat
Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages; so all explicit error messages can be removed from the failure code paths. Signed-off-by: Sachin Kamat

Re: [PATCH 3/3] convert headers_install.pl to headers_install.sh

2013-04-09 Thread Michal Marek
On 28.2.2013 09:19, Michal Marek wrote: > On 27.2.2013 06:58, Rob Landley wrote: >> From: Rob Landley >> >> Remove perl from make headers_install by replacing a perl script (doing >> a simple regex search and replace) with a smaller, faster, simpler, >> POSIX-2008 shell script implementation.

[PATCH] xen: minor fix in apic ipi interface func

2013-04-09 Thread Zhenzhong Duan
xen_send_IPI_mask_allbutself uses native vector as input other than xen_vector. xen_send_IPI_one need to be called to pass xen_vector in xen_send_IPI_mask_allbutself. Signed-off-by: Zhenzhong Duan --- arch/x86/xen/smp.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-)

Re: [GIT PULL] at91: DT changes for 3.10 #3

2013-04-09 Thread Arnd Bergmann
On Thursday 04 April 2013, Nicolas Ferre wrote: > Here is the refreshed pull-request for AT91 that is dedicated to Device Tree > modifications. It is stacked on the material that you already have > for 3.10 in your arm-soc/at91/dt branch. > Following our discussion with Arnd, I added the

Re: [PATCH 0/2] hfs/hfsplus: Modernize logging styles

2013-04-09 Thread Joe Perches
On Tue, 2013-04-09 at 11:08 +0400, Vyacheslav Dubeyko wrote: > On Mon, 2013-04-08 at 09:37 -0700, Joe Perches wrote: > > Joe Perches (2): > > hfs/hfsplus: Convert dprint to hfs_dbg > > hfs/hfsplus: Convert printks to pr_ [] > But I have some additional suggestions: > (1) I think that it makes

Re: [patch v3 6/8] sched: consider runnable load average in move_tasks

2013-04-09 Thread Alex Shi
On 04/09/2013 04:58 PM, Vincent Guittot wrote: >>> >> How do you ensure that runnable_avg_period and runnable_avg_sum are >>> >> coherent ? an update of the statistic can occur in the middle of your >>> >> sequence. >> > >> > Thanks for your question, Vincent! >> > the runnable_avg_period and

[PATCH] scsi: ufs: add support for query requests

2013-04-09 Thread Dolev Raviv
Add support for sending UFS query requests through tagged command queuing. This design allows queuing query requests in any open slot along with other SCSI commands. In this way there is no need to save a slot in the requests queue and decrease its size. A query request is posing to a SCSI

Re: [RFC PATCH 0/2] cpufreq: Introduce LAB cpufreq governor.

2013-04-09 Thread Lukasz Majewski
Hi Viresh, First of all I'd like to apologize for a late response. Please find my comments below. > On Mon, Apr 1, 2013 at 1:54 PM, Jonghwa Lee > wrote: > > <> > > One of the problem of ondemand is that it considers the most busy > > cpu only while doesn't care how many cpu is in busy state

Re: [PATCH 2/5] MEDIA: ttusbir, fix double free

2013-04-09 Thread Sean Young
On Thu, Apr 04, 2013 at 10:32:09PM +0200, Jiri Slaby wrote: > rc_unregister_device already calls rc_free_device to free the passed > device. But in one of ttusbir's probe fail paths, we call > rc_unregister_device _and_ rc_free_device. This is wrong and results > in a double free. > > Instead,

Re: [PATCH V3 4/5] spi: s3c64xx: Added provision for dedicated cs pin

2013-04-09 Thread Mark Brown
On Mon, Apr 08, 2013 at 07:19:05PM +0530, Girish KS wrote: > I will move the populating cs_gpio logic to probe. But the enable_cs > and disable_cs will have the > check before calling the gpio_set_value api (because it takes cs-line > as a parameter), Yes, you'll still need to have a check.

Re: [PATCHv4 01/11] clockevents: Prefer CPU local devices over global devices

2013-04-09 Thread Mark Rutland
Hi Stephen, Apologies for my lack of response on the last version of this. On Mon, Apr 08, 2013 at 10:27:23PM +0100, Stephen Boyd wrote: > On an SMP system with only one global clockevent and a dummy > clockevent per CPU we run into problems. We want the dummy > clockevents to be registered as

Re: [PATCH 1/2] mfd: db8500-prcmu: Return early if the TCPM cannot be located

2013-04-09 Thread Lee Jones
On Tue, 09 Apr 2013, Samuel Ortiz wrote: > Hi Lee, > > On Thu, Apr 04, 2013 at 11:39:00AM +0100, Lee Jones wrote: > > Currently we check to see if we obtained the Tightly Coupled Program > > Memory (TCPM) base and only execute the code within the check if we > > have it. It's more traditional to

Re: [PATCH 1/3] mfd: support stmpe1801 18 bits enhanced port expander

2013-04-09 Thread Samuel Ortiz
Hi Jean-Nicolas, On Tue, Apr 09, 2013 at 10:35:19AM +0200, Jean-Nicolas Graux wrote: > Provides support for 1801 variant of stmpe gpio port expanders. > This chip has 18 gpios configurable as GPI, GPO, keypad matrix, > special key or dedicated key function. > > Note that special/dedicated key

Re: [PATCH 4/5] dmaengine: ste_dma40: Do not configure channels during an channel allocation

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Lee Jones wrote: > According to the DMA documentation allocating a channel and configuring > it are two separate actions. By removing the configuration code from the > channel allocation path we lighten the burden on the information required to > successfully allocate a

Re: [PATCH] usb: ehci-s5p: fix: Fix null pointer dereferencing

2013-04-09 Thread Arnd Bergmann
On Tuesday 09 April 2013, Vivek Gautam wrote: > > 7edb3da makes ehci-s5p as a separate driver. But, > it raised an issue with its driver data. > Now that 's5p_ehci_hcd' doesn't maintain pointer to 'usb_hcd' > and s5p_ehci is nothing but a pointer to hcd->priv; > add hcd to the driver data rather

Re: [PATCH] x86, amd, mce: Prevent potential cpu-online oops

2013-04-09 Thread Borislav Petkov
On Tue, Apr 09, 2013 at 11:45:44AM +0200, Steffen Persvold wrote: > Hmm, yes of course. This of course breaks on our slave servers when > the shared mechanism doesn't work properly (i.e NB not visible). Then > all cores gets individual kobjects and there can be discrepancies > between what the

Re: [PATCH 1/2] mfd: omap-usb-host: Convert to devm_ioremap_resource()

2013-04-09 Thread Sachin Kamat
Hi Samuel, On 9 April 2013 15:43, Samuel Ortiz wrote: > Hi Sachin, > > On Thu, Apr 04, 2013 at 03:15:14PM +0530, Sachin Kamat wrote: >> Use the newly introduced devm_ioremap_resource() instead of >> devm_request_and_ioremap() which provides more consistent error handling. >> >>

Re: [RFC v2] dmaengine: omap-dma: Start DMA without delay for cyclic channels

2013-04-09 Thread Peter Ujfalusi
On 04/09/2013 09:26 AM, Vinod Koul wrote: > Yes it should go thru dmaengine tree, sorry was travelling hence the delay, > pls > resend the patch and I will do the needful I already have the patch rebased on today's linux-next, just waiting for Russell to confirm that I can add his Acked-by to

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-04-09 Thread Simon Jeons
Hi Michal, On 04/09/2013 06:14 PM, Michal Hocko wrote: On Tue 09-04-13 18:05:30, Simon Jeons wrote: [...] I try this in v3.9-rc5: dd if=/dev/sda of=/dev/null bs=1MB 14813+0 records in 14812+0 records out 1481200 bytes (15 GB) copied, 105.988 s, 140 MB/s free -m -s 1

Re: [PATCH 1/6] mfd: wm831x: use spi_get_drvdata() and spi_set_drvdata()

2013-04-09 Thread Samuel Ortiz
Hi Jingoo, On Sat, Apr 06, 2013 at 03:42:48PM +0900, Jingoo Han wrote: > Use the wrapper functions for getting and setting the driver data using > spi_device instead of using dev_{get|set}_drvdata with >dev, so we > can directly pass a struct spi_device. > > Signed-off-by: Jingoo Han > --- >

Re: [PATCH] i2c: remove CONFIG_HOTPLUG ifdefs

2013-04-09 Thread Wolfram Sang
On Tue, Apr 09, 2013 at 09:46:39AM +0800, Yijing Wang wrote: > CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG > ifdefs in i2c files. > > Signed-off-by: Yijing Wang Applied to for-next, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-09 Thread Roger Quadros
On 04/05/2013 08:56 PM, Grygorii Strashko wrote: > On 04/04/2013 07:41 PM, Tony Lindgren wrote: >> * Roger Quadros [130404 00:39]: >>> On 04/04/2013 02:42 AM, Tony Lindgren wrote: > --- a/arch/arm/mach-omap2/cclock44xx_data.c > +++ b/arch/arm/mach-omap2/cclock44xx_data.c > @@ -27,6

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-04-09 Thread Michal Hocko
On Tue 09-04-13 18:05:30, Simon Jeons wrote: [...] > >I try this in v3.9-rc5: > >dd if=/dev/sda of=/dev/null bs=1MB > >14813+0 records in > >14812+0 records out > >1481200 bytes (15 GB) copied, 105.988 s, 140 MB/s > > > >free -m -s 1 > > > > total used free

Re: [PATCH 1/2] mfd: omap-usb-host: Convert to devm_ioremap_resource()

2013-04-09 Thread Samuel Ortiz
Hi Sachin, On Thu, Apr 04, 2013 at 03:15:14PM +0530, Sachin Kamat wrote: > Use the newly introduced devm_ioremap_resource() instead of > devm_request_and_ioremap() which provides more consistent error handling. > > devm_ioremap_resource() provides its own error messages; so all explicit > error

Re: [PATCH V4 3/4] block: queue work on unbound wq

2013-04-09 Thread Viresh Kumar
On 9 April 2013 15:28, Amit Kucheria wrote: > On Tue, Apr 9, 2013 at 3:25 PM, Viresh Kumar wrote: >> But how will we know if the user of wq wants to save power or not? He must >> give some flag which is only used when power saving is enabled. We can't >> set WQ_UNBOUND for all wqs. > > You have

Re: linux-next: manual merge of the omap_dss2 tree with Linus' tree

2013-04-09 Thread Tomi Valkeinen
Hi, On 2013-04-08 07:36, Stephen Rothwell wrote: > Hi Tomi, > > Today's linux-next merge of the omap_dss2 tree got a conflict in > drivers/video/fbmon.c between commit 477fc03f5baa ("fbmon: use > VESA_DMT_VSYNC_HIGH to fix typo") from Linus' tree and commit > 06a3307975aa ("videomode: combine

Re: [PATCH RFC] rtc: rtc-s3c: use clk_prepare_enable and clk_disable_unprepare

2013-04-09 Thread Sylwester Nawrocki
On 04/09/2013 11:45 AM, Vivek Gautam wrote: > Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare > calls as required by common clock framework, to get rid of > WARN_ON on prepare_count. Hmm, do you think warnings like below are any better that WARN_ON() on wrong clock's

Re: [PATCH] mfd: vexpress: Give the "leds-gpio" device a real parent

2013-04-09 Thread Samuel Ortiz
Hi Pawel, On Wed, Apr 03, 2013 at 01:26:27PM +0100, Pawel Moll wrote: > The registration of the "leds-gpio" device was using > "vexpress_sysreg_dev" as a parent before it was actually > set to something different than NULL. > > Trivial fix by reordering the code. > > Reported-by: Lorenzo

Re: [PATCH v6] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-09 Thread Joerg Roedel
On Mon, Apr 08, 2013 at 01:42:57PM -0400, Neil Horman wrote: > On Mon, Apr 08, 2013 at 11:17:23AM -0600, Bjorn Helgaas wrote: > > I don't care whether the "if (irq_remap_broken)" test is in > > irq_remapping.c or intel_irq_remapping.c. The quirk itself, where we > > actually look at config

Re: [PATCH 1/2] deb-pkg: split debug symbols in their own package

2013-04-09 Thread Anisse Astier
From: Anisse Astier Subject: [PATCH v3] deb-pkg: split debug symbols in their own package This can reduce almost 3 times the size of the linux-image package, while keeping the debug symbols available for this particular build, in their own package. This mimics the way kernels are built in

Re: [PATCH 2/2] mfd: db8500-prcmu: Support platform dependant device selection

2013-04-09 Thread Samuel Ortiz
Hi Lee, On Thu, Apr 04, 2013 at 11:39:01AM +0100, Lee Jones wrote: > The main aim for this cycle is to have the u8540 booting to a > console. However, the u8540 doesn't support all of the u8500 > platform devices yet. After this stage is complete we can then > fill in the inadequacies, such as

Re: [PATCH] mm: page_alloc: Avoid marking zones full prematurely after zone_reclaim()

2013-04-09 Thread Simon Jeons
Hi Michal, On 04/05/2013 02:31 PM, Simon Jeons wrote: Hi Michal, On 03/21/2013 04:19 PM, Michal Hocko wrote: On Thu 21-03-13 10:33:07, Simon Jeons wrote: Hi Mel, On 03/21/2013 02:19 AM, Mel Gorman wrote: The following problem was reported against a distribution kernel when zone_reclaim was

Re: [PATCH 1/2] mfd: db8500-prcmu: Return early if the TCPM cannot be located

2013-04-09 Thread Samuel Ortiz
Hi Lee, On Thu, Apr 04, 2013 at 11:39:00AM +0100, Lee Jones wrote: > Currently we check to see if we obtained the Tightly Coupled Program > Memory (TCPM) base and only execute the code within the check if we > have it. It's more traditional to return early if we don't have it. > This way we can

Re: [PATCH 4/5] dmaengine: ste_dma40: Do not configure channels during an channel allocation

2013-04-09 Thread Lee Jones
On Tue, 09 Apr 2013, Arnd Bergmann wrote: > On Tuesday 09 April 2013, Lee Jones wrote: > > According to the DMA documentation allocating a channel and configuring > > it are two separate actions. By removing the configuration code from the > > channel allocation path we lighten the burden on the

Re: [PATCH v3 2/3] media: davinci: vpbe: venc: move the enabling of vpss clocks to driver

2013-04-09 Thread Prabhakar Lad
On Tue, Apr 9, 2013 at 3:27 PM, Sekhar Nori wrote: > > > On 4/8/2013 5:49 PM, Prabhakar lad wrote: >> From: Lad, Prabhakar >> >> The vpss clocks were enabled by calling a exported function from a driver >> in a machine code. calling driver code from platform code is incorrect way. >> >> This

RE: [PATCH v4] cpufreq: powerpc: Add cpufreq driver for Freescale e500mc SoCs

2013-04-09 Thread Tang Yuantian-B29983
Thanks, you make my code look better each review. Thanks, Yuantian > -Original Message- > From: Viresh Kumar [mailto:viresh.ku...@linaro.org] > Sent: 2013年4月9日 17:47 > To: Tang Yuantian-B29983 > Cc: r...@sisk.pl; cpuf...@vger.kernel.org; linux...@vger.kernel.org; >

[PATCH v2 3/7] staging: android: binder: fix binder interface for 64bit compat layer

2013-04-09 Thread Serban Constantinescu
The changes in this patch will fix the binder interface for use on 64bit machines and stand as the base of the 64bit compat support. The changes apply to the structures that are passed between the kernel and userspace. Most of the changes applied mirror the change to struct binder_version where

[PATCH v2 2/7] staging: android: binder: replace IOCTL types with user-exportable types

2013-04-09 Thread Serban Constantinescu
This patch modifies the IOCTL macros to use user-exportable data types, as they are the referred kernel types for the user/kernel interface. The patch does not change in any way the functionality of the binder driver. Signed-off-by: Serban Constantinescu --- drivers/staging/android/binder.h |

[PATCH v2 5/7] staging: android: binder: fix BC_FREE_BUFFER ioctl declaration

2013-04-09 Thread Serban Constantinescu
BinderDriverCommands mirror the ioctl usage. Thus the size of the structure passed through the interface should be used to generate the ioctl No. The change reflects the type being passed from the user space-a pointer to a binder_buffer. This change should not affect the existing 32bit user space

[PATCH v2 7/7] staging: android: binder: replace types with portable ones

2013-04-09 Thread Serban Constantinescu
Since this driver is meant to be used on different types of processors and a portable driver should specify the size a variable expects to be this patch changes the types used throughout the binder interface. We use "userspace" types since this header will be exported and used by the Android

[PATCH v2 4/7] staging: android: binder: fix BINDER_SET_MAX_THREADS declaration

2013-04-09 Thread Serban Constantinescu
This change will fix the BINDER_SET_MAX_THREADS ioctl to use __s32 instead of size_t for setting the max threads. Thus using the same handler for 32 and 64bit kernels. This value is stored internally in struct binder_proc as an int and is set to 15 on open_binder() in the libbinder API (thus no

[PATCH v2 6/7] staging: android: binder: fix alignment issues

2013-04-09 Thread Serban Constantinescu
The Android userspace aligns the data written to the binder buffers to 4bytes. Thus for 32bit platforms or 64bit platforms running an 32bit Android userspace we can have a buffer looking like this: platformbuffer(binder_cmd pointer) size 32/32 32b 32b

[PATCH v2 0/7] Android Binder IPC Fixes

2013-04-09 Thread Serban Constantinescu
Hi all, This set of patches will clean-up and fix some of the issues that arise with the current binder interface when moving to a 64bit kernel. All these changes will not affect the existing 32bit Android interface and are meant to stand as the base for the 64bit binder compat layer(kernel or

[PATCH v2 1/7] staging: android: binder: clean-up uint32_t types

2013-04-09 Thread Serban Constantinescu
uint32_t types are used inconsistently throughout the driver. This patch replaces "uint32_t" types with "unsigned int" ones. The patch does not change in any way the functionality of the binder driver. Signed-off-by: Serban Constantinescu --- drivers/staging/android/binder.c | 74

[RFC PATCH v2 cpuset] Don't pass offlined cpus to partition_sched_domains()

2013-04-09 Thread Li Zhong
Hi Zefan, I did some test today, enabling cpuset and online/offline the cpus. It caused NULL address dereferencing in get_group(). After adding some debugging code, it seems that it is caused by using some offlined cpus as the parameter to partition_sched_domains(). More details below:

Re: [PATCH V4 3/4] block: queue work on unbound wq

2013-04-09 Thread Amit Kucheria
On Tue, Apr 9, 2013 at 3:25 PM, Viresh Kumar wrote: > On 9 April 2013 15:23, Amit Kucheria wrote: >> On Tue, Apr 9, 2013 at 1:00 PM, Viresh Kumar wrote: >>> Later one (Power oriented WQ) can be achieved if the workqueue is allocated >>> with >> >> Rephrase as "Power-efficient workqueues can be

Re: [PATCH v3 2/3] media: davinci: vpbe: venc: move the enabling of vpss clocks to driver

2013-04-09 Thread Sekhar Nori
On 4/8/2013 5:49 PM, Prabhakar lad wrote: > From: Lad, Prabhakar > > The vpss clocks were enabled by calling a exported function from a driver > in a machine code. calling driver code from platform code is incorrect way. > > This patch fixes this issue and calls the function from driver code

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-09 Thread Roger Quadros
On 04/05/2013 06:58 PM, Tony Lindgren wrote: > * Roger Quadros [130405 03:44]: >> On 04/04/2013 07:41 PM, Tony Lindgren wrote: >>> * Roger Quadros [130404 00:39]: On 04/04/2013 02:42 AM, Tony Lindgren wrote: >>> For v3.10, let's just make sure that USB works with DT as then >>> after v3.10

Re: [PATCH] kernel: module: strncpy issue, using strlcpy instead of strncpy

2013-04-09 Thread Chen Gang
On 2013年04月09日 17:36, Chen Gang wrote: > diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c > index 487ac6f..9ec6d1f 100644 > --- a/scripts/kallsyms.c > +++ b/scripts/kallsyms.c > @@ -145,13 +145,15 @@ static int read_symbol(FILE *in, struct sym_entry *s) > /* include the type field in the

Re: [PATCH V4 3/4] block: queue work on unbound wq

2013-04-09 Thread Viresh Kumar
On 9 April 2013 15:23, Amit Kucheria wrote: > On Tue, Apr 9, 2013 at 1:00 PM, Viresh Kumar wrote: >> Later one (Power oriented WQ) can be achieved if the workqueue is allocated >> with > > Rephrase as "Power-efficient workqueues can be achieved..." Ok. >> WQ_UNBOUND flag. To make this compile

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