Re: [V6 1/2] phy: ralink-usb: add driver for Mediatek/Ralink

2017-08-16 Thread Harvey Hunt
Hi Kishon, Thanks for the review. On 16/08/17 14:57, Kishon Vijay Abraham I wrote: Hi, On Tuesday 15 August 2017 06:17 PM, Harvey Hunt wrote: From: John Crispin Add a driver to setup the USB phy on Mediatek/Ralink SoCs. The driver sets up power and host mode, but also needs to configure

[V7] dt-bindings: phy: Add bindings for ralink-usb PHY

2017-08-17 Thread Harvey Hunt
From: John Crispin Add a binding for the USB phy on Mediatek/Ralink SoCs. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V7: * Add required ralink,sysctl property

[V7] phy: ralink-usb: add driver for Mediatek/Ralink

2017-08-17 Thread Harvey Hunt
From: John Crispin Add a driver to setup the USB phy on Mediatek/Ralink SoCs. The driver sets up power and host mode, but also needs to configure PHY registers for the MT7628 and MT7688. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-media

Re: [PATCH] MIPS: dts: ralink: Add Mediatek MT7628A SoC

2017-08-18 Thread Harvey Hunt
Hi Rob, Thanks for the review. On 17/08/17 22:34, Rob Herring wrote: On Tue, Aug 15, 2017 at 05:28:50PM +0100, Harvey Hunt wrote: The MT7628A is the successor to the MT7620 and pin compatible with the MT7688A, although the latter supports only a 1T1R antenna rather than a 2T2R antenna. This

[PATCH v7] mtd: nand: increase ready wait timeout and report timeouts

2015-10-06 Thread Harvey Hunt
he problem. Therefore, a pr_warn() is added when a timeout does occur so that it is easier to pinpoint similar problems in future. Signed-off-by: Alex Smith Signed-off-by: Harvey Hunt Reviewed-by: Niklas Cassel Cc: Alex Smith Cc: Zubair Lutfullah Kakakhel Cc: David Woodhouse Cc: Brian Norris

[PATCH v7,1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-10-06 Thread Harvey Hunt
-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Alex Smith Signed-off-by: Harvey Hunt --- v6 -> v7: - Add nand-ecc-mode to DT bindings. - Add nand-on-flash-bbt to DT bindings. v5 -> v6: - No change. v4 -> v5: - Rename ingenic,bch-device to ingenic,bch-controll

[PATCH v7,2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-10-06 Thread Harvey Hunt
: Harvey Hunt --- v6 -> v7: - Include linux/bitops.h. - Default ECC mode to hw. - Only check BCH if we're using hw ECC mode. - Return -ENODEV if we're using hw ECC mode and can't find BCH. - Return -ENODEV if we can't find any banks. - Use set nand_chip->dn so we can use

[PATCH v7,3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-10-06 Thread Harvey Hunt
linux-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org Cc: Alex Smith Signed-off-by: Harvey Hunt --- v6 -> v7: - Add nand-ecc-mode to DT. - Add nand-on-flash-bbt to DT. v4 -> v5: - New patch adding DT nodes for the NAND so that the

RE: [PATCH v7,3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-10-14 Thread Harvey Hunt
On 8 October 2015 at 22:23, Ezequiel Garcia < ezequ...@vanguardiasur.com.ar> wrote: >On 6 October 2015 at 13:27, Harvey Hunt wrote: >> From: Alex Smith >> >> Add device tree nodes for the NEMC and BCH to the JZ4780 device tree, >> and make use of them in the C

[PATCH v2] clk: ingenic: Allow divider value to be divided

2016-05-09 Thread Harvey Hunt
The JZ4780's MSC clock divider registers multiply the clock divider by 2. This means that MMC devices run at half their expected speed. Add the ability to divide the clock divider in order to solve this. Signed-off-by: Harvey Hunt Cc: Paul Burton Cc: Ralf Baechle Cc:

[PATCH net] drivers: net: Don't print unpopulated net_device name

2016-05-10 Thread Harvey Hunt
For ethernet devices, net_device.name will be eth%d before register_netdev() is called. Don't print the net_device name until the format string is replaced. Cc: Robert Jarzmik Cc: Barry Song Cc: Marcel Ziswiler Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: H

Re: [PATCH net] drivers: net: Don't print unpopulated net_device name

2016-05-12 Thread Harvey Hunt
Hi Stephen, On 10/05/16 19:31, Stephen Hemminger wrote: On Tue, 10 May 2016 17:43:21 +0100 Harvey Hunt wrote: For ethernet devices, net_device.name will be eth%d before register_netdev() is called. Don't print the net_device name until the format string is replaced. Cc: Robert Jarzmi

Re: [PATCH net] drivers: net: Don't print unpopulated net_device name

2016-05-12 Thread Harvey Hunt
Hi David, On 12/05/16 00:26, David Miller wrote: From: Harvey Hunt Date: Tue, 10 May 2016 17:43:21 +0100 @@ -1686,8 +1686,7 @@ dm9000_probe(struct platform_device *pdev) } if (!is_valid_ether_addr(ndev->dev_addr)) { - dev_warn(db->dev, "%s: Invalid e

[PATCH] irqchip/mips-gic: Fix IRQs in gic_dev_domain

2016-05-23 Thread Harvey Hunt
hy domain") Signed-off-by: Harvey Hunt Tested-by: Govindraj Raja # On Pistachio SoC Reviewed-by: Matt Redfearn Cc: Cc: Cc: Qais Yousef --- drivers/irqchip/irq-mips-gic.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-gic.c b/driver

[PATCH] irqchip/mips-gic: Populate irq_domain names

2016-05-23 Thread Harvey Hunt
Set the irq_domain names so that they don't default to an unhelpful value. Signed-off-by: Harvey Hunt Reviewed-by: Matt Redfearn Cc: Cc: Cc: Qais Yousef --- drivers/irqchip/irq-mips-gic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/ir

[PATCH v2 net] drivers: net: Don't print unpopulated net_device name

2016-05-17 Thread Harvey Hunt
For ethernet devices, net_device.name will be eth%d before register_netdev() is called. Don't print the net_device name until the format string is replaced. Signed-off-by: Harvey Hunt Cc: Marcel Ziswiler Cc: Robert Jarzmik Cc: Barry Song Cc: net...@vger.kernel.org Cc: linux-k

[PATCH] MIPS: lib: Mark intrinsics notrace

2016-05-25 Thread Harvey Hunt
rinsics as notrace in case the compiler decides to use them in the ftrace path. Signed-off-by: Harvey Hunt Cc: Cc: Cc: # 4.2.x- --- I've only been able to test this patch as far back as 4.2, although the issue could have existed before then. arch/mips/lib/ashldi3.c | 2 +- arch/mips/li

Re: [PATCH 03/11] MIPS: pic32mzda: fix getting timer clock rate.

2016-05-25 Thread Harvey Hunt
Hi Purna, On 17/05/16 06:05, Purna Chandra Mandal wrote: PIC32 clock driver is now implemented as platform driver instead of as part of of_clk_init(). It meants all the clock modules are available quite late in the boot sequence. So request for CPU clock by clk_get_sys() and clk_get_rate() to fi

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-16 Thread Harvey Hunt
ian's tree. Would you mind adapting your driver as described below so that I don't have to do it when it gets applied into l2-mtd/master? On Thu, 3 Dec 2015 12:02:21 + Harvey Hunt wrote: From: Alex Smith Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as well

[PATCH v8 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-02 Thread Harvey Hunt
, which would make implementing a common driver for them quite messy. Signed-off-by: Alex Smith Cc: Zubair Lutfullah Kakakhel Cc: David Woodhouse Cc: Brian Norris Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Alex Smith Signed-off-by: Harvey Hunt --- v7 ->

[PATCH v8 0/3] mtd: nand: jz4780: Add NAND and BCH drivers

2015-12-02 Thread Harvey Hunt
Hi, This series adds support for the BCH controller and NAND devices on the Ingenic JZ4780 SoC. Tested on the MIPS Creator Ci20 board. All dependencies are now in mainline. This version of the series is based on 4.4-rc3. As suggested by Boris [0], refactoring work has been done to treat NAND ch

[PATCH v8 1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-12-02 Thread Harvey Hunt
-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Alex Smith Signed-off-by: Harvey Hunt --- v7 -> v8: - Describe how NAND chips are now child nodes of the NAND controller. v6 -> v7: - Add nand-ecc-mode to DT bindings. - Add nand-on-flash-bbt to DT bindings. v5

[PATCH v8 3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-12-02 Thread Harvey Hunt
linux-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org Cc: Alex Smith Signed-off-by: Harvey Hunt --- v7 -> v8: - Describe the NAND chips as children nodes of the NAND controller. - Remove ingenic, prefix from ECC settings. - Renamed

[PATCH v9 0/3] mtd: nand: jz4780: Add NAND and BCH drivers

2015-12-03 Thread Harvey Hunt
Hi, This series adds support for the BCH controller and NAND devices on the Ingenic JZ4780 SoC. Tested on the MIPS Creator Ci20 board. All dependencies are now in mainline. This version of the series is based on 4.4-rc3. As suggested by Boris [0], refactoring work has been done to treat NAND ch

[PATCH v9 1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-12-03 Thread Harvey Hunt
-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Harvey Hunt --- v8 -> v9: - Document that partitions are represented as a child node of a NAND chip. v7 -> v8: - Describe how NAND chips are now child nodes of the NAND controller. v6 -> v7: - Add nand

[PATCH v9 3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-12-03 Thread Harvey Hunt
linux-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org Signed-off-by: Harvey Hunt --- v8 -> v9: - Represent the partition table as a subnode of a NAND chip. v7 -> v8: - Describe the NAND chips as children nodes of the NAND controller

[PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-03 Thread Harvey Hunt
, which would make implementing a common driver for them quite messy. Signed-off-by: Alex Smith Cc: Zubair Lutfullah Kakakhel Cc: David Woodhouse Cc: Brian Norris Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Harvey Hunt --- v8 -> v9: - No change. v7 -&

Re: [PATCH 05/23] mtd: nand: jz4770: kill the ->ecc_layout field

2015-12-08 Thread Harvey Hunt
Hi Boris, On 07/12/15 22:26, Boris Brezillon wrote: ->ecc_layout is not used by any board file. Kill this field to avoid any confusion. New boards are encouraged to use the default ECC layout defined in NAND core. Signed-off-by: Boris Brezillon --- arch/mips/include/asm/mach-jz4740/jz4740_na

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Harvey Hunt
Hi Boris, Thanks for the review. On 08/12/15 14:14, Boris Brezillon wrote: On Thu, 3 Dec 2015 12:02:21 + Harvey Hunt wrote: From: Alex Smith Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller. DMA is not currently implemented

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Harvey Hunt
On 08/12/15 16:12, Boris Brezillon wrote: On Tue, 8 Dec 2015 16:03:55 + Harvey Hunt wrote: static void jz4780_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) { struct jz4780_nand_chip *nand = to_jz4780_nand_chip(mtd

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Harvey Hunt
On 08/12/15 16:26, Boris Brezillon wrote: On Tue, 8 Dec 2015 16:03:55 + Harvey Hunt wrote: static void jz4780_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) { struct jz4780_nand_chip *nand = to_jz4780_nand_chip(mtd

Re: [PATCH v10 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2016-01-04 Thread Harvey Hunt
Hi Boris, Happy New Year. Thanks for the comments - I'll send out a new patchset today. On 28/12/15 08:25, Boris Brezillon wrote: Hi Harvey, I found a few remaining issues. Once fixed you can add my Reviewed-by: Boris Brezillon On Thu, 24 Dec 2015 12:20:14 + Harvey Hunt wrote:

Re: [PATCH v10 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2016-01-04 Thread Harvey Hunt
Hi Boris, On 04/01/16 11:47, Boris Brezillon wrote: Hi Harvey, On Mon, 4 Jan 2016 10:24:15 + Harvey Hunt wrote: + +static void jz4780_bch_disable(struct jz4780_bch *bch) +{ + writel(readl(bch->base + BCH_BHINT), bch->base + BCH_BHINT); + writel(BCH_BHCR_BCHE, bch

[PATCH v11 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2016-01-04 Thread Harvey Hunt
, which would make implementing a common driver for them quite messy. Signed-off-by: Alex Smith Cc: Zubair Lutfullah Kakakhel Cc: David Woodhouse Cc: Brian Norris Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Harvey Hunt Reviewed-by: Boris Brezillon --- v10

[PATCH v11 1/3] dt-bindings: binding for jz4780-{nand,bch}

2016-01-04 Thread Harvey Hunt
-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: r...@kernel.org Signed-off-by: Harvey Hunt Acked-by: Rob Herring Reviewed-by: Boris Brezillon --- v10 -> v11: - Added Boris Brezillon's Reviewed-By. v9 -> v10: - Added Rob Herring's Acked-by. v8 -> v

[PATCH v11 3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2016-01-04 Thread Harvey Hunt
linux-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org Cc: r...@kernel.org Signed-off-by: Harvey Hunt Reviewed-by: Boris Brezillon --- v10 -> v11: - Added Boris Brezillon's Reviewed-By. v9 -> v10: - No change. v8 -> v

[PATCH] MIPS: Always page align TASK_SIZE

2016-02-08 Thread Harvey Hunt
e boundary. Signed-off-by: Harvey Hunt Cc: David Daney Cc: Paul Burton Cc: James Hogan Cc: linux-kernel@vger.kernel.org --- arch/mips/include/asm/processor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/process

Re: [PATCH] MIPS: Always page align TASK_SIZE

2016-02-08 Thread Harvey Hunt
Hi David, On 02/08/2016 10:11 AM, David Daney wrote: On 02/08/2016 10:05 AM, Harvey Hunt wrote: STACK_TOP_MAX is aligned on a 32k boundary. When __bprm_mm_init() creates an initial stack for a process, it does so using STACK_TOP_MAX as the end of the vma. A process's arguments and enviro

Re: [PATCH] MIPS: Always page align TASK_SIZE

2016-02-08 Thread Harvey Hunt
Hi Joshua, On 02/08/2016 01:35 PM, Joshua Kinard wrote: On 02/08/2016 13:15, Harvey Hunt wrote: Hi David, On 02/08/2016 10:11 AM, David Daney wrote: On 02/08/2016 10:05 AM, Harvey Hunt wrote: STACK_TOP_MAX is aligned on a 32k boundary. When __bprm_mm_init() creates an initial stack for a

Re: [PATCH] MIPS: Always page align TASK_SIZE

2016-02-08 Thread Harvey Hunt
On 02/08/2016 02:08 PM, David Daney wrote: On 02/08/2016 01:48 PM, Harvey Hunt wrote: Hi Joshua, On 02/08/2016 01:35 PM, Joshua Kinard wrote: On 02/08/2016 13:15, Harvey Hunt wrote: Hi David, On 02/08/2016 10:11 AM, David Daney wrote: On 02/08/2016 10:05 AM, Harvey Hunt wrote

Re: [PATCH v3 07/52] mtd: nand: core: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-26 Thread Harvey Hunt
Hi Boris, On 26/02/16 00:57, Boris Brezillon wrote: The mtd_ooblayout_xxx() helper functions have been added to avoid direct accesses to the ecclayout field, and thus ease for future reworks. Use these helpers in all places where the oobfree[] and eccpos[] arrays where directly accessed. Signed

Re: [PATCH v3 07/52] mtd: nand: core: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-26 Thread Harvey Hunt
Hi Boris, On 26/02/16 15:10, Boris Brezillon wrote: Hi Harvey, On Fri, 26 Feb 2016 14:35:08 + Harvey Hunt wrote: [...] I'll look into this more later today, but wanted to run it by you in case you have any thoughts. Can you apply this patch [1], and let me know if you se

[PATCH] MIPS: ci20_defconfig: Enable NAND and UBIFS support

2016-02-26 Thread Harvey Hunt
Update the Ci20's defconfig to enable the JZ4780's NAND driver and therefore access to the UBIFS rootfs. Signed-off-by: Harvey Hunt Cc: Paul Burton Cc: linux-kernel@vger.kernel.org --- arch/mips/configs/ci20_defconfig | 14 +- 1 file changed, 9 insertions(+), 5 deletion

Re: [PATCH v3 07/52] mtd: nand: core: use mtd_ooblayout_xxx() helpers where appropriate

2016-02-29 Thread Harvey Hunt
Hi Boris, On 26/02/16 18:33, Boris Brezillon wrote: Hi Harvey, On Fri, 26 Feb 2016 15:17:28 + Harvey Hunt wrote: Hi Boris, On 26/02/16 15:10, Boris Brezillon wrote: Hi Harvey, On Fri, 26 Feb 2016 14:35:08 + Harvey Hunt wrote: [...] I'll look into this more later today

Re: [PATCH v3 39/52] mtd: nand: jz4780: switch to mtd_ooblayout_ops

2016-02-29 Thread Harvey Hunt
oblayout_lp_ops; - chip->ecc.layout = layout; return 0; } With your patch applied [0] that you gave me earlier in the patchset, I am able to boot to userland on my Ci20 (jz4780_{nand,bch}) with a NAND rootfs. So, dependant upon that patch (or equivalent) being added to this patchset: Tested-by: Harvey Hunt Thanks, Harvey [0] http://code.bulix.org/36oytz-91960

[PATCH] libata: Align ata_device's id on a cacheline

2016-02-24 Thread Harvey Hunt
uring that the id buffer is cacheline aligned. This issue is similar to that fixed by Commit 84bda12af31f ("libata: align ap->sector_buf"). Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: # 2.6.18 --- This patch is based on libata/for-4.6 include/linux/libata.h | 2

Re: [PATCH v7] mtd: nand: increase ready wait timeout and report timeouts

2016-02-26 Thread Harvey Hunt
-by: Boris Brezillon Same here. Reviewed-by: Richard Weinberger Thanks, //richard -cc IMG list (I left it in my gitconfig when I originally sent this patch...). Thanks for debugging and fixing this - proposed patch looks good to me: Reviewed-by: Harvey Hunt Thanks, Harvey

Re: [PATCH] mtd: nand: jz4740: Remove unused local variable

2016-04-19 Thread Harvey Hunt
; unsigned int timeout = 1000; for (i = 0; i < 9; ++i) Acked-by: Harvey Hunt Thanks, Harvey

Re: [PATCH] mtd: nand: document the NAND controller/NAND chip DT representation

2016-03-31 Thread Harvey Hunt
Hi Boris, On 31/03/16 14:57, Boris Brezillon wrote: Standardize the NAND controller/NAND chip DT representation. Now, all new NAND controller drivers should comply with this representation, even if they are only supporting a single NAND chip. Existing drivers can keep support for the old repres

Re: [PATCH] mtd: nand: document the NAND controller/NAND chip DT representation

2016-03-31 Thread Harvey Hunt
Hi, On 31/03/16 16:19, Boris Brezillon wrote: On Thu, 31 Mar 2016 16:15:26 +0100 Harvey Hunt wrote: Hi Boris, On 31/03/16 14:57, Boris Brezillon wrote: Standardize the NAND controller/NAND chip DT representation. Now, all new NAND controller drivers should comply with this representation

Re: [PATCH 01/12] mtd: nand: remove unneeded of_mtd.h inclusions

2016-04-01 Thread Harvey Hunt
/nand/jz4780_nand.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include Looks good to me. Acked-by: Harvey Hunt Thanks, Harvey

Re: [PATCH v7,1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-11-17 Thread Harvey Hunt
Hi Boris, On 04/11/15 07:57, Boris Brezillon wrote: Hi Harvey, On Tue, 6 Oct 2015 17:27:15 +0100 Harvey Hunt wrote: From: Alex Smith Add DT bindings for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller, used by the jz4780_{nand,bch} drivers

Re: [PATCH v7,1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-11-17 Thread Harvey Hunt
Hi Boris, On 04/11/15 07:57, Boris Brezillon wrote: Hi Harvey, On Tue, 6 Oct 2015 17:27:15 +0100 Harvey Hunt wrote: From: Alex Smith Add DT bindings for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller, used by the jz4780_{nand,bch} drivers

Re: [PATCH v7,3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-11-17 Thread Harvey Hunt
ource/Documentation/devicetree/bindings/mtd/brcm,brcmnand.txt#L119 [2]http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/mtd/sunxi-nand.txt#L28 Thanks, Paul __ Linux MTD discussion mailing list http://lists.infradead.org/mailm

Re: [PATCH v7, 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-11-17 Thread Harvey Hunt
chip = &nand->chip; + mtd->priv = chip; + mtd->owner = THIS_MODULE; + mtd->name = DRV_NAME; + mtd->dev.parent = dev; + + chip->dn = dev->of_node; chip->dn has recently been renamed to chip->flash_node. Thanks, I'll change this.

Re: [PATCH] MIPS: pic32mzda: fix linker error for pic32_get_pbclk().

2016-06-02 Thread Harvey Hunt
rom time.c. Maybe "early_clk.c isn't compiled and so time.c fails to link"? Fix it by compiling early_clk.c always. Also sort files in alphabetical order. Cc: Harvey Hunt Cc: Ralf Baechle Cc: linux-m...@linux-mips.org Cc: Joshua Henderson Signed-off-by: Purna Chandra Manda

Re: [PATCH] MIPS: lib: Mark intrinsics notrace

2016-05-31 Thread Harvey Hunt
Hi Ralf, On 29/05/16 22:03, Ralf Baechle wrote: On Wed, May 25, 2016 at 11:06:35AM +0100, Harvey Hunt wrote: On certain MIPS32 devices, the ftrace tracer "function_graph" uses __lshrdi3() during the capturing of trace data. ftrace then attempts to trace __lshrdi3() which leads t

[PATCH] MIPS: tools: Fix relocs tool compiler warnings

2016-06-16 Thread Harvey Hunt
ill break strict-aliasing rules [-Wstrict-aliasing] rel_type(ELF_R_TYPE(rel->r_info)), ^~~~ Fix them by making Elf64_Mips_Rela a union Signed-off-by: Harvey Hunt Cc: Matt Redfearn Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips/boot/tools/relocs_64.c | 19 +++

[PATCH] MIPS: Factor o32 specific code into signal_o32.c

2016-06-17 Thread Harvey Hunt
, Fix this by moving the o32 specific code into signal_o32.c and updating the Makefile accordingly. Signed-off-by: Harvey Hunt Cc: Leonid Yegoshin Cc: Alex Smith Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips/include/asm/signal.h | 2 +- arch/mips/kernel/Makef

[PATCH] MAINTAINERS: Add maintainer entry for Ingenic JZ4780 NAND driver

2016-08-30 Thread Harvey Hunt
Signed-off-by: Harvey Hunt Cc: Zubair Lutfullah Kakakhel Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 71aa5da..28d2d5f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH] mtd: nand: jz4780: Update MODULE_AUTHOR email address

2016-06-30 Thread Harvey Hunt
Emails will bounce from my imgtec address, so update it to a new one. Signed-off-by: Harvey Hunt Cc: Harvey Hunt Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/mtd/nand/jz4780_bch.c | 2 +- drivers/mtd/nand/jz4780_nand.c | 2 +- 2 files changed, 2 insertions

Re: [PATCH 3/5] rtc: rtc-jz4740: Add support for devicetree

2016-03-19 Thread Harvey Hunt
Hi Alexandre, On 17/03/16 12:08, Alexandre Belloni wrote: On 05/03/2016 at 23:38:49 +0100, Paul Cercueil wrote : Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/

[PATCH] clk: ingenic: Allow divider value to be right shifted

2015-12-24 Thread Harvey Hunt
The JZ4780's MSC clock divider registers multiply the clock divider by 2. This means that MSC devices run at half their expected speed. Shift the clock divider for the affected registers to solve this. Signed-off-by: Harvey Hunt --- drivers/clk/ingenic/cgu.c| 11 ++- driver

[PATCH v10 1/3] dt-bindings: binding for jz4780-{nand,bch}

2015-12-24 Thread Harvey Hunt
-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: r...@kernel.org Signed-off-by: Harvey Hunt Acked-by: Rob Herring --- v9 -> v10: - Added Rob Herring's Acked-by. v8 -> v9: - Document that partitions are represented as a child node of a NAND chip. v7 -> v8:

[PATCH v10 3/3] MIPS: dts: jz4780/ci20: Add NEMC, BCH and NAND device tree nodes

2015-12-24 Thread Harvey Hunt
linux-...@lists.infradead.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org Cc: r...@kernel.org Signed-off-by: Harvey Hunt --- v9 -> v10: - No change. v8 -> v9: - Represent the partition table as a subnode of a NAND chip. v7 -> v8: - Describe the

[PATCH v10 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-24 Thread Harvey Hunt
, which would make implementing a common driver for them quite messy. Signed-off-by: Alex Smith Cc: Zubair Lutfullah Kakakhel Cc: David Woodhouse Cc: Brian Norris Cc: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Harvey Hunt --- v9 -> v10: - Replace uint{8

[PATCH 1/2] MIPS: Ci20: Enable GPIO driver

2017-07-07 Thread Harvey Hunt
Update the Ci20's defconfig to enable the JZ4780's GPIO driver. Signed-off-by: Harvey Hunt Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org --- Ralf, both of these patches rely on Paul Cercueil's pinctrl and gpio patches from Linus Walleij's 4.13 pinctrl pull

[PATCH 2/2] MIPS: dts: Ci20: Add ethernet and fixed-regulator nodes

2017-07-07 Thread Harvey Hunt
Add devicetree nodes for the DM9000 and the ethernet power regulator. Additionally, add a new pinctrl node for the ethernet chip's pins. Signed-off-by: Harvey Hunt Cc: Zubair Lutfullah Kakakhel Cc: Paul Burton Cc: Rob Herring Cc: Mark Rutland Cc: Paul Cercueil Cc: Linus Walleij

[PATCH 1/2] MIPS: ralink: Fix build error due to missing header

2017-07-18 Thread Harvey Hunt
_raw_readl(rt_sysc_membase + reg); Fix this by including . Signed-off-by: Harvey Hunt Fixes: 26dd3e4ff9ac ("MIPS: Audit and remove any unnecessary uses of module.h") Cc: #4.11+ Cc: John Crispin Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips/inc

[PATCH 2/2] MIPS: ralink: mt7620: Add missing header

2017-07-18 Thread Harvey Hunt
target 'arch/mips/ralink/mt7620.o' failed Signed-off-by: Harvey Hunt Cc: John Crispin Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips/ralink/mt7620.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/ralink/mt7620.c b/arch/mips/ralink/mt7620.c

[PATCH] Documentation/devicetree: Update links to PCI DT bindings

2017-07-18 Thread Harvey Hunt
Update links to the PDFs of PCI and interrupt mapping bindings, as the previous links are broken. Signed-off-by: Harvey Hunt Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Documentation/devicetree/bindings/pci/pci.txt | 4

Re: [PATCH 1/2] MIPS: ralink: Fix build error due to missing header

2017-07-19 Thread Harvey Hunt
Hi Ralf, On 18/07/17 23:01, Ralf Baechle wrote: On Tue, Jul 18, 2017 at 02:25:45PM +0100, Harvey Hunt wrote: Previously, was included before ralink_regs.h in all ralink files - leading to being implicitly included. After commit 26dd3e4ff9ac ("MIPS: Audit and remove any unnecessary us

Re: [V4 1/2] phy: ralink-usb: add driver for Mediatek/Ralink

2017-08-10 Thread Harvey Hunt
Hi James, On 09/08/17 23:23, James Hogan wrote: On 9 August 2017 10:35:39 BST, Harvey Hunt wrote: From: John Crispin Add a driver to setup the USB phy on Mediatek/Ralink SoCs. The driver is trivial and only sets up power and host mode. Signed-off-by: John Crispin Signed-off-by: Harvey

[V5 2/2] dt-bindings: phy: Add bindings for ralink-usb PHY

2017-08-11 Thread Harvey Hunt
From: John Crispin Add a binding for the USB phy on Mediatek/Ralink SoCs. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V5: * None Changes in V4: * None Changes in

[V5 1/2] phy: ralink-usb: add driver for Mediatek/Ralink

2017-08-11 Thread Harvey Hunt
From: John Crispin Add a driver to setup the USB phy on Mediatek/Ralink SoCs. The driver is trivial and only sets up power and host mode. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V5 * Depend

Re: [PATCH] phy: ralink: fix 64-bit build warning

2017-08-23 Thread Harvey Hunt
ink") Signed-off-by: Arnd Bergmann --- drivers/phy/ralink/phy-ralink-usb.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) [...] Thanks for fixing this - it was on my TODO list. Tested-by Harvey Hunt Reviewed-by Harvey Hunt Thanks, Harvey

[PATCH] MIPS: mt7620: Rename uartlite to serial

2017-09-01 Thread Harvey Hunt
Previously, mt7620.c defined the clocks for uarts with the names uartlite, uart1 and uart2. Rename them to serial{0,1,2} and update the devicetree node names. Signed-off-by: Harvey Hunt Cc: devicet...@vger.kernel.org Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips

Re: [PATCH 2/3] MIPS: dts: Add VoCore2 board

2017-08-18 Thread Harvey Hunt
Hi Rob, Thanks for the review. On 17/08/17 22:36, Rob Herring wrote: On Tue, Aug 15, 2017 at 05:32:52PM +0100, Harvey Hunt wrote: The VoCore2 board is a low cost MT7628A based board with 128MB RAM, 16MB flash and multiple external peripherals. This initial DTS provides enough support to get

Re: [PATCH] MIPS: dts: ralink: Add Mediatek MT7628A SoC

2017-08-18 Thread Harvey Hunt
Hi Rob, On 18/08/17 15:04, Rob Herring wrote: On Fri, Aug 18, 2017 at 4:42 AM, Harvey Hunt wrote: Hi Rob, Thanks for the review. On 17/08/17 22:34, Rob Herring wrote: On Tue, Aug 15, 2017 at 05:28:50PM +0100, Harvey Hunt wrote: The MT7628A is the successor to the MT7620 and pin

[V2 2/4] dt-bindings: vendors: Add VoCore as a vendor

2017-08-21 Thread Harvey Hunt
VoCore are a manufacturer of devices such as the VoCore2. Signed-off-by: Harvey Hunt Acked-by: Rob Herring Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-m...@linux-mips.org --- Changes in V2: - None Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1

[V2 1/4] MIPS: dts: ralink: Add Mediatek MT7628A SoC

2017-08-21 Thread Harvey Hunt
- Reset controller Signed-off-by: Harvey Hunt Cc: linux-m...@linux-mips.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Ralf: I've added this patch to both my vocore2 and omega2+ patchsets for ease of review, please only mer

[V2 2/3] MIPS: Add Onion Omega2+ board

2017-08-21 Thread Harvey Hunt
The Onion Omega2+ is an MT7688A based board that has 128MB RAM and multiple peripherals. The MT7688A is pin compatible with the MT7628A, although the former supports a 1T1R antenna whereas the MT7628A supports a 2R2T antenna. Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc

[V2 3/3] MIPS: configs: Add Onion Omega2+ defconfig

2017-08-21 Thread Harvey Hunt
Create a defconfig for the Omega2+ that reaches userspace and allows use of the USB port. Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org --- Changes in V2: - Remove CONFIG_PANIC_ON_OOPS arch/mips/configs/omega2p_defconfig | 129

[V2 4/4] MIPS: configs: Add VoCore2 defconfig

2017-08-21 Thread Harvey Hunt
Enabled supported drivers, including: - USB PHY - EHCI - UART Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org --- Changes in V2: - Remove CONFIG_PANIC_ON_OOPS arch/mips/configs/vocore2_defconfig | 129 1

[V2 1/4] MIPS: dts: ralink: Add Mediatek MT7628A SoC

2017-08-21 Thread Harvey Hunt
- Reset controller Signed-off-by: Harvey Hunt Cc: linux-m...@linux-mips.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Ralf: I've added this patch to both my vocore2 and omega2+ patchsets for ease of review, please only mer

[V2 3/4] MIPS: dts: Add Vocore2 board

2017-08-21 Thread Harvey Hunt
The VoCore2 board is a low cost MT7628A based board with 128MB RAM, 16MB flash and multiple external peripherals. This initial DTS provides enough support to get to userland and use the USB port. Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc

[V3 1/2] phy: ralink-usb: add driver for Mediatek/Ralink

2017-08-03 Thread Harvey Hunt
From: John Crispin Add a driver to setup the USB phy on Mediatek/Ralink SoCs. The driver is trivial and only sets up power and host mode. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V3

[V3 2/2] dt-bindings: phy: Add bindings for ralink-usb PHY

2017-08-03 Thread Harvey Hunt
From: John Crispin Add a binding for the USB phy on Mediatek/Ralink SoCs. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V3: * Split out from first patch

[V4 2/2] dt-bindings: phy: Add bindings for ralink-usb PHY

2017-08-09 Thread Harvey Hunt
From: John Crispin Add a binding for the USB phy on Mediatek/Ralink SoCs. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V4: * None Changes in V3: * Split out from

[V4 1/2] phy: ralink-usb: add driver for Mediatek/Ralink

2017-08-09 Thread Harvey Hunt
From: John Crispin Add a driver to setup the USB phy on Mediatek/Ralink SoCs. The driver is trivial and only sets up power and host mode. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V4 * Remove

[V6 2/2] dt-bindings: phy: Add bindings for ralink-usb PHY

2017-08-15 Thread Harvey Hunt
From: John Crispin Add a binding for the USB phy on Mediatek/Ralink SoCs. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Changes in V6: * Add MT7628 binding * Add optional reg

[V6 1/2] phy: ralink-usb: add driver for Mediatek/Ralink

2017-08-15 Thread Harvey Hunt
From: John Crispin Add a driver to setup the USB phy on Mediatek/Ralink SoCs. The driver sets up power and host mode, but also needs to configure PHY registers for the MT7628 and MT7688. Signed-off-by: John Crispin Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-media

[PATCH] MIPS: dts: ralink: Add Mediatek MT7628A SoC

2017-08-15 Thread Harvey Hunt
- Reset controller Signed-off-by: Harvey Hunt Cc: John Crispin Cc: linux-m...@linux-mips.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media...@lists.infradead.org --- Documentation/devicetree/bindings/mips/ralink.txt | 1 + arch/mips/boot/dts/ralink

[PATCH 1/3] dt-bindings: vendors: Add VoCore as a vendor

2017-08-15 Thread Harvey Hunt
VoCore are a manufacturer of devices such as the VoCore2. Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-m...@linux-mips.org --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH 2/3] MIPS: dts: Add VoCore2 board

2017-08-15 Thread Harvey Hunt
The VoCore2 board is a low cost MT7628A based board with 128MB RAM, 16MB flash and multiple external peripherals. This initial DTS provides enough support to get to userland and use the USB port. Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: devicet...@vger.kernel.org Cc

[PATCH 3/3] MIPS: configs: Add VoCore2 defconfig

2017-08-15 Thread Harvey Hunt
Enabled supported drivers, including: - USB PHY - EHCI - UART Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org --- arch/mips/configs/vocore2_defconfig | 130 1 file changed, 130 insertions(+) create mode

[PATCH 1/2] MIPS: Add Onion Omega2+ board

2017-08-15 Thread Harvey Hunt
The Onion Omega2+ is an MT7688A based board that has 128MB RAM and multiple peripherals. The MT7688A is pin compatible with the MT7628A, although the former supports a 1T1R antenna whereas the MT7628A supports a 2R2T antenna. Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc

[PATCH 2/2] MIPS: configs: Add Onion Omega2+ defconfig

2017-08-15 Thread Harvey Hunt
Create a defconfig for the Omega2+ that reaches userspace and allows use of the USB port. Signed-off-by: Harvey Hunt Cc: linux-kernel@vger.kernel.org Cc: linux-m...@linux-mips.org --- arch/mips/configs/omega2p_defconfig | 130 1 file changed, 130 insertions

Re: [PATCH] dt-bindings: update OpenFirmware document links to devicetree.org

2017-08-01 Thread Harvey Hunt
Hi Rob, On 01/08/17 17:03, Rob Herring wrote: The mirrors for old, but still referenced OF documents have disappeared. A new mirror has been setup on devicetree.org at: http://devicetree.org/open-firmware/home.html [...] Thanks for finding a new mirror. Reviewed-by: Harvey Hunt Cheers

[tip:irq/urgent] irqchip/mips-gic: Fix IRQs in gic_dev_domain

2016-06-14 Thread tip-bot for Harvey Hunt
Commit-ID: 4b2312bd0592708c85ed94368c874819e7013309 Gitweb: http://git.kernel.org/tip/4b2312bd0592708c85ed94368c874819e7013309 Author: Harvey Hunt AuthorDate: Mon, 23 May 2016 12:05:52 +0100 Committer: Thomas Gleixner CommitDate: Tue, 14 Jun 2016 11:41:57 +0200 irqchip/mips-gic: Fix

  1   2   >