[PATCH] sparc:cleanup unused code in smp_32.h

2013-03-30 Thread Kefeng Wang
After genirq and generic clockevent support at sparc32, smp4m_irq_rotate(), prof_multiplier() and prof_counter() are no longer used and should be removed. Find more info from commit 6baa9b20 62f08283. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- arch/sparc/include/asm/smp_32.h

[PATCH] irq: fix comment typo on irq_thread_check_affinity

2013-04-02 Thread Kefeng Wang
The CONFIG CPU_MASK_OFFSTACK mentioned should be CPUMASK_OFFSTACK, and fix a misspelling. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/manage.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index

[PATCH] sparc:remove unused declaration smp_boot_cpus()

2013-03-27 Thread Kefeng Wang
smp_boot_cpus() was replaced smp_prepare_cpus() long ago, and it no longer needed, so delete it. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- arch/sparc/include/asm/smp_32.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/sparc/include/asm/smp_32.h b

[PATCH] video: remove unused variable dev

2013-07-27 Thread Kefeng Wang
Due to commit: e21d2170f [video: remove unnecessary platform_set_drvdata()], variable dev is unused, so remove it. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/video/vga16fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/vga16fb.c b/drivers/video

Re: [PATCH] video: remove unused variable dev

2013-07-28 Thread Kefeng Wang
On 07/29 8:52, Jingoo Han wrote: On Saturday, July 27, 2013 7:05 PM, Kefeng Wang wrote: Due to commit: e21d2170f [video: remove unnecessary platform_set_drvdata()], variable dev is unused, so remove it. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/video/vga16fb.c | 1

Re: [PATCH 02/18] net: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Thanks for your reply. On 10/16 0:24, Joe Perches wrote: On Tue, 2013-10-15 at 19:44 +0800, Kefeng Wang wrote: Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. [] diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c [] @@ -465,10 +465,8

Re: [PATCH 14/18] net: usb: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Thanks for you reply. On 10/16 3:06, Sergei Shtylyov wrote: Hello. On 10/15/2013 03:45 PM, Kefeng Wang wrote: net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/usb/usbnet.c | 4 ++-- 1 file changed, 2

Re: [PATCH 00/23 v2] cleanup: introduce br/netdev/netif/wiphy_foo_ratelimited() and use them to simplify code

2013-10-21 Thread Kefeng Wang
On 10/18 12:11, Joe Perches wrote: (resending to lists only because of multiple X's in the subject line) On Fri, 2013-10-18 at 11:52 +0800, Kefeng Wang wrote: v1-v2: Introduce macro br/netdev/netif/wiphy_XXX_ratelimited() according to Joe Perches's advice. The macros are similar

[PATCH 2/3] fs: nfsd: use path_equal() to simply code

2013-10-14 Thread Kefeng Wang
Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- fs/nfsd/export.c | 3 +-- fs/nfsd/nfs4xdr.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 5f38ea3..ca3610d 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -649,8

[PATCH 3/3] fs: notify: use path_equal() to simply code

2013-10-14 Thread Kefeng Wang
Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- fs/notify/fanotify/fanotify.c| 3 +-- fs/notify/inotify/inotify_fsnotify.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c index 0c2f912..777af06

[PATCH 0/3] fs: use helper function path_foo() to simpily code

2013-10-14 Thread Kefeng Wang
Use helper function patch_equal() and path_put() to simpily code. Kefeng Wang (3): fs: use path_equal() and path_put() to simplify code fs: nfsd: use path_equal() to simply code fs: notify: use path_equal() to simply code fs/namei.c | 20 ++-- fs

[PATCH 1/3] fs: use path_equal() and path_put() to simplify code

2013-10-14 Thread Kefeng Wang
Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- fs/namei.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 645268f..1a6c139 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -918,9 +918,8 @@ int follow_up(struct path

[PATCH 06/18] net: wireless: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/wireless/adm8211.c| 5 ++- drivers/net/wireless/ath/carl9170/cmd.c | 15 +++-- drivers/net/wireless

[PATCH 01/18] netfilter: cleanup: delete Macro PRINTR

2013-10-15 Thread Kefeng Wang
Macro PRINTR is only used once in nfnetlink_log.c, so it can be replaced by helper function net_err_ratelimited(). Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- net/netfilter/nfnetlink_log.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/netfilter

[PATCH 18/18] net: wimax: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/wimax/i2400m/netdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c index

[PATCH 07/18] net: ethernet: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/ethernet/aeroflex/greth.c| 16 drivers/net/ethernet/alteon/acenic.c | 3 +- drivers/net

[PATCH 17/18] net: vxlan: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/vxlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 2ef5b62..56583ab 100644 --- a/drivers/net

[PATCH 16/18] net: virtio: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/virtio_net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index defec2b..4f63c12 100644

[PATCH 10/18] net: peak_usb: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/can/usb/peak_usb/pcan_usb_core.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_core.c b/drivers

[PATCH 13/18] net: ppp: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/ppp/ppp_generic.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index

[PATCH 03/18] rt18187se: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- .../rtl8187se/ieee80211/ieee80211_crypt_ccmp.c | 16 - .../rtl8187se/ieee80211/ieee80211_crypt_tkip.c | 27

[PATCH 00/18] cleanup: wrapper functions of net_ratelimit() called to simplify code

2013-10-15 Thread Kefeng Wang
Macro PRINTR is called only once in nfnetlink_log.c, and it can be replaced by wrappe function of net_ratelimit(), so kill it. Meanwhile, I found many files could use wrappe functions of net_ratelimit() to simplify, so I did. Kefeng Wang (18): netfilter: cleanup: delete Macro PRINTR net

[PATCH 15/18] net: xen: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/xen-netback/netback.c | 21 + drivers/net/xen-netfront.c| 27 +-- 2 files

[PATCH 14/18] net: usb: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/usb/usbnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index bf94e10..edf81de 100644

[PATCH 09/18] block: aoe: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_err_ratelimited() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/block/aoe/aoenet.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/aoe/aoenet.c b/drivers/block/aoe/aoenet.c index 63773a9..25e8764 100644

[PATCH 08/18] atm: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/atm/solos-pci.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 32784d1

[PATCH 04/18] rt18192e: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 13 +++-- drivers/staging/rtl8192e/rtllib_crypt_tkip.c | 21

[PATCH 11/18] net: hamradio: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_XXX_ratelimited() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/hamradio/6pack.c| 3 +-- drivers/net/hamradio/bpqether.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/hamradio/6pack.c b/drivers/net

[PATCH 12/18] net: irda: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_ratelimited_function() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/net/irda/stir4200.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/irda/stir4200.c b/drivers/net/irda/stir4200.c index 876e709..d499b2b

[PATCH 02/18] net: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
Wrapper functions net_ratelimited_function() and net_XXX_ratelimited() are called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- net/bridge/br_fdb.c | 6 ++ net/bridge/br_multicast.c | 13 - net/bridge/br_stp_bpdu.c

[PATCH 05/18] rt18192u: use wrapper functions of net_ratelimit() to simplify code

2013-10-15 Thread Kefeng Wang
net_XXX_ratelimited() is called to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 17 - .../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 22 +- drivers/staging/rtl8192u

Re: [PATCH 0/7] irq: fix checkpatch errors and warnings

2013-06-07 Thread Kefeng Wang
On 2013-06-08 6:24, Joe Perches wrote: On Fri, 2013-06-07 at 22:42 +0200, Thomas Gleixner wrote: On Thu, 6 Jun 2013, Kefeng Wang wrote: Fix all the checkpath errors in kernel/irq dir, and some warnings also fixed. Sorry, I'm not really interested in this kind of patches. To be honest

[PATCH 3/7] irq: fix checkpatch error

2013-06-06 Thread Kefeng Wang
ERROR: space required before the open parenthesis '(' WARNING: Prefer pr_warn(... to pr_warning(... Just fix above 2 issue. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/irqdomain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/irq

[PATCH 7/7] irq: fix all checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fix following issue, and use pr_foo(). WARNING: line over 80 characters ERROR: spaces required around that '=' (ctx:WxV) Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/irqdesc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/kernel/irq

[PATCH 4/7] irq: fix all checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fixes following errors and warnings: WARNING: line over 80 characters ERROR: spaces required around that '=' (ctx:WxV) WARNING: Avoid unnecessary line continuations WARNING: Prefer pr_warn(... to pr_warning(... WARNING: suspect code indent for conditional statements (8, 12) Signed-off-by: Kefeng

[PATCH 1/7] irq: fix checkpatch warnings

2013-06-06 Thread Kefeng Wang
Fixes line over 80 characters warnings. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/chip.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index cbd97ce..f19865a 100644 --- a/kernel/irq/chip.c +++ b/kernel

[PATCH 0/7] irq: fix checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fix all the checkpath errors in kernel/irq dir, and some warnings also fixed. Kefeng Wang (7): irq: fix checkpatch warnings irq: fix checkpatch error irq: fix checkpatch error irq: fix all checkpatch errors and warnings irq: fix all checkpatch errors and warnings irq: fix checkpatch

[PATCH RESEND] irq: fix typos around irq_thread_check_affinity

2013-06-06 Thread Kefeng Wang
The CONFIG CPU_MASK_OFFSTACK mentioned should be CPUMASK_OFFSTACK, and fix a misspelling, chasnge - change. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/manage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/irq/manage.c b/kernel/irq

[PATCH 6/7] irq: fix checkpatch warnings

2013-06-06 Thread Kefeng Wang
Fix line over and code indent warning, and use pr_foo(). Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/spurious.c | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c index

[PATCH 5/7] irq: fix all checkpatch errors and warnings

2013-06-06 Thread Kefeng Wang
Fix following errors and warnings: WARNING: space prohibited before semicolon ERROR: space prohibited before open square bracket '[' WARNING: line over 80 characters Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/proc.c | 11 ++- 1 file changed, 6 insertions(+), 5

[PATCH 2/7] irq: fix checkpatch error

2013-06-06 Thread Kefeng Wang
Change printk(KERN_WARNING ... to pr_warn(... Fix ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- kernel/irq/handle.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c

[PATCH 2/5] scsi: sun: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Meanwhile, remove unnecessary drvdata set to null due to commint 0998d0631 (device-core: Ensure drvdata = NULL when no driver is bound). Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/scsi/sun_esp.c | 19

[PATCH 1/5] scsi: jazz: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/scsi/jazz_esp.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/jazz_esp.c b/drivers/scsi/jazz_esp.c index 69efbf1

[PATCH 5/5] scsi: sni: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/scsi/sni_53c710.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c index 52d54e7

[PATCH 3/5] scsi: qlogicpti: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/scsi/qlogicpti.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index 6d48d30

[PATCH 4/5] scsi: sun3x: use module_platform_driver() and platform_{set,get}_drvdata

2013-05-30 Thread Kefeng Wang
Use helper macro and wrapper functions to simpily code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/scsi/sun3x_esp.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/sun3x_esp.c b/drivers/scsi/sun3x_esp.c index 534eb96

[PATCH 0/5] scsi: use platform helper macro and wrapper functions

2013-05-30 Thread Kefeng Wang
use module_platform_driver() and paltform{set,get}_drvdata to simpily code, and patch 2/5 delete unnecessery drvdate set to null. Kefeng Wang (5): scsi: jazz: use module_platform_driver() and platform_{set,get}_drvdata scsi: sun: use module_platform_driver() and platform_{set,get}_drvdata

Re: [PATCH 0/5] scsi: use platform helper macro and wrapper functions

2013-05-30 Thread Kefeng Wang
On 2013-05-30 22:38, James Bottomley wrote: There doesn't seem to be much point to these patches since either idiom is fine and easily understood. We also try to touch the ancient drivers as little as possible since it can be months before anyone actually tries them out and notices that

[PATCH] vexpress: remove declaration of vexpress_clk_of_init()

2013-10-28 Thread Kefeng Wang
After commit:6e973d2c(clk: vexpress: Add separate SP810 driver), vexpress_clk_of_init() is unnecessary and removed, so kill it. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- include/linux/vexpress.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/vexpress.h b/include

Re: [PATCH 0/3] fs: use helper function path_foo() to simpily code

2013-10-26 Thread Kefeng Wang
Any advice? ping... On 10/14 20:25, Kefeng Wang wrote: Use helper function patch_equal() and path_put() to simpily code. Kefeng Wang (3): fs: use path_equal() and path_put() to simplify code fs: nfsd: use path_equal() to simply code fs: notify: use path_equal() to simply code fs

[PATCH] mfd: syscon: Use module_platform_driver()

2014-06-09 Thread Kefeng Wang
Convert to module_platform_drive() to eliminate boilerplate code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/mfd/syscon.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c index ca15878..6c2c874

[PATCH] cpc925_edac: Use module_platform_driver()

2014-06-09 Thread Kefeng Wang
Move edac_op_state assignment operations to probe, then convert to module_platform_drive() to eliminate boilerplate code, and use cpc925_printk instead of printk. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/edac/cpc925_edac.c | 33 +++-- 1

[PATCH] cpc925_eadc: Use devm_ioremap_resource()

2014-06-09 Thread Kefeng Wang
Convert to devm_ioremap_resource() to simplify code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/edac/cpc925_edac.c | 30 ++ 1 files changed, 6 insertions(+), 24 deletions(-) diff --git a/drivers/edac/cpc925_edac.c b/drivers/edac/cpc925_edac.c

[PATCH] iommu: msm: use devm_ioremap_resource to simplify code

2014-05-27 Thread Kefeng Wang
Use devm_ioremap_resource() to make the code simpler, drop unused variable, redundant return value check, and error-handing code. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/iommu/msm_iommu_dev.c | 38 +++--- 1 files changed, 7 insertions

[PATCH v7 1/3] ata: ahci: append new hflag AHCI_HFLAG_NO_FBS

2014-05-14 Thread Kefeng Wang
Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Reviewed-by: Hans de Goede hdego...@redhat.com Signed-off-by: Haojian Zhuang haojian.zhu...@linaro.org Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed

[PATCH v7 0/3] ahci: add support for hisilicon sata

2014-05-14 Thread Kefeng Wang
ata_port_info pointer to avoid struct ata_port_info on the stack twice changes in v2: 1) make code more concise according to Hans's advice Kefeng Wang (3): ata: ahci: append new hflag AHCI_HFLAG_NO_FBS libahci_platform: add host_flags parameter in ahci_platform_init_host() ahci: add

[PATCH v7 2/3] libahci_platform: add host_flags parameter in ahci_platform_init_host()

2014-05-14 Thread Kefeng Wang
-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci_da850.c |3 ++- drivers/ata/ahci_imx.c |3 ++- drivers/ata/ahci_mvebu.c |3 ++- drivers/ata/ahci_platform.c|2 +- drivers/ata/ahci_st.c |2 +- drivers/ata/ahci_sunxi.c |9

[PATCH v7 3/3] ahci: add support for Hisilicon sata

2014-05-14 Thread Kefeng Wang
Goede hdego...@redhat.com Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- .../devicetree/bindings/ata/ahci-platform.txt |1 + drivers/ata/ahci_platform.c|9 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH] cpufreq: highbank: fix ARM_HIGHBANK_CPUFREQ dependency warning

2014-04-08 Thread Kefeng Wang
on ARCH_HAS_CPUFREQ and REGULATOR instead of selecting them, PM_OPP will be selected by ARCH_HAS_CPUFREQ. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/cpufreq/Kconfig.arm | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers

[PATCH 2/2] ahci: add support for Hisilicon sata

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang kefeng.w...@linaro.org The hip04 SoC of hisilicon has an AHCI compliant SATA controller, and it is compliant with the ahci 1.3 and sata 3.0 specification. There is a wrong bit in HOST_CAP of hip04 sata controller, which enable unsupported feature of FBS, use AHCI_HFLAG_NO_FBS

[PATCH 1/2] ata: ahci: append new hflag AHCI_HFLAG_NO_FBS

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang kefeng.w...@linaro.org Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang haojian.zhu...@linaro.org Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6

[PATCH v6 2/3] libahci_platform: add host_flags parameter in ahci_platform_init_host()

2014-04-25 Thread Kefeng Wang
Add a dynamic host_flags argument to make ahci_platform_init_host more flexible, then remove the AHCI_HFLAGS(...) argument from some driver's ata_port_info, and pass that in as the new argument. Cc: Hans de Geode hdego...@redhat.com Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers

[PATCH v6 3/3] ahci: add support for Hisilicon sata

2014-04-25 Thread Kefeng Wang
The hip04 SoC of hisilicon has an AHCI compliant SATA controller, and it is compliant with the ahci 1.3 and sata 3.0 specification. There is a wrong bit in HOST_CAP of hip04 sata controller, which enable unsupported feature of FBS, use AHCI_HFLAG_NO_FBS hflag to disable it. Signed-off-by: Kefeng

[PATCH v6 1/3] ata: ahci: append new hflag AHCI_HFLAG_NO_FBS

2014-04-25 Thread Kefeng Wang
Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang haojian.zhu...@linaro.org Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata

[PATCH v6 0/3] ahci: add support for hisilicon sata

2014-04-25 Thread Kefeng Wang
changes in v2: 1) make code more concise according to Hans's advice Kefeng Wang (3): ata: ahci: append new hflag AHCI_HFLAG_NO_FBS libahci_platform: add host_flags parameter in ahci_platform_init_host() ahci: add support for Hisilicon sata .../devicetree/bindings/ata/ahci-platform.txt

[PATCH v3 0/2] ahci: add support for hisilicon sata

2014-04-20 Thread Kefeng Wang
changes in v3: 1) move NO_FBS chunk after YES_FBS, Tejun's suggestion 2) use ata_port_info pointer to avoid struct ata_port_info on the stack twice changes in v2: 1) make code more concise according to Hans's advice Kefeng Wang (2): ata: ahci: append new hflag AHCI_HFLAG_NO_FBS ahci

[PATCH v3 2/2] ahci: add support for Hisilicon sata

2014-04-20 Thread Kefeng Wang
hdego...@redhat.com Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- .../devicetree/bindings/ata/ahci-platform.txt |3 ++- drivers/ata/ahci_platform.c| 10 -- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree

[PATCH v3 1/2] ata: ahci: append new hflag AHCI_HFLAG_NO_FBS

2014-04-20 Thread Kefeng Wang
Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang haojian.zhu...@linaro.org Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata

[PATCH] arm: oprofile: add ARMv7 cortex-a15 support

2014-04-21 Thread Kefeng Wang
ARMv7 cortex-a15 supports Performance Monitor Units, and it could be used by oprofile, add perf_pmu_name pair. Simply tested on hisilicon hip04 soc. Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- arch/arm/oprofile/common.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm

[PATCH v4 1/3] ata: ahci: append new hflag AHCI_HFLAG_NO_FBS

2014-04-23 Thread Kefeng Wang
Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang haojian.zhu...@linaro.org Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata

[PATCH v4 3/3] ahci: add support for Hisilicon sata

2014-04-23 Thread Kefeng Wang
The hip04 SoC of hisilicon has an AHCI compliant SATA controller, and it is compliant with the ahci 1.3 and sata 3.0 specification. There is a wrong bit in HOST_CAP of hip04 sata controller, which enable unsupported feature of FBS, use AHCI_HFLAG_NO_FBS hflag to disable it. Signed-off-by: Kefeng

[PATCH v4 2/3] libahci_platform: add host_flags parameter in ahci_platform_init_host()

2014-04-23 Thread Kefeng Wang
Add a dynamic host flags argument to make ahci_platform_init_host more flexible, then remove the AHCI_HFLAGS(...) argument from some driver's ata_port_info, and pass that in as the new arguments. Cc: Hans de Geode hdego...@redhat.com Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers

[PATCH v4 0/3] ahci: add support for hisilicon sata

2014-04-23 Thread Kefeng Wang
struct ata_port_info on the stack twice changes in v2: 1) make code more concise according to Hans's advice Kefeng Wang (3): ata: ahci: append new hflag AHCI_HFLAG_NO_FBS libahci_platform: add host_flags parameter in ahci_platform_init_host() ahci: add support for Hisilicon sata

[PATCH v5 1/3] ata: ahci: append new hflag AHCI_HFLAG_NO_FBS

2014-04-23 Thread Kefeng Wang
Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang haojian.zhu...@linaro.org Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata

[PATCH v5 3/3] ahci: add support for Hisilicon sata

2014-04-23 Thread Kefeng Wang
The hip04 SoC of hisilicon has an AHCI compliant SATA controller, and it is compliant with the ahci 1.3 and sata 3.0 specification. There is a wrong bit in HOST_CAP of hip04 sata controller, which enable unsupported feature of FBS, use AHCI_HFLAG_NO_FBS hflag to disable it. Signed-off-by: Kefeng

[PATCH v5 2/3] libahci_platform: add host_flags parameter in ahci_platform_init_host()

2014-04-23 Thread Kefeng Wang
Add a dynamic host_flags argument to make ahci_platform_init_host more flexible, then remove the AHCI_HFLAGS(...) argument from some driver's ata_port_info, and pass that in as the new argument. Cc: Hans de Geode hdego...@redhat.com Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers

[PATCH v5 0/3] ahci: add support for hisilicon sata

2014-04-23 Thread Kefeng Wang
flags, suggested by Hans changes in v3: 1) move NO_FBS chunk after YES_FBS, Tejun's suggestion 2) use ata_port_info pointer to avoid struct ata_port_info on the stack twice changes in v2: 1) make code more concise according to Hans's advice Kefeng Wang (3): ata: ahci: append new hflag

Re: [PATCH V2 2/2] ahci: add support for Hisilicon sata

2014-04-17 Thread Kefeng Wang
On 04/17 21:31, Tejun Heo wrote: On Thu, Apr 17, 2014 at 09:48:03AM +0200, Hans de Goede wrote: Hmmm this should work but looks a bit tedious and it could be better to have a better mechanism to match devices to their port_infos. Hans, can you please comment? If getting something more

Re: [PATCH] cpufreq: highbank: fix ARM_HIGHBANK_CPUFREQ dependency warning

2014-04-09 Thread Kefeng Wang
Hi Rafael, On 04/10 10:18, Rafael J. Wysocki wrote: On Wednesday, April 09, 2014 09:58:26 AM Viresh Kumar wrote: On 9 April 2014 08:04, Kefeng Wang wangkefeng.w...@huawei.com wrote: When make ARCH=arm multi_v7_defconfig, we get the following warnings: warning: (ARM_HIGHBANK_CPUFREQ) selects

[PATCH V2 1/2] ata: ahci: append new hflag AHCI_HFLAG_NO_FBS

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang kefeng.w...@linaro.org Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang haojian.zhu...@linaro.org Signed-off-by: Kefeng Wang kefeng.w...@linaro.org --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6

[PATCH V2 2/2] ahci: add support for Hisilicon sata

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang kefeng.w...@linaro.org The hip04 SoC of hisilicon has an AHCI compliant SATA controller, and it is compliant with the ahci 1.3 and sata 3.0 specification. There is a wrong bit in HOST_CAP of hip04 sata controller, which enable unsupported feature of FBS, use AHCI_HFLAG_NO_FBS

[PATCH V2 0/2] ahci: support for hisilicon sata

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang kefeng.w...@linaro.org changes in v2: make code more concise according to Hans's advice. Kefeng Wang (2): ata: ahci: append new hflag AHCI_HFLAG_NO_FBS ahci: add support for Hisilicon sata .../devicetree/bindings/ata/ahci-platform.txt |3 ++- drivers/ata/ahci.h

[PATCH] efi: fix build warning about of_get_flat_dt_prop

2014-06-19 Thread Kefeng Wang
commit 9d0c4dfed(of/fdt: update of_get_flat_dt_prop in prep for libfdt) change the of_get_flat_dt_prop, so update related variable to fix build warning. Btw, remove unused variable 'name'. Signed-off-by: Kefeng Wang wangkefeng.w...@huawei.com --- drivers/firmware/efi/efi.c |5 ++--- drivers

[PATCH] ARM: l2x0: fix build warning without CONFIG_OF

2014-07-31 Thread Kefeng Wang
Commit cf9ea8f13(ARM: l2c: remove obsolete l2x0 ops for non-OF init) remove some obsolete l2x0 ops, the rest of ops: l2x0_cache_sync, l2x0_cache_sync, l2x0_disable only use under OF enable, so move them into OF part, or defined but not used warning occurs. Signed-off-by: Kefeng Wang wangkefeng.w

Re: [PATCH] ARM: l2x0: fix build warning without CONFIG_OF

2014-08-01 Thread Kefeng Wang
On 08/01 15:58, Russell King - ARM Linux wrote: On Fri, Aug 01, 2014 at 10:42:00AM +0800, Kefeng Wang wrote: Commit cf9ea8f13(ARM: l2c: remove obsolete l2x0 ops for non-OF init) remove some obsolete l2x0 ops, the rest of ops: l2x0_cache_sync, l2x0_cache_sync, l2x0_disable only use under

ask for help about BUG: soft lockup - CPU#13 stuck for 22s! [trinity-c13:6691]

2015-08-25 Thread Kefeng Wang
Hi all, We got issues about rcu/ soft lockup in trinity test on our arm64 board, and have no idea to fix this, any advice will be appreciated. Our board test environment: 1) Kernel version: 3.19.0/3.19.8/4.1.0/4.1.6 2) Hardware: 32cpu, 128G memory 3) CONFIG: based on defconfig, use

[PATCH] genirq: drop outdated comment in irqdesc.h

2015-09-01 Thread Kefeng Wang
All __do_IRQ are removed after commit 1c77ff22f(genirq: Remove __do_IRQ), update comment accordingly. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- include/linux/irqdesc.h |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/include/linux/irqdesc.h b/i

[PATCH 3/4] clocksource: sp804: use sp804_timer_disable() where possible

2016-05-28 Thread Kefeng Wang
Use sp804_timer_disable() where possible, prepare for 64bit mode timer support. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- drivers/clocksource/timer-sp804.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/timer-sp80

[PATCH 2/4] clocksource: sp804: introduce helper sp804_load_mode_set()

2016-05-28 Thread Kefeng Wang
Introduce helper sp804_load_mode_set(), and use it, prepare for 64bit mode timer support. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- drivers/clocksource/timer-sp804.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/d

[PATCH 0/4] Support hisilicon 64bit mode timer

2016-05-28 Thread Kefeng Wang
. Kefeng Wang (4): clocksource: sp804: cleanup clk_get_sys() clocksource: sp804: introduce helper sp804_load_mode_set() clocksource: sp804: use sp804_timer_disable() where possible clocksource: sp804: support 64bit mode for hisilicon timer64 .../devicetree/bindings/timer/arm,sp804.txt

[PATCH 4/4] clocksource: sp804: support 64bit mode for hisilicon timer64

2016-05-28 Thread Kefeng Wang
There is a kind of 64bit mode timer in hisilicon soc(like Hip05, Hip06 and some arm32 soc), it is very similar with ARM sp804 Dual Timers, but TimerX LOAD/Value/BGLoad are 64bit(two 32bit regs), and reg offset is different. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.

[PATCH 1/4] clocksource: sp804: cleanup clk_get_sys()

2016-05-28 Thread Kefeng Wang
Move the clk_get_sys() part into sp804_get_clock_rate(), cleanup the same code. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- drivers/clocksource/timer-sp804.c | 34 +++--- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/d

Re: [PATCH] serial: 8250_early: Add earlycon support for Synopsys DesignWare ABP UART

2016-06-11 Thread Kefeng Wang
On 2016/5/20 5:35, Jon Mason wrote: > On Thu, May 19, 2016 at 09:45:33AM +0800, Kefeng Wang wrote: >> +Cc Jon and arm-kernel mailist >> >> Any comments, thanks. > > It works for me. Please feel free to add > > Tested-by: Jon Mason <jon.ma...@broadcom.com

[Question] Crash when cat /dev/kmem in arm/arm64 but not in x86

2016-05-30 Thread Kefeng Wang
Hi all, When cat /dev/kmem in arm/arm64, it will crash, this is caused by "from = 0" in copy_to_user(void __user *to, const void *from, unsigned long n), call trace shows below(eg, arm64) [9.913370] Unable to handle kernel NULL pointer dereference at virtual address [9.914391]

[PATCH 2/3] of_numa: Use pr_fmt()

2016-06-02 Thread Kefeng Wang
Use pr_fmt to prefix kernel output. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- drivers/of/of_numa.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index ed7bd22..019738f 100644 --- a/d

[PATCH 0/3] of: numa: cleanup

2016-06-02 Thread Kefeng Wang
1) Use of_get_next_parent in of_node_to_nid. 2) Use pr_fmt to prefix kernel output. and drop duplicated message of NUMA turned off. Based of Zhen Lei 's patchset v3 "fix some type infos and bugs for arm64/of num" in http://www.spinics.net/lists/arm-kernel/msg507650.html. Kefe

[PATCH 1/3] of_numa: Use of_get_next_parent to simplify code

2016-06-02 Thread Kefeng Wang
Use of_get_next_parent() instead of open-code. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- drivers/of/of_numa.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index 3157130..ed7bd22 100644 --- a/d

[PATCH 3/3] arm64: numa: Use pr_fmt()

2016-06-02 Thread Kefeng Wang
Use pr_fmt to prefix kernel output, and remove duplicated msg of NUMA turned off. Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- arch/arm64/mm/numa.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/arm64/mm/

Re: [PATCH v4 01/18] of/platform: Add common method to populate default bus

2016-05-26 Thread Kefeng Wang
On 2016/5/25 22:46, Rob Herring wrote: > On Thu, May 12, 2016 at 7:05 AM, Kefeng Wang <wangkefeng.w...@huawei.com> > wrote: >> The arch code calls of_platform_populate() with default match table >> when it want to populate default bus. >>

[PATCH v2] of: iommu: make of_iommu_init() postcore_initcall_sync

2016-06-01 Thread Kefeng Wang
g.com> Cc: Rich Felker <dal...@libc.org> Cc: Rob Herring <robh...@kernel.org> Cc: Robin Murphy <robin.mur...@arm.com> Cc: Will Deacon <will.dea...@arm.com> Signed-off-by: Kefeng Wang <wangkefeng.w...@huawei.com> --- Change since v1: - Rebase to v4.7-rc1 - Add ack/

  1   2   3   4   >