Re: [RFC 0/5] rockchip_sfc: add support for Rockchip SFC

2021-06-05 Thread Jon Lin
On 6/4/21 10:40 PM, Chris Morgan wrote: On Fri, Jun 04, 2021 at 09:42:18PM +0800, 林鼎强 wrote: Hi Chris: It's my honor to read about spi-rockchip-sfc driver from you, and your code has made a big difference to me. Recently, we happen to be willing to submit the spi-mem rk sfc drivers, and we

[PATCH v6 4/5] mtd: spi-nor-ids: Add XTX XT25F128B

2021-06-30 Thread Jon Lin
From: Chris Morgan Adds support for XT25F128B used on Odroid Go Advance. Unfortunately this chip uses a continuation code which I cannot seem to parse, so there are possibly going to be collisions with chips that use the same manufacturer/ID. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin

[PATCH v6 5/5] rockchip: px30: add support for SFC for Odroid Go Advance

2021-06-30 Thread Jon Lin
and rx lines to 2 for this reason. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 17 + arch/arm/dts/rk3326-odroid-go2.dts | 16 2 files changed, 33 insertions(+) diff --git

[PATCH v6 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-06-30 Thread Jon Lin
-off-by: Jon Lin --- Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished status Changes in v5: - Support dma transfer - Add CONFIG_IS_ENABLED(CLK) limitation - Support spinand devices - Support SFC ver4 ver5 - Using "rockchip, sfc" as com

[PATCH v6 0/5] rockchip_sfc: add support for Rockchip SFC

2021-06-30 Thread Jon Lin
Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished status Changes in v5: - Support dma transfer - Add CONFIG_IS_ENABLED(CLK) limitation - Support spinand devices - Support SFC ver4 ver5 - Using "rockchip, sfc" as compatible id - Get clock from

[PATCH v6 2/5] rockchip: px30: Add support for using SFC

2021-06-30 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

[PATCH v6 3/5] rockchip: px30: add the serial flash controller

2021-06-30 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v5) Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30.dtsi | 38 +++

[PATCH v5 5/5] rockchip: px30: add support for SFC for Odroid Go Advance

2021-06-29 Thread Jon Lin
and rx lines to 2 for this reason. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 17 + arch/arm/dts/rk3326-odroid-go2.dts | 16 2 files changed, 33 insertions(+) diff --git

[PATCH v5 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-06-29 Thread Jon Lin
-off-by: Jon Lin --- Changes in v5: - Support dma transfer - Add CONFIG_IS_ENABLED(CLK) limitation - Support spinand devices - Support SFC ver4 ver5 - Using "rockchip, sfc" as compatible id - Get clock from the index to compatible with those case which's clock-names is not parsed Cha

[PATCH v5 0/5] rockchip_sfc: add support for Rockchip SFC

2021-06-29 Thread Jon Lin
Changes in v5: - Support dma transfer - Add CONFIG_IS_ENABLED(CLK) limitation - Support spinand devices - Support SFC ver4 ver5 - Using "rockchip, sfc" as compatible id - Get clock from the index to compatible with those case which's clock-names is not parsed - px30 use "rockchip, sfc" as

[PATCH v5 2/5] rockchip: px30: Add support for using SFC

2021-06-29 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

[PATCH v5 4/5] mtd: spi-nor-ids: Add XTX XT25F128B

2021-06-29 Thread Jon Lin
From: Chris Morgan Adds support for XT25F128B used on Odroid Go Advance. Unfortunately this chip uses a continuation code which I cannot seem to parse, so there are possibly going to be collisions with chips that use the same manufacturer/ID. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin

[PATCH v5 3/5] rockchip: px30: add the serial flash controller

2021-06-29 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30.dtsi | 38 ++ 1 file c

[PATCH v2 1/2] spi: rockchip_sfc: Impletment set_speed logic

2021-08-18 Thread Jon Lin
Set clock related processing into set_speed logic. And Optimize printing format. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) drivers/spi/rockchip_sfc.c | 83 ++ 1 file changed, 40 insertions(+), 43 deletions(-) diff --git

[PATCH v2 2/2] spi: rockchip_sfc: Using read_poll

2021-08-18 Thread Jon Lin
Using read_poll logic. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v2: - Fix assigned but never used return error codes drivers/spi/rockchip_sfc.c | 67 -- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/drivers/spi

Re: [PATCH 3/3] rockchip: px30: Change sfc node to match upstream linux proposed

2021-08-18 Thread Jon Lin
On 2021/8/19 1:13, Chris Morgan wrote: On Tue, Aug 17, 2021 at 09:41:01AM +0800, Jon Lin wrote: TX single line is more compatible for corresponding board Signed-off-by: Jon Lin --- There are still some bugs with this. Note that if you want for now you can just abandon this patch (or fix

[PATCH 1/2] spi: rockchip_sfc: Impletment set_speed logic

2021-08-18 Thread Jon Lin
Set clock related processing into set_speed logic. And Optimize printing format. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- drivers/spi/rockchip_sfc.c | 83 ++ 1 file changed, 40 insertions(+), 43 deletions(-) diff --git a/drivers/spi

[PATCH 2/2] spi: rockchip_sfc: Using read_poll

2021-08-18 Thread Jon Lin
Using read_poll logic. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- drivers/spi/rockchip_sfc.c | 67 -- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/drivers/spi/rockchip_sfc.c b/drivers/spi/rockchip_sfc.c index 2028b28e26

Re: [PATCH v8 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-16 Thread Jon Lin
On 2021/8/14 0:48, Chris Morgan wrote: On Fri, Aug 13, 2021 at 09:53:03AM +0800, Jon Lin wrote: Here is the point, Can you take a try. diff --git a/drivers/spi/rockchip_sfc.c b/drivers/spi/rockchip_sfc.c index 8173724ecd..33c5344c70 100644 --- a/drivers/spi/rockchip_sfc.c +++ b/drivers/spi

Re: [PATCH v8 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-16 Thread Jon Lin
On 2021/8/16 23:22, Chris Morgan wrote: On Mon, Aug 16, 2021 at 09:00:59PM +0800, Jon Lin wrote: On 2021/8/14 0:48, Chris Morgan wrote: On Fri, Aug 13, 2021 at 09:53:03AM +0800, Jon Lin wrote: Here is the point, Can you take a try. diff --git a/drivers/spi/rockchip_sfc.c b/drivers/spi

[PATCH 1/3] spi: rockchip_sfc: Impletment set_speed logic

2021-08-16 Thread Jon Lin
Set clock related processing into set_speed logic. And Optimize printing format. Signed-off-by: Jon Lin --- drivers/spi/rockchip_sfc.c | 83 ++ 1 file changed, 40 insertions(+), 43 deletions(-) diff --git a/drivers/spi/rockchip_sfc.c b/drivers/spi

[PATCH 3/3] rockchip: px30: Change sfc node to match upstream linux proposed

2021-08-16 Thread Jon Lin
TX single line is more compatible for corresponding board Signed-off-by: Jon Lin --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 2 +- arch/arm/dts/rk3326-odroid-go2.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi

[PATCH 2/3] spi: rockchip_sfc: Using read_poll

2021-08-16 Thread Jon Lin
Using read_poll logic. Signed-off-by: Jon Lin --- drivers/spi/rockchip_sfc.c | 67 -- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/drivers/spi/rockchip_sfc.c b/drivers/spi/rockchip_sfc.c index 2028b28e26..33c5344c70 100644 --- a/drivers

[PATCH v3 2/2] spi: rockchip_sfc: Using read_poll

2021-09-17 Thread Jon Lin
Using read_poll logic. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v2) Changes in v2: - Fix assigned but never used return error codes drivers/spi/rockchip_sfc.c | 67 -- 1 file changed, 35 insertions(+), 32 deletions(-) diff

[PATCH v3 1/2] spi: rockchip_sfc: Implement set_speed logic

2021-09-17 Thread Jon Lin
Set clock related processing into set_speed logic. And Optimize printing format. Tested-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v3: - Remove useless headfile - Fix misspelling drivers/spi/rockchip_sfc.c | 82 ++ 1 file changed, 39 insertions

[PATCH v8 3/5] rockchip: px30: add the serial flash controller

2021-08-12 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v5) Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30.dtsi | 38 +++

[RFC PATCH v8 2/6] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-12 Thread Jon Lin
-off-by: Jon Lin --- Changes in v8: - Move speed operation to set_speed logic - Use read_poll - Change debug to dev_dbg - Simply exec_op dma logic Changes in v7: - Make sfc-use-dma configurable Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished

[RFC PATCH v8 0/6] rockchip_sfc: add support for Rockchip SFC

2021-08-12 Thread Jon Lin
port for using SFC rockchip: px30: add the serial flash controller rockchip: px30: add support for SFC for Odroid Go Advance Jon Lin (1): rockchip: px30: Support configure SFC Tom Rini (1): CI: Update to LLVM-12 .azure-pipelines.yml | 4 +- .gitlab-ci.yml

[RFC PATCH v8 1/6] CI: Update to LLVM-12

2021-08-12 Thread Jon Lin
From: Tom Rini The current stable release of LLVM is 12, update to that. While at it, fix that we had not correctly upgraded to LLVM 11 previously. Signed-off-by: Tom Rini Signed-off-by: Jon Lin --- (no changes since v1) .azure-pipelines.yml| 4 ++-- .gitlab-ci.yml | 4

[RFC PATCH v8 3/6] rockchip: px30: Add support for using SFC

2021-08-12 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin Reviewed-by: Kever Yang --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

[RFC PATCH v8 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-12 Thread Jon Lin
-off-by: Jon Lin --- Changes in v8: - Move speed operation to set_speed logic - Use read_poll - Change debug to dev_dbg - Simply exec_op dma logic Changes in v7: - Make sfc-use-dma configurable Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished

[RFC PATCH v8 3/5] rockchip: px30: add the serial flash controller

2021-08-12 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin Reviewed-by: Kever Yang --- (no changes since v5) Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30

[RFC PATCH v8 4/5] rockchip: px30: add support for SFC for Odroid Go Advance

2021-08-12 Thread Jon Lin
and rx lines to 2 for this reason. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v8: - Change to use tx single line to make a good compatible - Change spiflash dts node arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 17 + arch/arm/dts/rk3326-odroid-go2.dts

[RFC PATCH v8 0/5] rockchip_sfc: add support for Rockchip SFC

2021-08-12 Thread Jon Lin
port for using SFC rockchip: px30: add the serial flash controller rockchip: px30: add support for SFC for Odroid Go Advance Jon Lin (1): rockchip: px30: Support configure SFC arch/arm/dts/px30.dtsi | 38 ++ arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 17 + arch/arm/dts/rk3326-

[RFC PATCH v8 2/5] rockchip: px30: Add support for using SFC

2021-08-12 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin Reviewed-by: Kever Yang --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

[PATCH v8 2/5] rockchip: px30: Add support for using SFC

2021-08-12 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

[PATCH v8 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-12 Thread Jon Lin
-off-by: Jon Lin --- Changes in v8: - Move speed operation to set_speed logic - Use read_poll - Change debug to dev_dbg - Simply exec_op dma logic Changes in v7: - Make sfc-use-dma configurable Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished

[PATCH v8 0/5] rockchip_sfc: add support for Rockchip SFC

2021-08-12 Thread Jon Lin
p: px30: add the serial flash controller rockchip: px30: add support for SFC for Odroid Go Advance Jon Lin (1): rockchip: px30: Support configure SFC arch/arm/dts/px30.dtsi | 38 ++ arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 17 + arch/arm/dts/rk3326-odroid-go2.dts |

[PATCH v8 4/5] rockchip: px30: add support for SFC for Odroid Go Advance

2021-08-12 Thread Jon Lin
and rx lines to 2 for this reason. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- Changes in v8: - Change to use tx single line to make a good compatible arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 17 + arch/arm/dts/rk3326-odroid-go2.dts | 16

[PATCH v8 5/5] rockchip: px30: Support configure SFC

2021-08-12 Thread Jon Lin
Make px30 SFC clock configurable Signed-off-by: Jon Lin Reviewed-by: Jagan Teki --- (no changes since v7) Changes in v7: - Make px30 SFC clock configurable drivers/clk/rockchip/clk_px30.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/clk

[RFC PATCH v8 4/6] rockchip: px30: add the serial flash controller

2021-08-12 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin Reviewed-by: Kever Yang --- (no changes since v5) Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30

[RFC PATCH v8 5/5] rockchip: px30: Support configure SFC

2021-08-12 Thread Jon Lin
Make px30 SFC clock configurable Signed-off-by: Jon Lin Reviewed-by: Jagan Teki Reviewed-by: Kever Yang Reviewed-by: Philipp Tomsich --- (no changes since v7) Changes in v7: - Make px30 SFC clock configurable drivers/clk/rockchip/clk_px30.c | 32 1 file

Re: [PATCH v8 1/5] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-12 Thread Jon Lin
Chris Morgan wrote: On Thu, Aug 12, 2021 at 09:15:14PM +0800, Jon Lin wrote: From: Chris Morgan This patch adds support for the Rockchip serial flash controller found on the PX30 SoC. It should work for versions 3-5 of the SFC IP, however I am only able to test it on v3. This is adapted from

[PATCH v7 2/6] rockchip: px30: Add support for using SFC

2021-08-05 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

[PATCH v7 5/6] rockchip: px30: add support for SFC for Odroid Go Advance

2021-08-05 Thread Jon Lin
and rx lines to 2 for this reason. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 17 + arch/arm/dts/rk3326-odroid-go2.dts | 16 2 files changed, 33 insertions(+) diff --git

[PATCH v7 1/6] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-05 Thread Jon Lin
-off-by: Jon Lin --- Changes in v7: - Make sfc-use-dma configurable Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished status Changes in v5: - Support dma transfer - Add CONFIG_IS_ENABLED(CLK) limitation - Support spinand devices - Support SFC

[PATCH v7 0/6] rockchip_sfc: add support for Rockchip SFC

2021-08-05 Thread Jon Lin
ger has to extract the parameters Chris Morgan (5): spi: rockchip_sfc: add support for Rockchip SFC rockchip: px30: Add support for using SFC rockchip: px30: add the serial flash controller mtd: spi-nor-ids: Add XTX XT25F128B rockchip: px30: add support for SFC for Odroid Go Advance Jon Lin

[PATCH v7 3/6] rockchip: px30: add the serial flash controller

2021-08-05 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v5) Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30.dtsi | 38 +++

[PATCH v7 6/6] rockchip: px30: Support configure SFC

2021-08-05 Thread Jon Lin
Make px30 SFC clock configurable Signed-off-by: Jon Lin --- Changes in v7: - Make px30 SFC clock configurable drivers/clk/rockchip/clk_px30.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c

[PATCH v7 4/6] mtd: spi-nor-ids: Add XTX XT25F128B

2021-08-05 Thread Jon Lin
From: Chris Morgan Adds support for XT25F128B used on Odroid Go Advance. Unfortunately this chip uses a continuation code which I cannot seem to parse, so there are possibly going to be collisions with chips that use the same manufacturer/ID. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin

[PATCH v3 2/2] nvme: Fix error in nvme_setup_prps

2021-10-18 Thread Jon Lin
Consulting to "NVM Express® Base Specification, revision 2.0". If more PRP List pages are required, then the last entry of the PRP List contains the Page Base Address of the next PRP List page. The next PRP List page shall be memory page aligned. Signed-off-by: Jon Lin Reviewed-by:

[PATCH v3 1/2] nvme: Enable FUA

2021-10-18 Thread Jon Lin
Most NVME devcies maintain data in internal cache for an uncertain times, and u-boot has no method to force NVME to flush cache. So this patch adds FUA to avoid data loss caused by power off after data programming. Signed-off-by: Jon Lin Reviewed-by: Stefan Agner --- Changes in v3: Only

Re: [PATCH] nvme: Enable FUA

2021-09-27 Thread Jon Lin
On 2021/9/27 20:28, Stefan Agner wrote: On 2021-09-26 11:12, Jon Lin wrote: Most NVME devcies maintain data in internal cache for an uncertain times, and u-boot has no method to force NVME to flush cache. So this patch adds FUA to avoid data loss caused by power off after data programming

[PATCH v2 1/2] nvme: Enable FUA

2021-09-27 Thread Jon Lin
Most NVME devcies maintain data in internal cache for an uncertain times, and u-boot has no method to force NVME to flush cache. So this patch adds FUA to avoid data loss caused by power off after data programming. Signed-off-by: Jon Lin Reviewed-by: Stefan Agner --- (no changes since v1

[PATCH v2 2/2] nvme: Fix error in nvme_setup_prps

2021-09-27 Thread Jon Lin
Consulting to "NVM Express® Base Specification, revision 2.0". If more PRP List pages are required, then the last entry of the PRP List contains the Page Base Address of the next PRP List page. The next PRP List page shall be memory page aligned. Signed-off-by: Jon Lin --- (no change

[PATCH] nvme: Enable FUA

2021-09-26 Thread Jon Lin
Most NVME devcies maintain data in internal cache for an uncertain times, and u-boot has no method to force NVME to flush cache. So this patch adds FUA to avoid data loss caused by power off after data programming. Signed-off-by: Jon Lin --- drivers/nvme/nvme.c | 3 +++ 1 file changed, 3

Re: [PATCH v3 1/2] nvme: Enable FUA

2021-11-21 Thread Jon Lin
On 2021/11/19 9:14, Tom Rini wrote: On Fri, Nov 19, 2021 at 08:56:08AM +0800, Bin Meng wrote: Hi Tom, On Fri, Nov 19, 2021 at 3:14 AM Tom Rini wrote: On Tue, Oct 19, 2021 at 10:40:53AM +0800, Jon Lin wrote: Most NVME devcies maintain data in internal cache for an uncertain times, and u

Re: [PATCH v1 04/11] spi: rockchip-sfc: sanity check minimum freq

2022-03-14 Thread Jon Lin
在 2022/3/14 16:53, Kever Yang 写道: + Jon Lin, Hi Jon,     Please help to review this patch. Thanks, - Kever On 2022/2/22 09:31, Peter Geis wrote: The rockchip-sfc driver sanity checks the maximum frequency, but not the minimum frequency. This causes the probe to fail when a frequency