[PATCH] drm/i2c/ch7006: Convert to dev_pm_ops

2012-08-07 Thread Mark Brown
The I2C specific suspend and resume functions have been deprecated and printing a warning on boot for over a year, dev_pm_ops should be used instead so convert to that. Also remove the suspend function since all it does is log. Signed-off-by: Mark Brown Acked-by: Francisco Jerez --- drivers/gp

Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

2012-08-07 Thread Russell King
On Tue, Aug 07, 2012 at 11:38:51AM +0100, Mark Brown wrote: > On Tue, Aug 07, 2012 at 09:47:25AM +0800, Haojian Zhuang wrote: > > > It's because IO_SPACE_LIMIT is set as 0 if there's no PCI devices. But > > IORESOURCE_IO is also used in PMIC mfd drivers to distinguish > > different components. >

[PATCH 5/5] KVM: Replace test_and_set_bit_le() in mark_page_dirty_in_slot() with set_bit_le()

2012-08-07 Thread Takuya Yoshikawa
From: Takuya Yoshikawa Now that we have defined generic set_bit_le() we do not need to use test_and_set_bit_le() for atomically setting a bit. Signed-off-by: Takuya Yoshikawa Cc: Avi Kivity Cc: Marcelo Tosatti --- virt/kvm/kvm_main.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(

[PATCH 4/5] powerpc: bitops: Introduce {clear,set}_bit_le()

2012-08-07 Thread Takuya Yoshikawa
From: Takuya Yoshikawa Needed to replace test_and_set_bit_le() in virt/kvm/kvm_main.c which is being used for this missing function. Signed-off-by: Takuya Yoshikawa Acked-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/bitops.h | 10 ++ 1 files changed, 10 insertions(+), 0 d

[PATCH 3/5] bitops: Introduce generic {clear,set}_bit_le()

2012-08-07 Thread Takuya Yoshikawa
From: Takuya Yoshikawa Needed to replace test_and_set_bit_le() in virt/kvm/kvm_main.c which is being used for this missing function. Signed-off-by: Takuya Yoshikawa Acked-by: Arnd Bergmann --- include/asm-generic/bitops/le.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-)

[PATCH 2/5] drivers/net/ethernet/dec/tulip: Use standard __set_bit_le() function

2012-08-07 Thread Takuya Yoshikawa
From: Takuya Yoshikawa To introduce generic set_bit_le() later, we remove our own definition and use a proper non-atomic bitops function: __set_bit_le(). Signed-off-by: Takuya Yoshikawa Acked-by: Grant Grundler --- drivers/net/ethernet/dec/tulip/de2104x.c|7 ++- drivers/net/ethern

Re: [PATCH] ipc/sem.c: prevent ENOMEM in semop() w/ SEM_UNDO flag

2012-08-07 Thread Manfred Spraul
Hi Seiichi, 2012/8/6 Seiichi Ikarashi > > > A real case was as follows. > semget(IPC_PRIVATE, 7, IPC_CREAT | IPC_EXCL); > sops[0].sem_num = 0; > sops[0].sem_op = 1; > sops[0].sem_flg = SEM_UNDO; > semop(semid, sops, 1); > I think this can't work: sops[].sem_num is

[PATCH 1/5] sfc: Use standard __{clear,set}_bit_le() functions

2012-08-07 Thread Takuya Yoshikawa
From: Ben Hutchings There are now standard functions for dealing with little-endian bit arrays, so use them instead of our own implementations. Signed-off-by: Ben Hutchings Signed-off-by: Takuya Yoshikawa --- drivers/net/ethernet/sfc/efx.c|4 ++-- drivers/net/ethernet/sfc/net_driv

[PATCH 0/5 - RESEND] Introduce generic set_bit_le()

2012-08-07 Thread Takuya Yoshikawa
This is against today's linux-next. KVM is using test_and_set_bit_le() for this missing function; this patch series corrects this usage. As some drivers have their own definitions of set_bit_le(), a bit of preparation is also needed. Although these are differently implemented, especially for b

Re: [PATCH]: Autosleep patch.

2012-08-07 Thread Guenter Roeck
On Mon, Aug 06, 2012 at 08:38:17AM -0700, Randy Dunlap wrote: > On 08/06/2012 08:13 AM, Christopher Sacchi wrote: > > > This patch (listed below), changes an old function in autosleep.c in > > kernel version 3.5. It's code is listed from the first -- line to the > > 2nd to last -- line. > > This p

Re: [PATCH] ARM: SAMSUNG: Fix compilation error with s3c2410_defconfig

2012-08-07 Thread Tushar Behera
On 08/07/2012 04:03 PM, Kukjin Kim wrote: > Tushar Behera wrote: >> >> Commit 2663e766c56a "ARM Samsung: Move s3c pwm driver to pwm framework" >> moved Samsung PWM driver to drivers/pwm and the config option to select >> this driver has changed. >> >> This patch fixes following build-error with s3c

Re: [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc

2012-08-07 Thread Mark Brown
On Tue, Aug 07, 2012 at 11:32:27AM +0200, Linus Walleij wrote: > I remember this now. Only that one regulator has a non-negligeble > rise time, so for that reason it's set to that value. Atleast so I was > told once upon a time when I implemented it, so this patch > should be fine. Please resend

Re: [PATCH 2/2] ptrace: fix set_task_blockstep()->update_debugctlmsr() logic

2012-08-07 Thread Sebastian Andrzej Siewior
On 08/07/2012 11:41 AM, Sebastian Andrzej Siewior wrote: On 08/03/2012 06:29 PM, Oleg Nesterov wrote: For uprobes we never set the bit, we only need it cleared. We get here via int 3 and do_debug() already clears TIF_BLOCKSTEP because the CPU clears the bit in CPU. So both, TIF_BLOCKSTEP and DEBU

Re: [PATCH] driver: misc: bmp085: remove "of_match_table" property.

2012-08-07 Thread Mark Brown
On Tue, Aug 07, 2012 at 08:43:44AM +0300, Felipe Balbi wrote: > On Mon, Aug 06, 2012 at 04:42:14PM +0100, Mark Brown wrote: > > It's good practice to have an explict compatible string even if the > > default happens to work in order to avoid any name clashes. > of_i2c.c makes no use whatsoever of

Re: [Regression] "x86-64/efi: Use EFI to deal with platform wall clock" prevents my machine from booting

2012-08-07 Thread Jan Beulich
>>> On 07.08.12 at 11:30, Matt Fleming wrote: > On Tue, 2012-08-07 at 08:14 +0100, Jan Beulich wrote: >> That's not surprising. The question really is what goes wrong >> when the call is being made - page fault, some other fault, or >> silent hang. A page fault would point to an incorrect memory >

Re: [PATCH v2] Convert properly UTF-8 to UTF-16

2012-08-07 Thread Jeff Layton
On Tue, 7 Aug 2012 10:33:03 +0100 Frediano Ziglio wrote: > > wchar_t is currently 16bit so converting a utf8 encoded characters not > in plane 0 (>= 0x1) to wchar_t (that is calling char2uni) lead to a > -EINVAL return. This patch detect utf8 in cifs_strtoUTF16 and add special > code calling

[PATCH] x86/smp: Fix cpuN startup panic

2012-08-07 Thread Chen, LinX Z
From: Lin Chen We hit a panic while doing cpu hotplug test. <0>[ 627.982857] Kernel panic - not syncing: smp_callin: CPU1 started up but did not get a callout! <0>[ 627.982864] <4>[ 627.982876] Pid: 0, comm: kworker/0:1 Tainted: G ... <4>[ 627.982883] Call Trace: <4>[ 627.982903] [] panic

Re: A question on serial driver

2012-08-07 Thread Jiri Slaby
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? On 08/07/2012 11:51 AM, Shashidhar Hiremath wrote: > the code is a bit unclean to send directly. Whatever, just send it out.

Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

2012-08-07 Thread Mark Brown
On Tue, Aug 07, 2012 at 09:47:25AM +0800, Haojian Zhuang wrote: > It's because IO_SPACE_LIMIT is set as 0 if there's no PCI devices. But > IORESOURCE_IO is also used in PMIC mfd drivers to distinguish > different components. The change to keep things working here (pending the other changes which

Re: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 11:51 AM, Shashidhar Hiremath wrote: > the code is a bit unclean to send directly. But any information like > "does driver change modes once it prompts for login" > can be helpful for debugging since my code does not seem to work after login . Then clean it up. You have do

RE: [PATCH] ARM: SAMSUNG: Fix compilation error with s3c2410_defconfig

2012-08-07 Thread Kukjin Kim
Tushar Behera wrote: > > Commit 2663e766c56a "ARM Samsung: Move s3c pwm driver to pwm framework" > moved Samsung PWM driver to drivers/pwm and the config option to select > this driver has changed. > > This patch fixes following build-error with s3c2410_defconfig. > arch/arm/mach-s3c24xx/mach-rx1

Re: rcu: INFO: rcu_preempt detected stalls on CPUs/tasks on v3.6

2012-08-07 Thread Sasha Levin
On 08/07/2012 07:40 AM, John Stultz wrote: > On 08/06/2012 11:28 AM, Sasha Levin wrote: >> On 08/06/2012 08:20 PM, John Stultz wrote: >>> On 08/06/2012 10:21 AM, John Stultz wrote: On 08/05/2012 09:55 AM, Sasha Levin wrote: > On 07/30/2012 03:17 PM, Avi Kivity wrote: >> Possible causes

Re: [PATCH] serial: ifx6x60: fix paging fault on spi_register_driver

2012-08-07 Thread Alan Cox
On Tue, 7 Aug 2012 13:12:47 +0800 Fengguang Wu wrote: > [ 117.240866] BUG: unable to handle kernel paging request at 815b627c > [ 117.240866] IP: [<813fe94b>] spi_register_driver+0xb/0x50 > ... > [ 117.240866] Call Trace: > [ 117.240866] [<817de977>] ifx_spi_init+0xbe/0xf0 > > The root caus

RE: [PATCH V2 5/6] x86: add CONFIG_ARM_AMBA, selected by STA2X11

2012-08-07 Thread Kukjin Kim
Linus Walleij wrote: > [...] > The major reason why that file is there is that there is *another* > PL080 driver in arch/arm/mach-s3c64xx/dma.c which I repeatedly > asked the Samsung people to replace with the > drivers/dma/amba-pl08x.c driver. :-( > > When I worked on the PL08x driver in drive

[PATCH] ARM: SAMSUNG: Fix compilation error with s3c2410_defconfig

2012-08-07 Thread Tushar Behera
Commit 2663e766c56a "ARM Samsung: Move s3c pwm driver to pwm framework" moved Samsung PWM driver to drivers/pwm and the config option to select this driver has changed. This patch fixes following build-error with s3c2410_defconfig. arch/arm/mach-s3c24xx/mach-rx1950.c:430: undefined reference to `p

[PATCH] audit: fix wrong timeout value in audit_log_start

2012-08-07 Thread Andrea Righi
audit_log_start() does not properly check timeout values when audit_backlog_limit is exceeded, for example it is possible to use negative timeout values with schedule_timeout() triggering error messages like this: schedule_timeout: wrong timeout value 54e4 Be sure to never set negat

Re: [RESEND PATCHv5 09/11] modem_shm: Character device for SHM channel access.

2012-08-07 Thread Alan Cox
> I am working on a re-spin of the entire patch-set for Modem-SHM using > the RemoteProc framework from Ohad Ben Cohen and using Virtio as > transport mechanism between modem and host. I hope to be able to > use Virtio Console for the tty.The use-case tty/char device is for > transfering boot image

Re: [PATCHv2 3/4] modem_shm: u8500-shm: U8500 Shared Memory Driver

2012-08-07 Thread Alan Cox
> +#define SIZE_OF_FIFO (512*1024) > + > +static u8 message_fifo[ISA_DEVICES][SIZE_OF_FIFO]; Thats a huge amount of static memory that gets allocated regardless of whether the device is open or being used ? > +static int major; > +module_param(major, int, 0); > +MODULE_PARM_DESC(major, "Major dev

[PATCH v5 12/12] KVM: indicate readonly access fault

2012-08-07 Thread Xiao Guangrong
Introduce write_readonly_mem in mmio-exit-info to indicate this exit is caused by write access on readonly memslot Signed-off-by: Xiao Guangrong --- arch/x86/kvm/x86.c | 12 include/linux/kvm.h |3 +++ include/linux/kvm_host.h |1 + virt/kvm/kvm_main.c |

[PATCH v5 11/12] KVM: x86: introduce set_mmio_exit_info

2012-08-07 Thread Xiao Guangrong
Introduce set_mmio_exit_info to cleanup the common code Signed-off-by: Xiao Guangrong --- arch/x86/kvm/x86.c | 33 + 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4c86239..8cde327 100644 --- a/arch

[PATCH v5 10/12] KVM: introduce readonly memslot

2012-08-07 Thread Xiao Guangrong
In current code, if we map a readonly memory space from host to guest and the page is not currently mapped in the host, we will get a fault-pfn and async is not allowed, then the vm will crash We introduce readonly memory region to map ROM/ROMD to the guest, read access is happy for readonly memsl

[PATCH v5 09/12] KVM: introduce KVM_HVA_ERR_RO_BAD

2012-08-07 Thread Xiao Guangrong
In the later patch, it indicates failure when we try to get a writable hva from the readonly slot Signed-off-by: Xiao Guangrong --- include/linux/kvm_host.h |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 7737

[PATCH v5 08/12] KVM: introduce KVM_HVA_ERR_BAD

2012-08-07 Thread Xiao Guangrong
Then, remove bad_hva and inline kvm_is_error_hva Signed-off-by: Xiao Guangrong --- include/linux/kvm_host.h |8 +++- virt/kvm/kvm_main.c | 13 + 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 83

[PATCH v5 07/12] KVM: introduce KVM_PFN_ERR_RO_FAULT

2012-08-07 Thread Xiao Guangrong
In the later patch, it indicates failure when we try to get a writable pfn from the readonly memslot Signed-off-by: Xiao Guangrong --- include/linux/kvm_host.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 187c9

Re: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
the code is a bit unclean to send directly. But any information like "does driver change modes once it prompts for login" can be helpful for debugging since my code does not seem to work after login . Behaviour : Driver prints charecter untill devel login on console. It accepts characters before l

[PATCH v5 06/12] KVM: use 'writable' as a hint to map writable pfn

2012-08-07 Thread Xiao Guangrong
In current code, we always map writable pfn for the read-fault, in order to support readonly memslot, we map writable pfn only if 'writable' is not NULL Signed-off-by: Xiao Guangrong --- virt/kvm/kvm_main.c | 24 +++- 1 files changed, 23 insertions(+), 1 deletions(-) diff

[PATCH v5 05/12] KVM: reorganize hva_to_pfn

2012-08-07 Thread Xiao Guangrong
We do too many things in hva_to_pfn, this patch reorganize the code, let it be better readable Signed-off-by: Xiao Guangrong --- virt/kvm/kvm_main.c | 159 +++ 1 files changed, 97 insertions(+), 62 deletions(-) diff --git a/virt/kvm/kvm_main.c b/

[PATCH v5 04/12] KVM: introduce gfn_to_hva_read/kvm_read_hva/kvm_read_hva_atomic

2012-08-07 Thread Xiao Guangrong
This set of functions is only used to read data from host space, in the later patch, we will only get a readonly hva in gfn_to_hva_read, and the function name is a good hint to let gfn_to_hva_read to pair with kvm_read_hva()/kvm_read_hva_atomic() Signed-off-by: Xiao Guangrong --- virt/kvm/kvm_ma

[PATCH v5 03/12] KVM: introduce gfn_to_pfn_memslot_atomic

2012-08-07 Thread Xiao Guangrong
It can instead of hva_to_pfn_atomic Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c |5 + include/linux/kvm_host.h |3 ++- virt/kvm/kvm_main.c | 14 -- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu

Re: [RFC v3 1/7] hashtable: introduce a small and naive hashtable

2012-08-07 Thread Sasha Levin
On 08/07/2012 04:55 AM, Josh Triplett wrote: > On Tue, Aug 07, 2012 at 02:45:10AM +0200, Sasha Levin wrote: >> +/** >> + * hash_add - add an object to a hashtable >> + * @hashtable: hashtable to add to >> + * @bits: bit count used for hashing >> + * @node: the &struct hlist_node of the object to be

[PATCH v5 02/12] KVM: hide KVM_MEMSLOT_INVALID from userspace

2012-08-07 Thread Xiao Guangrong
Quote Avi's comment: | KVM_MEMSLOT_INVALID is actually an internal symbol, not used by | userspace. Please move it to kvm_host.h. Also, move KVM_MEMSLOT_INVALID to the highest bit Signed-off-by: Xiao Guangrong --- include/linux/kvm.h |1 - include/linux/kvm_host.h |2 ++ 2 files c

[PATCH v5 01/12] KVM: fix missing check for memslot flags

2012-08-07 Thread Xiao Guangrong
Check flags when memslot is registered from userspace as Avi's suggestion Signed-off-by: Xiao Guangrong --- virt/kvm/kvm_main.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index a2e85af..7b94d70 100644 --- a/virt/

[PATCH v5 00/12] KVM: introduce readonly memslot

2012-08-07 Thread Xiao Guangrong
Changelog: - introduce KVM_PFN_ERR_RO_FAULT instead of dummy page - introduce KVM_HVA_ERR_BAD and optimize error hva indicators The test case can be found at: http://lkml.indiana.edu/hypermail/linux/kernel/1207.2/00819/migrate-perf.tar.bz2 In current code, if we map a readonly memory space from h

Re: [PATCH 1/1 v2] i2c: Add default configuration into the Nomadik I2C driver.

2012-08-07 Thread Linus Walleij
On Mon, Aug 6, 2012 at 5:35 PM, Lee Jones wrote: > Looks like I introduced a merge error on the last patch. Trying again: > .../mali/mali400ko/driver/src/devicedrv/mali/arch |1 + (...) > diff --git a/drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/arch > b/drivers/gpu/mali/mali400ko/

[PATCH] MIPS: fix module.c build for 32 bit

2012-08-07 Thread Jonas Gorski
Fixes the following build failure introduced by "Make most arch asm/module.h files use asm-generic/module.h". CC arch/mips/kernel/module.o arch/mips/kernel/module.c:250:14: error: 'reloc_handlers_rela' defined but not used [-Werror=unused-variable] cc1: all warnings being treated as errors

Re: [PATCH] fix NULL-pointer dereference on scsi_run_queue

2012-08-07 Thread Bart Van Assche
On 08/07/12 08:53, Chanho Min wrote: > In addition, Is it ironic that we are careful to use put_device at > scsi_request_fn?. If we trigger the ->remove(), > It occur a oops. What about the removal of unlock/lock as patch bellow? > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c >

[PATCH] char/tpm: Add new driver for Infineon I2C TIS TPM

2012-08-07 Thread Peter Huewe
This patch adds a driver to support Infineon's SLB 9635 TT 1.2 Soft I2C TPMs which follow the TGC TIS 1.2 TPM specification[1] and Infineon's I2C Protocol Stack Specification 0.20. The I2C Protocol Stack Specification is a simple adaption of the LPC TIS Protocol to the I2C Bus. The I2C TPMs can be

Re: [PATCH 2/2] ptrace: fix set_task_blockstep()->update_debugctlmsr() logic

2012-08-07 Thread Sebastian Andrzej Siewior
On 08/03/2012 06:29 PM, Oleg Nesterov wrote: --- a/arch/x86/kernel/step.c +++ b/arch/x86/kernel/step.c @@ -166,12 +166,18 @@ static void set_task_blockstep(struct task_struct *task, bool on) else clear_tsk_thread_flag(task, TIF_BLOCKSTEP); + if (task != current) +

[GIT PULL] fuse updates for 3.6

2012-08-07 Thread Miklos Szeredi
Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-linus to receive the following changes. Thanks, Miklos --- Brian Foster (3): fuse: add FUSE_AUTO_INVAL_DATA init flag fuse: invalidate inode mapping if mtime changes fuse: update att

Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-07 Thread Lukasz Majewski
On Tue, 07 Aug 2012 11:04:10 +0800 Peiyong Feng wrote: > 2012/8/6 Lukasz Majewski : > > Hi, > > > >> Hi, > >> > >> On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote: > >> > I got a kernel panic when try hsotg of ok6410 which is based on > >> > s3c6410: > > As you said, you are using th

[PATCH v2] Convert properly UTF-8 to UTF-16

2012-08-07 Thread Frediano Ziglio
wchar_t is currently 16bit so converting a utf8 encoded characters not in plane 0 (>= 0x1) to wchar_t (that is calling char2uni) lead to a -EINVAL return. This patch detect utf8 in cifs_strtoUTF16 and add special code calling utf8s_to_utf16s. Signed-off-by: Frediano Ziglio --- fs/cifs/cifs_

Re: [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc

2012-08-07 Thread Linus Walleij
On Mon, Aug 6, 2012 at 5:50 PM, Linus Walleij wrote: > On Mon, Aug 6, 2012 at 5:46 PM, Axel Lin wrote: >> 2012/7/4 Mark Brown : >>> On Wed, Jul 04, 2012 at 10:31:45AM +0800, Axel Lin wrote: Signed-off-by: Axel Lin --- Hi Linus, While working on this patch, I found in original

Re: [Regression] "x86-64/efi: Use EFI to deal with platform wall clock" prevents my machine from booting

2012-08-07 Thread Matt Fleming
On Tue, 2012-08-07 at 08:14 +0100, Jan Beulich wrote: > That's not surprising. The question really is what goes wrong > when the call is being made - page fault, some other fault, or > silent hang. A page fault would point to an incorrect memory > map as the prime candidate for causing the problem.

Re: [PATCH] fix NULL-pointer dereference on scsi_run_queue

2012-08-07 Thread Bart Van Assche
On 08/07/12 08:53, Chanho Min wrote: > On Tue, Aug 7, 2012 at 2:56 AM, Bart Van Assche wrote: >> Indeed. How about the patch below ? Scsi devices are removed from >> starved_list after blk_cleanup_queue() and before put_device(). That >> guarantees that inside scsi_run_queue() get_device() under h

[PATCH v2 1/3] backlight: atmel-pwm-bl: remove goto err_free_mem

2012-08-07 Thread Jingoo Han
This patch removes goto err_free_mem, which makes code a bit smaller. Cc: Richard Purdie Acked-by: Hans-Christian Egtvedt Signed-off-by: Jingoo Han --- drivers/video/backlight/atmel-pwm-bl.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/video/b

[PATCH v2 3/3] backlight: lp855x: remove goto err_sysfs and goto err_dev

2012-08-07 Thread Jingoo Han
This patch removes goto err_sysfs and goto err_dev, which makes code a bit smaller. Cc: Richard Purdie Signed-off-by: Milo(Woogyom) Kim Signed-off-by: Jingoo Han --- drivers/video/backlight/lp855x_bl.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/

[PATCH v2 2/3] backlight: aat2870: remove goto out

2012-08-07 Thread Jingoo Han
This patch removes goto out, which makes code a bit smaller. Cc: Richard Purdie Acked-by: Jinyoung Park Signed-off-by: Jingoo Han --- drivers/video/backlight/aat2870_bl.c | 13 - 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/video/backlight/aat2870_bl.c

Re: [PATCH] extcon: Remove duplicate inclusion of extcon.h header file

2012-08-07 Thread MyungJoo Ham
> extcon.h header file was included twice. > > Signed-off-by: Sachin Kamat > Signed-off-by: Sachin Kamat Signed-off-by: MyungJoo Ham Thanks! MyungJoo

Re: [PATCH] arm/dts: omap5: Add mmc controller nodes and board data

2012-08-07 Thread Arnd Bergmann
On Tuesday 07 August 2012, Balaji T K wrote: > > Add OMAP MMC related device tree data for OMAP5. > > Signed-off-by: Balaji T K > --- Acked-by: Arnd Bergmann -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More m

Re: [PATCH 1/1] ARM: kirkwood: fix typo in Makefile.boot

2012-08-07 Thread Arnd Bergmann
On Sunday 05 August 2012, Sebastian Hesselbarth wrote: > Just a small typo fix to make lsxl dtbs compile > > Signed-off-by: Sebastian Hesselbarth > Cc: Jason Cooper > Cc: Andrew Lunn > Cc: Russell King > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > arch/

RE: [NEW DRIVER V2 1/7] DA9058 MFD core and ADC driver

2012-08-07 Thread Opensource [Anthony Olech]
Thanks Venu for the two comments, (1) the RTC values are not encoded in BCD, I am adding a comment in the header file to that effect (2) the "*_REG" naming convention is used for MFD component drivers, see directory include/linux/mfd for numerous examples Tony Olech -Original Message-

[PATCH] extcon: Remove duplicate inclusion of extcon.h header file

2012-08-07 Thread Sachin Kamat
extcon.h header file was included twice. Signed-off-by: Sachin Kamat Signed-off-by: Sachin Kamat --- drivers/extcon/extcon_gpio.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/extcon/extcon_gpio.c b/drivers/extcon/extcon_gpio.c index fe3db45..25b6c11 100644 --

[PATCH v2] usb:musb:musb_host: Handle highmem in PIO mode

2012-08-07 Thread Virupax Sadashivpetimath
In case of USB bulk transfer, when himem page is received, the usb_sg_init function sets the urb transfer buffer to NULL. When such URB transfer is handled, kernel crashes in PIO mode. Handle this by mapping the highmem buffer in PIO mode. Signed-off-by: Virupax Sadashivpetimath Signed-off-by: P

Re: [PATCH V6 0/2] Improve virtio-blk performance

2012-08-07 Thread Christoph Hellwig
On Tue, Aug 07, 2012 at 04:47:13PM +0800, Asias He wrote: > 1) Ramdisk device > With bio-based IO path, sequential read/write, random read/write > IOPS boost : 28%, 24%, 21%, 16% > Latency improvement: 32%, 17%, 21%, 16% > 2) Fusion IO device > With bio-based IO path, se

Re: [PATCH V6 2/2] virtio-blk: Add REQ_FLUSH and REQ_FUA support to bio path

2012-08-07 Thread Christoph Hellwig
At least after review is done I really think this patch sopuld be folded into the previous one. Some more comments below: > @@ -58,6 +58,12 @@ struct virtblk_req > struct bio *bio; > struct virtio_blk_outhdr out_hdr; > struct virtio_scsi_inhdr in_hdr; > + struct work_struct

Re: [PATCH 3/3] backlight: lp855x: remove goto err_dev

2012-08-07 Thread Jingoo Han
On Tuesday, August 07, 2012 5:32 PM Kim, Milo wrote: > > > This patch removes goto err_dev, which makes code a bit smaller. > > Thanks ! > IMO, goto statements are meaningful on _probe(). > However, 'goto err_sysfs' also can be removed if the size of code is critical. OK, I will send v2 patch.

[PATCH] mpc85xx_defconfig: add VIA PATA support for MPC85xxCDS

2012-08-07 Thread Zhao Chenhui
Signed-off-by: Zhao Chenhui --- Replace this patch "mpc85xx_defconfig: add IDE support for MPC85xxCDS". arch/powerpc/configs/mpc85xx_defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/configs/mpc85xx_defconfig b/arch/powerpc/configs/mpc85xx_defconfig

Re: A question on serial driver

2012-08-07 Thread Jiri Slaby
On 08/07/2012 10:26 AM, Dan Luedtke wrote: > On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote: >> The driver for some reason does not >> print the content I type on console after login prompt. Any reason >> why this might be happening ? > > I don't know if it is just me, but a code sn

Re: [RFC][PATCH] Reset PCIe devices to address DMA problem on kdump with iommu

2012-08-07 Thread Takao Indoh
(2012/08/07 5:39), Vivek Goyal wrote: > On Mon, Aug 06, 2012 at 01:30:47PM +0900, Takao Indoh wrote: >> Hi Vivek, >> >> (2012/08/03 20:46), Vivek Goyal wrote: >>> On Fri, Aug 03, 2012 at 08:24:31PM +0900, Takao Indoh wrote: Hi all, This patch adds kernel parameter "reset_pcie_devices

[PATCH] PM / Domains: Not return error when dev_pm_get_subsys_data returns 1

2012-08-07 Thread Tushar Behera
Commit 1d5fcfec22 ("PM / Domains: Add device domain data reference counter") returns error when dev_pm_get_subsys_data() returns a non-zero value. However, dev_pm_get_subsys_data() returns 1 when dev->power.subsys_data is allocated during this call. Hence we should only check for the error codes i

RE: [PATCH v6 5/8] fsl-dma: change release process of dma descriptor for supporting async_tx

2012-08-07 Thread Liu Qiang-B32616
Hi Ira, I remember you said you always disable CONFIG_NET_DMA to make sure dma engine won't be locked, actually if this options may affect some behavior of fsl-dma in current kernel, it is possible to issue pending descriptors if there is any network actions. Set CONFIG_NET_DMA=y, dma_issue_pe

Re: [PATCH] Parallelize mtrr init between cpus

2012-08-07 Thread zhenzhong.duan
I also post a question to xen-devel maillist. Although this patch fix the long time issue in hvm, but I don't know why hvm would waste such a long time at bootup. Also I'm not sure if this patch is correct in all cases. Maybe I miss something. link for reference: http://www.gossamer-threads.com/lis

Re: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 10:49 AM, Shashidhar Hiremath wrote: > Hi Richard, >I am new to serial framework. Can you please elaborate on what you > mean by implementing a hangup ? struct tty_operations' hangup() -- Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe l

[PATCH] netvm: check for page == NULL when propogating the skb->pfmemalloc flag

2012-08-07 Thread Mel Gorman
Commit [c48a11c7: netvm: propagate page->pfmemalloc to skb] is responsible for the following bug triggered by a xen network driver [1.908592] BUG: unable to handle kernel NULL pointer dereference at 0010 [1.908643] IP: [] xennet_poll+0x980/0xec0 [xen_netfront] [1.908703] P

Re: [PATCH] fix NULL-pointer dereference on scsi_run_queue

2012-08-07 Thread Chanho Min
On Tue, Aug 7, 2012 at 2:56 AM, Bart Van Assche wrote: > Indeed. How about the patch below ? Scsi devices are removed from > starved_list after blk_cleanup_queue() and before put_device(). That > guarantees that inside scsi_run_queue() get_device() under host lock > will succeed. Thanks, IMHO, it'

Re: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
Hi Richard, I am new to serial framework. Can you please elaborate on what you mean by implementing a hangup ? On Tue, Aug 7, 2012 at 2:06 PM, richard -rw- weinberger wrote: > On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath > wrote: >> Hi, >> I have written a console driver where I also

Re: [PATCH V5 4/4] virtio-blk: Add REQ_FLUSH and REQ_FUA support to bio path

2012-08-07 Thread Asias He
On 08/06/2012 11:17 PM, Christoph Hellwig wrote: On Thu, Aug 02, 2012 at 02:43:04PM +0800, Asias He wrote: Even if it has a payload waiting is highly suboptimal and it should use a non-blocking sequencing like it is done in the request layer. So, for REQ_FLUSH, what we need is that send out th

[PATCH V6 2/2] virtio-blk: Add REQ_FLUSH and REQ_FUA support to bio path

2012-08-07 Thread Asias He
We need to support both REQ_FLUSH and REQ_FUA for bio based path since it does not get the sequencing of REQ_FUA into REQ_FLUSH that request based drivers can request. REQ_FLUSH is emulated by: A) If the bio has no data to write: 1. Send VIRTIO_BLK_T_FLUSH to device, 2. In the flush I/O completion

[PATCH V6 0/2] Improve virtio-blk performance

2012-08-07 Thread Asias He
Hi, all This version reworked on REQ_FLUSH and REQ_FUA support as suggested by Christoph and dropped the block core bits since Jens has picked them up. Fio test shows bio-based IO path gives the following performance improvement: 1) Ramdisk device With bio-based IO path, sequential read/wri

[PATCH V6 1/2] virtio-blk: Add bio-based IO path for virtio-blk

2012-08-07 Thread Asias He
This patch introduces bio-based IO path for virtio-blk. Compared to request-based IO path, bio-based IO path uses driver provided ->make_request_fn() method to bypasses the IO scheduler. It handles the bio to device directly without allocating a request in block layer. This reduces the IO path in

[PATCH 1/4] powerpc/85xx: add sleep and deep sleep support

2012-08-07 Thread Zhao Chenhui
In sleep PM mode, the clocks of e500 core and unused IP blocks is turned off. IP blocks which are allowed to wake up the processor are still running. Some Freescale chips like MPC8536 and P1022 has deep sleep PM mode in addtion to the sleep PM mode. While in deep sleep PM mode, additionally, the

[PATCH 2/4] fsl_pmc: Add API to enable device as wakeup event source

2012-08-07 Thread Zhao Chenhui
Add APIs for setting wakeup source and lossless Ethernet in low power modes. These APIs can be used by wake-on-packet feature. Signed-off-by: Dave Liu Signed-off-by: Li Yang Signed-off-by: Jin Qing Signed-off-by: Zhao Chenhui --- arch/powerpc/sysdev/fsl_pmc.c | 77 ++

[PATCH 4/4] powerpc/85xx: add support to JOG feature using cpufreq interface

2012-08-07 Thread Zhao Chenhui
Some 85xx silicons like MPC8536 and P1022 have a JOG feature, which provides a dynamic mechanism to lower or raise the CPU core clock at runtime. This patch adds the support to change CPU frequency using the standard cpufreq interface. The ratio CORE to CCB can be 1:1(except MPC8536), 3:2, 2:1, 5:

[PATCH 3/4] cpu: export cpu hotplug disable/enable functions as global functions

2012-08-07 Thread Zhao Chenhui
The cpufreq driver of mpc85xx will disable/enable cpu hotplug temporarily. Therefore, the related functions should be exported. Signed-off-by: Zhao Chenhui --- include/linux/cpu.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/cpu.h b/include/linux/cpu.

Re: A question on serial driver

2012-08-07 Thread richard -rw- weinberger
On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath wrote: > Hi, > I have written a console driver where I also do the serial driver > registration and handling. The driver seems to work fine till the > login point(reads and writes). The driver for some reason does not > print the content I typ

RE: [PATCH 3/3] backlight: lp855x: remove goto err_dev

2012-08-07 Thread Kim, Milo
> This patch removes goto err_dev, which makes code a bit smaller. Thanks ! IMO, goto statements are meaningful on _probe(). However, 'goto err_sysfs' also can be removed if the size of code is critical. drivers/video/backlight/lp855x_bl.c | 12 1 files changed, 4 insertions(+), 8

Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

2012-08-07 Thread Russell King
On Tue, Aug 07, 2012 at 06:22:22PM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2012-08-06 at 22:31 +0100, Russell King wrote: > > > > So, if we made this a numeric index, then we have 32 resource types > > to deal with, and no need to bugger around with re-using an existing > > type for somethi

Re: A question on serial driver

2012-08-07 Thread Dan Luedtke
On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote: > The driver for some reason does not > print the content I type on console after login prompt. Any reason > why this might be happening ? I don't know if it is just me, but a code snippet might help understanding what happens in your

[PATCH] serial: mxs-auart: fix the wrong RTS hardware flow control

2012-08-07 Thread Huang Shijie
Without checking if the auart supports the hardware flow control or not, the old mxs_auart_set_mctrl() asserted the RTS pin blindly. This will causes the auart receives wrong data in the following case: The far-end has already started the write operation, and wait for the auart asserts the RTS

Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

2012-08-07 Thread Benjamin Herrenschmidt
On Tue, 2012-08-07 at 09:47 +0800, Haojian Zhuang wrote: > > Whoever looks at this would need to do some detective work, it does > seem > > like there must have been a reason to use a bitmask here... > > Changing bitmask to a value for IORESOURCE type is a risk. I agree on > Mark > that someone wi

Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

2012-08-07 Thread Benjamin Herrenschmidt
On Mon, 2012-08-06 at 22:31 +0100, Russell King wrote: > > So, if we made this a numeric index, then we have 32 resource types > to deal with, and no need to bugger around with re-using an existing > type for something else. > > This makes sense, MEM, IRQ and DMA are all mutually exclusive, as >

A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
Hi, I have written a console driver where I also do the serial driver registration and handling. The driver seems to work fine till the login point(reads and writes). The driver for some reason does not print the content I type on console after login prompt. Any reason why this might be happening

RE: [PATCH] ARM: EXYNOS: Add gpio functions for Exynos4412

2012-08-07 Thread Kukjin Kim
Linus Walleij wrote: > > On Mon, Aug 6, 2012 at 3:57 PM, Dongjin Kim wrote: > > > GPIO functions are not registered for Exynos4412 yet, > > therefore exynos4_gpiolib_init() is added to initialize Exynos4412 SoC. > > > > Change-Id: I5945d94c6fbfc309ccf882eba067864a338c04ca > > Gerrit change ID:s

RE: [PATCH RFT] leds: lp8788: Fix updating scale configuration bits

2012-08-07 Thread Kim, Milo
> > We need to do left shift (cfg->num + LP8788_ISINK_SCALE_OFFSET) bits > for > > updating scale configuration. > > > > Signed-off-by: Axel Lin > > --- > > Milo, I think this patch from Axel is reasonable. could you please > take a look at this? > > -Bryan Acked-by: Milo(Woogyom) Kim Tested-b

Re: [RFC ebeam PATCH v3 1/2] hid: Blacklist new eBeam classic device

2012-08-07 Thread Yann Cantin
Le 07/08/2012 03:45, Dmitry Torokhov a écrit : > On Tue, Aug 07, 2012 at 03:21:45AM +0200, Yann Cantin wrote: >> Le 07/08/2012 00:07, Dmitry Torokhov a écrit : >>> On Monday, August 06, 2012 02:43:40 PM Greg KH wrote: On Mon, Aug 06, 2012 at 11:21:43PM +0200, Yann Cantin wrote: > Signed-of

RE: linux-next: removal of some trees

2012-08-07 Thread Kukjin Kim
Stephen Rothwell wrote: > > Hi Ben, > > Since I haven't been able to fetch these trees for quite some time and I > haven't heard from you about them, I am removing the following trees from > linux-next. If/When you have time to maintain these trees again, we can > add them back without problems.

RE: [PATCH RFT] leds: lp8788: Fix updating scale configuration bits

2012-08-07 Thread Kim, Milo
> We need to do left shift (cfg->num + LP8788_ISINK_SCALE_OFFSET) bits > for > updating scale configuration. > > Signed-off-by: Axel Lin > --- > Hi Milo, > Current code of updating scale configuration bits looks wrong to me > because the mask does not match the val. > I don't have this hardware,

[patch] sched,rt: fix isolated CPUs leaving root_task_group indefinitely throttled

2012-08-07 Thread Mike Galbraith
Speaking of old "parches" lying about, the below fixes a real problem if you're using either 'should die' isolcpus or 'should work' cpusets to isolate cores. sched,rt: fix isolated CPUs leaving root_task_group indefinitely throttled Root task group bandwidth replenishment must service all CPUs, r

Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

2012-08-07 Thread Russell King
On Tue, Aug 07, 2012 at 09:47:25AM +0800, Haojian Zhuang wrote: > On Tue, Aug 7, 2012 at 6:00 AM, Mark Brown > wrote: > > On Mon, Aug 06, 2012 at 10:31:24PM +0100, Russell King wrote: > > > >> Anyway, given that this thread is broken, there's no way for me to find > >> out what the _original_ issu

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

2012-08-07 Thread Yann Cantin
Le 07/08/2012 03:43, Dmitry Torokhov a écrit : > On Tue, Aug 07, 2012 at 02:56:40AM +0200, Yann Cantin wrote: >> Hi, >> >> Le 06/08/2012 23:43, Greg KH a écrit : >>> On Mon, Aug 06, 2012 at 11:21:44PM +0200, Yann Cantin wrote: Signed-off-by: Yann Cantin --- drivers/input/misc/

<    5   6   7   8   9   10   11   >