Re: [PATCH 04/25] MIPS: Netlogic: use ehci-platform driver

2012-10-04 Thread Jonas Gorski
On 3 October 2012 17:02, Florian Fainelli flor...@openwrt.org wrote: Signed-off-by: Florian Fainelli flor...@openwrt.org --- arch/mips/netlogic/xlr/platform.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/netlogic/xlr/platform.c b/arch/mips/netlogic/xlr/platform.c

Re: [PATCH 20/25] MIPS: Netlogic: convert to use OHCI platform driver

2012-10-04 Thread Jonas Gorski
On 3 October 2012 17:03, Florian Fainelli flor...@openwrt.org wrote: Signed-off-by: Florian Fainelli flor...@openwrt.org --- arch/mips/netlogic/xlr/platform.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/netlogic/xlr/platform.c b/arch/mips/netlogic/xlr/platform.c

[RFC] MIPS: BCM63XX: add initial Device Tree support

2012-11-11 Thread Jonas Gorski
mips tree. My hope is that these changes eventually go through Ralf's tree instead of through each subsystem's tree, to make the switch less slow. Jonas Gorski (15): MIPS: BCM63XX: add support for loading DTB MIPS: BCM63XX: add simple Device Tree includes for all SoCs MIPS: BCM63XX: add

[RFC] MIPS: BCM63XX: add generic fallback device trees

2012-11-11 Thread Jonas Gorski
Add generic fallback device trees to load if there is no specific device tree for the board available. This ensures that always present devices like interrupt controllers are always available. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- arch/mips/bcm63xx/dts/Makefile

[RFC] net: ethernet: bcm63xx_enet: use clk_{prepare_enable,disable_unprepare}

2012-11-11 Thread Jonas Gorski
Use proper clk_prepare/unprepare calls in preparation for switching to the generic clock framework. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net

[RFC] MIPS: BCM63XX: switch to common clock and Device Tree

2012-11-11 Thread Jonas Gorski
Switch BCM63XX to the common clock framework and use clkdev for providing clock name lookups for non-DT devices. Clocks can have a frequency and gate-bit, or none, in case they are just provided for drivers expecting them to be present. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com

[RFC] MIPS: BCM63XX: add Device Tree clock definitions

2012-11-11 Thread Jonas Gorski
Add definitions for the clocks found and used in all supported SoCs. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- arch/mips/bcm63xx/dts/bcm6328.dtsi | 90 ++ arch/mips/bcm63xx/dts/bcm6338.dtsi | 47 + arch/mips/bcm63xx/dts/bcm6345.dtsi | 33

[RFC] serial: bcm63xx_uart: allow probing through Device Tree

2012-11-11 Thread Jonas Gorski
Add support for probing the serial ports through Device Tree. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- .../bindings/tty/serial/bcm63xx-uart.txt | 17 + drivers/tty/serial/bcm63xx_uart.c | 35 ++-- 2 files changed, 42 insertions

[RFC] MIPS: BCM63XX: add empty Device Trees for all supported boards

2012-11-11 Thread Jonas Gorski
Add empty board files for all boards supported by the legacy board support. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- arch/mips/bcm63xx/dts/96328avng.dts | 22 +++ arch/mips/bcm63xx/dts/96338gw.dts | 22 +++ arch/mips/bcm63xx/dts/96338w.dts | 22

[RFC] MIPS: BCM63XX: enable serial through Device Tree

2012-11-11 Thread Jonas Gorski
Enable serial through Device Tree board files instead of legacy board files. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- arch/mips/bcm63xx/boards/board_bcm963xx.c | 15 --- arch/mips/bcm63xx/dts/96328avng.dts |3 +++ arch/mips/bcm63xx/dts/96338gw.dts

[RFC] MIPS: BCM63XX: add serial blocks to Device Tree includes

2012-11-11 Thread Jonas Gorski
Add the serial block to the Device Tree includes for all SoCs. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- arch/mips/bcm63xx/dts/bcm6328.dtsi | 14 ++ arch/mips/bcm63xx/dts/bcm6338.dtsi |7 +++ arch/mips/bcm63xx/dts/bcm6345.dtsi |8 arch/mips/bcm63xx

[RFC] MIPS: BCM63XX: register GPIO controller through Device Tree

2012-11-11 Thread Jonas Gorski
Register the GPIO controller through Device Tree and add the appropriate values in the include files. Since we can't register a platform driver at this early stage move the direct call to bcm63xx_gpio_init from prom_init to an arch initcall. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com

[RFC] MIPS: BCM63XX: add simple Device Tree includes for all SoCs

2012-11-11 Thread Jonas Gorski
Add simple Device Tree include files for all currently supported SoCs. These will be populated with device definitions as driver support gets added. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- arch/mips/bcm63xx/dts/bcm6328.dtsi | 30 ++ arch/mips/bcm63xx

[RFC] serial: bcm63xx_uart: remove unnecessary include

2012-11-11 Thread Jonas Gorski
bcm63xx_clk.h does not need to be included anymore as clk.h already provides all required prototypes. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- drivers/tty/serial/bcm63xx_uart.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/tty/serial

[RFC] bcm63xx-rng: use clk_{prepare_enable,disable_unprepare}

2012-11-11 Thread Jonas Gorski
Use proper clk_prepare/unprepare calls in preparation for switching to the generic clock framework. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- drivers/char/hw_random/bcm63xx-rng.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/char/hw_random

[RFC] SPI: spi-bcm63xx: use clk_{prepare_enable,disable_unprepare}

2012-11-11 Thread Jonas Gorski
Use proper clk_prepare/unprepare calls in preparation for switching to the generic clock framework. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- drivers/spi/spi-bcm63xx.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-bcm63xx.c b/drivers

[RFC] MIPS: BCM63XX: add support for loading DTB

2012-11-11 Thread Jonas Gorski
Add support for loading DTBs embedded into the kernel. Iterate through all embedded ones until a match is found and use that. Use the NVRAM provided board name for constructing the compatible property for selecting the appropriate in-kernel DTB. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com

[RFC] MIPS: BCM63XX: add Device Tree glue code for IRQ handling

2012-11-11 Thread Jonas Gorski
Register IRQ domains through Device Tree for the internal and external interrupt controllers. Register the same IRQ ranges as previously to provide backward compatibility for non-DT drivers. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- .../devicetree/bindings/mips/bcm63xx/epic.txt

Re: [PATCH] spi: make sure all transfer has bits_per_word set

2012-11-12 Thread Jonas Gorski
Hi, On 9 November 2012 10:06, Laxman Dewangan ldewan...@nvidia.com wrote: When spi client does the spi transfer and does not sets the bits_per_word for each transfer then set it as default of spi device in spi core before calling low level transfer. I like that (not that it counts ... )!

Re: [RFC] MIPS: BCM63XX: add initial Device Tree support

2012-11-14 Thread Jonas Gorski
On 12 November 2012 12:18, Maxime Bizon mbi...@freebox.fr wrote: On Sun, 2012-11-11 at 13:50 +0100, Jonas Gorski wrote: This patch series adds initial Device Tree support to BCM63XX by adding bindings for interrupts, GPIOs and clocks to Device Tree. Finally it adds one real user, the serial

Re: [RFC] MIPS: BCM63XX: add Device Tree glue code for IRQ handling

2012-11-14 Thread Jonas Gorski
On 13 November 2012 06:00, Stephen Warren swar...@wwwdotorg.org wrote: On 11/11/2012 05:50 AM, Jonas Gorski wrote: Register IRQ domains through Device Tree for the internal and external interrupt controllers. Register the same IRQ ranges as previously to provide backward compatibility for non

Re: [RFC] MIPS: BCM63XX: add Device Tree clock definitions

2012-11-14 Thread Jonas Gorski
On 13 November 2012 06:02, Stephen Warren swar...@wwwdotorg.org wrote: On 11/11/2012 05:50 AM, Jonas Gorski wrote: Add definitions for the clocks found and used in all supported SoCs. diff --git a/arch/mips/bcm63xx/dts/bcm6328.dtsi b/arch/mips/bcm63xx/dts/bcm6328.dtsi

Re: [RFC] MIPS: BCM63XX: switch to common clock and Device Tree

2012-11-14 Thread Jonas Gorski
On 13 November 2012 06:04, Stephen Warren swar...@wwwdotorg.org wrote: On 11/11/2012 05:50 AM, Jonas Gorski wrote: Switch BCM63XX to the common clock framework and use clkdev for providing clock name lookups for non-DT devices. Clocks can have a frequency and gate-bit, or none, in case

Re: [RFC] MIPS: BCM63XX: register GPIO controller through Device Tree

2012-11-14 Thread Jonas Gorski
On 13 November 2012 06:06, Stephen Warren swar...@wwwdotorg.org wrote: On 11/11/2012 05:50 AM, Jonas Gorski wrote: Register the GPIO controller through Device Tree and add the appropriate values in the include files. Since we can't register a platform driver at this early stage move

Re: [RFC] MIPS: BCM63XX: add empty Device Trees for all supported boards

2012-11-14 Thread Jonas Gorski
On 13 November 2012 06:12, Stephen Warren swar...@wwwdotorg.org wrote: On 11/11/2012 05:50 AM, Jonas Gorski wrote: Add empty board files for all boards supported by the legacy board support. diff --git a/arch/mips/bcm63xx/dts/96328avng.dts b/arch/mips/bcm63xx/dts/96328avng.dts

[PATCH] MIPS: BCM63XX: select HAVE_CLK

2012-07-13 Thread Jonas Gorski
BCM63XX implements the clk interface, but does not advertise it. Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- This fixes a build failure in linux-next caused by 5afae362dc79cb8b6b3965422d13d118c63d4ee4 (clk: Add non CONFIG_HAVE_CLK routines): CC arch/mips/bcm63xx/clk.o arch

[PATCH] checkpatch: whitelist SUPPORTED_*/ADVERTISED_* defines from ethtool.h

2013-04-13 Thread Jonas Gorski
| Signed-off-by: Jonas Gorski j...@openwrt.org --- scripts/checkpatch.pl |1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b28cc38..349559a4 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2931,6 +2931,7 @@ sub process

Re: rt2x00: Kconfig symbols RALINK_RT288X and RALINK_RT305X

2013-03-13 Thread Jonas Gorski
On 13 March 2013 09:59, Paul Bolle pebo...@tiscali.nl wrote: 0) Support for rt2800pci (or the rt2860/rt3090 chipsets) was added in v2.6.33 (three years ago). References to the related Kconfig symbols RALINK_RT288X and RALINK_RT305X were introduced in that release. So were checks for their

Re: rt2x00: Kconfig symbols RALINK_RT288X and RALINK_RT305X

2013-03-13 Thread Jonas Gorski
On 13 March 2013 11:03, Paul Bolle pebo...@tiscali.nl wrote: On Wed, 2013-03-13 at 10:51 +0100, Jonas Gorski wrote: The actual accepted Kconfig symbol names are different though, so they should be changed in rt2x00 to match them (SOC_RT288X and SOC_RT305X). Thanks. Note that I could not find

Re: [PATCH] MIPS: Get rid of CONFIG_CPU_HAS_LLSC again

2013-03-05 Thread Jonas Gorski
On 5 March 2013 11:03, Paul Bolle pebo...@tiscali.nl wrote: Commit f7ade3c168e4f437c11f57be012992bbb0e3075c (MIPS: Get rid of CONFIG_CPU_HAS_LLSC) did what it promised to do. But since then that macro and its Kconfig symbol popped up again. Get rid of those again. Signed-off-by: Paul Bolle

Re: [PATCH v2] MIPS: Get rid of CONFIG_CPU_HAS_LLSC again

2013-03-05 Thread Jonas Gorski
On 5 March 2013 13:20, Paul Bolle pebo...@tiscali.nl wrote: Commit f7ade3c168e4f437c11f57be012992bbb0e3075c (MIPS: Get rid of CONFIG_CPU_HAS_LLSC) did what it promised to do. But since then that macro and its Kconfig symbol popped up again. Get rid of those again. Now let's do a review of the

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

2012-08-07 Thread Jonas Gorski
make[6]: *** [arch/mips/kernel/module.o] Error 1 Signed-off-by: Jonas Gorski jonas.gor...@gmail.com --- I don't mind this patch being squashed into the original patch. The patch isn't in any stable git yet, so I assume any git id would be outdated soon anyway. Linus, I CC'd you because

Re: SPI: bcm63xx_dev_spi.h

2012-07-12 Thread Jonas Gorski
On 12 July 2012 22:55, Paul Bolle pebo...@tiscali.nl wrote: 0) Commit b42dfed83d95a3c9e9cbd708f1993a7474abb79a (spi: add Broadcom BCM63xx SPI controller driver) added drivers/spi/spi-bcm63xx.c to the mainline tree. That file includes bcm63xx_dev_spi.h. 1) bcm63xx_dev_spi.h is not part of the

Re: [PATCH] MIPS: remove USB_EHCI_BIG_ENDIAN_{DESC,MMIO} depends on architecture symbol

2013-05-02 Thread Jonas Gorski
On Thu, May 2, 2013 at 9:39 AM, EUNBONG SONG eunb.s...@samsung.com wrote: This patch removes the architecture specific symbols which prevent these configuration symbols from being selected by platforms/architectures requiring it. I reference commit 9296d94d83649e1c2f25c87dc4ead9c2ab073305.

Re: mips; boot fail after merge 3.9+

2013-05-02 Thread Jonas Gorski
On Wed, May 1, 2013 at 6:57 AM, EUNBONG SONG eunb.s...@samsung.com wrote: Hello. After merge cavium board boots fail, boot log messages are as follows. I enabled initcall_debug for debugging. I can confirm that MIPS does not seem to finish to boot after using the generic idle loop, I have the

Re: Re: [PATCH] MIPS: remove USB_EHCI_BIG_ENDIAN_{DESC,MMIO} depends on architecture symbol

2013-05-02 Thread Jonas Gorski
On Thu, May 2, 2013 at 11:27 AM, EUNBONG SONG eunb.s...@samsung.com wrote: These are selects and don't prevent anyone else from also selecting them. If you look at your referenced commit, you see it removed the /depends/, not the selects. It actually added selects to several platforms.

Re: mips; boot fail after merge 3.9+

2013-05-02 Thread Jonas Gorski
On Thu, May 2, 2013 at 12:42 PM, Thomas Gleixner t...@linutronix.de wrote: Does the patch below fix your issue ? Does not work for me either. I don't even have SMP enabled, so this codepath isn't taken for me at all. Jonas -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] MIPS: Enable interrupts before WAIT instruction.

2013-05-03 Thread Jonas Gorski
On Thu, May 2, 2013 at 11:04 PM, Thomas Gleixner t...@linutronix.de wrote: On Thu, 2 May 2013, David Daney wrote: From: David Daney david.da...@cavium.com As noted by Thomas Gleixner: commit cdbedc61c8 (mips: Use generic idle loop) broke MIPS as I did not realize that MIPS wants to

Re: Would like to form a pool of Linux copyright holders for faster GPL enforcement against Anthrax Kernels

2013-05-19 Thread Jonas Gorski
On Sun, May 19, 2013 at 12:39 PM, luke.leighton luke.leigh...@gmail.com wrote: On Sun, May 19, 2013 at 12:03 AM, Cole Johnson coleharrisjohn...@gmail.com wrote: question: what is the procedure for having that licensing explicitly added to the linux kernel sources? IIRC Linus said he will

Re: Would like to form a pool of Linux copyright holders for faster GPL enforcement against Anthrax Kernels

2013-05-19 Thread Jonas Gorski
On Sun, May 19, 2013 at 2:34 PM, luke.leighton luke.leigh...@gmail.com wrote: On Sun, May 19, 2013 at 12:19 PM, Jonas Gorski jonas.gorski+...@gmail.com wrote: But dual license means the license taker may chose which license to apply, not that you can dictate which one to use. yes

Second ethernet on kirkwood does not work when probed through DT

2013-07-06 Thread Jonas Gorski
Hello Sebastian, using your DT patches[1] (on top of 3.10) I can't get the second ethernet to work on my kirkwood board. in my dts file I use: mdio { status = okay; }; eth0 { status = okay; ethernet0-port@0 { speed = 1000; duplex = 1;

Re: Second ethernet on kirkwood does not work when probed through DT

2013-07-06 Thread Jonas Gorski
On Sat, 06 Jul 2013 23:22:22 +0200 Sebastian Hesselbarth sebastian.hesselba...@gmail.com wrote: On 07/06/2013 09:54 PM, Jonas Gorski wrote: Hello Sebastian, using your DT patches[1] (on top of 3.10) I can't get the second ethernet to work on my kirkwood board. Hi Jonas, next time

Re: Second ethernet on kirkwood does not work when probed through DT

2013-07-07 Thread Jonas Gorski
On Sun, 07 Jul 2013 12:52:52 +0200 Sebastian Hesselbarth sebastian.hesselba...@gmail.com wrote: On 07/06/2013 11:39 PM, Jonas Gorski wrote: On Sat, 06 Jul 2013 23:22:22 +0200 Sebastian Hesselbarthsebastian.hesselba...@gmail.com wrote: On 07/06/2013 09:54 PM, Jonas Gorski wrote: Hello

Re: Second ethernet on kirkwood does not work when probed through DT

2013-07-07 Thread Jonas Gorski
On Sun, 07 Jul 2013 13:36:51 +0200 Sebastian Hesselbarth sebastian.hesselba...@gmail.com wrote: On 07/07/2013 01:26 PM, Jonas Gorski wrote: On Sun, 07 Jul 2013 12:52:52 +0200 Sebastian Hesselbarthsebastian.hesselba...@gmail.com wrote: Anyway, can you please try to have both ports reg

Re: [PATCH] net: mv643xx_eth: fix DT port device name

2013-07-07 Thread Jonas Gorski
the second controller to fail on registration because of two identical device names. This fixes the issue by taking the device node's name also as port device name. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reported-by: Jonas Gorski j...@openwrt.org --- Cc: Lennert

Re: [PATCH] net: mv643xx_eth: fix DT port device name

2013-07-07 Thread Jonas Gorski
On Sun, 7 Jul 2013 23:43:41 +0200 Jonas Gorski j...@openwrt.org wrote: On Sun, 7 Jul 2013 22:33:51 +0200 Sebastian Hesselbarth sebastian.hesselba...@gmail.com wrote: Device tree support added to Marvell MV643xx ethernet driver registers port devices from port device nodes found

[PATCH] net: mv643xx_eth: do not use port number as platform device id

2013-07-07 Thread Jonas Gorski
The port number is only local to the ethernet block, not global, so there can be two ethernet blocks both using the same port, like kirkwood with both using port 0. Fix this by using the array index offset for the allocated platform devices as the id. Signed-off-by: Jonas Gorski j...@openwrt.org

[PATCH 1/2] arm: ixp4xx: set cohorent_dma_mask for ethernet platform devices

2013-07-20 Thread Jonas Gorski
ARM requires the cohorent_dma_mask set, so set it for the platform devices so that the ethernet driver has access to it. Signed-off-by: Jonas Gorski j...@openwrt.org --- arch/arm/mach-ixp4xx/fsg-setup.c | 2 ++ arch/arm/mach-ixp4xx/goramo_mlr.c| 2 ++ arch/arm/mach-ixp4xx/ixdp425-setup.c

[PATCH 0/2] net: fix ixp4xx_eth

2013-07-20 Thread Jonas Gorski
of each other, so they could go each in a different tree or both in the same, and the order does not matter. [1] https://patchwork.kernel.org/patch/2325151/ Jonas Gorski (2): arm: ixp4xx: set cohorent_dma_mask for ethernet platform devices net: ixp4xx_eth: use parent device for dma allocations

[PATCH 2/2] net: ixp4xx_eth: use parent device for dma allocations

2013-07-20 Thread Jonas Gorski
Now that the platfomr device provides a dma_cohorent_mask, use it for dma operations. This fixes ethernet on ixp4xx which was broken since 3.7. Signed-off-by: Jonas Gorski j...@openwrt.org --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 23 --- 1 file changed, 12 insertions

Re: [PATCH 2/2] staging: rtl8712: use kcalloc instead of kmalloc(x*y, ...)

2014-06-14 Thread Jonas Gorski
On Sat, Jun 14, 2014 at 1:48 PM, Vitaly Osipov vitaly.osi...@gmail.com wrote: Replaced kmalloc(x*y, ...) with kcalloc(x,y,...) Signed-off-by: Vitaly Osipov vitaly.osi...@gmail.com --- drivers/staging/rtl8712/rtl871x_mlme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: Staging:et131x: change memcpy() ether_addr_copy()

2014-03-31 Thread Jonas Gorski
On Mon, Mar 31, 2014 at 10:56 AM, Dan Carpenter dan.carpen...@oracle.com wrote: On Fri, Mar 28, 2014 at 10:27:22PM +, paulmcquad wrote: From 63f3c8948d5264ab22695502b201ff50edb9028d Mon Sep 17 00:00:00 2001 From: Paul McQuade paulmcq...@gmail.com Date: Fri, 28 Mar 2014 22:16:22 +

Re: [PATCH 2/2] rsi: fix memory leaks and error handling in rsi_91x_usb

2014-06-27 Thread Jonas Gorski
On Fri, Jun 27, 2014 at 12:51 AM, Alexey Khoroshilov khoroshi...@ispras.ru wrote: The patch fixes a couple of issues: - absence of deallocation of rsi_dev-rx_usb_urb[0] in the driver; - potential NULL pointer dereference because of lack of checks for memory allocation success in

Re: [PATCH] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-04 Thread Jonas Gorski
On Fri, Jul 4, 2014 at 7:07 PM, Emil Goode emilgo...@gmail.com wrote: We check that the struct vm_area_struct pointer vma is NULL and then dereference it. The intent must have been to check that vma is not NULL before we dereference it in the next condition. Actually if it is NULL, then it

Re: [PATCH v2 2/2] spi: add driver for Rockchip RK3xxx SoCs integrated SPI

2014-07-05 Thread Jonas Gorski
On Fri, Jul 4, 2014 at 8:32 PM, Mark Brown broo...@kernel.org wrote: On Tue, Jul 01, 2014 at 09:03:59AM +0800, addy ke wrote: In order to facilitate understanding, rockchip SPI controller IP design looks similar in its registers to designware. But IC implementation is different from

Re: [PATCH v2] MIPS: Fix incorrect NULL check in local_flush_tlb_page()

2014-07-05 Thread Jonas Gorski
On Sat, Jul 5, 2014 at 8:26 PM, Emil Goode emilgo...@gmail.com wrote: We check that the struct vm_area_struct pointer vma is NULL and then dereference it a few lines below. The intent must have been to make sure that vma is not NULL and then to check the value from cpu_context() for the

Re: [PATCH] MIPS: Remove incorrect NULL check in local_flush_tlb_page()

2014-07-06 Thread Jonas Gorski
. Reviewed-by: Jonas Gorski j...@openwrt.org --- arch/mips/mm/tlb-r3k.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mm/tlb-r3k.c b/arch/mips/mm/tlb-r3k.c index d657493..4094bbd 100644 --- a/arch/mips/mm/tlb-r3k.c +++ b/arch/mips/mm/tlb-r3k.c @@ -158,7

Re: [PATCH] MIPS: Replace CONFIG_MIPS64 and CONFIG_MIPS32_R2

2014-02-09 Thread Jonas Gorski
On Sun, Feb 9, 2014 at 2:32 PM, Paul Bolle pebo...@tiscali.nl wrote: Commit 597ce1723e0f (MIPS: Support for 64-bit FP with O32 binaries) introduced references to two undefined Kconfig macros. CONFIG_MIPS32_R2 should clearly be replaced with CONFIG_CPU_MIPS32_R2. And CONFIG_MIPS64 should

Re: [PATCH 0/7] MIPS: Move device-tree files to a common location

2014-08-22 Thread Jonas Gorski
On Sat, Aug 23, 2014 at 12:10 AM, Andrew Bresticker abres...@chromium.org wrote: On Fri, Aug 22, 2014 at 1:57 PM, David Daney ddaney.c...@gmail.com wrote: On 08/22/2014 01:42 PM, Florian Fainelli wrote: On Aug 21, 2014 3:05 PM, Andrew Bresticker abres...@chromium.org

Re: [PATCH 0/7] MIPS: Move device-tree files to a common location

2014-08-23 Thread Jonas Gorski
On Sat, Aug 23, 2014 at 3:56 PM, Arnd Bergmann a...@arndb.de wrote: Another argument is that we plan to actually move all the dts files out of the kernel into a separate project in the future. We really don't want to have the churn of moving all the files now when they get deleted in one of

Re: [PATCH 0/7] MIPS: Move device-tree files to a common location

2014-08-25 Thread Jonas Gorski
On Sat, Aug 23, 2014 at 9:50 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Sat, Aug 23, 2014 at 8:31 AM, Olof Johansson o...@lixom.net wrote: arch/arm/boot/dts/vendor/ Is this something we should do for the MIPS and update the other architectures to follow that scheme? I

Re: [PATCH 4/7] MIPS: BCM63xx: delete double assignment

2014-08-25 Thread Jonas Gorski
On Mon, Aug 25, 2014 at 1:27 PM, Ralf Baechle r...@linux-mips.org wrote: On Sat, Aug 23, 2014 at 08:33:25PM +0200, Julia Lawall wrote: Delete successive assignments to the same location. In each case, the duplicated assignment is modified to be in line with other nearby code. A simplified

Re: [PATCH] allow setting wiphy.perm_addr after driver probe

2014-08-12 Thread Jonas Gorski
On Tue, Aug 12, 2014 at 9:59 AM, Marcel Holtmann mar...@holtmann.org wrote: Hi Daniel, the way I read the nl80211 code is that the NL80211_CMD_NEW_INTERFACE requires a wiphy device to be specified. And that is actually just a number. So I have no idea what the MAC has to here. OpenWrt finds

Re: [RFC v2] device coredump: add new device coredump class

2014-09-05 Thread Jonas Gorski
On Fri, Sep 5, 2014 at 10:50 AM, Johannes Berg johan...@sipsolutions.net wrote: From: Johannes Berg johannes.b...@intel.com Can't you just send from the correct address? ;p (snip) diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index 4e7f0ff83ae7..134f763d90fd 100644 ---

Re: [PATCH 01/12] MIPS: Provide a generic plat_irq_dispatch

2014-08-31 Thread Jonas Gorski
still working. Therefore Tested-by: Jonas Gorski j...@openwrt.org Jonas -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: [PATCH V3 06/11] irqchip: bcm7120-l2: Change DT binding to allow non-contiguous IRQEN/IRQSTAT

2014-11-24 Thread Jonas Gorski
On Mon, Nov 24, 2014 at 3:40 AM, Kevin Cernekee cerne...@gmail.com wrote: To date, all supported controllers have had the IRQEN register at offset 0x00 and the IRQSTAT register at 0x04. So in DT we would typically see something like: reg = 0xf0406800 0x8; We still want to support this

Re: [PATCH V3 06/11] irqchip: bcm7120-l2: Change DT binding to allow non-contiguous IRQEN/IRQSTAT

2014-11-26 Thread Jonas Gorski
On Wed, Nov 26, 2014 at 6:18 AM, Kevin Cernekee cerne...@gmail.com wrote: On Mon, Nov 24, 2014 at 6:31 AM, Jonas Gorski j...@openwrt.org wrote: On Mon, Nov 24, 2014 at 3:40 AM, Kevin Cernekee cerne...@gmail.com wrote: To date, all supported controllers have had the IRQEN register at offset

Re: [PATCH V3 06/11] irqchip: bcm7120-l2: Change DT binding to allow non-contiguous IRQEN/IRQSTAT

2014-11-26 Thread Jonas Gorski
On Wed, Nov 26, 2014 at 10:45 AM, Jonas Gorski j...@openwrt.org wrote: As far as I can see, we have three distinct layouts here: a) An arbitrary number of 32-bit Mask/Status-pairs (3384/6838). No per thread support (well, not sure about 60333). b) An arbitrary length (32 to 128 bit) Mask

Re: [PATCH V3 06/11] irqchip: bcm7120-l2: Change DT binding to allow non-contiguous IRQEN/IRQSTAT

2014-11-26 Thread Jonas Gorski
On Wed, Nov 26, 2014 at 7:54 PM, Kevin Cernekee cerne...@gmail.com wrote: On Wed, Nov 26, 2014 at 2:25 AM, Jonas Gorski j...@openwrt.org wrote: On Wed, Nov 26, 2014 at 10:45 AM, Jonas Gorski j...@openwrt.org wrote: As far as I can see, we have three distinct layouts here: a) An arbitrary

Re: [PATCH V2 22/22] MIPS: Add multiplatform BMIPS target

2014-11-17 Thread Jonas Gorski
Hi, On Sun, Nov 16, 2014 at 1:17 AM, Kevin Cernekee cerne...@gmail.com wrote: bmips_be_defconfig supports Linux running on the following CM and DSL SoCs: - BCM3384 (BMIPS5000) cable modem application processor, BE, SMP - BCM3384 (BMIPS4355) cable modem spare CPU*, BE - BCM6328

Re: [PATCH V2 22/22] MIPS: Add multiplatform BMIPS target

2014-11-17 Thread Jonas Gorski
On Mon, Nov 17, 2014 at 1:16 PM, Arnd Bergmann a...@arndb.de wrote: I still think this is different in the sense that ARM multiplatform support is about combining platforms from separate mach-* directories, while your approach was to rewrite multiple mach-* directories into a single new one

Re: [PATCH V2 22/22] MIPS: Add multiplatform BMIPS target

2014-11-17 Thread Jonas Gorski
On Mon, Nov 17, 2014 at 9:35 PM, Kevin Cernekee cerne...@gmail.com wrote: On Mon, Nov 17, 2014 at 6:44 AM, Jonas Gorski j...@openwrt.org wrote: On Sun, Nov 16, 2014 at 1:17 AM, Kevin Cernekee cerne...@gmail.com wrote: bmips_be_defconfig supports Linux running on the following CM and DSL SoCs

Re: [PATCH V2 22/22] MIPS: Add multiplatform BMIPS target

2014-11-17 Thread Jonas Gorski
On Mon, Nov 17, 2014 at 10:21 PM, Kevin Cernekee cerne...@gmail.com wrote: Currently the bootloader is responsible for decompressing the image. On STB the bootloader typically loads a gzipped ELF file; on DSL/CM the bootloader unpacks a custom image format containing an LZMA-compressed kernel

Re: [PATCH V5 13/23] MIPS: BMIPS: Flush the readahead cache after DMA

2014-12-20 Thread Jonas Gorski
On Sat, Dec 20, 2014 at 2:39 AM, Kevin Cernekee cerne...@gmail.com wrote: On Mon, Dec 15, 2014 at 1:43 AM, Jonas Gorski j...@openwrt.org wrote: On Fri, Dec 12, 2014 at 11:07 PM, Kevin Cernekee cerne...@gmail.com wrote: BMIPS 3300/435x/438x CPUs have a readahead cache that is separate from

Re: [PATCH V5 13/23] MIPS: BMIPS: Flush the readahead cache after DMA

2014-12-15 Thread Jonas Gorski
On Fri, Dec 12, 2014 at 11:07 PM, Kevin Cernekee cerne...@gmail.com wrote: BMIPS 3300/435x/438x CPUs have a readahead cache that is separate from the L1/L2. During a DMA operation, accesses adjacent to a DMA buffer may cause parts of the DMA buffer to be prefetched into the RAC. To avoid

Re: [PATCH V4 08/16] irqchip: Add new driver for BCM7038-style level 1 interrupt controllers

2014-12-01 Thread Jonas Gorski
On Fri, Nov 28, 2014 at 5:32 AM, Kevin Cernekee cerne...@gmail.com wrote: This is the main peripheral IRQ controller on the BCM7xxx MIPS chips; it has the following characteristics: - 64 to 160+ level IRQs - Atomic set/clear registers - Reasonably predictable register layout (N status

Re: [PATCH] MIPS: bcm63xx: move bcm63xx_gpio_init() to bcm63xx_register_devices().

2015-03-16 Thread Jonas Gorski
On Mon, Mar 16, 2015 at 3:53 PM, Maxime Bizon mbi...@freebox.fr wrote: On Thu, 2015-03-12 at 17:00 +0100, Nicolas Schichan wrote: When called from prom init code, bcm63xx_gpio_init() will fail as it will call gpiochip_add() which relies on a working kmalloc() to alloc the gpio_desc array and

Re: [PATCH 1/1] ar7: replace mac address parsing

2015-04-01 Thread Jonas Gorski
On Tue, Jun 24, 2014 at 9:26 PM, Florian Fainelli flor...@openwrt.org wrote: 2014-06-24 8:48 GMT-07:00 Joe Perches j...@perches.com: On Tue, 2014-06-24 at 16:39 +0100, Daniel Walter wrote: Replace sscanf() with mac_pton(). [] diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c

Re: [PATCH v4] spi: Add SPI driver for Mikrotik RB4xx series boards

2015-03-31 Thread Jonas Gorski
Hi, On Tue, Mar 31, 2015 at 6:25 PM, Bert Vermeulen b...@biot.com wrote: This driver mediates access between the connected CPLD and other devices on the bus. The m25p80-compatible boot flash and (some models) MMC use regular SPI, bitbanged as required by the SoC. However the SPI-connected

Re: [PATCH] bcm63xx_enet: fix poll callback.

2015-03-03 Thread Jonas Gorski
On 03.03.2015 18:42, Florian Fainelli wrote: On 03/03/15 05:53, Nicolas Schichan wrote: On 03/03/2015 02:42 PM, Eric Dumazet wrote: To avoid that, I would take priv-tx_lock only once, or add a limit on the number of skbs that can be drained per round. Something like this (untested) patch

Re: [PATCH v2] spi: fsl-spi: use of_iomap() to map parameter ram on CPM1

2015-04-22 Thread Jonas Gorski
On Wed, Apr 22, 2015 at 10:46 PM, Jonas Gorski j...@openwrt.org wrote: --- v2: Use devm_ioremap_resource() instead of_iomap() Your subject and commitlog still talk about using of_iomap(), you need to update them too. Hmm I didn't see the V3. Ignore this comment (the other one still applies

Re: [PATCH v2] spi: fsl-spi: use of_iomap() to map parameter ram on CPM1

2015-04-22 Thread Jonas Gorski
Hi Christophe, On Wed, Apr 22, 2015 at 4:17 PM, Christophe Leroy christophe.le...@c-s.fr wrote: On CPM2, the SPI parameter RAM is dynamically allocated in the dualport RAM whereas in CPM1, it is statically allocated to a default address with capability to relocate it somewhere else via the use

Re: [PATCH v2] spi: fsl-spi: use of_iomap() to map parameter ram on CPM1

2015-04-22 Thread Jonas Gorski
Hi (again), as usual you only see issues *after* sending the email ... On Wed, Apr 22, 2015 at 4:17 PM, Christophe Leroy christophe.le...@c-s.fr wrote: On CPM2, the SPI parameter RAM is dynamically allocated in the dualport RAM whereas in CPM1, it is statically allocated to a default address

Re: [PATCH v2 07/12] devicetree: Add bindings for the ATH79 PLL controllers

2015-04-19 Thread Jonas Gorski
Hi, On Sun, Apr 19, 2015 at 2:58 PM, Alban Bedel al...@free.fr wrote: Signed-off-by: Alban Bedel al...@free.fr --- v2: * Fixed the node names to respect ePAPR * Fixed the missing 's' in 'fallbacks' and the 'clocks' property --- .../devicetree/bindings/clock/qca,ath79-pll.txt| 33

Re: [PATCH] MIPS: R6: memcpy bugfix - zero length overwrites memory

2015-04-28 Thread Jonas Gorski
Hi, On Tue, Apr 28, 2015 at 1:35 AM, Leonid Yegoshin leonid.yegos...@imgtec.com wrote: MIPS R6 version of memcpy has bug - then length to copy is zero and addresses are not aligned then it can overwrite a whole memory. Signed-off-by: Leonid Yegoshin leonid.yegos...@imgtec.com ---

Re: [PATCH 3/3] MTD: spi-nor: add flag to not use sector erase.

2015-05-01 Thread Jonas Gorski
Hi, On Fri, May 1, 2015 at 9:05 AM, Michal Suchanek hramr...@gmail.com wrote: On 1 May 2015 at 01:13, Marek Vasut ma...@denx.de wrote: On Thursday, April 30, 2015 at 11:13:12 PM, Michal Suchanek wrote: The sector size of the flash memory is unclear from datasheet or may possibly vary between

Re: [PATCH] mtd: Introduce CONFIG_MTD_RESERVE_END

2015-05-01 Thread Jonas Gorski
On Thu, Apr 30, 2015 at 7:36 PM, Ben Shelton ben.shel...@ni.com wrote: The reason for doing this as a Kconfig option rather than with an additional partition is that we use the same .itb boot image (and kernel arguments) for a series of embedded controllers that have different NAND flash sizes,

Re: [PATCH 2/2] adm8211: fix the possible pci cache line sizes inside switch-case

2015-05-11 Thread Jonas Gorski
Hi, On Mon, May 11, 2015 at 12:38 PM, Kalle Valo kv...@codeaurora.org wrote: Okash Khawaja okash.khaw...@gmail.com writes: Sure, I'll create v2 of the patch with updated commit log. Since it's part of a patch set, do you want me to send both the patches in the patch set together as v2 or

Re: [PATCH 2/2] adm8211: fix the possible pci cache line sizes inside switch-case

2015-05-11 Thread Jonas Gorski
On 11.05.2015 19:48, Okash Khawaja wrote: On 11 May 2015, at 14:24, Jonas Gorski j...@openwrt.org wrote: Hi, On Mon, May 11, 2015 at 12:38 PM, Kalle Valo kv...@codeaurora.org wrote: Okash Khawaja okash.khaw...@gmail.com writes: Sure, I'll create v2 of the patch with updated commit log

Re: 4.1-rc2: build issue with duplicate redefinition of _PAGE_GLOBAL_SHIFT

2015-05-13 Thread Jonas Gorski
Hi Arend, On Wed, May 13, 2015 at 8:43 PM, Arend van Spriel ar...@broadcom.com wrote: For our upstream brcm80211 drivers we build for a number of architectures including MIPS. In recent builds we get an error/warning: CC [M] drivers/net/wireless/brcm80211/brcmfmac/cfg80211.o In file

Re: [PATCH 4/5] MIPS: ath79: Fix the PCI memory size and offset of window 7

2015-04-18 Thread Jonas Gorski
Hi, On Fri, Apr 17, 2015 at 2:36 PM, Alban Bedel al...@free.fr wrote: The define AR71XX_PCI_MEM_SIZE miss one window, there is 7 windows, not 6. To make things clearer, and allow simpler code, derive AR71XX_PCI_MEM_SIZE from the newly introduced AR71XX_PCI_WIN_COUNT and AR71XX_PCI_WIN_SIZE.

Re: [PATCH v2 4/5] spi: bcm-mspi: Make BCMA optional to support non-BCMA chips

2015-04-08 Thread Jonas Gorski
Hi, On Wed, Apr 8, 2015 at 8:04 PM, Jonathan Richardson jonat...@broadcom.com wrote: The Broadcom MSPI controller is used on various chips. The driver only supported BCM53xx chips with BCMA (an AMBA bus variant). It now supports both BCMA MSPI and non-BCMA MSPI. To do this the following

Re: [PATCH v2 5/5] spi: bcm-mspi: Add support to set serial baud clock rate

2015-04-08 Thread Jonas Gorski
Hi, On Wed, Apr 8, 2015 at 8:04 PM, Jonathan Richardson jonat...@broadcom.com wrote: The driver wasn't setting the SPBR (serial clock baud rate) which caused it to run at the slowest speed possible. The driver now calculates the SPBR based on the reference clock frequency resulting in much

Re: [PATCH v2 09/12] devicetree: Add bindings for the ATH79 GPIO controllers

2015-04-19 Thread Jonas Gorski
On Sun, Apr 19, 2015 at 3:42 PM, Alban Bedel al...@free.fr wrote: These bindings support the GPIO controllers found on the Qualcomm Atheros AR7xxx/AR9XXX SoC. Signed-off-by: Alban Bedel al...@free.fr --- v2: * Add the ngpios property to have fewer fallbacks and simpler code ---

Re: [PATCH v2] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-18 Thread Jonas Gorski
Hi, On Wed, Jun 17, 2015 at 6:08 PM, Sifan Naeem sifan.na...@imgtec.com wrote: Hi Jonas, -Original Message- From: Jonas Gorski [mailto:j...@openwrt.org] Sent: 17 June 2015 15:31 To: Sifan Naeem Cc: Mark Brown; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Andrew

Re: [PATCH v2] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-17 Thread Jonas Gorski
Hi, On Wed, Jun 17, 2015 at 12:01 PM, Sifan Naeem sifan.na...@imgtec.com wrote: Same edge bit set in SPFI Control register to double the supported spfi clock speed. Setting this bit increases the supported spfi frequency from 1/8 to 1/4 of the core clock frequency. Without this bit set the

Re: [PATCH v2] spi: img-spfi: Same Edge bit set to double supported transfer speed

2015-06-17 Thread Jonas Gorski
Hi, On Wed, Jun 17, 2015 at 3:36 PM, Sifan Naeem sifan.na...@imgtec.com wrote: Hi Jonas, -Original Message- From: Jonas Gorski [mailto:j...@openwrt.org] Sent: 17 June 2015 13:12 To: Sifan Naeem Cc: Mark Brown; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Andrew

Re: [PATCH v2 2/4] dt-bindings: ARM: Mediatek: Document devicetree bindings for spi bus

2015-07-05 Thread Jonas Gorski
Hi, On Mon, Jun 29, 2015 at 3:04 PM, Leilk Liu leilk@mediatek.com wrote: Signed-off-by: Leilk Liu leilk@mediatek.com --- .../devicetree/bindings/spi/spi-mt65xx.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644

Re: [PATCH] spi: Mediatek: fix endian warnings

2015-08-12 Thread Jonas Gorski
Hi, On Tue, Aug 11, 2015 at 12:43 PM, Leilk Liu leilk@mediatek.com wrote: This patch fixes endian warnings detected by sparse: - sparse: incorrect type in argument 1 (different base types) expected unsigned int [unsigned] val got restricted __le32 [usertype] noident -

Re: [PATCH] spi: mediatek: fix spi incorrect endian usage and remove redundant clock

2015-08-18 Thread Jonas Gorski
Hi, On Tue, Aug 18, 2015 at 12:53 PM, Leilk Liu leilk@mediatek.com wrote: This patch fixes incorrect endian usage, removes redundant clock in prepare_hardware/unprepare_hardware and revises coding styles. Signed-off-by: Leilk Liu leilk@mediatek.com --- Change in this patch: 1.

  1   2   3   4   >