[PATCH] mfd: rc5t583: Fix warning messages

2012-08-23 Thread Venu Byravarasu
Two variables named master_int and sleepseq_val, were just declared without initialization. Pointers to these variables were passed to mfd read function. After that these variables were used for some of the logical operations. Though logically there is nothing wrong, compiler is complaining that t

Re: [PATCH 2/6] ARM: omap: allow building omap44xx without SMP

2012-08-23 Thread Shilimkar, Santosh
On Wed, Aug 22, 2012 at 10:52 PM, Arnd Bergmann wrote: > > On Wednesday 22 August 2012, Shilimkar, Santosh wrote: > > > Was just thinking whether we should just take care of it at > > core cpuidle level itself. Will below be enough to kill the build > > error what you mentioned in the change log ?

Re: [PATCH 1/2] devfreq: Add sysfs node for representing frequency transition information.

2012-08-23 Thread MyungJoo Ham
> This patch adds sysfs node which can be used to get information of frequency > transition. It represents transition table which contains total number of > transition of > each freqeuncy state and time spent. It is inspired CPUFREQ's status driver. > > Signed-off-by: Jonghwa Lee > Signed-off-

Re: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-23 Thread David Miller
From: "Huang, Xiong" Date: Thu, 23 Aug 2012 06:56:51 + > I'm afraid someone also rejects my request to add such operation to > ethtool If you don't design it properly, we certainly will ask you to make changes. But it stands a chance of actually being accepted, whereas your debugfs thing ab

[PATCH] pwm: pwm-tiecap: Disable APWM mode after configure

2012-08-23 Thread Philip, Avinash
APWM mode is enabled while configuring PWM device. This was done to handle shadow & immediate mode update of period and compare registers. However, leaving it enabled after configuring will cause APWM output on PWM pin even before enabling PWM device. Fix the same by disabling APWM mode after confi

[PATCH 0/2] Support for configuring polarity of PWM

2012-08-23 Thread Philip, Avinash
These patch set adds support for configuring polarity of eCAP & eHRPWM. Philip, Avinash (2): pwm: pwm-tiecap: Add support for configuring polarity of PWM pwm: pwm-tiehrpwm: Add support for configuring polarity of PWM drivers/pwm/pwm-tiecap.c | 22 + drivers/pwm/pwm-tiehrpwm.c |

[PATCH 1/2] pwm: pwm-tiecap: Add support for configuring polarity of PWM

2012-08-23 Thread Philip, Avinash
ECAP APWM hardware supports polarity configuration of PWM output. This commit adds support for polarity configuration of ECAP APWM. Signed-off-by: Philip, Avinash :100644 100644 4b66889... a3d21e7... M drivers/pwm/pwm-tiecap.c diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c in

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

2012-08-23 Thread Philip, Avinash
EHRPWM hardware supports polarity configuration of PWM output. However configuration of polarity done in hardware only in .enable() to ensure PWM output present only after enabling PWM. This commit adds support for polarity configuration for EHRPWM. When being here, remove configuring of polarity d

[PATCH] Staging: rtl8187se: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp() to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- drivers/staging/rtl8187se/ieee80211/ieee8021

Re: [RFC ebeam PATCH v4 2/2] input: misc: New USB eBeam input driver.

2012-08-23 Thread Oliver Neukum
On Thursday 23 August 2012 00:11:54 Yann Cantin wrote: > + /* input final setup */ > + err = input_register_device(ebeam->input); > + if (err) { > + dev_dbg(&intf->dev, > + "%s - input_register_device failed, err: %d\n", > +

[PATCH] staging: rtl8192e: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp() to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- drivers/staging/rtl8192e/rtllib_softmac_wx.c

[PATCH] Staging: rtl8192u: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp() to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- drivers/staging/rtl8192u/ieee80211/ieee80211

[PATCH] staging: rtl871x_mlme.c: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp() to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- drivers/staging/rtl8712/rtl871x_mlme.c | 5 +

Re: [PATCH 1/2] PM: devfreq: add freq table and available_freqs

2012-08-23 Thread MyungJoo Ham
> Devfreq framework don't have a frequency table, add it > for easy use. > > Signed-off-by: Xiaoguang Chen As we are going to have transition statistics (similar with trans_table and time_in_state of CPUfreq), we are going to have a data structure that your suggested code may use. Could you ple

Re: [RFC ebeam PATCH v4 2/2] input: misc: New USB eBeam input driver.

2012-08-23 Thread Oliver Neukum
On Thursday 23 August 2012 00:11:54 Yann Cantin wrote: > +static int ebeam_resume(struct usb_interface *intf) > +{ > + struct ebeam_device *ebeam = usb_get_intfdata(intf); > + struct input_dev *input = ebeam->input; > + int result = 0; > + > + mutex_lock(&input->mutex); > +

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-23 Thread Xiao Guangrong
On 08/23/2012 12:37 AM, Andrea Arcangeli wrote: > On Wed, Aug 22, 2012 at 11:51:17AM +0800, Xiao Guangrong wrote: >> Hmm, in KSM code, i found this code in replace_page: >> >> set_pte_at_notify(mm, addr, ptep, mk_pte(kpage, vma->vm_page_prot)); >> >> It is possible to establish a writable pte, no?

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

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 01:16:33PM +0800, Stephen Warren wrote: > On 08/22/2012 04:57 AM, Dong Aisheng wrote: > > On Wed, Aug 22, 2012 at 04:29:41PM +0800, Zhao Richard-B20223 wrote: > >> On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > >>> Add regmap based imx syscon driver. > >>> T

Re: [PATCH 1/2] PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too

2012-08-23 Thread Olof Johansson
Hi, On Mon, Jul 9, 2012 at 11:20 AM, Bjorn Helgaas wrote: > After 253d2e5498, we disable MEM and IO decoding for most devices while we > size 32-bit BARs. However, we restore the original COMMAND register before > we size the upper 32 bits of 64-bit BARs, so we can still cause a conflict. > > Th

[GIT PULL] KVM fixes for 3.6-rc3

2012-08-23 Thread Marcelo Tosatti
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the following KVM bug fixes: Alan Cox (1): ppc: e500_tlb memset clears nothing Alexander Graf (1): KVM: PPC: Add cache flush on page map Avi Kivity (1): KVM: x86 emulator: use stack siz

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

2012-08-23 Thread Marek Szyprowski
Hi Hiroshi, On Thursday, August 23, 2012 8:10 AM Hiroshi Doyu wrote: > Makes use of the same atomic pool from DMA, and skips 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 |

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

2012-08-23 Thread Dong Aisheng
On Wed, Aug 22, 2012 at 11:59:53PM +0800, Mark Brown wrote: > On Wed, Aug 22, 2012 at 03:18:45PM +0800, Dong Aisheng wrote: > > From: Dong Aisheng > > > > Using standard imx syscon API to access anatop register. > > Acked-by: Mark Brown > Thanks > With the conversion to regmap it'd also be go

Re: [PATCH] mm: mmu_notifier: fix inconsistent memory between secondary MMU and host

2012-08-23 Thread Xiao Guangrong
On 08/23/2012 03:50 AM, Andrea Arcangeli wrote: > Hi Andrew, > > On Wed, Aug 22, 2012 at 12:15:35PM -0700, Andrew Morton wrote: >> On Wed, 22 Aug 2012 18:29:55 +0200 >> Andrea Arcangeli wrote: >> >>> On Wed, Aug 22, 2012 at 02:03:41PM +0800, Xiao Guangrong wrote: On 08/21/2012 11:06 PM, Andr

[PATCHv4 0/9] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-23 Thread Tony Prisk
This patchset updates arch-vt8500 to devicetree and removes all the old-style code. Support for WM8650 has also been added. Example dts/dtsi files are given for the three currently supported models. Major changes: GPIO code has been converted to a platform_device and rewritten as WM8505 support

[PATCHv4 9/9] arm: vt8500: clk: Add Common Clock Framework support

2012-08-23 Thread Tony Prisk
This patch adds common clock framework support for arch-vt8500. Support for PLL and device clocks on VT8500, WM8505 and WM8650 are included. Signed-off-by: Tony Prisk --- drivers/clk/Makefile |1 + drivers/clk/clk-vt8500.c | 511 ++ 2 files ch

[PATCHv4 8/9] arm: vt8500: gpio: Devicetree support for arch-vt8500

2012-08-23 Thread Tony Prisk
Converted the existing arch-vt8500 gpio to a platform_device. Added support for WM8505 and WM8650 GPIO controllers. Replaced existing readl/writel calls with _relaxed variants. Replaced existing unsigned variables with u32 to match register size. Signed-off-by: Tony Prisk --- drivers/gpio/Kconfi

[PATCHv4 7/9] arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices

2012-08-23 Thread Tony Prisk
Bindings for gpio, interrupt controller, power management controller, timer, realtime clock, serial uart, ehci and uhci controllers and framebuffer controllers used on the arch-vt8500 platform. Framebuffer binding also specifies a 'display' node which is required for determining the lcd panel data

[PATCHv4 4/9] usb: vt8500: Add devicetree support for vt8500-ehci and -uhci.

2012-08-23 Thread Tony Prisk
Add devicetree support for vt8500-ehci. Convert vt8500-uhci to a generic non-pci platform-uhci with device tree support. Signed-off-by: Tony Prisk --- drivers/usb/host/Kconfig |4 +- drivers/usb/host/ehci-vt8500.c | 25 -- drivers/usb/host/uhci-hcd.c |5 ++ drivers/u

Re: JFFS2 issue with v3.5.x and later on Atmel chips at least (was: Kernel oops since v3.5.x on Atmel chips)

2012-08-23 Thread Artem Bityutskiy
From: Artem Bityutskiy Date: Thu, 23 Aug 2012 10:10:07 +0300 Subject: [PATCH] JFFS2: fix unmount regression This patch fixes regression introduced by "8bdc81c jffs2: get rid of jffs2_sync_super". We submit a delayed work in order to make sure the write-buffer is synchronized at some point. But we

[PATCHv4 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-23 Thread Tony Prisk
Increase vt8500_max_ports to 6 as the WM8505 as 6 available uarts. Use devicetree port id as primary addressing for ports but allow auto-allocation if id not specified. Signed-off-by: Tony Prisk --- drivers/tty/serial/vt8500_serial.c | 58 1 file changed, 5

[PATCHv4 1/9] arm: vt8500: Add device tree files for VIA/Wondermedia SoC's

2012-08-23 Thread Tony Prisk
Add device tree files for VT8500, WM8505 and WM8650 SoC's and reference boards. Signed-off-by: Tony Prisk --- arch/arm/boot/dts/vt8500-bv07.dts | 31 arch/arm/boot/dts/vt8500.dtsi | 115 + arch/arm/boot/dts/wm8505-ref.dts | 31 arch/arm/boo

[PATCHv4 5/9] video: vt8500: Add devicetree support for vt8500-fb and wm8505-fb

2012-08-23 Thread Tony Prisk
Update vt8500-fb, wm8505-fb and wmt-ge-rops to support device tree bindings. Small change in wm8505-fb.c to support WM8650 framebuffer color format. Signed-off-by: Tony Prisk --- drivers/video/Kconfig |6 +-- drivers/video/vt8500lcdfb.c | 79 ++- drive

[PATCHv4 2/9] rtc: vt8500: Add devicetree support for vt8500-rtc

2012-08-23 Thread Tony Prisk
Signed-off-by: Tony Prisk --- drivers/rtc/rtc-vt8500.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index 9e94fb1..07bf193 100644 --- a/drivers/rtc/rtc-vt8500.c +++ b/drivers/rtc/rtc-vt8500.c @@ -23,6 +23,7 @@

PER_LINUX32, Was: [PATCH v2 21/31] arm64: 32-bit (compat) applications support

2012-08-23 Thread Arnd Bergmann
On Thursday 16 August 2012, Will Deacon wrote: > On Wed, Aug 15, 2012 at 03:34:04PM +0100, Arnd Bergmann wrote: > > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > +asmlinkage int compat_sys_personality(compat_ulong_t personality) > > > +{ > > > + int ret; > > > + > > > + if (personality(cu

[PATCH] tools lib traceevent: Fix off-by-one bug in pevent_strerror()

2012-08-23 Thread Namhyung Kim
From: Namhyung Kim As pevent_errno is defined using PEVENT_ERRORS which uses _PE macro magic, the first errno is bigger than __PEVENT_ERRNO_START by 1. So we need to subtract the 1 also when calculating the index of the error strings. Cc: Fredereic Weisbecker Cc: Steven Rostedt Signed-off-by:

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

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 12:02:41AM +0800, Mark Brown wrote: > On Wed, Aug 22, 2012 at 03:18:42PM +0800, Dong Aisheng wrote: > > > From: Dong Aisheng > > > Add regmap based imx syscon driver. > > Nice to see more regmap-mmio usage! > > Reviwed-by: Mark Brown > > from a regmap point of view. >

[PATCH 1/2] PCI: Use local parameter pci_device_id for pci_get_subsys/class()

2012-08-23 Thread Feng Tang
>From 57a28ee5e7662ca28ba4c793aa037d64bd082dee Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Wed, 22 Aug 2012 15:41:51 +0800 Subject: [PATCH 1/2] PCI: Use local parameter pci_device_id for pci_get_subsys/class() This fixes a kernel warning https://lkml.org/lkml/2012/7/31/682 pci_get_subsys() m

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

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 01:21:03PM +0800, Stephen Warren wrote: > On 08/22/2012 01:18 AM, Dong Aisheng wrote: > > Signed-off-by: Dong Aisheng > > > diff --git a/drivers/regulator/anatop-regulator.c > > b/drivers/regulator/anatop-regulator.c > > > @@ -109,7 +110,11 @@ static int __devinit anatop

[PATCH 2/2] PCI: Remove the obsolete no_pci_devices() check

2012-08-23 Thread Feng Tang
>From 9f2f3bbdf65f669e091c72b9648a4a0394ce28f5 Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Thu, 23 Aug 2012 14:55:48 +0800 Subject: [PATCH 2/2] PCI: Remove the obsolete no_pci_devices() check In function pci_get_subsys() there is a check: /* * pci_find_subsys() can be called

RE: [RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-23 Thread Marek Szyprowski
Hi Hiroshi, On Thursday, August 23, 2012 8:15 AM Hiroshi Doyu wrote: > On Thu, 23 Aug 2012 07:58:34 +0200 > Marek Szyprowski wrote: > > > Hello, > > > > On Wednesday, August 22, 2012 3:37 PM Hiroshi Doyu wrote: > > > > > KyongHo Cho wrote @ Wed, 22 Aug 2012 14:47:00 > > > +0200: > > > > > > >

Re: [PATCH] staging: rtl8192e: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Eric Dumazet
On Thu, 2012-08-23 at 15:19 +0800, Wei Yongjun wrote: > From: Wei Yongjun > > Using is_zero_ether_addr() instead of directly use > memcmp() to determine if the ethernet address is all > zeros. > > spatch with a semantic match is used to found this problem. > (http://coccinelle.lip6.fr/) > > Sig

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-23 Thread Glauber Costa
>>> Perhaps we're just trying to take a conservative initial implementation >>> which is consistent with user visible pages. >>> >> >> The way I see it, is not about being conservative, but rather about my >> physical safety. It is quite easy and natural to assume that "all >> modifications to pag

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-23 Thread Glauber Costa
On 08/23/2012 03:23 AM, Greg Thelen wrote: > On Wed, Aug 22 2012, Glauber Costa wrote: > > > I am fine with either, I just need a clear sign from you guys so I don't > keep deimplementing and reimplementing this forever. I would be for make it simple now and go with additiona

Re: [PATCH 1/3] writeback: change nr_pages_dirtied argument into local variable

2012-08-23 Thread Namjae Jeon
2012/8/19, Fengguang Wu : > On Sat, Aug 18, 2012 at 05:48:29AM -0400, Namjae Jeon wrote: >> There is no reason nr_pages_dirtied is argument anymore. >> because nr_pages_dirtied value from caller is not used in >> balance_dirty_pages_ratelimited_nr function. > > Looks good to me. If the fs developer

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-23 Thread Cyrill Gorcunov
On Wed, Aug 22, 2012 at 11:19:07AM +0530, Aneesh Kumar K.V wrote: > Pavel Emelyanov writes: > > > Why? For e.g. ext4 you can construct a handle in userspace and open by > > it. > > open_by_handle use exportfs_decode_fh which use file system specific > fh_to_dentry > > foe ext4 we require a gene

Re: [ 04/16] drm/i915: correctly order the ring init sequence

2012-08-23 Thread Daniel Vetter
On Thu, Aug 23, 2012 at 12:44 AM, Herton Ronaldo Krzesinski wrote: > Really sorry about this, but it was a hardware+bios setting problem > here. I finished investigating what was happening here, and is related to > the DRAM installed on this machine. The memory installed is DDR3-1333, > and on bio

Re: [PATCH] i915: use alloc_ordered_workqueue() instead of explicit UNBOUND w/ max_active = 1

2012-08-23 Thread Chris Wilson
On Wed, 22 Aug 2012 16:40:57 -0700, Tejun Heo wrote: > This is an equivalent conversion and will ease scheduled removal of > WQ_NON_REENTRANT. > > Signed-off-by: Tejun Heo Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre -- To unsubscribe from this list: s

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-23 Thread Alex Shi
On 08/22/2012 05:10 PM, Ingo Molnar wrote: > > * Matthew Garrett wrote: > >> [...] >> >> Our power consumption is worse than under other operating >> systems is almost entirely because only one of our three GPU >> drivers implements any kind of useful power management. [...] > > ... and beca

Re: [RFC V3 PATCH 00/25] memory,numa: introduce MOVABLE-dedicated node and online_movable for hotplug

2012-08-23 Thread Yasuaki Ishimatsu
Hi Lai, Sorry for late reply. I'm trying to apply your patchset into linux-3.6-rc3. But I failed to apply them. What is the based kernel that can apply your patch? Thanks, Yasuaki Ishimatsu 2012/08/06 18:22, Lai Jiangshan wrote: > A) Introduction: > > This patchset adds MOVABLE-dedicated

Re: [PATCH] staging: rtl8192e: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Wei Yongjun
On 08/23/2012 03:54 PM, Eric Dumazet wrote: > On Thu, 2012-08-23 at 15:19 +0800, Wei Yongjun wrote: >> From: Wei Yongjun >> >> Using is_zero_ether_addr() instead of directly use >> memcmp() to determine if the ethernet address is all >> zeros. >> >> spatch with a semantic match is used to found th

Crypto Fixes for 3.6

2012-08-23 Thread Herbert Xu
Hi Linus: This push fixes a build error on 32-bit archs in the hifn driver as well as a potential deadlock in the caam driver. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git or master.kernel.org:/pub/scm/linux/kernel/git/herbert/crypto-2.6.git Jussi Kiv

Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation

2012-08-23 Thread Jussi Kivilinna
Quoting Jason Garrett-Glaser : On Wed, Aug 22, 2012 at 12:20 PM, Jussi Kivilinna wrote: Quoting Borislav Petkov : On Wed, Aug 22, 2012 at 07:35:12AM +0300, Jussi Kivilinna wrote: Looks that encryption lost ~0.4% while decryption gained ~1.8%. For 256 byte test, it's still slightly slower t

Re: i2c-eg20t: regression since i2c_add_numbered_adapter change

2012-08-23 Thread Feng Tang
Hi, On Wed, 22 Aug 2012 11:17:51 +0200 Alexander Stein wrote: > Hello, > > Am Mittwoch, 22. August 2012, 16:04:39 schrieb Feng Tang: > > > Why use a fixed one? Give the driver (and maybe every i2c bus driver) a > > > parameter which sets the base bus number it should use. > > > E.g. i2c-eg20t.

Re: [PATCH 00/36] AutoNUMA24

2012-08-23 Thread Ingo Molnar
* Andrea Arcangeli wrote: > On Wed, Aug 22, 2012 at 11:40:48PM +0200, Ingo Molnar wrote: > > > > * Rik van Riel wrote: > > > > > On 08/22/2012 10:58 AM, Andrea Arcangeli wrote: > > > >Hello everyone, > > > > > > > >Before the Kernel Summit, I think it's good idea to post a new > > > >AutoNUMA

Re: [PATCH] i915: use alloc_ordered_workqueue() instead of explicit UNBOUND w/ max_active = 1

2012-08-23 Thread Daniel Vetter
On Thu, Aug 23, 2012 at 08:56:37AM +0100, Chris Wilson wrote: > On Wed, 22 Aug 2012 16:40:57 -0700, Tejun Heo wrote: > > This is an equivalent conversion and will ease scheduled removal of > > WQ_NON_REENTRANT. > > > > Signed-off-by: Tejun Heo > Reviewed-by: Chris Wilson Acked-by: Daniel Vette

[PATCH v2] staging: rtl8192e: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp() to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- drivers/staging/rtl8192e/rtllib_softmac_wx.c

[PATCH] misc: use module_spi_driver

2012-08-23 Thread Devendra Naga
The _init and _exit functions can be replaced with the module_spi_driver macro, which actually implements static int __init drv_init(void) { spi_register_driver(&driv_op); return 0; } module_init(drv_init); static void __exit drv_exit(void) { spi_unregister_driver(&driv_o

Re: [RFC PATCH 2/17] input: RMI4 core bus and sensor drivers.

2012-08-23 Thread Linus Walleij
The subject of the patch sounds like something Greg should have a look at at some point. On Sat, Aug 18, 2012 at 12:17 AM, Christopher Heiny wrote: > Driver for Synaptics touchscreens using RMI4 protocol. This doesn't match the subject. Does it really driver touchscreens too? It certainly conta

Re: Search for patch for kernel stack data disclosure in binfmt_script during execve

2012-08-23 Thread Kirill A. Shutemov
On Wed, Aug 22, 2012 at 09:49:35PM +, halfdog wrote: > Got a hint via IRC, that I should not send patch idea for review to > "generic" list, but to maintainers and last (or relevant) comitters of code. > > http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=bf2a9a3

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-23 Thread Marco Stornelli
Il 23/08/2012 10:06, Cyrill Gorcunov ha scritto: On Wed, Aug 22, 2012 at 11:19:07AM +0530, Aneesh Kumar K.V wrote: Pavel Emelyanov writes: Why? For e.g. ext4 you can construct a handle in userspace and open by it. open_by_handle use exportfs_decode_fh which use file system specific fh_to_de

Re: [PATCH 2/5] trace-cmd: Use tracing directory to count CPUs

2012-08-23 Thread Steven Rostedt
On Thu, 2012-08-23 at 12:00 +0900, Masami Hiramatsu wrote: > (2012/08/23 11:01), Masami Hiramatsu wrote: > > (2012/08/22 22:41), Steven Rostedt wrote: > >> On Wed, 2012-08-22 at 17:43 +0900, Yoshihiro YUNOMAE wrote: > >>> From: Masami Hiramatsu > >>> > >>> Count debugfs/tracing/per_cpu/cpu* to det

Re: [PATCH 3/3] HWPOISON: prevent inode cache removal to keep AS_HWPOISON sticky

2012-08-23 Thread Fengguang Wu
On Wed, Aug 22, 2012 at 11:17:35AM -0400, Naoya Horiguchi wrote: > "HWPOISON: report sticky EIO for poisoned file" still has a corner case > where we have possibilities of data lost. This is because in this fix > AS_HWPOISON is cleared when the inode cache is dropped. > > For example, consider an

Re: [PATCH 2/3] HWPOISON: report sticky EIO for poisoned file

2012-08-23 Thread Fengguang Wu
On Wed, Aug 22, 2012 at 11:17:34AM -0400, Naoya Horiguchi wrote: > From: Wu Fengguang > > This makes the EIO reports on write(), fsync(), or the NFS close() > sticky enough. The only way to get rid of it may be > > echo 3 > /proc/sys/vm/drop_caches That's no longer valid with your next pa

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-23 Thread Cyrill Gorcunov
On Thu, Aug 23, 2012 at 10:54:44AM +0200, Marco Stornelli wrote: > >>For brtfs > >> > >>objectid = fid->objectid; > >>root_objectid = fid->root_objectid; > >>generation = fid->gen; > >> > >>return btrfs_get_dentry(sb, objectid, root_objectid, generation, 1); > > > >For btrfs it beco

Re: [PATCH] tools lib traceevent: Fix off-by-one bug in pevent_strerror()

2012-08-23 Thread Steven Rostedt
On Thu, 2012-08-23 at 16:37 +0900, Namhyung Kim wrote: > From: Namhyung Kim > > As pevent_errno is defined using PEVENT_ERRORS which uses _PE macro > magic, the first errno is bigger than __PEVENT_ERRNO_START by 1. So we > need to subtract the 1 also when calculating the index of the error > stri

mxc_nand.c on mach-imx/imx53

2012-08-23 Thread Roland Stigge
Hi, I'd like to know about the current state of mxc_nand.c on imx53, because I got an error on probe() because the clock that mxc_nand is requesting is "nfc" but imx53 only defines the clock "mxc_nand". Even after adjusting the name, probe() couldn't find the clock, so I'm wondering if mxc_nand.c

Re: [PATCH 01/10] alpha: Add missing RCU idle APIs on idle loop

2012-08-23 Thread Michael Cree
On 23/08/12 04:23, Frederic Weisbecker wrote: > In the old times, the whole idle task was considered > as an RCU quiescent state. But as RCU became more and > more successful overtime, some RCU read side critical > section have been added even in the code of some > architectures idle tasks, for tra

Re: [PATCH 1/3] HWPOISON: fix action_result() to print out dirty/clean

2012-08-23 Thread Fengguang Wu
On Wed, Aug 22, 2012 at 11:17:33AM -0400, Naoya Horiguchi wrote: > action_result() fails to print out "dirty" even if an error occurred on a > dirty pagecache, because when we check PageDirty in action_result() it was > cleared after page isolation even if it's dirty before error handling. This > c

Re: [Xen-devel] [PATCH v2 0/5] X86/XEN: Merge x86_init.paging.pagetable_setup_start and x86_init.paging.pagetable_setup_done setup functions and document its semantic

2012-08-23 Thread Attilio Rao
On 22/08/12 15:47, Attilio Rao wrote: On 22/08/12 15:19, Thomas Gleixner wrote: On Wed, 22 Aug 2012, Konrad Rzeszutek Wilk wrote: On Tue, Aug 21, 2012 at 11:22:03PM +0200, Thomas Gleixner wrote: On Tue, 21 Aug 2012, Attilio Rao wrote: Differences with v1: - The

Re: [PATCH v2 1/9] pinctrl: mvebu: pinctrl driver core

2012-08-23 Thread Sebastian Hesselbarth
On 8/22/12, Stephen Warren wrote: > On 08/22/2012 02:22 AM, Sebastian Hesselbarth wrote: >> +++ b/drivers/pinctrl/pinctrl-mvebu.c > >> +static int mvebu_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev, > >> +of_property_for_each_string(np, "marvell,pins", prop, group) { >> +stru

Re: Fixup the page of buddy_higher address's calculation

2012-08-23 Thread Michal Hocko
On Thu 23-08-12 16:40:13, Li Haifeng wrote: > From d7cd78f9d71a5c9ddeed02724558096f0bb4508a Mon Sep 17 00:00:00 2001 > From: Haifeng Li > Date: Thu, 23 Aug 2012 16:27:19 +0800 > Subject: [PATCH] Fixup the page of buddy_higher address's calculation Some general questions: Any word about the change

Re: [GIT PULL] x86, microcode, AMD: Per-family patches cache

2012-08-23 Thread Borislav Petkov
On Wed, Aug 22, 2012 at 04:26:25PM -0700, H. Peter Anvin wrote: > On 08/22/2012 03:48 PM, H. Peter Anvin wrote: > > > > Weird. I have never had to git fetch --tags before... So why did you have to fetch the tags this time? > OK, sorted. Next complaint... please don't mix urgent (for the current

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-23 Thread Michael S. Tsirkin
On Wed, Aug 22, 2012 at 11:19:04PM -0300, Rafael Aquini wrote: > On Wed, Aug 22, 2012 at 12:33:17PM +0300, Michael S. Tsirkin wrote: > > Hmm, so this will busy wait which is unelegant. > > We need some event IMO. > > No, it does not busy wait. leak_balloon() is mutual exclusive with migration > st

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

2012-08-23 Thread AnilKumar, Chimata
On Wed, Aug 22, 2012 at 22:24:10, Chinmay V S wrote: > > Look at this application note which talks about the outdata values > > for 2G range (page 12/31) > > http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00215823.pdf > > Had been through the applicatio

Re: [PATCH] media/radio/shark2: Fix build error caused by missing dependencies

2012-08-23 Thread Hans de Goede
Hi, On 08/22/2012 08:57 PM, Arnd Bergmann wrote: On Wednesday 22 August 2012, Guenter Roeck wrote: On Wed, Aug 22, 2012 at 05:22:26PM +0200, Hans de Goede wrote: Hi, I've a better fix for this here: http://git.linuxtv.org/hgoede/gspca.git/shortlog/refs/heads/media-for_v3.6 I already send a p

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-23 Thread Benjamin Herrenschmidt
On Thu, 2012-08-23 at 11:02 +0530, Srikar Dronamraju wrote: > > > > insn is updated/accessed in the arch independent code. Size of > uprobe_opcode_t could be different for different archs. > uprobe_opcode_t > represents the size of the smallest breakpoint instruction for an > arch. > > Hence u8

[GIT] HID

2012-08-23 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git upstream-fixes to receive fix for one particular device not being properly claimed by hid-multitouch driver. Thanks. Simon Farnsworth (1): HID: Remove QUANTA from special drivers list drivers/hid/hid

Re: [PATCH] block: replace __getblk_slow misfix by grow_dev_page fix

2012-08-23 Thread Jens Axboe
On 08/23/2012 06:56 AM, Hugh Dickins wrote: > [PATCH] block: replace __getblk_slow misfix by grow_dev_page fix > > Commit 91f68c89d8f3 ("block: fix infinite loop in __getblk_slow") > is not good: a successful call to grow_buffers() cannot guarantee > that the page won't be reclaimed before the imm

Re: Fixup the page of buddy_higher address's calculation

2012-08-23 Thread Li Haifeng
I am sorry for my mistake. higher_buddy is corresponding with buddy_index, and higher page is corresponding with combined_idx. That is right. But, How we get the page address from index offset? The key answer is what is the base value. So calculating the address based page should be (page + (budd

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

2012-08-23 Thread Chinmay V S
> Note from datasheet, "1LSb=4g/4096 at 12bit representation, > ±2g Full-scale" Precisely my point. All the datasheet says is : 1. It is +/-2G mode --> so Numerator is 4G. 2. We are using 12bits --> so Denominator is 2^12 = 4096. There is no clear reason/justification as to why 12bits was chosen

[GIT pull] timer fixes for 3.6

2012-08-23 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus Mostly small fixes for the fallout of the timekeeping overhaul in 3.6 along with stable fixes to address an accumulation problem and missing

Re: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-23 Thread Luis R. Rodriguez
On Thu, Aug 23, 2012 at 11:13 AM, David Miller wrote: > From: "Huang, Xiong" > Date: Thu, 23 Aug 2012 06:56:51 + > >> I'm afraid someone also rejects my request to add such operation to >> ethtool > > If you don't design it properly, we certainly will ask you to make > changes. > > But it sta

Re: [PATCHv4 3/9] serial: vt8500: Add devicetree support for vt8500-serial

2012-08-23 Thread Alan Cox
On Thu, 23 Aug 2012 19:35:39 +1200 Tony Prisk wrote: > Increase vt8500_max_ports to 6 as the WM8505 as 6 available uarts. > Use devicetree port id as primary addressing for ports but allow > auto-allocation if id not specified. Acked-by: Alan Cox for the serial bits -- To unsubscribe from this

Re: [PATCH] misc: use module_spi_driver

2012-08-23 Thread Arnd Bergmann
On Thursday 23 August 2012, Devendra Naga wrote: > The _init and _exit functions can be replaced with the module_spi_driver > macro, which actually implements > > static int __init drv_init(void) > { > spi_register_driver(&driv_op); > return 0; > } > > module_init(drv_init); > >

[PATCH v3 00/23] OMAP UART patches

2012-08-23 Thread Felipe Balbi
Hi guys, here's v3 and hopefully final version of this series. A whole bunch of new patches added but the good thing is that now I had another engineer's help to test, so he's got his Tested-by in all patches. Changes since v2: . Added a bunch of new patches . Fixed a problem wher

[PATCH v3 02/23] serial: omap: define helpers for pdata function pointers

2012-08-23 Thread Felipe Balbi
this patch is in preparation to a few other changes which will align on the prototype for function pointers passed through pdata. It also helps cleaning up the driver a little by agregating checks for pdata in a single location. Tested-by: Shubhrajyoti D Acked-by: Santosh Shilimkar Signed-off-b

[PATCH v3 04/23] serial: omap: drop DMA support

2012-08-23 Thread Felipe Balbi
The current support is known to be broken and a later patch will come re-adding it using dma engine API. Tested-by: Shubhrajyoti D Acked-by: Santosh Shilimkar Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 330 ++- 1 file changed, 12 inse

[PATCH v3 09/23] serial: omap: stick to put_autosuspend

2012-08-23 Thread Felipe Balbi
Everytime we're done using our TTY, we want the pm timer to be reinitilized. By sticking to pm_runtime_pm_autosuspend() we make sure that this will always be the case. The idea behind this patch is to make sure we will always reinitialize the pm timer so that we don't fall into a situation where p

[PATCH v3 10/23] serial: omap: set dev->drvdata before enabling pm_runtime

2012-08-23 Thread Felipe Balbi
by the time we call our first pm_runtme_get_sync() after enable pm_runtime, our resume method might be called. To avoid problems, we must make sure that our dev->drvdata is set correctly before our resume method gets called. Tested-by: Shubhrajyoti D Acked-by: Santosh Shilimkar Signed-off-by: Fe

[PATCH v3 16/23] serial: omap: drop "inline" from IRQ handler prototype

2012-08-23 Thread Felipe Balbi
it makes no sense to mark our IRQ handler inline since it's passed as a function pointer when enabling the IRQ line. Tested-by: Shubhrajyoti D Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/

[PATCH v3 21/23] serial: omap: remove unnecessary header and add a missing one

2012-08-23 Thread Felipe Balbi
this driver doesn't use any from , so we can remove it without any problems. This will, however cause a problem because omap-serial.c was relying on indirect inclusion of , let's fix the issue by including on omap-serial.c as it should be. Tested-by: Shubhrajyoti D Signed-off-by: Felipe Balbi

[PATCH v3 22/23] serial: omap: move uart_omap_port definition to C file

2012-08-23 Thread Felipe Balbi
nobody needs to access the uart_omap_port structure other than omap-serial.c file. Let's move that structure definition to the C source file in order to prevent anyone from accessing our structure. Tested-by: Shubhrajyoti D Signed-off-by: Felipe Balbi --- arch/arm/plat-omap/include/plat/omap-se

[PATCH v3 23/23] serial: omap: enable RX and TX FIFO usage

2012-08-23 Thread Felipe Balbi
enable RX FIFO for 16 characters and TX FIFO for 16 spaces. Tested-by: Shubhrajyoti D Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial

[PATCH v3 20/23] serial: omap: fix software flow control

2012-08-23 Thread Felipe Balbi
From: Vikram Pandita Software flow control register bits were not defined correctly. Also clarify the IXON and IXOFF logic to reflect what userspace wants. Cc: sta...@vger.kernel.org Tested-by: Shubhrajyoti D Signed-off-by: Vikram Pandita Signed-off-by: Shubhrajyoti D Signed-off-by: Felipe B

[PATCH v3 19/23] serial: omap: make sure to put() on poll_get_char

2012-08-23 Thread Felipe Balbi
if we would reach serial_omap_get_char() while Data Ready bit isn't set, we would return from it without kicking our pm timer. This would mean we would, eventually, have an unbalanced pm_runtime_get on our device which would prevent it from ever sleeping again. Tested-by: Shubhrajyoti D Signed-of

[PATCH v3 18/23] serial: omap: implement set_wake

2012-08-23 Thread Felipe Balbi
This has been missing from OMAP UART driver for quite a while and it's simple enough to implement it. Tested-by: Shubhrajyoti D Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/tty/serial/omap-serial.c b/dri

[PATCH v3 17/23] serial: omap: unlock the port lock

2012-08-23 Thread Felipe Balbi
From: Ruchika Kharwar This patch unlocks the port lock before calling a serial_core API and re-acquires the port lock after calling it. This patch fixes a system freeze issue seen when the serial_core API uart_write_wakeup() eventually attempts to acquire the port lock already acquired by omap se

[PATCH v3 15/23] serial: omap: optimization with section annotations

2012-08-23 Thread Felipe Balbi
Two functions: omap_serial_fill_features_erratas() and of_get_uart_port_info() are only called from probe(). Marking them as __devinit gives us another oportunity to free some code after .init.text is done. Tested-by: Shubhrajyoti D Signed-off-by: Ruchika Kharwar Signed-off-by: Felipe Balbi ---

[PATCH v3 14/23] serial: omap: fix sequence of pm_runtime_* calls.

2012-08-23 Thread Felipe Balbi
From: Ruchika Kharwar pm_runtime_enable() needs to be invoked before pm_runtime_use_autosuspend(), and pm_runtime_set_autosuspend_delay() functions. Tested-by: Shubhrajyoti D Signed-off-by: Nishanth Menon Signed-off-by: Ruchika Kharwar Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap

Re: [PATCHv4 0/9] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-23 Thread Arnd Bergmann
On Thursday 23 August 2012, Tony Prisk wrote: > Patchset based on Arnd's arm-soc/for-next branch. > > > Could I get this reviewed, hopefully for inclusion into v3.7. I can take them into the arm-soc tree if there are no new comments. For the last two patches, you need to get an Acked-by comment

[PATCH v3 13/23] serial: omap: don't save IRQ flags on hardirq

2012-08-23 Thread Felipe Balbi
When we're running our hardirq handler, there's not need to disable IRQs with spin_lock_irqsave() because IRQs are already disabled. It also makes no difference if we save or not IRQ flags. Switch over to simple spin_lock/spin_unlock and drop the "flags" variable. Tested-by: Shubhrajyoti D Signe

  1   2   3   4   5   6   7   >