[PATCH 1/2] netfilter: pass 'nf_hook_ops' instead of 'list_head' to nf_iterate()

2012-08-22 Thread Michael Wang
From: Michael Wang Since 'list_for_each_continue_rcu' has already been replaced by 'list_for_each_entry_continue_rcu', pass 'list_head' to nf_iterate() as a parameter can not benefit us any more. This patch will replace 'list_head' with 'nf_hook_ops' as the parameter of nf_iterate() to save code

Re: [PATCH v3 0/3] DaVinci DMA engine conversion

2012-08-22 Thread Tom Rini
On Wed, Aug 22, 2012 at 09:09:33PM -0400, Matt Porter wrote: [snip] > Matt Porter (3): > dmaengine: add TI EDMA DMA engine driver > mmc: davinci_mmc: convert to DMA engine API > spi: spi-davinci: convert to DMA engine API > > drivers/dma/Kconfig| 10 + > drivers/dma/Makefile

[PATCH] documentation: virtual: Fix typo in Documentations/virtual

2012-08-22 Thread Masanari Iida
Fix spelling typo in Documentations/virtual Signed-off-by: Masanari Iida --- Documentation/virtual/kvm/api.txt | 6 +++--- Documentation/virtual/virtio-spec.txt | 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/vir

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

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 11:16:33PM -0600, 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

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

2012-08-22 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

[v2 1/4] ARM: dma-mapping: Refactor out to introduce __in_atomic_pool

2012-08-22 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 | 25 +++-- 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 601d

[v2 3/4] ARM: dma-mapping: Refactor out to introduce __alloc_fill_pages

2012-08-22 Thread Hiroshi Doyu
__alloc_fill_pages() allocates power of 2 page number allocation at most repeatedly. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 50 ++-- 1 files changed, 34 insertions(+), 16 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/ar

[v2 2/4] ARM: dma-mapping: Use kzalloc() with GFP_ATOMIC

2012-08-22 Thread Hiroshi Doyu
Use kzalloc() with GFP_ATOMIC instead of vzalloc(). At freeing, __in_atomic_pool() checks if it comes from atomic_pool or not. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch

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

2012-08-22 Thread Hiroshi Doyu
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 | 30 +- 1 files changed, 25 insertions(+), 5 deletions(-)

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

2012-08-22 Thread Richard Zhao
On Wed, Aug 22, 2012 at 11:21:03PM -0600, 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

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

2012-08-22 Thread Hiroshi Doyu
Hi, 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: > > > > > vzalloc() call in __iommu_alloc_buffer() also causes BUG() in atomic > > > context.

Re: [Xen-devel] Q:pt_base in COMPAT mode offset by two pages. Was:Re: [PATCH 02/11] xen/x86: Use memblock_reserve for sensitive areas.

2012-08-22 Thread Jan Beulich
>>> Konrad Rzeszutek Wilk 08/22/12 9:05 PM >>> >Thinking of just sticking this patch then: Yeah, that may be best for the moment. Albeit I see no reason why you shouldn't be able to use your more selective logic, just making it either deal with only the pt_base == start-of-page-tables case (and f

Re: [PATCH v2] smb347_charger: fix battery status reporting logic for charger faults

2012-08-22 Thread Mika Westerberg
On Thu, Aug 23, 2012 at 07:19:18AM +0530, Ramakrishna Pallala wrote: > This patch checks for charger status register for determining the > battery charging status and reports Discharing/Charging/Not Charging/Full > accordingly. > > This patch also adds the interrupt support for Safety Timer Expira

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-22 Thread Artem Bityutskiy
On Wed, 2012-08-22 at 17:00 +0200, ludovic.desroches wrote: > After bisection the commit causing this issue is: > > commit 8bdc81c5069e43755d6e59e5e990e21ca200e8e2 > Author: Artem Bityutskiy > Date: Mon May 7 19:56:53 2012 +0300 > > jffs2: get rid of jffs2_sync_super Thanks Ludovic for b

Re: [PATCH v2 00/13] OMAP Serial patches

2012-08-22 Thread Felipe Balbi
Hi, On Tue, Aug 21, 2012 at 03:15:58PM +0300, Felipe Balbi wrote: > Hi guys, > > here's a series of cleanup patches to the OMAP serial > driver. A later series could be made re-implementing > DMA using the DMA Engine API. Note that for RX DMA > we could be using RX Timeout IRQ as a hint that we b

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

2012-08-22 Thread Huang, Xiong
> This is why we require that portable, sane, interfaces are added to ethtool > for > driver diagnostics. That way users can perform a task in the same way > regardless of what hardware and driver are underneath. I quite agree you on using ethtool to implement it. we did consider it. But ethtoo

Re: [PATCH 0/8] netdev/MIPS: Improvements to octeon_mgmt Ethernet driver.

2012-08-22 Thread John Crispin
On 23/08/12 04:16, David Miller wrote: > From: David Daney > Date: Tue, 21 Aug 2012 11:45:04 -0700 > >> From: David Daney >> >> Recent additions to the OCTEON SoC family have included enhancements >> to the MIX (octeon_mgmt) Ethernet hardware. These include: >> >> o 1Gig support (up from 100M).

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

2012-08-22 Thread David Miller
From: "Huang, Xiong" Date: Thu, 23 Aug 2012 06:35:40 + >> This is why we require that portable, sane, interfaces are added to ethtool >> for >> driver diagnostics. That way users can perform a task in the same way >> regardless of what hardware and driver are underneath. > > I quite agree

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

2012-08-22 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp(addr, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) 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 --- dr

[PATCH] rtc: rc5t583: add ricoh rc5t583 RTC driver

2012-08-22 Thread Venu Byravarasu
Adding RTC driver for RTC device on Ricoh MFD Rc5t583. Ricoh RTC has 3 types of alarms. Current patch adds support for Y-Alarm of RC5t583 RTC. Signed-off-by: Venu Byravarasu --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile|1 + drivers/rtc/rtc-rc5t583.c | 331 ++

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

2012-08-22 Thread Minchan Kim
On Thu, Aug 23, 2012 at 09:10:25AM +0300, Hiroshi Doyu wrote: > 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 me

[GIT PULL] UBIFS fixes for 3.6-rc3

2012-08-22 Thread Artem Bityutskiy
Hi Linus, 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://git.infradead.org/linux-ubifs.git tags/upstream-3.6-rc3 for you to fetch changes up to 69f9025894c391fec2f7c7ea9150

Re: WARNING: at vsmp_64.c: is_vsmp_box()

2012-08-22 Thread Ido Yariv
Hi Fengguang, On Thu, Aug 23, 2012 at 08:55:15AM +0800, Fengguang Wu wrote: > Hi Ido, > > The below warning should be introduced by this commit at tip/master: > > commit c00679af441c5be76e195deed2c76fef65a5d102 > Author: Ido Yariv > CommitDate: Wed Aug 22 10:48:05 2012 +0200 > > x86/vs

Re: [PATCH v2] x86: don't ever patch back to UP if we unplug cpus.

2012-08-22 Thread Rusty Russell
On Wed, 22 Aug 2012 11:41:53 +0200, Ingo Molnar wrote: > > * Rusty Russell wrote: > > > We still patch SMP instructions to UP variants if we boot with a > > single CPU, but not at any other time. In particular, not if we > > unplug CPUs to return to a single cpu. > > > > Paul McKenney points

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

2012-08-22 Thread Huang, Xiong
> > Then add a new ethtool operation to support your use case, that's exactly > what I was telling you to do. > > Did it really not occur to you that you perhaps you should extend existing > generic facilities to suit your needs instead of creating private facilities > that no > other driver can

<    3   4   5   6   7   8