Re: [PATCH v1 1/1] ubifs: only check replay with inode type to judge if inode linked

2021-04-06 Thread Guochun Mao
Hi Richard, Gentle ping. On Tue, 2021-03-16 at 16:52 +0800, guochun@mediatek.com wrote: > From: Guochun Mao > > Conside the following case, it just write a big file into flash, > when complete writing, delete the file, and then power off promptly. > Next time power on, we'

Re: [PATCH v1 2/3] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting

2019-01-14 Thread Guochun Mao
On Tue, 2019-01-15 at 06:59 +, tudor.amba...@microchip.com wrote: > Hi, Ryder, > > On 01/14/2019 07:12 AM, Ryder Lee wrote: > > From: Guochun Mao > > > > SNOR_HWCAPS_READ is a basic read mode for both flash and controller, > > it should be supported, s

Re: [RESEND PATCH 2/4] mtd: spi-nor: mtk-quadspi: use ofpart for parsing partitions

2018-12-06 Thread Guochun Mao
On Thu, 2018-12-06 at 15:36 +0100, Boris Brezillon wrote: > On Thu, 29 Nov 2018 14:29:54 +0800 > Ryder Lee wrote: > > > From: Guochun Mao > > > > Replace mtd_device_register with mtd_device_parse_register for > > parsing partitions and add ofpart

Re: [RESEND PATCH 2/4] mtd: spi-nor: mtk-quadspi: use ofpart for parsing partitions

2018-12-06 Thread Guochun Mao
On Thu, 2018-12-06 at 15:36 +0100, Boris Brezillon wrote: > On Thu, 29 Nov 2018 14:29:54 +0800 > Ryder Lee wrote: > > > From: Guochun Mao > > > > Replace mtd_device_register with mtd_device_parse_register for > > parsing partitions and add ofpart

Re: [PATCH] mtd: mtk-nor: modify functions' name more generally

2018-01-14 Thread Guochun Mao
Hi Cyrille, Thank you very much. BR, Guochun Mao On Sun, 2018-01-14 at 16:23 +0100, Cyrille Pitchen wrote: > Le 18/12/2017 à 02:47, Guochun Mao a écrit : > > Since more and more Mediatek's SoC can use this driver to > > control spi-nor flash, functions' name with "mt817

Re: [PATCH] mtd: mtk-nor: modify functions' name more generally

2018-01-14 Thread Guochun Mao
Hi Cyrille, Thank you very much. BR, Guochun Mao On Sun, 2018-01-14 at 16:23 +0100, Cyrille Pitchen wrote: > Le 18/12/2017 à 02:47, Guochun Mao a écrit : > > Since more and more Mediatek's SoC can use this driver to > > control spi-nor flash, functions' name with "mt817

Re: [PATCH] mtd: mtk-nor: modify functions' name more generally

2018-01-07 Thread Guochun Mao
Hi Cyrille, Gentle ping... BR, Guochun On Mon, 2017-12-18 at 09:47 +0800, Guochun Mao wrote: > Since more and more Mediatek's SoC can use this driver to > control spi-nor flash, functions' name with "mt8173_" is > no longer properly. Replacing "mt8173_" with &

Re: [PATCH] mtd: mtk-nor: modify functions' name more generally

2018-01-07 Thread Guochun Mao
Hi Cyrille, Gentle ping... BR, Guochun On Mon, 2017-12-18 at 09:47 +0800, Guochun Mao wrote: > Since more and more Mediatek's SoC can use this driver to > control spi-nor flash, functions' name with "mt8173_" is > no longer properly. Replacing "mt8173_" with &

[PATCH] mtd: mtk-nor: modify functions' name more generally

2017-12-17 Thread Guochun Mao
Since more and more Mediatek's SoC can use this driver to control spi-nor flash, functions' name with "mt8173_" is no longer properly. Replacing "mt8173_" with "mtk_" will be more accurate to describe these functions' usable scope. Signed-off-by: Guochun

[PATCH] mtd: mtk-nor: modify functions' name more generally

2017-12-17 Thread Guochun Mao
Since more and more Mediatek's SoC can use this driver to control spi-nor flash, functions' name with "mt8173_" is no longer properly. Replacing "mt8173_" with "mtk_" will be more accurate to describe these functions' usable scope. Signed-off-by: Guochun Mao

[PATCH V1 1/1] mtd: mtk-nor: modify functions' name more generally

2017-12-17 Thread Guochun Mao
Since more and more Mediatek's SoC can use this driver to control spi-nor flash, functions' name with "mt8173_" is no longer properly. Replacing "mt8173_" with "mtk_" will be more accurate to describe these functions' usable scope. Guochun Mao (1): mtd: mtk-no

[PATCH V1 1/1] mtd: mtk-nor: modify functions' name more generally

2017-12-17 Thread Guochun Mao
Since more and more Mediatek's SoC can use this driver to control spi-nor flash, functions' name with "mt8173_" is no longer properly. Replacing "mt8173_" with "mtk_" will be more accurate to describe these functions' usable scope. Guochun Mao (1): mtd: mtk-no

Re: [PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-10-22 Thread Guochun Mao
Hi Cyrille, Marek, Gentle ping... On Wed, 2017-10-11 at 11:15 +0800, Guochun Mao wrote: > gentle ping... > > On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > > Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" > > for nor flash node's compa

Re: [PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-10-22 Thread Guochun Mao
Hi Cyrille, Marek, Gentle ping... On Wed, 2017-10-11 at 11:15 +0800, Guochun Mao wrote: > gentle ping... > > On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > > Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" > > for nor flash node's compa

Re: [PATCH v1 2/2] mtd: mtk-nor: add suspend/resume support

2017-10-10 Thread Guochun Mao
gentle ping... On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > Abstract functions of clock setting, to avoid duplicated code, > these functions been used in new feature. > Implement suspend/resume functions. > > Signed-off-by: Guochun Mao <guochun@mediatek.com>

Re: [PATCH v1 2/2] mtd: mtk-nor: add suspend/resume support

2017-10-10 Thread Guochun Mao
gentle ping... On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > Abstract functions of clock setting, to avoid duplicated code, > these functions been used in new feature. > Implement suspend/resume functions. > > Signed-off-by: Guochun Mao > --- > drivers/mtd/

Re: [PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-10-10 Thread Guochun Mao
gentle ping... On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" > for nor flash node's compatible strings. > Explicate the fallback compatible. > > Acked-by: Rob Herring <r...@kernel.org&

Re: [PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-10-10 Thread Guochun Mao
gentle ping... On Thu, 2017-09-21 at 20:45 +0800, Guochun Mao wrote: > Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" > for nor flash node's compatible strings. > Explicate the fallback compatible. > > Acked-by: Rob Herring > Signed-off-by: Guochun Mao

[PATCH v1] mtk-nor: update dt bindings and add suspend/resume support

2017-09-21 Thread Guochun Mao
These patches affect mtk-quadspi module in mtk/spi-nor. Add new compatible strings in dt bindings, add suspend/resume support in mtk-quadspi driver. Guochun Mao (2): dt-bindings: mtd: add new compatible strings and improve description mtd: mtk-nor: add suspend/resume support .../devicetree

[PATCH v1] mtk-nor: update dt bindings and add suspend/resume support

2017-09-21 Thread Guochun Mao
These patches affect mtk-quadspi module in mtk/spi-nor. Add new compatible strings in dt bindings, add suspend/resume support in mtk-quadspi driver. Guochun Mao (2): dt-bindings: mtd: add new compatible strings and improve description mtd: mtk-nor: add suspend/resume support .../devicetree

[PATCH v1 2/2] mtd: mtk-nor: add suspend/resume support

2017-09-21 Thread Guochun Mao
Abstract functions of clock setting, to avoid duplicated code, these functions been used in new feature. Implement suspend/resume functions. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- drivers/mtd/spi-nor/mtk-quadspi.c | 70 ++--- 1 file c

[PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-09-21 Thread Guochun Mao
Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Explicate the fallback compatible. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/m

[PATCH v1 2/2] mtd: mtk-nor: add suspend/resume support

2017-09-21 Thread Guochun Mao
Abstract functions of clock setting, to avoid duplicated code, these functions been used in new feature. Implement suspend/resume functions. Signed-off-by: Guochun Mao --- drivers/mtd/spi-nor/mtk-quadspi.c | 70 ++--- 1 file changed, 58 insertions(+), 12

[PATCH v1 1/2] dt-bindings: mtd: add new compatible strings and improve description

2017-09-21 Thread Guochun Mao
Add "mediatak,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Explicate the fallback compatible. Acked-by: Rob Herring Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 15 +-- 1 file changed

Re: [PATCH v5 1/1] dt-bindings: mtd: add new compatible strings and improve description

2017-08-28 Thread Guochun Mao
Hi Cyrille, It seems that I sent mail to wrong email-address ;) Please help to review this patch. Thanks a lot. Guochun On Thu, 2017-08-17 at 09:51 +0800, Guochun Mao wrote: > On Thu, 2017-08-10 at 13:21 -0500, Rob Herring wrote: > > On Fri, Aug 04, 2017 at 04:10:39PM +0800, Guochun

Re: [PATCH v5 1/1] dt-bindings: mtd: add new compatible strings and improve description

2017-08-28 Thread Guochun Mao
Hi Cyrille, It seems that I sent mail to wrong email-address ;) Please help to review this patch. Thanks a lot. Guochun On Thu, 2017-08-17 at 09:51 +0800, Guochun Mao wrote: > On Thu, 2017-08-10 at 13:21 -0500, Rob Herring wrote: > > On Fri, Aug 04, 2017 at 04:10:39PM +0800, Guochun

Re: [PATCH v5 1/1] dt-bindings: mtd: add new compatible strings and improve description

2017-08-16 Thread Guochun Mao
On Thu, 2017-08-10 at 13:21 -0500, Rob Herring wrote: > On Fri, Aug 04, 2017 at 04:10:39PM +0800, Guochun Mao wrote: > > Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" > > for nor flash node's compatible strings. > > Explicate the fallback compat

Re: [PATCH v5 1/1] dt-bindings: mtd: add new compatible strings and improve description

2017-08-16 Thread Guochun Mao
On Thu, 2017-08-10 at 13:21 -0500, Rob Herring wrote: > On Fri, Aug 04, 2017 at 04:10:39PM +0800, Guochun Mao wrote: > > Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" > > for nor flash node's compatible strings. > > Explicate the fallback compat

[PATCH v5] dt-bindings: mtd: add new compatible strings and improve description

2017-08-04 Thread Guochun Mao
Correct compatibles description and explicate fallback compatible. Guochun Mao (1): dt-bindings: mtd: add new compatible strings and improve description Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) -- 1.9.1

[PATCH v5] dt-bindings: mtd: add new compatible strings and improve description

2017-08-04 Thread Guochun Mao
Correct compatibles description and explicate fallback compatible. Guochun Mao (1): dt-bindings: mtd: add new compatible strings and improve description Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) -- 1.9.1

[PATCH v5 1/1] dt-bindings: mtd: add new compatible strings and improve description

2017-08-04 Thread Guochun Mao
Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Explicate the fallback compatible. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 15 +-- 1 file c

[PATCH v5 1/1] dt-bindings: mtd: add new compatible strings and improve description

2017-08-04 Thread Guochun Mao
Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Explicate the fallback compatible. Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt| 15 +-- 1 file changed, 9 insertions(+), 6 dele

Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

2017-08-03 Thread Guochun Mao
On Thu, 2017-08-03 at 12:47 -0500, Rob Herring wrote: > On Thu, Aug 03, 2017 at 10:16:42AM +0800, Guochun Mao wrote: > > Hi Cyrille, > > > > On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote: > > > Hi Guochun, > > > > > > Le 02/08/20

Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

2017-08-03 Thread Guochun Mao
On Thu, 2017-08-03 at 12:47 -0500, Rob Herring wrote: > On Thu, Aug 03, 2017 at 10:16:42AM +0800, Guochun Mao wrote: > > Hi Cyrille, > > > > On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote: > > > Hi Guochun, > > > > > > Le 02/08/20

Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

2017-08-02 Thread Guochun Mao
Hi Cyrille, On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote: > Hi Guochun, > > Le 02/08/2017 à 10:36, Boris Brezillon a écrit : > > Hi Matthias, > > > > On Tue, 1 Aug 2017 14:33:22 +0200 > > Matthias Brugger <matthias@gmail.com> wrote: > &

Re: [PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

2017-08-02 Thread Guochun Mao
Hi Cyrille, On Wed, 2017-08-02 at 17:31 +0200, Cyrille Pitchen wrote: > Hi Guochun, > > Le 02/08/2017 à 10:36, Boris Brezillon a écrit : > > Hi Matthias, > > > > On Tue, 1 Aug 2017 14:33:22 +0200 > > Matthias Brugger wrote: > > > >> On 0

[PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

2017-07-24 Thread Guochun Mao
Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Reviewed-by: Matthias Brugger <matthias@gmail.com> Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/mtd/mtk-quadspi.txt|2

[PATCH] dt-bindings: mtd: add new compatible strings for mtk nor controller

2017-07-24 Thread Guochun Mao
Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible strings. Reviewed-by: Matthias Brugger Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|2 ++ 1 file changed, 2 insertions(+) diff --git a/Docu

[PATCH v4 1/1] add new compatible strings for mtk nor controller

2017-07-24 Thread Guochun Mao
Improve subject. Guochun Mao (1): dt-bindings: mtd: add new compatible strings for mtk nor controller Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1

[PATCH v4 1/1] add new compatible strings for mtk nor controller

2017-07-24 Thread Guochun Mao
Improve subject. Guochun Mao (1): dt-bindings: mtd: add new compatible strings for mtk nor controller Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1

[PATCH] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/mtd/mtk-quadspi.txt|2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/d

[PATCH] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Add "mediatek,mt2712-nor" and "mediatek,mt7622-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.

[PATCH v3 1/1] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Extra add "mediatek,mt7622-nor" compatible. Guochun Mao (1): Documentation: mtk-quadspi: update DT bindings Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1

[PATCH v3 1/1] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Extra add "mediatek,mt7622-nor" compatible. Guochun Mao (1): Documentation: mtk-quadspi: update DT bindings Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1

[PATCH v2 1/1] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Sort compatible strings in alphabetic order. Guochun Mao (1): Documentation: mtk-quadspi: update DT bindings Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 1 + 1 file changed, 1 insertion(+) -- 1.9.1

[PATCH] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Add "mediatek,mt2712-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/mtd/mtk-quadspi.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt

[PATCH v2 1/1] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Sort compatible strings in alphabetic order. Guochun Mao (1): Documentation: mtk-quadspi: update DT bindings Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 1 + 1 file changed, 1 insertion(+) -- 1.9.1

[PATCH] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Add "mediatek,mt2712-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindin

[PATCH] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Add "mediatek,mt2712-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/mtd/mtk-quadspi.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt

[PATCH] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Add "mediatek,mt2712-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/devicetree/bindin

[PATCH v1 1/1] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Guochun Mao (1): Documentation: mtk-quadspi: update DT bindings Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 1 + 1 file changed, 1 insertion(+) -- 1.9.1

[PATCH v1 1/1] Documentation: mtk-quadspi: update DT bindings

2017-07-20 Thread Guochun Mao
Guochun Mao (1): Documentation: mtk-quadspi: update DT bindings Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 1 + 1 file changed, 1 insertion(+) -- 1.9.1

Re: [PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-05-10 Thread Guochun Mao
On Wed, 2017-05-10 at 12:49 +0200, Matthias Brugger wrote: > > On 14/02/17 04:58, Guochun Mao wrote: > > On Sun, 2017-02-12 at 07:35 +0800, Matthias Brugger wrote: > >> > >> On 02/06/2017 08:45 AM, Boris Brezillon wrote: > >>> Hi Guochun, >

Re: [PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-05-10 Thread Guochun Mao
On Wed, 2017-05-10 at 12:49 +0200, Matthias Brugger wrote: > > On 14/02/17 04:58, Guochun Mao wrote: > > On Sun, 2017-02-12 at 07:35 +0800, Matthias Brugger wrote: > >> > >> On 02/06/2017 08:45 AM, Boris Brezillon wrote: > >>> Hi Guochun, >

Re: [PATCH v1 1/1] mtd: mtk-nor: set controller's address width according to nor flash

2017-04-16 Thread Guochun Mao
Hi Cyrille, On Sun, 2017-04-16 at 19:18 +0200, Cyrille Pitchen wrote: > Le 13/04/2017 à 10:24, Cyrille Pitchen a écrit : > > Hi Guochun, > > > > Le 13/04/2017 à 04:40, Guochun Mao a écrit : > >> Hi Cyrille, > >> > >> On Wed, 2017-04-12 at 22:5

Re: [PATCH v1 1/1] mtd: mtk-nor: set controller's address width according to nor flash

2017-04-16 Thread Guochun Mao
Hi Cyrille, On Sun, 2017-04-16 at 19:18 +0200, Cyrille Pitchen wrote: > Le 13/04/2017 à 10:24, Cyrille Pitchen a écrit : > > Hi Guochun, > > > > Le 13/04/2017 à 04:40, Guochun Mao a écrit : > >> Hi Cyrille, > >> > >> On Wed, 2017-04-12 at 22:5

Re: [PATCH v1 1/1] mtd: mtk-nor: set controller's address width according to nor flash

2017-04-12 Thread Guochun Mao
Hi Cyrille, On Wed, 2017-04-12 at 22:57 +0200, Cyrille Pitchen wrote: > Hi Guochun, > > Le 05/04/2017 à 10:37, Guochun Mao a écrit : > > When nor's size larger than 16MByte, nor's address width maybe > > set to 3 or 4, and controller should change address width according

Re: [PATCH v1 1/1] mtd: mtk-nor: set controller's address width according to nor flash

2017-04-12 Thread Guochun Mao
Hi Cyrille, On Wed, 2017-04-12 at 22:57 +0200, Cyrille Pitchen wrote: > Hi Guochun, > > Le 05/04/2017 à 10:37, Guochun Mao a écrit : > > When nor's size larger than 16MByte, nor's address width maybe > > set to 3 or 4, and controller should change address width according

[PATCH v1 1/1] mtd: mtk-nor: set controller's address width according to nor flash

2017-04-05 Thread Guochun Mao
When nor's size larger than 16MByte, nor's address width maybe set to 3 or 4, and controller should change address width according to nor's setting. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- drivers/mtd/spi-nor/mtk-quadspi.c | 27 +++ 1 file chang

[PATCH v1 1/1] mtd: mtk-nor: set controller's address width according to nor flash

2017-04-05 Thread Guochun Mao
When nor's size larger than 16MByte, nor's address width maybe set to 3 or 4, and controller should change address width according to nor's setting. Signed-off-by: Guochun Mao --- drivers/mtd/spi-nor/mtk-quadspi.c | 27 +++ 1 file changed, 27 insertions(+) diff --git

[PATCH v1] mtd: mtk-nor: set controller's address width according to nor flas

2017-04-05 Thread Guochun Mao
Guochun Mao (1): mtd: mtk-nor: set controller's address width according to nor flash drivers/mtd/spi-nor/mtk-quadspi.c | 27 +++ 1 file changed, 27 insertions(+) -- 1.9.1

[PATCH v1] mtd: mtk-nor: set controller's address width according to nor flas

2017-04-05 Thread Guochun Mao
Guochun Mao (1): mtd: mtk-nor: set controller's address width according to nor flash drivers/mtd/spi-nor/mtk-quadspi.c | 27 +++ 1 file changed, 27 insertions(+) -- 1.9.1

Re: [PATCH V1 1/1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-04-04 Thread Guochun Mao
Hi Cyrille, Thank you for so detailed explanation. I'll check nor->addr_width in both mt8173_nor_read() and mt8173_nor_write(). Best regards, Guochun On Fri, 2017-03-31 at 10:56 +0200, Cyrille Pitchen wrote: > Le 31/03/2017 à 04:26, Guochun Mao a écrit : > > Hi Cyrille, Marek, >

Re: [PATCH V1 1/1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-04-04 Thread Guochun Mao
Hi Cyrille, Thank you for so detailed explanation. I'll check nor->addr_width in both mt8173_nor_read() and mt8173_nor_write(). Best regards, Guochun On Fri, 2017-03-31 at 10:56 +0200, Cyrille Pitchen wrote: > Le 31/03/2017 à 04:26, Guochun Mao a écrit : > > Hi Cyrille, Marek, >

Re: [PATCH V1 1/1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
Hi Cyrille, Marek, Thanks for your suggestions. On Thu, 2017-03-30 at 19:40 +0200, Cyrille Pitchen wrote: > Hi Guochun, > > Le 30/03/2017 à 10:23, Guochun Mao a écrit : > > when nor's size larger than 16MByte, nor and controller should > > enter 4Byte mode simultaneously

Re: [PATCH V1 1/1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
Hi Cyrille, Marek, Thanks for your suggestions. On Thu, 2017-03-30 at 19:40 +0200, Cyrille Pitchen wrote: > Hi Guochun, > > Le 30/03/2017 à 10:23, Guochun Mao a écrit : > > when nor's size larger than 16MByte, nor and controller should > > enter 4Byte mode simultaneously

[PATCH V1 1/1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
when nor's size larger than 16MByte, nor and controller should enter 4Byte mode simultaneously. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- drivers/mtd/spi-nor/mtk-quadspi.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/d

[PATCH V1 1/1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
when nor's size larger than 16MByte, nor and controller should enter 4Byte mode simultaneously. Signed-off-by: Guochun Mao --- drivers/mtd/spi-nor/mtk-quadspi.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/drivers/mtd/spi-nor/mtk-quadspi.c

[PATCH V1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
Guochun Mao (1): mtd: mtk-nor: set controller to 4B mode with large capacity flash drivers/mtd/spi-nor/mtk-quadspi.c | 7 +++ 1 file changed, 7 insertions(+) -- 1.9.1

[PATCH V1] mtd: mtk-nor: set controller to 4B mode with large capacity flash

2017-03-30 Thread Guochun Mao
Guochun Mao (1): mtd: mtk-nor: set controller to 4B mode with large capacity flash drivers/mtd/spi-nor/mtk-quadspi.c | 7 +++ 1 file changed, 7 insertions(+) -- 1.9.1

Re: [PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-02-13 Thread Guochun Mao
On Sun, 2017-02-12 at 07:35 +0800, Matthias Brugger wrote: > > On 02/06/2017 08:45 AM, Boris Brezillon wrote: > > Hi Guochun, > > > > On Sun, 5 Feb 2017 12:00:49 +0800 > > Guochun Mao <guochun@mediatek.com> wrote: > > > > > >>> >

Re: [PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-02-13 Thread Guochun Mao
On Sun, 2017-02-12 at 07:35 +0800, Matthias Brugger wrote: > > On 02/06/2017 08:45 AM, Boris Brezillon wrote: > > Hi Guochun, > > > > On Sun, 5 Feb 2017 12:00:49 +0800 > > Guochun Mao wrote: > > > > > >>> > >>> + nor_flash:

Re: [PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-02-04 Thread Guochun Mao
On Wed, 2017-01-25 at 11:38 +0800, Guochun Mao wrote: > Add Mediatek nor flash node. > > Signed-off-by: Guochun Mao <guochun@mediatek.com> > --- > arch/arm/boot/dts/mt2701-evb.dts | 25 + > arch/arm/boot/dts/mt2701.dtsi| 12 +++

Re: [PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-02-04 Thread Guochun Mao
On Wed, 2017-01-25 at 11:38 +0800, Guochun Mao wrote: > Add Mediatek nor flash node. > > Signed-off-by: Guochun Mao > --- > arch/arm/boot/dts/mt2701-evb.dts | 25 + > arch/arm/boot/dts/mt2701.dtsi| 12 > 2 files changed, 37 in

Re: [PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-02-01 Thread Guochun Mao
On Mon, 2017-01-30 at 13:49 +0100, Cyrille Pitchen wrote: > Le 27/01/2017 à 23:29, Rob Herring a écrit : > > On Wed, Jan 25, 2017 at 11:38:34AM +0800, Guochun Mao wrote: > >> Add "mediatek,mt2701-nor" for nor flash node's compatible. > >> > >> Signed

Re: [PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-02-01 Thread Guochun Mao
On Mon, 2017-01-30 at 13:49 +0100, Cyrille Pitchen wrote: > Le 27/01/2017 à 23:29, Rob Herring a écrit : > > On Wed, Jan 25, 2017 at 11:38:34AM +0800, Guochun Mao wrote: > >> Add "mediatek,mt2701-nor" for nor flash node's compatible. > >

[PATCH v2 0/2] addr nor flash node for mt2701

2017-01-24 Thread Guochun Mao
6-December/007637.html Guochun Mao (2): Documentation: mtk-quadspi: update DT bindings arm: dts: mt2701: add nor flash node .../devicetree/bindings/mtd/mtk-quadspi.txt| 8 ++- arch/arm/boot/dts/mt2701-evb.dts | 25 ++ arch/arm/boot/dts/m

[PATCH v2 0/2] addr nor flash node for mt2701

2017-01-24 Thread Guochun Mao
6-December/007637.html Guochun Mao (2): Documentation: mtk-quadspi: update DT bindings arm: dts: mt2701: add nor flash node .../devicetree/bindings/mtd/mtk-quadspi.txt| 8 ++- arch/arm/boot/dts/mt2701-evb.dts | 25 ++ arch/arm/boot/dts/m

[PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-24 Thread Guochun Mao
Add "mediatek,mt2701-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/mtd/mtk-quadspi.txt|8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/

[PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-24 Thread Guochun Mao
Add "mediatek,mt2701-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Doc

[PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-01-24 Thread Guochun Mao
Add Mediatek nor flash node. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 25 + arch/arm/boot/dts/mt2701.dtsi| 12 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts

[PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-01-24 Thread Guochun Mao
Add Mediatek nor flash node. Signed-off-by: Guochun Mao --- arch/arm/boot/dts/mt2701-evb.dts | 25 + arch/arm/boot/dts/mt2701.dtsi| 12 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701

Re: [PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-21 Thread Guochun Mao
Hi, On Thu, 2017-01-19 at 08:18 -0600, Rob Herring wrote: > On Thu, Jan 19, 2017 at 2:14 AM, Boris Brezillon > > One last question and I'm done: is something like that acceptable? > > > > compatible = ",",","; > > > > This can happen when someone adds support for an unsupported feature > >

Re: [PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-21 Thread Guochun Mao
Hi, On Thu, 2017-01-19 at 08:18 -0600, Rob Herring wrote: > On Thu, Jan 19, 2017 at 2:14 AM, Boris Brezillon > > One last question and I'm done: is something like that acceptable? > > > > compatible = ",",","; > > > > This can happen when someone adds support for an unsupported feature > >

[PATCH v1 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-12 Thread Guochun Mao
Add "mediatek,mt2701-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- .../devicetree/bindings/mtd/mtk-quadspi.txt|4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd

[PATCH v1 0/2] add nor flash node for mt2701

2017-01-12 Thread Guochun Mao
This patch series based on v4.10-rc2, include MT2701 spinor node and bindings. Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.html Guochun Mao (2): Documentation: mtk-quadspi:

[PATCH v1 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-12 Thread Guochun Mao
Add "mediatek,mt2701-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Doc

[PATCH v1 0/2] add nor flash node for mt2701

2017-01-12 Thread Guochun Mao
This patch series based on v4.10-rc2, include MT2701 spinor node and bindings. Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/007637.html Guochun Mao (2): Documentation: mtk-quadspi:

[PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-12 Thread Guochun Mao
Add Mediatek nor flash node. Signed-off-by: Guochun Mao <guochun@mediatek.com> --- arch/arm/boot/dts/mt2701-evb.dts | 25 + arch/arm/boot/dts/mt2701.dtsi| 12 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts

[PATCH v1 2/2] arm: dts: mt2701: add nor flash node

2017-01-12 Thread Guochun Mao
Add Mediatek nor flash node. Signed-off-by: Guochun Mao --- arch/arm/boot/dts/mt2701-evb.dts | 25 + arch/arm/boot/dts/mt2701.dtsi| 12 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701