[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 --- drivers/net/xen-netback/netback.c | 21 + drivers/net/xen-netfront.c| 27 +-- 2 files changed, 18 insertions

[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 --- 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 --- a/drivers/net/usb/usbnet.c

[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 --- 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 --- a/drivers/block/aoe

[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 --- 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..a4d20e9 100644 --- a/drivers

[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 --- drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 13 +++-- drivers/staging/rtl8192e/rtllib_crypt_tkip.c | 21 + drivers/staging/rtl8192e

[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 --- 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/hamradio/6pack.c index

[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 --- 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 100644 --- a/drivers/net/irda

[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 --- net/bridge/br_fdb.c | 6 ++ net/bridge/br_multicast.c | 13 - net/bridge/br_stp_bpdu.c | 11

[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 --- .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 17 - .../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 22 +- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 7

[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 --- include/linux/vexpress.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/vexpress.h b/include/linux/vexpress.h index

[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 Signed-off-by: Kefeng Wang --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 51af275..60db49b

[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 Signed-off-by: Kefeng Wang --- drivers/ata/ahci_da850.c |

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

2014-04-23 Thread Kefeng Wang
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 support for Hisi

[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 Signed-off-by: Kefeng Wang --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 51af275..60db49b

[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 Signed-off-by: Kefeng Wang --- drivers/ata/ahci_da850.c |3 ++- dr

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

2014-04-23 Thread Kefeng Wang
host 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: a

[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

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_d

[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 Signed-off-by: Kefeng Wang --- drivers/ata/ahci_da850.c |3 ++- dr

[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 Signed-off-by: Kefeng Wang --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index b5eb886..48073ef

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

2014-04-25 Thread Kefeng Wang
tack 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 .../devicetree/bindings/ata/ah

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

2014-05-13 Thread Kefeng Wang
Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Reviewed-by: Hans de Goede Signed-off-by: Haojian Zhuang Signed-off-by: Kefeng Wang --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata/ahci.h b/drivers/ata

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

2014-05-13 Thread Kefeng Wang
ion 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 AHCI_HFLAG_NO_FBS libahci_platform: add host_flags parameter in ahci_platform_init_hos

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

2014-05-13 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 Reviewed-by: Hans de Goede Signed-off-by: Kefeng Wang --- drivers/ata/ahci_

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

2014-05-13 Thread Kefeng Wang
Goede Signed-off-by: Kefeng Wang --- .../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/bindings/ata/ahci-platform.txt b

[PATCH] cpufreq: highbank: fix ARM_HIGHBANK_CPUFREQ dependency warning

2014-04-08 Thread Kefeng Wang
THERMAL) To fix this, make ARM_HIGHBANK_CPUFREQ depend on ARCH_HAS_CPUFREQ and REGULATOR instead of selecting them, PM_OPP will be selected by ARCH_HAS_CPUFREQ. Signed-off-by: Kefeng Wang --- drivers/cpufreq/Kconfig.arm | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

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

2014-04-09 Thread Kefeng Wang
From: 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

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

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang Signed-off-by: Kefeng Wang --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/ata/ahci.h b

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 wrote: >>> When make ARCH=arm multi_v7_defconfig, we get the following warnings: >>> >>> war

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

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang Append AHCI_HFLAG_NO_FBS to force turning off FBS flag. Signed-off-by: Haojian Zhuang Signed-off-by: Kefeng Wang --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/ata/ahci.h b

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

2014-04-09 Thread Kefeng Wang
From: 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

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

2014-04-09 Thread Kefeng Wang
From: Kefeng Wang 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/a

[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 --- drivers/firmware/efi/efi.c |5 ++--- drivers/firmware/efi/fd

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 somethin

[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_

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

2014-04-20 Thread Kefeng Wang
Signed-off-by: Kefeng Wang --- .../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/bindings/ata/ahci-platform.txt b/Documentation

[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 Signed-off-by: Kefeng Wang --- drivers/ata/ahci.h|1 + drivers/ata/libahci.c |5 + 2 files changed, 6 insertions(+) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 51af275..60db49b

[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 --- arch/arm/oprofile/common.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/oprofile/common.c b

[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 --- 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 100644 --- a/drivers/mfd

[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 --- drivers/edac/cpc925_edac.c | 33 +++-- 1 files changed, 7 insertions

[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 --- 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 index df6575f..b335c14

[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 --- drivers/iommu/msm_iommu_dev.c | 38 +++--- 1 files changed, 7 insertions(+), 31 deletions(-) diff

Re: [PATCH 00/23 v2] cleanup: introduce br/netdev/netif/wiphy__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 >> t

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_equa

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 CONFIG_PREEMPT

Re: [PATCH v7 2/3] gpio: dwapb: convert device node to fwnode

2016-04-14 Thread Kefeng Wang
On 2016/4/6 15:07, qiujiang wrote: > This patch converts device node to fwnode for dwapb driver, so > as to provide a unified fwnode for DT and ACPI bindings. > > Acked-by: Andy Shevchenko > Signed-off-by: qiujiang > --- > drivers/gpio/gpio-dwapb.c| 37 > -

[PATCH v5] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-05-02 Thread Kefeng Wang
7 ("serial: 8250_dw: Use 64-bit access for OCTEON.") for OCTEON. So for 64BIT && !PORT_OCTEON, we better to use coincident write function. Fixes: cdcea058e510("serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()") Signed-off-by: Kefeng Wang ---

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

2016-05-10 Thread Kefeng Wang
Some board like Hisilicon D02 uses Synopsys DesignWare ABP UART, declare an OF early console for it, so early console device can be enabled with comand line "earlycon"(without option) via the "stdout-path" property in device-tree. Signed-off-by: Kefeng Wang --- dri

Re: [PATCH 1/2] arm64: dts: NS2: Add all of the UARTs

2016-05-11 Thread Kefeng Wang
On 2016/5/12 6:56, Jon Mason wrote: > Add all of the UARTs present on NS2 and enable them in the SVK device > tree file. Also, do some magic to make sure that uart3 is discovered as > ttyS0 (as that is the console UART). > > Signed-off-by: Jon Mason > --- > arch/arm64/boot/dts/broadcom/ns2-sv

[PATCH v4 03/18] arm: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
Cc: Shawn Guo Cc: Santosh Shilimkar Cc: Roland Stigge Cc: Jason Cooper Cc: Haojian Zhuang Cc: Heiko Stuebner Cc: Viresh Kumar Cc: Shiraz Hashim Cc: Tony Prisk Cc: Arnd Bergmann Cc: Russell King Signed-off-by: Kefeng Wang --- arch/arm/kernel/setup.c | 6 +- arc

[PATCH v4 12/18] arm: use of_platform_default_populate() to populate

2016-05-12 Thread Kefeng Wang
: Viresh Kumar Cc: Stephen Warren Cc: Rob Herring Cc: Michal Simek Signed-off-by: Kefeng Wang --- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm/mach-at91/at91sam9.c| 2 +- arch/arm/mach-at91/sama5.c | 2 +- arch/arm/mach-cns3xxx/core.c | 3

[PATCH v4 11/18] xtensa: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
x Filippov Signed-off-by: Kefeng Wang --- arch/xtensa/kernel/setup.c | 11 --- arch/xtensa/kernel/time.c | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 9735691..18af563 100644 --- a/arch/xtensa/kern

[PATCH v4 16/18] memory: omap-gpmc: use of_platform_default_populate() to populate default bus

2016-05-12 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Roger Quadros Cc: Roger Quadros Cc: Tony Lindgren Signed-off-by: Kefeng Wang --- drivers/memory/omap-gpmc.c | 3 +-- 1 file changed

[PATCH v4 06/18] cris: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers about the of_platform_populate with default match table. Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/cris/kernel/s

[PATCH v4 02/18] arc: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers about the of_platform_populate with default match table. Cc: Vineet Gupta Signed-off-by: Kefeng Wang --- arch/arc/kernel/setup.c | 6 -- 1 file

[PATCH v4 09/18] nios2: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers about the of_platform_populate with default match table. Cc: Ley Foon Tan Signed-off-by: Kefeng Wang --- arch/nios2/platform/platform.c | 4 +--- 1 file

[PATCH v4 15/18] bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus

2016-05-12 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Masahiro Yamada Cc: Masahiro Yamada Signed-off-by: Kefeng Wang --- drivers/bus/uniphier-system-bus.c | 3 +-- 1 file changed, 1

[PATCH v4 07/18] metag: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers about the of_platform_populate with default match table. Cc: James Hogan Signed-off-by: Kefeng Wang --- arch/metag/kernel/setup.c | 5 + 1 file

[PATCH v4 08/18] mips: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
Lutfullah Kakakhel Signed-off-by: Kefeng Wang --- arch/mips/ath79/setup.c | 2 -- arch/mips/jz4740/setup.c | 8 arch/mips/mti-sead3/sead3-setup.c | 8 arch/mips/pistachio/init.c| 13 - arch/mips/xilfpga/init.c | 13

[PATCH v4 10/18] sh: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers about the of_platform_populate with default match table. Cc: Yoshinori Sato Cc: Rich Felker Signed-off-by: Kefeng Wang --- arch/sh/boards/of-gene

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

2016-05-12 Thread Kefeng Wang
(), and use __func__ to print function's name of of_platform_bus_create(). Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/platform.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/of/platfor

[PATCH v4 04/18] arm64: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers about the of_platform_populate with default match table. Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- arch/ar

[PATCH v4 00/18] Cleanup for populate default bus

2016-05-12 Thread Kefeng Wang
patch has posted and applied, see https://patchwork.kernel.org/patch/8096991/ v1: - https://lkml.org/lkml/2016/1/26/1123 [1]: https://lkml.org/lkml/2016/4/23/31 Kefeng Wang (18): of/platform: Add common method to populate default bus arc: Remove unnecessary of_platform_populate with

[PATCH v4 13/18] mips: use of_platform_default_populate() to populate default bus

2016-05-12 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Joshua Henderson Cc: Ralf Baechle Signed-off-by: Kefeng Wang --- arch/mips/pic32/pic32mzda/init.c | 3 +-- 1 file changed, 1 insertion

[PATCH v4 05/18] c6x: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers about the of_platform_populate with default match table. Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/c6x/platforms/Makef

[PATCH v4 14/18] bus: imx-weim: use of_platform_default_populate() to populate default bus

2016-05-12 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Shawn Guo Cc: Signed-off-by: Huang Shijie Cc: Shawn Guo Signed-off-by: Kefeng Wang --- drivers/bus/imx-weim.c | 5 ++--- 1 file

[PATCH v4 18/18] Revert "of/platform: export of_default_bus_match_table"

2016-05-12 Thread Kefeng Wang
: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index f601b30..3ea8610 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -32,7 +32,6 @@ const struct of_device_id

[PATCH v4 17/18] of: unittest: use of_platform_default_populate() to populate default bus

2016-05-12 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/unittest.c | 5 ++--- 1 file changed, 2 insertions

Re: [PATCH v7 0/5] ACPI: parse the SPCR table

2016-05-12 Thread Kefeng Wang
an issue with 16550 and command line console with I am > investigating and probably will address in a separate patch. Sound good, and will retest this in D02 with the coming patch, and Tested-by: Kefeng Wang BRs, Kefeng > > I know no other problems with it and reviewers seem happy. > &

Re: [PATCH 1/2] arm64: dts: NS2: Add all of the UARTs

2016-05-17 Thread Kefeng Wang
On 2016/5/18 3:56, Florian Fainelli wrote: > On 05/15/2016 06:11 PM, Kefeng Wang wrote: >>> I can confirm that with your change and the change to the bootargs you >>> describe above, it works as desired. Was your change already accepted? >>> >> >&

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

2016-05-18 Thread Kefeng Wang
+Cc Jon and arm-kernel mailist Any comments, thanks. Kefeng On 2016/5/11 14:06, Kefeng Wang wrote: > Some board like Hisilicon D02 uses Synopsys DesignWare ABP UART, declare an > OF early console for it, so early console device can be enabled with comand > line "earlycon"(

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 > wrote: >> The arch code calls of_platform_populate() with default match table >> when it want to populate default bus. >> >> This patch introduce a new of_platform_defau

[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 --- drivers/clocksource/timer-sp804.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c

[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 --- drivers/clocksource/timer-sp804.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/clocksource/timer-sp804.c b

[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 --- .../devicetree/bindings/timer/arm,sp804

[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 --- drivers/clocksource/timer-sp804.c | 34 +++--- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/drivers/clocksource/timer-sp804.c b/drivers

Re: [PATCH 1/2] arm64: dts: NS2: Add all of the UARTs

2016-05-12 Thread Kefeng Wang
On 2016/5/13 0:52, Ray Jui wrote: > Hi Kefeng, > > On 5/12/2016 7:46 AM, Jon Mason wrote: >> >> >> On Thu, May 12, 2016 at 2:16 AM, Kefeng Wang > <mailto:wangkefeng.w...@huawei.com>> wrote: >> >> >> >> On 2016/5/12 6:56, Jo

Re: [PATCH v4 10/18] sh: Remove unnecessary of_platform_populate with default match table

2016-05-12 Thread Kefeng Wang
On 2016/5/13 2:38, Rich Felker wrote: > On Thu, May 12, 2016 at 08:06:07PM +0800, Kefeng Wang wrote: >> After patch "of/platform: Add common method to populate default bus", >> it is possible for arch code to remove unnecessary callers about the >> of_platform_po

Re: [PATCH 1/2] arm64: dts: NS2: Add all of the UARTs

2016-05-12 Thread Kefeng Wang
On 2016/5/12 22:46, Jon Mason wrote: > > > On Thu, May 12, 2016 at 2:16 AM, Kefeng Wang <mailto:wangkefeng.w...@huawei.com>> wrote: > > > > On 2016/5/12 6:56, Jon Mason wrote: > > Add all of the UARTs present on NS2 and enable them in the SVK

Re: [PATCH 1/2] arm64: dts: NS2: Add all of the UARTs

2016-05-15 Thread Kefeng Wang
On 2016/5/14 0:49, Jon Mason wrote: > > > On Thu, May 12, 2016 at 10:09 PM, Kefeng Wang <mailto:wangkefeng.w...@huawei.com>> wrote: > > > > On 2016/5/12 22:46, Jon Mason wrote: > > > > > > On Thu, May 12, 2016 at 2:16 AM,

Re: [PATCH v2 all 00/14] use of_platform_default_populate() to populate default bus

2016-04-21 Thread Kefeng Wang
Hi Rob, On 2016/4/20 5:10, Rob Herring wrote: > On Wed, Mar 16, 2016 at 2:35 AM, Kefeng Wang > wrote: >> Use helper of_platform_default_populate() in linux/of_platform >> when possible, instead of calling of_platform_populate() with >> the default match table. >&

Re: [PATCH v2 all 00/14] use of_platform_default_populate() to populate default bus

2016-04-21 Thread Kefeng Wang
On 2016/4/21 21:10, Rob Herring wrote: > On Thu, Apr 21, 2016 at 2:55 AM, Kefeng Wang > wrote: >> Hi Rob, >> >> On 2016/4/20 5:10, Rob Herring wrote: >>> On Wed, Mar 16, 2016 at 2:35 AM, Kefeng Wang >>> wrote: >>>> Use helper of_plat

[PATCH v2 all 00/14] use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
4.5. Changes since v1: - Add ack, test and review - Remove v1 patch 14/15, the similar patch has posted and applied, see https://patchwork.kernel.org/patch/8096991/ v1: - https://lkml.org/lkml/2016/1/26/1123 Kefeng Wang (14): arm: use of_platform_default_populate() to populate default bus

[PATCH v2 all 14/14] Revert "of/platform: export of_default_bus_match_table"

2016-03-16 Thread Kefeng Wang
: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 8d103e4..af98343 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -31,7 +31,6 @@ const struct of_device_id

[PATCH v2 all 04/14] arc: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Vineet Gupta Cc: Vineet Gupta Signed-off-by: Kefeng Wang --- arch/arc/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 all 05/14] c6x: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Mark Salter Cc: Mark Salter Cc: Aurelien Jacquiot Signed-off-by: Kefeng Wang --- arch/c6x/platforms/platform.c | 2 +- 1 file

[PATCH v2 all 08/14] nios2: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Ley Foon Tan Signed-off-by: Kefeng Wang --- arch/nios2/platform/platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v2 all 06/14] metag: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: James Hogan Cc: James Hogan Signed-off-by: Kefeng Wang --- arch/metag/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v2 all 13/14] of: unittest: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/unittest.c | 5 ++--- 1 file changed, 2 insertions

[PATCH v2 all 02/14] arm64: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Catalin Marinas Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- arch/arm64/kernel/setup.c | 3

[PATCH v2 all 03/14] mips: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Tested-by: Joshua Henderson Cc: Ralf Baechle Signed-off-by: Kefeng Wang --- arch/mips/ath79/setup.c | 2 +- arch/mips/jz4740/setup.c

[PATCH v2 all 01/14] arm: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Cc: Krzysztof Halasa Cc: Kukjin Kim Cc: Rob Herring Cc: Shawn Guo Cc: Santosh Shilimkar Cc: Roland Stigge Cc: Jason Cooper Cc: Haojian Zhuang Cc: Heiko Stuebner Cc: Viresh Kumar Cc: Shiraz Hashim Cc: Tony Prisk Cc: Arnd Bergmann Cc: Russell King Signed-off-by: Kefeng Wang --- arch

[PATCH v2 all 07/14] cris: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 all 09/14] xtensa: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Max Filippov Cc: Chris Zankel Cc: Max Filippov Signed-off-by: Kefeng Wang --- arch/xtensa/kernel/setup.c | 2 +- 1 file changed, 1

[PATCH v2 all 11/14] bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Masahiro Yamada Cc: Masahiro Yamada Signed-off-by: Kefeng Wang --- drivers/bus/uniphier-system-bus.c | 3 +-- 1 file changed, 1

<    1   2   3   4   5   6   >