Re: [PATCH v2 2/2] Enable Stop_enable mode during configuration of pwm.

2012-08-27 Thread Shawn Guo
On Mon, Aug 27, 2012 at 05:34:32PM +0200, HACHIMI Samir wrote: > From: Samir Hachimi > > Enable Stop_enable mode during configuration of pwm. > Check architecture by looking in driver_data instead of cpu_is_xxx. It does 2 things, and should be split into 2 patches. Also you should have a bett

Re: [RFC PATCH 00/11] input: Synaptics RMI4 Touchscreen Driver

2012-08-27 Thread Linus Walleij
On Fri, Aug 17, 2012 at 3:17 PM, Christopher Heiny wrote: > This patch implements a driver supporting Synaptics ClearPad and other > touchscreen sensors that use the RMI4 protocol, as defined here: OK I looked over the parts I understood, to my surprise there is a custom GPIO, LED and ADC driver

Re: [PATCH 13/22] ARM: ux500: Fork MSP platform registration for step-by-step DT enablement

2012-08-27 Thread Linus Walleij
On Mon, Aug 20, 2012 at 1:06 AM, Lee Jones wrote: > On Tue, Aug 14, 2012 at 01:13:49PM +0200, Linus Walleij wrote: >> On Thu, Aug 9, 2012 at 5:47 PM, Lee Jones wrote: >> >> > We've done this before and it worked well last time. Here we're >> > duplicating a complex registration function to ease t

Re: [PATCH 04/22] ASoC: Ux500: Move MSP pinctrl setup into the MSP driver

2012-08-27 Thread Linus Walleij
On Mon, Aug 20, 2012 at 4:59 AM, Lee Jones wrote: > On Tue, Aug 14, 2012 at 10:51:02AM +0200, Linus Walleij wrote: >> But wait. These are just local statics. Surelty you can put these into >> struct ux500_msp instead? Here it looks like these will be used for >> all ports, so MSP2 will enable the

Re: [RFC PATCH 00/11] input: Synaptics RMI4 Touchscreen Driver

2012-08-27 Thread Christopher Heiny
On 08/22/2012 05:50 AM, Linus Walleij wrote: On Sat, Aug 18, 2012 at 12:17 AM, Christopher Heiny wrote: >This patch implements a driver supporting Synaptics ClearPad and other >touchscreen sensors that use the RMI4 protocol, as defined here: Nice! >This patch is against the v2.6.38 tag of

Re: [PATCH v2 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-27 Thread Linus Walleij
On Tue, Aug 21, 2012 at 9:22 PM, Thomas Abraham wrote: >>> + - samsung,pin-pud: Pull up/down configuration. >>> + - samsung,pin-drv: Drive strength configuration. >>> + - samsung,pin-pud-pdn: Pull up/down configuration in power down mode. >>> + - samsung,pin-drv-pdn: Drive strength configurat

Re: [PATCH 1/1] Document:add Chinese translation of basic_profiling.txt

2012-08-27 Thread Rob Landley
On 08/27/2012 08:02 AM, Greg KH wrote: > On Mon, Aug 27, 2012 at 05:15:06AM -0500, Rob Landley wrote: >> On 08/26/2012 11:06 AM, liang xie wrote: >>> This is a Chinese translated version of Documentation/basic_profiling.txt >>> >>> Signed-off-by: Liang Xie >> >> Not speaking Chinese, there's nothi

[PATCH] ARM: MSM: Fix early debug uart mapping on some memory configs

2012-08-27 Thread Stephen Boyd
The uart mapping runs into the space allocated for lowmem on some 8960 boards when we have more than 512Mb of memory. We were getting lucky before and our mapping wasn't part of DDR. Move the mapping up into the vmalloc area which will always be outside of the lowmem mapping regardless of how much

Re: Q: What will happen if I insmod a new version driver when it has already been statically in kernel?

2012-08-27 Thread Randy Dunlap
On 08/27/2012 03:06 AM, Yang Bai wrote: > Hi all, > > We have one driver which has been statically compiled into kernel, and > now we want to upgrade it. But we only have a new version module for > this driver. Could I just insmod this module and make the new driver > work? No, that should not w

Re: [PATCH 1/6] ARM: ux500: don't select LEDS_GPIO for snowball

2012-08-27 Thread Linus Walleij
On Thu, Aug 23, 2012 at 7:26 AM, Arnd Bergmann wrote: > I discussed this with Lee on IRC, he really wants to keep the LED enabled for > snowball > for his own convenience. How is this version instead? Sure, I guess you already merged it though? Acked-by. Yours, Linus Walleij -- To unsubscribe

Re: [PATCH 3/3] i2c: nomadik: Add Device Tree support to the Nomadik I2C driver

2012-08-27 Thread Linus Walleij
On Thu, Aug 23, 2012 at 8:01 AM, Lee Jones wrote: > Here we apply the bindings required for successful Device Tree > probing of the i2c-nomadik driver. > > Cc: linux-...@vger.kernel.org > Acked-by: srinidhi kasagar > Signed-off-by: Lee Jones Acked-by: Linus Walleij Yours, Linus Walleij -- To

[PATCH 3/5] hwrng: OMAP: convert to use runtime PM

2012-08-27 Thread Paul Walmsley
Convert the OMAP onboard hardware RNG driver to use runtime PM. This allows us to remove some OMAP-specific cpu_is_omap*() calls from the RNG driver. Signed-off-by: Paul Walmsley Cc: Matt Mackall Cc: Herbert Xu --- drivers/char/hw_random/omap-rng.c | 35 +--

[PATCH 5/5] hwrng: OMAP: remove SoC restrictions from driver registration

2012-08-27 Thread Paul Walmsley
Remove the SoC restriction code from the OMAP RNG driver. The integration code in arch/arm/*omap* should handle this. The device shouldn't be created if it doesn't exist on the currently-booted SoC. This allows us to remove some OMAP-specific cpu_is_omap*() calls from the driver. Also, if other

[PATCH 2/5] hwrng: OMAP: store per-device data in per-device variables, not file statics

2012-08-27 Thread Paul Walmsley
Encapsulate all of the RNG per-device state into a single per-device structure record, as opposed to a set of per-driver file variables. Signed-off-by: Paul Walmsley Cc: Matt Mackall Cc: Herbert Xu --- drivers/char/hw_random/omap-rng.c | 115 + 1 file chang

RE: [PATCH RESEND] x86_dump_trace: avoiding endless " " is printed

2012-08-27 Thread Liu, Chuansheng
> Do you think we should add the same change to dumpstack_64.c too. Feels dumpstack_64.c has different with dumpstack_32 which just has three types stacks for normal thread, hardirq and softirq, so just want to use this patch to cover x86_32 case and it is the real case I meet also, thanks. > --

Re: [PATCH v3 4/6] floppy: properly handle failure on add_disk loop

2012-08-27 Thread Herton Ronaldo Krzesinski
On Tue, Aug 14, 2012 at 11:43:11AM -0300, Herton Ronaldo Krzesinski wrote: > On Tue, Aug 14, 2012 at 04:31:23AM +0100, Ben Hutchings wrote: > > On Mon, 2012-08-13 at 15:16 -0300, Herton Ronaldo Krzesinski wrote: > > > On do_floppy_init, if something failed inside the loop we call add_disk, > > > th

Bug fixes/cleanups for floppy driver (v4)

2012-08-27 Thread Herton Ronaldo Krzesinski
Following this are fixes for bugs noticed on floppy driver, and some extra cleanups. Version history below: v2: separate fixes, and incorporate suggestions by Vivek Goyal. also I splitted the cleanups from fixes. v3: remove dr, also this possibly makes error handling more readable (suggest

[PATCH 1/6] floppy: don't call alloc_ordered_workqueue inside the alloc_disk loop

2012-08-27 Thread Herton Ronaldo Krzesinski
Since commit 070ad7e ("floppy: convert to delayed work and single-thread wq"), we end up calling alloc_ordered_workqueue multiple times inside the loop, which shouldn't be intended. Besides the leak, other side effect in the current code is if blk_init_queue fails, we would end up calling unregiste

[PATCH 2/6] floppy: do put_disk on current dr if blk_init_queue fails

2012-08-27 Thread Herton Ronaldo Krzesinski
If blk_init_queue fails, we do not call put_disk on the current dr (dr is decremented first in the error handling loop). Cc: sta...@vger.kernel.org Reviewed-by: Ben Hutchings Signed-off-by: Herton Ronaldo Krzesinski --- drivers/block/floppy.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 3/6] genhd: Make put_disk() safe for disks that have not been registered

2012-08-27 Thread Herton Ronaldo Krzesinski
From: Ben Hutchings Since commit 523e1d3 ('block: make gendisk hold a reference to its queue'), add_disk() adds a reference to disk->queue, which is then dropped by disk_release(). But if a disk is destroyed without being registered through add_disk() (or if add_disk() fails at the first hurdle)

[PATCH 6/6] floppy: remove dr, reuse drive on do_floppy_init

2012-08-27 Thread Herton Ronaldo Krzesinski
This is a small cleanup, that also may turn error handling of unitialized disks more readable. We don't need a separate variable to track allocated disks, remove dr and reuse drive variable instead. Signed-off-by: Herton Ronaldo Krzesinski --- drivers/block/floppy.c | 43 ++

[PATCH 5/6] floppy: use common function to check if floppies can be registered

2012-08-27 Thread Herton Ronaldo Krzesinski
The same checks to see if a drive can be or is registered are repeated through the code, factor out the checks in a common function and replace the repeated checks with it. Signed-off-by: Herton Ronaldo Krzesinski --- drivers/block/floppy.c | 23 +-- 1 file changed, 13 inse

[PATCH 4/6] floppy: properly handle failure on add_disk loop

2012-08-27 Thread Herton Ronaldo Krzesinski
On floppy initialization, if something failed inside the loop we call add_disk, there was no cleanup of previous iterations in the error handling. Cc: sta...@vger.kernel.org Signed-off-by: Herton Ronaldo Krzesinski --- drivers/block/floppy.c | 11 ++- 1 file changed, 10 insertions(+),

Re: [PATCH] ARM: MSM: Implement read_current_timer for msm timers

2012-08-27 Thread Will Deacon
On Mon, Aug 27, 2012 at 10:18:39PM +0100, Stephen Boyd wrote: > Setup the same timer used as the clocksource to be used as the > read_current_timer implementation. This allows us to support a > stable udelay implementation on MSMs where it's possible for the > CPUs to scale speeds independently of

Re: [GIT PULL] at91: fixes for 3.6 (take 1 bis)

2012-08-27 Thread Olof Johansson
On Mon, Aug 27, 2012 at 10:08:07AM +0200, Nicolas Ferre wrote: > Hi, > > This pull request supersedes the previous one from August 24th. It removes > the ASoC SSC part which is now handled by Mark Brown. > > The following changes since commit d9875690d9b89a866022ff49e3fcea892345ad92: > > Linux

Re: [PATCH] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-27 Thread Randy Dunlap
On 08/27/2012 02:43 PM, mathieu.poir...@linaro.org wrote: > From: "Mathieu J. Poirier" > > This patch adds keyreset functionality to the sysrq driver. It > allows certain button/key combinations to be used in order to > trigger device resets. > Please document what button/key combinations tho

[PATCH] userns: Add basic quota support v2

2012-08-27 Thread Eric W. Biederman
Add the data type struct qown which holds the owning identifier of a quota. struct qown is a replacement for the implicit union of uid, gid and project stored in an unsigned int and the quota type field that is was used in the quota data structures. Making the data type explicit allows the kuid_

Re: [RFC PATCH 00/11] input: Synaptics RMI4 Touchscreen Driver

2012-08-27 Thread Linus Walleij
On Mon, Aug 27, 2012 at 4:20 PM, Christopher Heiny wrote: > EARLY_SUSPEND/LATE_RESUME and other power management stuff. We're caught in > a bind here. Most of our customers are using some flavor of Android. They > have the expectation that our driver will (a) support the Android power > manage

Re: [PATCH 13/13] drivers/rtc/rtc-coh901331.c: use clk_prepare_enable and clk_disable_unprepare

2012-08-27 Thread Linus Walleij
On Sun, Aug 26, 2012 at 9:01 AM, Julia Lawall wrote: > I'm not sure about this. Maybe it would be better to leave the disable and > unprepare separated, since there is no matching nearby clk_prepare. This is OK. Acked-by: Linus Walleij Yours, Linus Walleij -- To unsubscribe from this list: se

[PATCH] sound: fix emu8000 DRAM sized 512 KiB too small

2012-08-27 Thread David Flater
[PATCH] sound: fix emu8000 DRAM sized 512 KiB too small Applicable to 3.5.3 mainline. In emu8000.c, size_dram determines the amount of memory on the sound card by doing write/readback tests starting at 512 KiB and incrementing by 512 KiB. On success, detected_size is updated to the successful add

Re: [RESEND BUGFIX PATCH 1/3] PCI/AER: fix pci_ops return NULL when hotplug a pci bus which was doing aer error inject

2012-08-27 Thread Huang Ying
On Mon, 2012-08-27 at 23:05 +0800, Jiang Liu wrote: > Is it ok to ignore such a case? After all, aer_inject is just a test tool:) > It's not worth to change the core logic for such a corner case. > --Gerry Why ignore? At least you can prevent aer_inject from unload if something special happened.

[PATCH] kernel/resource.c: fix stack overflow in __reserve_region_with_split

2012-08-27 Thread T Makphaibulchoke
Using recurvise call to try adding a non-conflicting region in the function __reserve_region_with_split() could result in a stack overflow in the case that the recursive calls are too deep. Convert the recursive calls to an iterative loop to avoid the problem. Signed-off-by: T Makphaibulchoke --

Re: [RESEND BUGFIX PATCH 1/3] PCI/AER: fix pci_ops return NULL when hotplug a pci bus which was doing aer error inject

2012-08-27 Thread Yijing Wang
>> bash[5908]: NaT consumption 17179869216 [1] >> Modules linked in: aer_inject cpufreq_conservative cpufreq_userspace >> cpufreq_pow >> ersave acpi_cpufreq binfmt_misc fuse nls_iso8859_1 loop ipmi_si(+) >> ipmi_devintf >> ipmi_msghandler dm_mod ppdev iTCO_wdt iTCO_vendor_support sg igb parport_p

Re: [PATCH] clk.h: Fix shim ifdef guard (HAVE_CLK -> COMMON_CLK)

2012-08-27 Thread Russell King
On Mon, Aug 27, 2012 at 04:53:44PM -0400, Jeff Mahoney wrote: > Should the clk_devm stuff be moved someplace generic? I don't have a > horse in this race. My only interest here is to get these configs to > build again. :) devm_clk_get() should not be in clkdev.c, but should be entirely separate, a

Re: [RESEND BUGFIX PATCH 1/3] PCI/AER: fix pci_ops return NULL when hotplug a pci bus which was doing aer error inject

2012-08-27 Thread Yijing Wang
On 2012/8/28 8:38, Huang Ying wrote: > On Mon, 2012-08-27 at 23:05 +0800, Jiang Liu wrote: >> Is it ok to ignore such a case? After all, aer_inject is just a test tool:) >> It's not worth to change the core logic for such a corner case. >> --Gerry > > Why ignore? At least you can prevent aer_inje

Re: [PATCH] thermal: solve compilation errors in rcar_thermal

2012-08-27 Thread Kuninori Morimoto
Hi > following were the errors reported > > drivers/thermal/rcar_thermal.c: In function ‘rcar_thermal_probe’: > drivers/thermal/rcar_thermal.c:214:10: warning: passing argument 3 of > ‘thermal_zone_device_register’ makes integer from pointer without a cast > [enabled by default] > include/linu

Re: [PATCH 1/6] fs/nfsd/nfs4idmap.c: adjust inconsistent IS_ERR and PTR_ERR

2012-08-27 Thread J. Bruce Fields
On Sat, Aug 25, 2012 at 09:57:04PM +0200, Julia Lawall wrote: > From: Julia Lawall > > Change the call to PTR_ERR to access the value just tested by IS_ERR. Applying for 3.7, thanks.--b. > > The semantic match that finds this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@

Re: [PATCH v2 1/7] mfd: add syscon driver based on regmap

2012-08-27 Thread Dong Aisheng
On Tue, Aug 28, 2012 at 06:08:32AM +0800, Shawn Guo wrote: > On Mon, Aug 27, 2012 at 03:24:39PM +0800, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Add regmap based syscon driver. > > This is usually used for access misc bits in registers which does not belong > > to a specific module, for

[PATCH v2 1/3] perf tools: Fix a compiling error in trace-event-perl.c for 32 bits machine

2012-08-27 Thread Feng Tang
>From 8e2fe258906fc83869be10a1b4a40ef9acc4a2a6 Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Mon, 27 Aug 2012 14:01:33 +0800 Subject: [PATCH 1/3] perf tools: Fix a compiling error in trace-event-perl.c for 32 bits machine On my x86_32 mahcine, there is a compile error: CC util/scriptin

[PATCHv2] sound: fix emu8000 DRAM sized 512 KiB too small

2012-08-27 Thread David Flater
v2: Fixed result still wrong in the case of 512 KiB DRAM. Oops. Applicable to 3.5.3 mainline. In emu8000.c, size_dram determines the amount of memory on the sound card by doing write/readback tests starting at 512 KiB and incrementing by 512 KiB. On success, detected_size is updated to the succ

Re: [PATCH v2 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-27 Thread Dong Aisheng
On Tue, Aug 28, 2012 at 06:15:35AM +0800, Shawn Guo wrote: > > + sreg->anatop = syscon_regmap_lookup_by_phandle(np, "fsl,anatop"); > > + if (IS_ERR(sreg->anatop)) > > + return PTR_ERR(sreg->anatop); > > + > > All the anatop regulators are child nodes of anatop. It looks a littl

Re: [PATCH] [RFC]Extcon: Change to add standard cable names in individual drivers.

2012-08-27 Thread anish singh
Hi, Here is the requirement: driver has to give the core the list of standard cable names(exported by the core) and can also specify the custom cable names. Something as this : char *cable_names_supported = { [0] = EXTCON_USB, /*defined in extcon core */ [1] = EXTCON_HEADSET,/*d

Re: [PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Richard Zhao
On Mon, Aug 27, 2012 at 03:24:43PM +0800, Dong Aisheng wrote: > From: Dong Aisheng > > Using syscon to access anatop registers. > > Signed-off-by: Dong Aisheng > --- > ChangeLog v1->v2: > * update to use generic regmap api > --- > arch/arm/mach-imx/Kconfig |2 +- > arch/arm/mach-imx/

Re: [PATCH 1/2] dw_dmac: make driver endianness configurable

2012-08-27 Thread Viresh Kumar
On 27 August 2012 20:28, Hein Tibosch wrote: >>> +config DW_DMAC_MEM_64_BIT >>> +bool "Allow 64-bit memory transfers" >>> +default y if !AVR32 >>> +depends on DW_DMAC >>> +help >>> + Say yes if the DMA controller may do 64-bit memory transfers >>> + For AVR32, say no beca

RE: [PATCH 2/2] pwm: pwm-tiehrpwm: Add support for configuring polarity of PWM

2012-08-27 Thread Philip, Avinash
On Fri, Aug 24, 2012 at 22:23:14, Thierry Reding wrote: > On Thu, Aug 23, 2012 at 12:30:51PM +0530, Philip, Avinash wrote: > [...] > > diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c > [...] > > @@ -100,10 +109,17 @@ > > > > #define NUM_PWM_CHANNEL2 /* EHRP

Re: [PATCH] kernel/resource.c: fix stack overflow in __reserve_region_with_split

2012-08-27 Thread Ram Pai
On Mon, Aug 27, 2012 at 06:47:54PM -0600, T Makphaibulchoke wrote: > Using recurvise call to try adding a non-conflicting region in the function > __reserve_region_with_split() could result in a stack overflow in the case > that the recursive calls are too deep. Convert the recursive calls to > an

[PATCH 3/4] regulator: arizona-ldo: Support get/set bypass

2012-08-27 Thread Mark Brown
Signed-off-by: Mark Brown --- drivers/regulator/arizona-ldo1.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c index 128fb94..d184aa3 100644 --- a/drivers/regulator/arizona-ldo1.c +++ b/drivers/regulator/arizona-ldo1.c

[PATCH 4/4] regulator: arizona-micsupp: Support get/set bypass

2012-08-27 Thread Mark Brown
Signed-off-by: Mark Brown --- drivers/regulator/arizona-micsupp.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c index 450a069..d9b1f82 100644 --- a/drivers/regulator/arizona-micsupp.c +++ b/drivers/regulator/

[PATCH 2/4] regulator: core: Provide regmap get/set bypass operations

2012-08-27 Thread Mark Brown
Signed-off-by: Mark Brown --- drivers/regulator/core.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index d06a82e..e6bb1f9 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @

[PATCH 1/4] regulator: core: Support bypass mode

2012-08-27 Thread Mark Brown
Many regulators support a bypass mode where they simply switch their input supply to the output. This is mainly used in low power retention states where power consumption is extremely low so higher voltage or less clean supplies can be used. This is not supported as a mode since the existing modes

Re: [PATCH 6/7] workqueue: init 0 for idle_rebind.cnt

2012-08-27 Thread Lai Jiangshan
On Tue, Aug 28, 2012 at 4:05 AM, Tejun Heo wrote: > On Tue, Aug 28, 2012 at 01:58:26AM +0800, Lai Jiangshan wrote: >> Access idle_rebind.cnt is always protected by gcwq->lock, >> don't need to init it as 1. > > But then the completion could be triggered prematurely, no? No, the idle_worker_rebind

[PATCH] drivrs/video/jz4740_fb.c: Use SIMPLE_DEV_PM_OPS instead of dev_pm_ops

2012-08-27 Thread Marcos Paulo de Souza
Just a cleanup, not functional changes. Signed-off-by: Marcos Paulo de Souza --- Just compile test. Please double check. drivers/video/jz4740_fb.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c index de36693..

[v4 0/4] ARM: dma-mapping: IOMMU atomic allocation

2012-08-27 Thread Hiroshi Doyu
Hi, The commit e9da6e9 "ARM: dma-mapping: remove custom consistent dma region" breaks the compatibility with existing drivers. This causes the following kernel oops(*1). That driver has called dma_pool_alloc() to allocate memory from the interrupt context, and it hits BUG_ON(in_interrpt()) in "get

[v4 2/4] ARM: dma-mapping: Refactor out to introduce __in_atomic_pool

2012-08-27 Thread Hiroshi Doyu
Check the given range("start", "size") is included in "atomic_pool" or not. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 26 -- 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 51d

[v4 4/4] ARM: dma-mapping: IOMMU allocates pages from atomic_pool with GFP_ATOMIC

2012-08-27 Thread Hiroshi Doyu
Make use of the same atomic pool as DMA does, and skip a kernel page mapping which can involve sleep'able operations at allocating a kernel page table. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 36 1 files changed, 36 insertions(+), 0 dele

[v4 1/4] ARM: dma-mapping: atomic_pool with struct page **pages

2012-08-27 Thread Hiroshi Doyu
struct page **pages is necessary to align with non atomic path in __iommu_get_pages(). atomic_pool() has the intialized **pages instead of just *page. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git

[v4 3/4] ARM: dma-mapping: Introduce __atomic_get_pages() for __iommu_get_pages()

2012-08-27 Thread Hiroshi Doyu
Support atomic allocation in __iommu_get_pages(). Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index a62f552..4ef2d7b 100644 --- a/arch/arm/mm/d

Fwd: [PATCH] Chinese translation of Documentation/arm/Booting

2012-08-27 Thread harryxiyou
-- Forwarded message -- From: harryxiyou Date: Tue, Aug 28, 2012 at 1:18 PM Subject: Re: [PATCH] Chinese translation of Documentation/arm/Booting To: Ninja Tekkaman 2012/8/28 Ninja Tekkaman : > This is a Chinese translated version of Documentation/arm/Booting > > Signed-off-by:

Re: [PATCH v2 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-27 Thread Thomas Abraham
On 28 August 2012 04:52, Linus Walleij wrote: > On Tue, Aug 21, 2012 at 9:22 PM, Thomas Abraham > wrote: [...] +/* list of all possible config options supported */ +struct pin_config { + char*prop_cfg; + unsigned intcfg_type; +} pcfgs[] = { >

Re: Possible mptsas regression post 3.5.0

2012-08-27 Thread Dan Williams
On Mon, 2012-08-27 at 12:13 -0400, John Drescher wrote: > >> I have bisected it down to the following patch: > >> > >> Bisecting: 0 revisions left to test after this (roughly 0 steps) > >> [10f8d5b86743b33d841a175303e2bf67fd620f42] SCSI: fix hot unplug vs > >> async scan race > >> > >> It appears t

RE: [PATCH v2] lis3lv02d: Add STMicroelectronics lis331dlh digital accelerometer

2012-08-27 Thread AnilKumar, Chimata
Hi Eric, On Wed, Aug 22, 2012 at 13:18:38, Arnd Bergmann wrote: > On Wednesday 22 August 2012, AnilKumar Ch wrote: > > This patch adds support for lis331dlh digital accelerometer to the > > lis3lv02d driver family. Adds ID field for detecting the lis331dlh > > module, based on this ID field lis3lv

Re: [PATCH 3/3] Add support to M54xx DMA FEC Driver

2012-08-27 Thread Greg Ungerer
Hi Stany, I haven't looked over it in detail, but a few little things anyway. On 21/08/12 22:18, Stany MARCEL wrote: Signed-off-by: Stany MARCEL --- This driver is an adaption of the one given by freescale for kernel 2.6.25. Tested with kernel 3.4.8 with arch/m68k backported from linux-m

Re: [PATCH] kernel/resource.c: fix stack overflow in __reserve_region_with_split

2012-08-27 Thread Thavatchai Makphaibulchoke
On 08/27/2012 10:30 PM, Ram Pai wrote: > For example: > if the region requested is 1 to 100, but 20-30 is already reserved, than > the earlier behavior would reserve 1-20 and 30-100. With your > patch, it will just reserve 1-20. > > RP > Thanks RP for pointing the problem. Sorry for missing par

Re: [PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Dong Aisheng
On Tue, Aug 28, 2012 at 11:23:10AM +0800, Zhao Richard-B20223 wrote: ... > > np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop"); > np unused. Correct. Will drop it. Regards Dong Aisheng -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

Re: [PATCH 2/6] brcmfmac: Handling the interrupt in ISR directly for non-OOB

2012-08-27 Thread Wei Ni
On Tue, 2012-08-28 at 00:24 +0800, Arend van Spriel wrote: > On 08/27/2012 12:25 PM, Wei Ni wrote: > > In case of inband interrupts, if we handle the interrupt in dpc thread, > > two level of thread switching takes place to process wifi interrupts. > > One in SDHCI driver and the other in Wifi driv

Re: [PATCH v7 3/3] KVM: perf: kvm events analysis tool

2012-08-27 Thread Andrew Jones
On Mon, Aug 27, 2012 at 01:34:36PM -0600, David Ahern wrote: > On 8/27/12 9:53 AM, Andrew Jones wrote: > >On Mon, Aug 27, 2012 at 05:51:46PM +0800, Dong Hao wrote: > > > > > > > >>+struct event_stats { > >>+ u64 count; > >>+ u64 time; > >>+ > >>+ /* used to calculate stddev. */ > >>+ double

Re: [PATCH v5 1/3] block: Add test-iosched scheduler

2012-08-27 Thread merez
Hi Jens, Can you refer to my reply? Currently the test-iosched is our only option for testing the eMMC4.5 features on a HS200 eMMC card. Thanks, Maya On Thu, August 2, 2012 6:16 am, me...@codeaurora.org wrote: > > On Tue, July 31, 2012 8:46 am, Jens Axboe wrote: >> On 07/31/2012 04:36 PM, me...@c

Re: [PATCH v2 0/2] imx6q: pwm: Activate stop_mode and configure pinmux

2012-08-27 Thread Sascha Hauer
Hi, On Mon, Aug 27, 2012 at 05:34:30PM +0200, HACHIMI Samir wrote: > From: Samir Hachimi > > This patch series enables support for pwm driver on imx6q SoC. The first > patch of the series configure the pinctrl for pwm in device-tree. Actually > they are several pin who can be set to pwmO for eac

Re: [PATCH] ARM i.MX: remove duplicated include from clk-imx21.c

2012-08-27 Thread Sascha Hauer
On Sun, Aug 26, 2012 at 09:48:11AM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > From: Wei Yongjun Applied, thanks Sascha > > Remove duplicated include. > > Signed-off-by: Wei Yongjun > --- > arch/arm/mach-imx/clk-imx21.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/a

Re: Add rq->nr_uninterruptible count to dest cpu's rq while CPU goes down.

2012-08-27 Thread Rakib Mullick
Hello Paul, On 8/28/12, Paul E. McKenney wrote: > On Mon, Aug 20, 2012 at 09:26:57AM -0700, Paul E. McKenney wrote: >> On Mon, Aug 20, 2012 at 11:26:57AM +0200, Peter Zijlstra wrote: > > How about the following updated patch? > Actually, I was waiting for Peter's update. >

Re: [PATCH 1/2] x86/mce: Pack boolean MCE boot flags into a structure

2012-08-27 Thread Naveen N. Rao
On 08/27/2012 07:48 PM, Borislav Petkov wrote: On Mon, Aug 27, 2012 at 03:58:59PM +0200, Andi Kleen wrote: On Mon, Aug 27, 2012 at 04:55:03PM +0530, Naveen N. Rao wrote: Many MCE boot flags are boolean in nature, but are declared as integers currently. We can pack these into a bitfield to save

Re: [PATCH 1/2] dw_dmac: make driver endianness configurable

2012-08-27 Thread Hans-Christian Egtvedt
Around Mon 27 Aug 2012 04:53:02 +0800 or thereabout, Hein Tibosch wrote: > The dw_dmac was originally developed for avr32 to be used with the > Synopsys DesignWare AHB DMA controller. After 2.6.38, device access was done > with the little-endian readl/writel functions. This didn't work on the > avr

[PATCH] cciss: remove useless set memory to zero use memset()

2012-08-27 Thread Wei Yongjun
From: Wei Yongjun The memory return by kzalloc() or kmem_cache_zalloc() has already be set to zero, so remove useless memset(0). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- drivers/block/cciss.c | 1 - 1 file changed,

[PATCH] vmwgfx: remove useless set memory to zero use memset()

2012-08-27 Thread Wei Yongjun
From: Wei Yongjun The memory return by kzalloc() or kmem_cache_zalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: Wei Yongjun --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 1 - drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 1 - 2 files changed, 2 deletions(-) diff --git a/dr

Re: [PATCH] avr32-linux: at32ap700x: set DMA slave properties for MCI dw_dmac

2012-08-27 Thread Hans-Christian Egtvedt
Around Mon 27 Aug 2012 04:56:55 +0800 or thereabout, Hein Tibosch wrote: PS: I prefer avr32: prefix in the Subject for AVR32 kernel stuff, we already know this is for the Linux kernel ;) > @Andrew: could you please push the patch below? Hans-Christian > doesn't have a GIT tree on kernel.org > >

[PATCH] fs: Amended coredump-related sysctl functions

2012-08-27 Thread Alex Kelly
This fixes an error introduced in the coredump-header patch in the coredump removal patch I submitted earlier. It should be squashed into that patch series so that the Kconfig option to remove coredump doesn't cause compile-time errors. Signed-off-by: Alex Kelly Reviewed-by: Josh Triplett --- No

[PATCH] tracing: skip printing "OK" if failed to disable event

2012-08-27 Thread Yuanhan Liu
No acutal case found. But logically, we should skip "OK" in case any error met. Signed-off-by: Yuanhan Liu --- kernel/trace/trace_events.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 29111da..9894162

[PATCHv2] fs: Amended coredump-related sysctl functions

2012-08-27 Thread Alex Kelly
This fixes an error introduced in the coredump-header patch in the coredump removal patch I submitted earlier. It should be squashed into that patch series so that the Kconfig option to remove coredump doesn't cause compile-time errors. Signed-off-by: Alex Kelly Reviewed-by: Josh Triplett --- v2

Re: [PATCH 3/4] perf: teach perf inject to merge sched_stat_* and sched_switch events (v2)

2012-08-27 Thread Andrey Wagin
2012/8/25 Frederic Weisbecker : >> + if (!strcmp(evname, "sched_switch") || sched_process_exit) { >> + list_for_each_entry(ent, &samples, node) >> + if (sample->pid == ent->pid) > > I suspect what you're rather interested in is the sample tid. Yes, you are righ

RE: [GIT PULL] tpmdd: TPM drivers, tpm-rng and fixes

2012-08-27 Thread Peter.Huewe
>> > Build using make -> no error. >> I can't reproduce this either, James, can you send out your .config? > See attached. Hi James, even with you config, I can't reproduce it here with 3.6-rc3 + mypatch. Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCH 0/5] drivers: fix up ENOIOCTLCMD error handling

2012-08-27 Thread Wanlong Gao
At this commit, Cc: Linus Torvalds commit 07d106d0a33d6063d2061305903deb02489eba20 Author: Linus Torvalds Date: Thu Jan 5 15:40:12 2012 -0800 vfs: fix up ENOIOCTLCMD error handling We're doing some odd things there, which already messes up various users (see the net/socket.c

[PATCH 2/5] net:atm:fix up ENOIOCTLCMD error handling

2012-08-27 Thread Wanlong Gao
At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be translated as ENOTTY to user mode. Cc: "David S. Miller" Cc: net...@vger.kernel.org Signed-off-by: Wanlong Gao --- net/atm/resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/atm/resources.c b/net/a

[PATCH 5/5] s390:block:fix up ENOIOCTLCMD error handling

2012-08-27 Thread Wanlong Gao
At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be translated as ENOTTY to user mode. Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org (open list:S390) Signed-off-by: Wanlong Gao --- drivers/s390/block/dasd_ioctl.c | 2 +- 1 file ch

[PATCH 4/5] video:omap3isp:fix up ENOIOCTLCMD error handling

2012-08-27 Thread Wanlong Gao
At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be translated as ENOTTY to user mode. Cc: Laurent Pinchart Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Wanlong Gao --- drivers/media/video/omap3isp/ispvideo.c | 10 +- 1 file changed, 5 insertion

[PATCH 3/5] media:dvb:fix up ENOIOCTLCMD error handling

2012-08-27 Thread Wanlong Gao
At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be translated as ENOTTY to user mode. Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Wanlong Gao --- drivers/media/dvb/dvb-core/dvbdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

[PATCH 1/5] drivers:tty:fix up ENOIOCTLCMD error handling

2012-08-27 Thread Wanlong Gao
At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be translated as ENOTTY to user mode. For example: fd = open("/dev/tty", O_RDWR); ioctl(fd, -1, &argp); then the errno should be ENOTTY but not EINVAL. Cc: Greg Kroah-Hartman Signed-off-by: Wanlong Gao --- drivers/tt

RE: [PATCH v3 0/6] omap-am33xx rtc dt support

2012-08-27 Thread Mohammed, Afzal
Hi Alessandro, On Sat, Aug 11, 2012 at 01:27:11, Nori, Sekhar wrote: > On 7/27/2012 5:53 PM, Afzal Mohammed wrote: > > This series makes rtc-omap driver DT capable, adds AM33xx > > RTC DT support along with a few enchancments to the driver. > > > > rtc-omap driver is made intelligent enough to h

[PATCH 0/3] perf tools: Fixes for some compile errors.

2012-08-27 Thread Feng Tang
Hi Arnaldo and all, I met 3 compiling problems on my x86_32 machine, and these are the fixes, patch 1/3 only applies for perf/core branch of your git, while patch 2 applies to Linus' tree also. please review. Thanks, Feng --- Feng Tang (3): perf tools: Fix a compiling error in trace-event-perl

[PATCH 1/3] perf tools: Fix a compiling error in trace-event-perl.c for 32 bits machine

2012-08-27 Thread Feng Tang
On my x86_32 mahcine, there is a compile error: CC util/scripting-engines/trace-event-perl.o cc1: warnings being treated as errors util/scripting-engines/trace-event-perl.c: In function ‘perl_process_tracepoint’: util/scripting-engines/trace-event-perl.c:285: error

[PATCH 3/3] perf tools: Fix a misuse of for_each_set_bit() in session.c

2012-08-27 Thread Feng Tang
In regs_dump__printf() it use for_each_set_bit() for bit ops by casting a (u64 *) to a (unsigned long *), this works for 64 bits machine, but will fail on 32 bits ones. Fix it by using the raw bit comparing method. Signed-off-by: Feng Tang --- tools/perf/util/session.c |9 - 1 files

[PATCH v2 1/7] mfd: add syscon driver based on regmap

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which are registered into syscon.

[PATCH v2 0/7] add syscon driver based on regmap for general registers access

2012-08-27 Thread Dong Aisheng
This patch series mainly adds an syscon driver which is used to access general system controller registers like FSL IOMUXC GPR and ANATOP, after that, we convert all the exist private access general registers code to use standard API from regmap to access registers. Finally we remove the old mfd a

[PATCH v2 3/7] ARM: imx6q: add anatop support into syscon

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng There're a few anatop registers need to be accessed by different modules. Add anatop registers into syscon support for easy access. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/a

[PATCH v2 4/7] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop register. Acked-by: Mark Brown Signed-off-by: Dong Aisheng --- ChangeLog v1-v2: * update to use generic regmap api --- arch/arm/boot/dts/imx6q.dtsi |6 ++ drivers/regulator/Kconfig|2 +- drivers/regulator/anatop

[PATCH v2 6/7] ARM: dts: imx6q: add simple-bus compatible string for anatop

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Originally the anatop regulator devices are populated by mfd anatop driver. Since mfd anatop driver will be deleted later, we change to populate the regulator devices by devicetree automatically. This will cause some warning messages as follows during boot due to device recreat

[PATCH v2 7/7] mfd: anatop-mfd: remove anatop driver

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124 -

[PATCH v2 5/7] ARM: imx6q: convert to use syscon to access anatop registers

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop registers. Signed-off-by: Dong Aisheng --- ChangeLog v1->v2: * update to use generic regmap api --- arch/arm/mach-imx/Kconfig |2 +- arch/arm/mach-imx/mach-imx6q.c | 43 --- 2 files changed, 19 ins

[PATCH v2 2/7] ARM: imx6q: add iomuxc gpr support into syscon

2012-08-27 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Signed-off-by: Dong Aisheng --- arch/arm/boot/dts/imx6q.dtsi |5 + include/linux/fsl/imx6q-iomuxc-gpr.h | 319 ++ 2 files changed, 324 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/

[PATCH 2/3] Perf tools: Fix a compiling error in util/map.c

2012-08-27 Thread Feng Tang
This patch fix a compile warning taken as error: CC util/map.o cc1: warnings being treated as errors util/map.c: In function ‘map__fprintf_dsoname’: util/map.c:240: error: ‘dsoname’ may be used uninitialized in this function make: *** [util/map.o] Error 1

Re: [GIT PULL] at91: fixes for 3.6 (take 1)

2012-08-27 Thread Nicolas Ferre
On 08/24/2012 05:59 PM, Nicolas Ferre : > The following changes since commit d9875690d9b89a866022ff49e3fcea892345ad92: > > Linux 3.6-rc2 (2012-08-16 14:51:24 -0700) > > are available in the git repository at: > > git://github.com/at91linux/linux-at91.git tags/at91-fixes > > for you to fetch

  1   2   3   4   >