[PATCH 6/9] vt: convert last bind_con_driver call to do_bind_con_driver

2013-05-08 Thread Wang YanQing
There is only one place use bind_con_driver now, this patch convert it to do_bind_con_driver too, then we can delete bind_con_driver whos function can be replaced by do_bind_con_driver easily to reduce code size and duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 7 +-- 1

[PATCH 2/9] fbcon: delete unneeded function fbcon_takeover

2013-05-08 Thread Wang YanQing
Now there is no place use fbcon_takeover, and fbcon_takeover has huge duplication code with do_fbcon_takeover, we can achieve fbcon_takeover's function with do_fbcon_takeover easily, so we can just delete it. Signed-off-by: Wang YanQing --- drivers/video/console/fbcon.c

[PATCH 3/9] vt: delete unneeded functions register_con_driver|take_over_console

2013-05-08 Thread Wang YanQing
Now there is no place use register_con_driver|take_over_console, and we can achieve their function with do_register_con_driver| do_take_over_console easily, so just delete them to reduce code duplication. Signed-off-by: Wang YanQing --- drivers/tty/vt/vt.c | 45

[PATCH 1/9] fbcon: convert last fbcon_takeover call to do_fbcon_takeover

2013-05-08 Thread Wang YanQing
and duplication. Signed-off-by: Wang YanQing --- drivers/video/console/fbcon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 3cd6759..1660644 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video

[PATCH 0/9] Convert all to the caller hold lock version

2013-05-08 Thread Wang YanQing
After commit 50e244cc793d511b86adea24972f3a7264cae114 (fb: rework locking to fix lock ordering on takeover) and commit e93a9a868792ad71cdd09d75e5a02d8067473c4e (fb: Yet another band-aid for fixing lockdep mess) We have two version functions implement almost the same function, exce

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-08 Thread Wang YanQing
On Wed, May 08, 2013 at 11:18:07AM -0400, Peter Hurley wrote: > On 05/08/2013 09:16 AM, Wang YanQing wrote: > > On Tue, May 07, 2013 at 07:02:00PM -0700, Greg KH wrote: > >> What about Peter's comments on this patch? > >> > > Peter's comments will i

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-08 Thread Wang YanQing
On Tue, May 07, 2013 at 07:02:00PM -0700, Greg KH wrote: > What about Peter's comments on this patch? > Peter's comments will import policy, I means we should let userspace to decide whether and when to restart tty with the mechanism of TCXONC instead of restart tty accidental when make n_tty_set

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-07 Thread Wang YanQing
On Tue, May 07, 2013 at 04:50:05PM -0400, Peter Hurley wrote: > This should be fixed in n_tty_set_termios() instead of fixing userspace > workarounds. Sorry, I misuse the word "workaround", emacs just do the right thing I think. But your suggestion maybe import policy. > The problem occurs when t

Re: [PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-07 Thread Wang YanQing
On Tue, May 07, 2013 at 11:58:00AM -0700, Greg KH wrote: > On Wed, May 08, 2013 at 02:47:34AM +0800, Wang YanQing wrote: > > The reason is before emacs takeover control the tty, > > we use CTRL-S to XOFF it. Then when emacs takeover the > > control, it may don't use the f

[PATCH]TTY: Fix tty can't be restarted by TCXONC ioctl request

2013-05-07 Thread Wang YanQing
with vim in ssh, and also see below bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465823 Signed-off-by: Wang YanQing --- drivers/tty/tty_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index e4455e0..42e08

[PATCH]ALSA: HDA: Fix Oops caused by dereference NULL pointer

2013-05-06 Thread Wang YanQing
ent in azx_probe. This will cause Oops due dereference NULL pointer. I meet it, good luck:) Signed-off-by: Wang YanQing --- sound/pci/hda/hda_codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 622f726..9c76752 100644 --- a/sou

Re: [PATCH] kconfig: sort found symbols by relevance

2013-05-06 Thread Wang YanQing
On Mon, May 06, 2013 at 05:28:32PM +0200, Jean Delvare wrote: > Le Monday 06 May 2013 à 15:02 +0200, Yann E. MORIN a écrit : > > From: "Yann E. MORIN" > > > > When searching for symbols, return the symbols sorted by relevance. > > > > Relevance is the ratio of the length of the matched string an

Re: [PATCH]drivers:acpi: Fix wrong parameter passed to memblock_reserve

2013-04-18 Thread Wang YanQing
On Mon, Apr 15, 2013 at 07:47:38PM -0700, Yinghai Lu wrote: > On Mon, Apr 15, 2013 at 6:44 PM, Wang YanQing wrote: > > > > The parameter of memblock_reserve is start address, > > and size, not address range. > > > > Signed-off-by: Wang YanQing > > --- >

[PATCH] iommu: Include linux/err.h

2013-04-18 Thread Wang YanQing
The linux/iommu.h header uses ERR_PTR defined in linux/err.h but doesn't include it. Cc:j...@8bytes.org Reviewed-by: Alex Williamson Signed-off-by: Wang YanQing --- This patch has been in LKML for more than 2 months, I even forget it, but the compile error when I compile a kernel modul

[tip:x86/mm] x86/mm/gart: Drop unnecessary check

2013-04-16 Thread tip-bot for Wang YanQing
Commit-ID: 26bfc540f6f2dcbd93d0b9ed8f37830419ded7e8 Gitweb: http://git.kernel.org/tip/26bfc540f6f2dcbd93d0b9ed8f37830419ded7e8 Author: Wang YanQing AuthorDate: Tue, 16 Apr 2013 09:37:34 +0800 Committer: Ingo Molnar CommitDate: Tue, 16 Apr 2013 10:54:40 +0200 x86/mm/gart: Drop

[PATCH]drivers:acpi: Fix wrong parameter passed to memblock_reserve

2013-04-15 Thread Wang YanQing
The parameter of memblock_reserve is start address, and size, not address range. Signed-off-by: Wang YanQing --- drivers/acpi/osl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 586e7e9..bcb7a3b 100644 --- a/drivers/acpi/osl.c

[PATCH] x86:aperture_64: drop not needed checking

2013-04-15 Thread Wang YanQing
The memblock_find_in_range return value, addr, will make sure "addr + aper_size" not beyond GART_MAX_ADDR. Signed-off-by: Wang YanQing --- arch/x86/kernel/aperture_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/aperture_64.c b/arch/

[PATCH 3/3] mm:memblock: add memblock_alloc_in_[range|range_nid]

2013-04-15 Thread Wang YanQing
(addr, size); use memblock_alloc_in_[range|range_nid] to do the search and reserve in one function will bring the benefit below: 1: clarify the codes 2: we will check memblock_reserve's return value Signed-off-by: Wang YanQing --- arch/x86/kernel/aperture_64.c | 3 +-- arch/x86/kernel/se

[PATCH 2/3] x86:aperture_64: code pattern clean

2013-04-15 Thread Wang YanQing
This patch don't change code function, it just do prepare for import the memblock_alloc_in_range to do the code pattern which looks like below in one function: memblock_find_in_range() follow by memblock_reserve() Signed-off-by: Wang YanQing --- arch/x86/kernel/aperture_64.c | 4 ++-- 1

[PATCH 1/3] x86: reserve_crashkernel: use memblock_is_region_reserved to simplify code

2013-04-15 Thread Wang YanQing
Use memblock_is_region_reserved instead of memblock_find_in_range to simplify the check codes, and gain a little speed benefit. Signed-off-by: Wang YanQing --- arch/x86/kernel/setup.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86

[PATCH]drm: Re-add DMT modes for monitors back

2013-04-09 Thread Wang YanQing
59.9 640x48060.0 59.9 DP1 disconnected (normal left inverted right x axis y axis) Signed-off-by: Wang YanQing --- drivers/gpu/drm/drm_edid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index dfd9ed3..

[PATCH][TRIVIAL]drivers: Fix a class of compiler warnings

2013-04-09 Thread Wang YanQing
Signed-off-by: Wang YanQing --- drivers/dma/timb_dma.c | 2 +- drivers/mfd/omap-usb-host.c| 2 +- drivers/mfd/twl4030-madc.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- drivers/spi/spi-atmel.c| 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- dri

[PATCH][TRIVIAL] ata:pata_pdc2027x: Fix compiler warnings

2013-04-09 Thread Wang YanQing
Fix the follwing warnings: linux/drivers/ata/pata_pdc2027x.c:66: warning: 'pdc2027x_reinit_one' declared 'static' but never defined pdc2027x_reinit_one are defined only when CONFIG_PM is defined, thus making it conditional. Signed-off-by: Wang YanQing --- drivers/ata/pata_

[PATCH][TRIVIAL] tg3: Fix compilation warning

2013-04-08 Thread Wang YanQing
This patch fix the below compilation warning: linux/drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_hwclock_to_timestamp': linux/drivers/net/ethernet/broadcom/tg3.c:5686: warning: integer constant is too large for 'long' type Signed-off-by: Wang YanQing --- drivers/n

[PATCH][TRIVIAL] iommu: Include linux/err.h

2013-04-08 Thread Wang YanQing
The linux/iommu.h header uses ERR_PTR defined in linux/err.h but doesn't include it. Reviewed-by: Alex Williamson Signed-off-by: Wang YanQing --- I send this twice to joerg.roe...@amd.com more than one month, but it had been ignored, I don't why. include/linux/iommu.h | 1 + 1 fi

Re: [PATCH] lib80211: make lib80211 can be enabled independently

2013-04-04 Thread Wang YanQing
On Fri, Apr 05, 2013 at 10:51:30AM +1100, Julian Calaby wrote: > Just as a bit of explanation for Johannes' NACK: > > 1. The only reason lib80211 still exists is because a couple of > in-tree drivers still use it. If this weren't the case, the code would > have been removed a long time ago as it's

[PATCH] lib80211: make lib80211 can be enabled independently

2013-04-04 Thread Wang YanQing
r Broadcom Corporation BCM43225 802.11b/g/n Signed-off-by: Wang YanQing --- net/wireless/Kconfig | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index 16d08b3..6e83f0a 100644 --- a/net/wireless/Kconfig +++ b/net/wirele

[PATCH]gpu:drm: Add missing dependency on DRM KMS/FB CMA helper

2013-04-01 Thread Wang YanQing
Commit 2e3b3c42f06ff6801b3d7839757bbdb231619083 (Add DRM KMS/FB CMA helper) add a kbuild entry, config DRM_KMS_CMA_HELPER, in DRM's Kconfig without dependence on DRM, it cause DRM's kconfig can't be show in a submenu. This patch fix it. Signed-off-by: Wang YanQing --- drivers/

[PATCH]video:uvesafb: Fix dereference NULL pointer code path

2013-03-29 Thread Wang YanQing
platform_device_alloc could failed and return NULL, we should check this before call platform_device_put. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index 2f8f82d

[PATCH]gma500: remove unused drm_psb_no_fb

2013-03-13 Thread Wang YanQing
commit f9f23a77f07506a32d9dc1d925bf85c0e7507b66(gma500: remove no_fb bits) remove all the drm_psb_no_fb relations code in gma500 except this line code, so remove it also. Signed-off-by: Wang YanQing --- drivers/gpu/drm/gma500/psb_drv.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH v2]x86:boot: Remove unneccessary headers

2013-03-05 Thread Wang YanQing
iles included in header.S. Signed-off-by: Wang YanQing --- Changes: V1-V2: 1:add more detail and long long log arch/x86/boot/header.S | 4 1 file changed, 4 deletions(-) diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index 9ec06a1..43a3502 100644 --- a/arch/x86/boot/header.S +++

[PATCH v2]serial: 8250_pci: add device id for a kind of Multi-I/O Controller based on NetMos Technology PCI 9835

2013-03-05 Thread Wang YanQing
I get a Multi-I/O Controller below: 01:08.0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) Subsystem: LSI Logic / Symbios Logic 1P2S Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- St

[PATCH v2]8250_pci: Add WCH CH352 quirk to avoid Xscale detection

2013-03-05 Thread Wang YanQing
or fixing the 352 as well. Signed-off-by: Wang YanQing Signed-off-by: Paul Gortmaker --- Changes V1-V2: 1: Use a better descriptive subject by Paul Gortmaker 2: Add more detail log by Paul Gortmaker I resend this version, because it will make merge job easy, and I will not owe gregkh jui

Re: [PATCH]8250_pci: Add additional WCH CH352 device

2013-03-03 Thread Wang YanQing
On Sat, Mar 02, 2013 at 05:45:55PM +0800, Wang YanQing wrote: > This patch fix a problem XScale port > detect code in autoconfig_16550a treat > 16550A port as XScale port, caused by > CH352 device use the 6th bit(UART_IER_UUE) > in IER as a enhance function make this bit > w/r.

[PATCH]8250_pci: Add additional WCH CH352 device

2013-03-02 Thread Wang YanQing
This patch fix a problem XScale port detect code in autoconfig_16550a treat 16550A port as XScale port, caused by CH352 device use the 6th bit(UART_IER_UUE) in IER as a enhance function make this bit w/r. for the below device: " 01:08.0 Serial controller: Device 4348:3253 (rev 10) (prog-if 02 [165

Re: [PATCH]serial: 8250: Fix detect XScale port wrong

2013-03-02 Thread Wang YanQing
On Fri, Mar 01, 2013 at 02:17:16PM -0500, Paul Gortmaker wrote: > On 13-03-01 12:56 AM, Wang YanQing wrote: > > Some UARTs add enhanced functions with unused bit in > > 16550 standard, like UART_IER_UUE bit, it cause XScale > > Which xscale platform? It would be nice to kn

[PATCH]serial: 8250: Fix detect XScale port wrong

2013-02-28 Thread Wang YanQing
it is harmless for current code, we will set UART_CAP_RTOIE if it is XScale port. Signed-off-by: Wang YanQing --- drivers/tty/serial/8250/8250.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250.c b/drivers/tty/serial/8250/8250.c index 0e

[PATCH]serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller

2013-02-28 Thread Wang YanQing
01:08.0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) Subsystem: Device [1000:0012] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=m

[PATCH]iommu: Include linux/err.h

2013-02-25 Thread Wang YanQing
The linux/iommu.h header uses ERR_PTR defined in linux/err.h but doesn't include it. Reviewed-by: Alex Williamson Signed-off-by: Wang YanQing --- I send this twice to joerg.roe...@amd.com more than one month, but it had been ignored, I don't why. include/linux/iommu.h | 1 + 1 fi

[tip:x86/urgent] smp: Fix SMP function call empty cpu mask race

2013-01-28 Thread tip-bot for Wang YanQing
Commit-ID: f44310b98ddb7f0d06550d73ed67df5865e3eda5 Gitweb: http://git.kernel.org/tip/f44310b98ddb7f0d06550d73ed67df5865e3eda5 Author: Wang YanQing AuthorDate: Sat, 26 Jan 2013 15:53:57 +0800 Committer: Ingo Molnar CommitDate: Mon, 28 Jan 2013 11:21:57 +0100 smp: Fix SMP function call

Re: [PATCH]smp: Fix send func call IPI to empty cpu mask

2013-01-28 Thread Wang YanQing
On Mon, Jan 28, 2013 at 09:25:55AM +, Jan Beulich wrote: > But the patch is obviously incomplete for the CPUMASK_OFFSTACK > case, as the newly added cpumask_ipi member never gets > its bit array allocated. > > Jan Yes, I have found it, and the patch is in lkml some hours ago. Thanks. -- To un

[PATCH Resend Resend] smp:Fix use un-initialized cpumask_ipi

2013-01-27 Thread Wang YanQing
c7b798525b50256c8084215a139fa40b0114bfcc [smp: Fix SMP function call empty cpu mask race] use the un-initialized variable cpumask_ipi when enable CONFIG_CPUMASK_OFFSTACK. Signed-off-by: Wang YanQing --- I am sorry for miss it first. kernel/smp.c | 4 1 file changed, 4 insertions(+) diff

[PATCH Resend] smp:Fix use un-initialized cpumask_ipi

2013-01-27 Thread Wang YanQing
c7b798525b50256c8084215a139fa40b0114bfcc [smp: Fix SMP function call empty cpu mask race] use the un-initialized variable cpumask_ipi when enable CONFIG_CPUMASK_OFFSTACK. Signed-off-by: Wang YanQing --- I am sorry for miss it first. kernel/smp.c | 4 1 file changed, 4 insertions(+) diff

[PATCH] smp:Fix use un-initialized cpumask_ipi

2013-01-27 Thread Wang YanQing
c7b798525b50256c8084215a139fa40b0114bfcc [smp: Fix SMP function call empty cpu mask race] use the un-initialized variable cpumask_ipi when enable CONFIG_CPUMASK_OFFSTACK. Signed-off-by: Wang YanQing --- I am sorry for miss it, I just think it when I was lying on the bed last night

[tip:x86/urgent] smp: Fix SMP function call empty cpu mask race

2013-01-27 Thread tip-bot for Wang YanQing
Commit-ID: c7b798525b50256c8084215a139fa40b0114bfcc Gitweb: http://git.kernel.org/tip/c7b798525b50256c8084215a139fa40b0114bfcc Author: Wang YanQing AuthorDate: Sat, 26 Jan 2013 15:53:57 +0800 Committer: Ingo Molnar CommitDate: Sun, 27 Jan 2013 13:29:14 +0100 smp: Fix SMP function call

[PATCH]video:uvesafb: Fix dereference NULL pointer code path

2013-01-26 Thread Wang YanQing
platform_device_alloc could failed and return NULL, we should check this before call platform_device_put. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index 2f8f82d

[PATCH]smp: Fix send func call IPI to empty cpu mask

2013-01-25 Thread Wang YanQing
IPI mask")) return; then the problem 83d349f3 fix will happen again. Signed-off-by: Wang YanQing --- kernel/smp.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/smp.c b/kernel/smp.c index 29dd40a..7c56aba 100644 --- a/kernel/smp.c +++ b/kernel/s

Re: [PATCH]iommu: Include linux/err.h

2013-01-14 Thread Wang YanQing
On Thu, Dec 13, 2012 at 10:15:38AM -0700, Alex Williamson wrote: > On Fri, 2012-12-14 at 00:55 +0800, Wang YanQing wrote: > > The linux/iommu.h header uses ERR_PTR defined > > in linux/err.h but doesn't include it. > > > > Signed-off-by: Wang YanQing > &

Re: [PATCH] kconfig:lxdialog: remove duplicate code

2012-12-23 Thread Wang YanQing
On Mon, Dec 17, 2012 at 07:19:07PM +0100, Yann E. MORIN wrote: > Wang, All, > > On Monday 17 December 2012 Wang YanQing wrote: > > dialog.h has two line the same below: > > extern char dialog_input_result[]; > > This patch remove one of them. > > > > Signed

[PATCH RESEND 1/2 v3] menuconfig: Add Save/Load buttons

2012-12-18 Thread Wang YanQing
ition well centered reported by Yann E. MORIN Signed-off-by: Wang YanQing --- Hi Yann E. MORIN, can you give your Rev'ed-by and Tested-by to this patch, Thanks very much for your help, I just don't know how to computer out the right position :) The Changes appear in commit log is ok,

[PATCH 1/2 v3] menuconfig: Add Save/Load buttons

2012-12-18 Thread Wang YanQing
ition well centered reported by Yann E. MORIN Signed-off-by: Wang YanQing --- Hi Yann E. MORIN, can you give your Rev'ed-by and Tested-by to his patch, Thanks very much for your help, I just don't know how to computer out the right position :) The Changes appear in commit log is ok, I foun

[PATCH 1/2 v2] menuconfig: Add Save/Load buttons

2012-12-17 Thread Wang YanQing
space while at it for below line: "*) Formerly when I used Page Down and Page Up, the cursor would be set" ] Changes: V1-V2: 1:use PATH_MAX instead of hard code suggested by Yann E. MORIN 2:drop the spurious empty-line removal suggested by Yann E. MORIN Signed-off-by: Wang YanQing --

[PATCH 2/2] menuconfig: Get rid of the top-level entries for "Load an Alternate/Save an Alternate"

2012-12-17 Thread Wang YanQing
Now we have Load/Save buttons to do the Load/Save in the convenient place, so we can drop the top-level entries. Signed-off-by: Wang YanQing --- scripts/kconfig/mconf.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index

[PATCH 0/2] menuconfig: Add Save/Load buttons

2012-12-17 Thread Wang YanQing
Hi all. If menuconfig have Save/Load button like alternative .config editors, xconfig, nconfig, etc.We will have a obvious benefit when use menuconfig just like when we use others, we can Save/Load our .config quickly and conveniently. This patch series add the Save/Load buttons for menuconfig. I

[PATCH 1/2] menuconfig: Add Save/Load buttons

2012-12-17 Thread Wang YanQing
space while at it for below line: "*) Formerly when I used Page Down and Page Up, the cursor would be set" ] Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 20 +++- scripts/kconfig/mconf.c| 31 +-- 2 files c

[PATCH] menuconfig:inputbox: support navigate input position

2012-12-17 Thread Wang YanQing
This patch add support navigate input position *inside* the input field with LEFT/RIGHT, so it is possible to modify the text in place. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/inputbox.c | 121 +++- 1 file changed, 92 insertions(+), 29 deletions

[PATCH] kconfig:lxdialog: remove duplicate code

2012-12-17 Thread Wang YanQing
dialog.h has two line the same below: extern char dialog_input_result[]; This patch remove one of them. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/dialog.h | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/kconfig/lxdialog/dialog.h b/scripts/kconfig/lxdialog/dialog.h

[PATCH]iommu: make return value consistence

2012-12-13 Thread Wang YanQing
if we don't define CONFIG_IOMMU_API the dummy functions alway return -ENODEV or -EINVAL except three function, so convert them to the same behavior to make consistence Signed-off-by: Wang YanQing --- include/linux/iommu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

[PATCH]iommu: Include linux/err.h

2012-12-13 Thread Wang YanQing
The linux/iommu.h header uses ERR_PTR defined in linux/err.h but doesn't include it. Signed-off-by: Wang YanQing --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index f3b99e1..f4a49a6 100644 --- a/include/linux/io

Re: [PATCH v4]menuconfig: Add Save button

2012-12-02 Thread Wang YanQing
w. > > > V1-V2: Rewrite the most code to make it more correct > > V2-V3: Fix the behavior of conf_message_callback when exit. > > V3-V4: > > 1: Move Buttons a little left to make them look like symmetrical. > > 2: Exchange the position between Save button a

Re: [PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected

2012-12-02 Thread Wang YanQing
On Sun, Dec 02, 2012 at 06:32:43PM +0100, Yann E. MORIN wrote: > Wang, All, > > On Sunday 02 December 2012 Wang YanQing wrote: > > inputbox code don't support use Left/Right to change input > > position in the input box, so it use continue to skip them > > when

Re: [PATCH v3]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-12-02 Thread Wang YanQing
On Sat, Dec 01, 2012 at 12:44:01PM +0100, Francois Romieu wrote: > Wang YanQing : > > + /* > > +*This is a fix for BIOS forget to set > > +*extend GigaMAC registers > > +*Wang YanQing 12/1/2012 > > +*/ > > This part will go into the change

[PATCH] lxdialog:inputbox: Fix can't change selected button with Left/Right when input box selected

2012-12-02 Thread Wang YanQing
This patch fix it. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/inputbox.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c index dd8e587..7841f46 100644 --- a/scripts/kconfig/lxdialog/

[PATCH v4]menuconfig: Add Save button

2012-12-01 Thread Wang YanQing
configuration file with Save button. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 21 +- scripts/kconfig/mconf.c| 45 ++ 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/scripts/kconfig/lxdialog

Re: [PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
On Fri, Nov 30, 2012 at 06:00:02PM +0800, Wang YanQing wrote: > I found the mainline's r8169 works the same as realtek's driver, > the first time don't work, but it works after reboot, the reason > is the pci driver's shutdown don't call rtl_rar_set in 3.0 s

[PATCH v3]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
call to rtl_rar_set when the mac address is read in rtl_init_one instead of duplicating most of rtl_rar_set in a quite different place. V2-V3: 1:Add conditon code to around this fix, because it make no sense for most NIC 2:Add comment in code Signed-off-by: Wang YanQing --- drivers/net/et

Re: [PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
On Fri, Nov 30, 2012 at 05:04:29PM +0800, Wang YanQing wrote: > On Fri, Nov 30, 2012 at 07:35:00AM +0100, Francois Romieu wrote: > > Which kernel version is it ? > I have done the test and debug with mainline > e23739b4ade80a3a7f87198f008f6c44a7cbc9fd, v3.7-rc7-51-ge23739b More

[PATCH v2]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
call to rtl_rar_set when the mac address is read in rtl_init_one instead of duplicating most of rtl_rar_set in a quite different place. Signed-off-by: Wang YanQing --- drivers/net/ethernet/realtek/r8169.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/realtek/r8169.c b/d

Re: [PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-30 Thread Wang YanQing
On Fri, Nov 30, 2012 at 07:35:00AM +0100, Francois Romieu wrote: > Which kernel version is it ? I have done the test and debug with mainline e23739b4ade80a3a7f87198f008f6c44a7cbc9fd, v3.7-rc7-51-ge23739b > I'd rather see the GigaMAC registers written through a call to > rtl_rar_set when the mac

[PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-29 Thread Wang YanQing
with extended GigaMAC reigisters have the same problem, I meet it in 8168e-vl with RTL_GIGA_MAC_VER_34, so I make this patch just for it.] Signed-off-by: Wang YanQing --- drivers/net/ethernet/realtek/r8169.c | 24 1 file changed, 24 insertions(+) diff --git a/drive

Re: [PATCH v3]mconf: Add Save button

2012-10-08 Thread Wang YanQing
On Mon, Oct 08, 2012 at 10:28:32AM +0200, Borislav Petkov wrote: > On Mon, Oct 08, 2012 at 03:22:49PM +0800, Wang YanQing wrote: > > With one terminal, I can do: > > 1: make menuconfig > > 2: ajust and use "Save" button to save .config > > 3: use CRTL-Z(konso

Re: [PATCH v3]mconf: Add Save button

2012-10-08 Thread Wang YanQing
On Mon, Oct 08, 2012 at 08:03:40AM +0200, Borislav Petkov wrote: > Well, there are a bunch of patches from Benjamin Poirier adding the > possibility to jump to search results and you could use them to go to > your desired submenu. First there are two ways to save the .config in menuconfig 1:Exit me

[PATCH v3]mconf: Add Save button

2012-10-07 Thread Wang YanQing
er save config, and then use "%" or fg to resume menuconfig and go on tuning. v2: Rewrite the most code to make it more correct v3: Fix the behavior of conf_message_callback when exit. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 17 +++--- s

[PATCH v2]mconf: Add Save button

2012-10-07 Thread Wang YanQing
er save config, and then use "%" or fg to resume menuconfig and go on tuning. Changes v1-v2: * Rewrite the most code to make it more correct Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 17 scripts/kconfig/mconf.c| 40 +

[PATCH]scripts:kconfig:meconf: Add Save button to save config at anytime

2012-09-23 Thread Wang YanQing
er save config, and then use "%" or fg to resume menuconfig and go on tuning. Signed-off-by: Wang YanQing --- scripts/kconfig/lxdialog/menubox.c | 7 +-- scripts/kconfig/mconf.c| 32 +++- 2 files changed, 36 insertions(+), 3 deletions(-)

[PATCH] video:uvesafb: reduce the double check

2012-08-15 Thread Wang YanQing
uvesafb_open had checked the par->vbe_state_size, so we don't need to check it again in uvesafb_vbe_state_save, this patch just can reduce a few lines of code. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/video/u

[PATCH] video:uvesafb: check the return value of kzalloc

2012-08-13 Thread Wang YanQing
Michal maybe forgot it merely, we should add code to check the return value of kzalloc to make the code more robust. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index b0e2a42

<    1   2   3