[v3 0/2] mtd: nand: Add Cadence NAND controller driver

2019-06-14 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem dt-bindings: nand: Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.txt | 51 +

[v3 1/2] mtd: nand: Add Cadence NAND controller driver

2019-06-14 Thread Piotr Sroka
Signed-off-by: Piotr Sroka --- Changes for v3: - remove definitions of unused registres/ - remove configuring registers which are not excpected to be configured in asynchronous mode - remove not needed function reading timing registers - remove information about oob size and write size from

[v3 2/2] dt-bindings: nand: Add Cadence NAND controller driver

2019-06-14 Thread Piotr Sroka
Signed-off-by: Piotr Sroka --- Changes for v3: - add unit suffix for board_delay - move child description to proper place - remove prefix cadence_ for reg and sdma fields Changes for v2: - remove chip dependends parameters from dts bindings - add names for register ranges in dts bindings - add

RE: [PATCH 1/2] [1/2] mmc: sdhci-cadence: Fix writing PHY delay

2017-02-23 Thread Piotr Sroka
truct sdhci_cdns_priv *priv, > > +static int sdhci_cdns_write_phy_reg(struct sdhci_cdns_priv *priv, > > u8 addr, u8 data) > > > If you have a chance to submit v2, > I want the indent of the above line adjusted. > Ok thanks. I will fix the indent in v2. Regards Piotr Sroka

RE: [PATCH 2/2] [2/2] mmc: sdhci-cadence: Update PHY delay configuration

2017-02-17 Thread Piotr Sroka
> -Original Message- > From: Ulf Hansson [mailto:ulf.hans...@linaro.org] > Sent: 16 February, 2017 4:10 PM > Subject: Re: [PATCH 2/2] [2/2] mmc: sdhci-cadence: Update PHY delay > configuration > > On 16 February 2017 at 14:06, Piotr Sroka <pio...@cadence.com>

[PATCH 1/2] [1/2] mmc: sdhci-cadence: Fix writing PHY delay

2017-02-16 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- drivers/mmc/host/sdhci-cadence.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host

[PATCH 2/2] [2/2] mmc: sdhci-cadence: Update PHY delay configuration

2017-02-16 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different platforms. Configuration of new three PHY delays were added Signed-off-by: Piotr Sroka <pio...@cadence.com> --- .../devicetree/bindings/mmc/sdhci-cadence.txt | 54 ++ drive

[PATCH] Add HS400 enhanced strobe support

2017-02-15 Thread Piotr Sroka
Add support for HS400ES mode to Cadence SDHCI driver. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- drivers/mmc/host/sdhci-cadence.c | 41 +--- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/sdhci-cadence.c b/drive

[PATCH] mmc: core: fix changing bus witdh in hs400es mode

2017-03-02 Thread Piotr Sroka
Fix the code to avoid changing bus width if HS400ES mode is selected. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- drivers/mmc/core/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 7fd7228..c7d9c9f

RE: [v5 2/4] dt-bindings: mmc: add description of PHY delays for sdhci-cadence

2017-03-30 Thread Piotr Sroka
Hi Masahiro 2017-03-22 16:30 Masahiro Yamada <yamada.masah...@socionext.com>: > 2017-03-21 23:33 GMT+09:00 Piotr Sroka <pio...@cadence.com>: > > DTS properties are used instead of fixed data > > because PHY settings can be different for different chips/boards. > &g

[no subject]

2017-03-21 Thread Piotr Sroka
Subject: RE: [v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration In-reply-to:

RE: [v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-21 Thread Piotr Sroka
Hi Masahiro, > Hi Piotr, > > 2017-03-20 17:47 GMT+09:00 Piotr Sroka <pio...@cadence.com>: > > > >> > >> > @@ -227,6 +267,7 @@ static int sdhci_cdns_probe(struct platform_device > >> > *pdev) > >> > struct sdhci_cdns_

RE: [v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-21 Thread Piotr Sroka
Hi Masahiro 2017-03-21 02:46 AM Masahiro Yamada <yamada.masah...@socionext.com>: > Hi Piotr, > > > 2017-03-20 20:20 GMT+09:00 Piotr Sroka <pio...@cadence.com>: > > DTS properties are used instead of fixed data > > because PHY settings can be

[v4 1/3] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-20 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - fix indent --- Changes for v3: - none --- Changes for v4: - none --- drivers/mmc/host/sdhci-cadence.c | 11 +-- 1 file changed, 9 insertions

RE: [v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-20 Thread Piotr Sroka
> -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 17 March, 2017 6:24 PM > Subject: Re: [v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration > > > > > @@ -62,10 +66,33 @@ > > */ > > #define SDHCI_CDNS_MAX_TUNING_LOOP 40 > > > >

RE: [v3 2/3] Documentation: bindings: add description of PHY delays for sdhci-cadence

2017-03-20 Thread Piotr Sroka
> -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 17 March, 2017 6:30 PM > Subject: Re: [v3 2/3] Documentation: bindings: add description of PHY delays > for sdhci-cadence > > Hi Piotr, > > 2017-03-17 21:40

[v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-20 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - dts part was removed from this patch - most delays were moved from dts file to data associated with

[v4 2/3] dt-bindings: mmc: add description of PHY delays for sdhci-cadence

2017-03-20 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - file was created in v2. It was a part of driver source file patch.

RE: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-20 Thread Piotr Sroka
ut I hope Adrian can advise us. > > > > > > So maybe put all delays to dts file would be a better solution? What do you > > think? > > I am OK with DT approach too > because this way seems simpler, after all. > > (My suggestion for data array approach was misleading, sorry.) > Thanks for review anyway it was useful. Now decision between DTS and data array is more clear for me. Regards Piotr Sroka

[v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-17 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - dts part was removed from this patch - most delays were moved from dts file to data associated with

[v3 1/3] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-17 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - fix indent --- Changes for v3: - none --- drivers/mmc/host/sdhci-cadence.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

[v3 2/3] Documentation: bindings: add description of PHY delays for sdhci-cadence

2017-03-17 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - file was created in v2. It was a part of driver source file patch.

RE: [v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-22 Thread Piotr Sroka
Hi Masahiro 2017-03-21 08:3 AM Masahiro Yamada <yamada.masah...@socionext.com>: > Hi Piotr, > > 2017-03-21 16:01 GMT+09:00 Piotr Sroka <pio...@cadence.com>: > > > > Hi Masahiro > > > > 2017-03-21 02:46 AM Masahiro Yamada <yamada.masah...@socionex

[PATCH] mmc: sdhci-cadence: add parsing sdhci properties

2017-04-11 Thread Piotr Sroka
Add calling sdhci_get_of_property function to parse sdhci properties. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- drivers/mmc/host/sdhci-cadence.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c index 7

RE: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-13 Thread Piotr Sroka
Hi Masahiro > -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 09 March, 2017 3:37 AM > Subject: Re: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration > > Hi Piotr, > > 2017-03-07 20:00 GMT+09:00 Piotr S

[v2 PATCH 2/3] Documentation: bindings: add description of PHY delays for sdhci-cadence

2017-03-06 Thread Piotr Sroka
Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - file was created in v2. It was a part of driver source file patch. - most delays were moved from dts file to data associated with an SoC specific compatible - description of

[v2 PATCH 1/3] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-06 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - fix indent --- drivers/mmc/host/sdhci-cadence.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host

[v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-06 Thread Piotr Sroka
PHY settings can be different for different platforms and SoCs. Fixed PHY input delays was replaced with SoC specific compatible data. DTS properties are used for configuration new PHY DLL delays. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - dts part was remove

RE: [v3] mmc: sdhci-cadence: add HS400 enhanced strobe support

2017-03-06 Thread Piotr Sroka
Hi Masahiro, Thanks for all of your reviews. Best Regards Piotr Sroka > -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 06 March, 2017 9:59 PM > Subject: Re: [v3] mmc: sdhci-cadence: add HS400 enhanced strobe support > > Hi P

RE: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-07 Thread Piotr Sroka
Hi Masahiro, > -Original Message- > Sent: 07 March, 2017 9:03 AM > To: Piotr Sroka > Subject: Re: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration > > Hi Piotr, > > 2017-03-06 22:39 GMT+09:00 Piotr Sroka <pio...@cadence.com>: >

[v3] mmc: sdhci-cadence: add HS400 enhanced strobe support

2017-03-06 Thread Piotr Sroka
Add support for HS400ES mode to Cadence SDHCI driver. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes in v2: - Modify enhanced strobe function to handle disabling enhanced strobe inside the function. Do no relay on that mmc_set_ios() is called immediately after hos

[v2] mmc: sdhci-cadence: add HS400 enhanced strobe support

2017-03-03 Thread Piotr Sroka
Add support for HS400ES mode to Cadence SDHCI driver. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes in v2: - Modify enhanced strobe function to handle disabling enhanced strobe inside the function. Do no relay on that mmc_set_ios() is called immediately after hos

RE: [PATCH] mmc: core: fix changing bus witdh in hs400es mode

2017-03-02 Thread Piotr Sroka
Hi Shawn Thanks for the information. Best Regards Piotr Sroka > -Original Message- > From: Shawn Lin [mailto:shawn@rock-chips.com] > Sent: 03 March, 2017 4:43 AM > Subject: Re: [PATCH] mmc: core: fix changing bus witdh in hs400es mode > > Hi Poitr, > >

[v5 2/4] dt-bindings: mmc: add description of PHY delays for sdhci-cadence

2017-03-21 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - file was created in v2. It was a part of driver source file patch.

[v5 1/4] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-21 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - fix indent --- Changes for v3: - none --- Changes for v4: - none --- Changes for v5: - use driver version from next branch, with applied enhanced

[v5 4/4] mmc: sdhci-cadence: refactor probe function

2017-03-21 Thread Piotr Sroka
Use added dev variable for devm_clk_get. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v5: - patch created in v5 --- drivers/mmc/host/sdhci-cadence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host

[v5 3/4] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-21 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Signed-off-by: Piotr Sroka <pio...@cadence.com> --- Changes for v2: - dts part was removed from this patch - most delays were moved from dts file to data associated with

Re: [v3 2/2] dt-bindings: nand: Add Cadence NAND controller driver

2019-07-17 Thread Piotr Sroka
The 07/09/2019 08:48, Rob Herring wrote: EXTERNAL MAIL On Fri, Jun 14, 2019 at 04:13:01PM +0100, Piotr Sroka wrote: Signed-off-by: Piotr Sroka --- Changes for v3: - add unit suffix for board_delay - move child description to proper place - remove prefix cadence_ for reg and sdma fields

[v7 0/2] mtd: rawnand: Add Cadence NAND controller driver

2019-09-18 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.t

[v7 1/2] mtd: rawnand: Add new Cadence NAND driver to MTD subsystem

2019-09-18 Thread Piotr Sroka
Add new Cadence NAND driver to MTD subsystem Signed-off-by: Piotr Sroka Reported-by: kbuild test robot --- Changes for v7: - replace readls with ioread32_rep and writesl with iowrite32_rep to avoid compilation errors on parisc architecture Changes for v6: - add support for bank addressing

[v7 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-09-18 Thread Piotr Sroka
Document the bindings used by Cadence NAND controller driver Signed-off-by: Piotr Sroka Reviewed-by: Rob Herring --- Changes for v7: - none Changes for v6: - add documentation for address-cells and size-cells - remove not needed space - put myself as maintainer of the Cadence nand driver

[PATCH] - change calculating of position page containing BBM

2019-09-19 Thread Piotr Sroka
as in kernel version 5.1. Signed-off-by: Piotr Sroka --- drivers/mtd/nand/raw/nand_base.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 5c2c30a7dffa..f64e3b6605c6 100644 --- a/drivers/mtd/nand/raw

Re: [v5 1/2] mtd: nand: Add new Cadence NAND driver to MTD subsystem

2019-09-11 Thread Piotr Sroka
The 08/30/2019 11:46, Miquel Raynal wrote: EXTERNAL MAIL Hi Piotr, Piotr Sroka wrote on Thu, 25 Jul 2019 16:00:12 +0100: Subject should be: mtd: rawnand: Last few nits in your driver which overall looks good (see below). Now I'm waiting for Rob's ack on the bindings. This driver should

Re: [v5 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-09-11 Thread Piotr Sroka
Hi Miquel The 08/30/2019 11:46, Miquel Raynal wrote: EXTERNAL MAIL Hi Piotr, Piotr Sroka wrote on Thu, 25 Jul 2019 15:59:55 +0100: Document the bindings used by Cadence NAND controller driver Signed-off-by: Piotr Sroka --- Changes for v5: - replace "_" by "-" in all

[v5 0/2] mtd: nand: Add Cadence NAND controller driver

2019-07-25 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.txt | 50 +

[v5 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-07-25 Thread Piotr Sroka
Document the bindings used by Cadence NAND controller driver Signed-off-by: Piotr Sroka --- Changes for v5: - replace "_" by "-" in all properties - change compatible name from cdns,hpnfc to cdns,hp-nfc Changes for v4: - add commit message Changes for v3: - add unit su

[v5 1/2] mtd: nand: Add new Cadence NAND driver to MTD subsystem

2019-07-25 Thread Piotr Sroka
Add new Cadence NAND driver to MTD subsystem Signed-off-by: Piotr Sroka --- Changes for v5: - fix "ecc config strength" field size - remove unused macros - fix address of timing2 register - add guard for accessing data_control_size register - simplify the driver by use the sam

Re: [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver

2019-06-07 Thread Piotr Sroka
Hi Rob Thanks for reviwing this. The 02/22/2019 14:40, Rob Herring wrote: EXTERNAL MAIL On Tue, Feb 19, 2019 at 04:19:20PM +, Piotr Sroka wrote: Signed-off-by: Piotr Sroka --- Changes for v2: - remove chip dependends parameters from dts bindings - add names for register ranges in dts

Re: [v3 1/2] mtd: nand: Add Cadence NAND controller driver

2019-06-25 Thread Piotr Sroka
Hi Dmitry The 06/16/2019 16:42, Dmitry Osipenko wrote: EXTERNAL MAIL 14.06.2019 18:09, Piotr Sroka пишет: Commit description is mandatory. Signed-off-by: Piotr Sroka --- [snip] + +/* Cadnence NAND flash controller capabilities get from driver data. */ +struct cadence_nand_dt_devdata

[v4 0/2] mtd: nand: Add Cadence NAND controller driver

2019-06-25 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.txt | 51 +

[v4 1/2] mtd: nand: Add new Cadence NAND driver to MTD subsystem

2019-06-25 Thread Piotr Sroka
Add new Cadence NAND driver to MTD subsystem Signed-off-by: Piotr Sroka --- Changes for v4: - fix comments issues like typos, missing capitals, missing dots etc. - remove unnecessary PHY options phy_dll_aging and phy_per_bit_deskew - replace all register access functions to "relaxed&quo

[v4 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-06-25 Thread Piotr Sroka
Document the bindings used by Cadence NAND controller driver Signed-off-by: Piotr Sroka --- Changes for v4: - add commit message Changes for v3: - add unit suffix for board_delay - move child description to proper place - remove prefix cadence_ for reg and sdma fields Changes for v2: - remove

Re: [v5 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-09-13 Thread Piotr Sroka
The 09/13/2019 14:49, Miquel Raynal wrote: EXTERNAL MAIL Hi Piotr, Piotr Sroka wrote on Wed, 11 Sep 2019 16:04:24 +0100: Hi Miquel The 08/30/2019 11:46, Miquel Raynal wrote: >EXTERNAL MAIL > > >Hi Piotr, > >Piotr Sroka wrote on Thu, 25 Jul 2019 15:59:55 >+0100: >

[v6 0/2] mtd: rawnand: Add Cadence NAND controller driver

2019-09-16 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.t

[v6 1/2] mtd: rawnand: Add new Cadence NAND driver to MTD subsystem

2019-09-16 Thread Piotr Sroka
Add new Cadence NAND driver to MTD subsystem Signed-off-by: Piotr Sroka --- Changes for v6: - add support for bank addressing modified in HPNFC R013 version - change type of data_control_supp and is_phy_type_dll from u8 to bool - fix writing and reading data for HPNFC slave DMA interface

[v6 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-09-16 Thread Piotr Sroka
Document the bindings used by Cadence NAND controller driver Signed-off-by: Piotr Sroka Reviewed-by: Rob Herring --- Changes for v6: - add documentation for address-cells and size-cells - remove not needed space - put myself as maintainer of the Cadence nand driver bindings Changes for v5

Re: [PATCH] - change calculating of position page containing BBM

2019-09-23 Thread Piotr Sroka
Hello The 09/19/2019 13:33, Schrempf Frieder wrote: EXTERNAL MAIL On 19.09.19 15:18, Miquel Raynal wrote: Hello, Schrempf Frieder wrote on Thu, 19 Sep 2019 13:15:08 +: On 19.09.19 14:58, Miquel Raynal wrote: Hi Piotr, Piotr Sroka wrote on Thu, 19 Sep 2019 13:41:35 +0100: Change

[v2] mtd: rawnand: Change calculating of position page containing BBM

2019-09-23 Thread Piotr Sroka
if no of BBM flag is set and page parameter is 0. After that modification way of discovering factory bad blocks will work similar as in kernel version 5.1. Cc: sta...@vger.kernel.org Fixes: f90da7818b14 (mtd: rawnand: Support bad block markers in first, second or last page) Signed-off-by: Piotr Sroka

[v8 0/2] mtd: rawnand: Add Cadence NAND controller driver

2019-09-25 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.t

Re: [v8 0/2] mtd: rawnand: Add Cadence NAND controller driver

2019-09-25 Thread Piotr Sroka
The 09/25/2019 16:52, Piotr Sroka wrote: Driver for Cadence HPNFC NAND flash controller. HW DMA interface Page write and page read operations are executed in Command DMA mode. Commands are defined by DMA descriptors. In CDMA mode controller own DMA engine is used (Master DMA mode). Other

Re: [v7 1/2] mtd: rawnand: Add new Cadence NAND driver to MTD subsystem (fwd)

2019-09-25 Thread Piotr Sroka
In-Reply-To: <20190918123115.30510-1-pio...@cadence.com> References: <20190918123115.30510-1-pio...@cadence.com> TO: Piotr Sroka CC: Kazuhiro Kasai , Piotr Sroka , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Vignesh Raghavendra , Mauro Carvalho Chehab

[v8 0/2] mtd: rawnand: Add Cadence NAND controller driver

2019-09-26 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.t

[v8 2/2] dt-bindings: mtd: Add Cadence NAND controller driver

2019-09-26 Thread Piotr Sroka
Document the bindings used by Cadence NAND controller driver Signed-off-by: Piotr Sroka Reviewed-by: Rob Herring --- Changes for v8: - none Changes for v7: - none Changes for v6: - add documentation for address-cells and size-cells - remove not needed space - put myself as maintainer

[v8 1/2] mtd: rawnand: Add new Cadence NAND driver to MTD subsystem

2019-09-26 Thread Piotr Sroka
Add new Cadence NAND driver to MTD subsystem Signed-off-by: Piotr Sroka Reported-by: kbuild test robot Reported-by: Julia Lawall --- Changes for v8: - fix compilation waring in cadence_nand_attach_chip function - change reallocating DMA common buffer to be done after all chips are attached

Re: [PATCH v2 1/2] mtd: nand: Add Cadence NAND controller driver

2019-07-01 Thread Piotr Sroka
The 06/27/2019 18:15, Miquel Raynal wrote: EXTERNAL MAIL Hi Piotr, Piotr Sroka wrote on Thu, 6 Jun 2019 16:19:51 +0100: Hi Miquel The 05/12/2019 14:24, Miquel Raynal wrote: >EXTERNAL MAIL > > >EXTERNAL MAIL > > >Hi Piotr, > >Sorry for de delay. > >Piotr

Re: [PATCH v2 1/2] mtd: nand: Add Cadence NAND controller driver

2019-07-01 Thread Piotr Sroka
The 07/01/2019 12:04, Miquel Raynal wrote: EXTERNAL MAIL Hi Piotr, Piotr Sroka wrote on Mon, 1 Jul 2019 10:51:45 +0100: [...] >> >> > >> >> >This driver is way too massive, I am pretty sure it can shrink a >> >> >little bit more. >> &

Re: [PATCH v2 1/2] mtd: nand: Add Cadence NAND controller driver

2019-06-06 Thread Piotr Sroka
Hi Miquel The 05/12/2019 14:24, Miquel Raynal wrote: EXTERNAL MAIL EXTERNAL MAIL Hi Piotr, Sorry for de delay. Piotr Sroka wrote on Thu, 21 Mar 2019 09:33:58 +: The 03/05/2019 19:09, Miquel Raynal wrote: >EXTERNAL MAIL > > >Hi Piotr, > >Piotr Sroka wrote on Tue,

Re: [PATCH 2/2] dt-bindings: nand: Add Cadence NAND controller driver

2019-02-05 Thread Piotr Sroka
to the driver data is clear for me. I do not know how to handle a board delay. Could you give me an example how it may be implemented? Where this board related stuff could be placed? -- -- Regards Piotr Sroka

[PATCH 0/2] mtd: nand: Add Cadence NAND controller driver

2019-01-29 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem dt-bindings: nand: Add Cadence NAND driver .../devicetree/bindings/mtd/cadence-nand.txt | 35 +

[PATCH 1/2] mtd: nand: Add Cadence NAND controller driver

2019-01-29 Thread Piotr Sroka
This patch adds driver for Cadence HPNFC NAND controller. Signed-off-by: Piotr Sroka --- drivers/mtd/nand/raw/Kconfig|8 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/cadence_nand.c | 2655 +++ drivers/mtd/nand/raw

[PATCH 2/2] dt-bindings: nand: Add Cadence NAND controller driver

2019-01-29 Thread Piotr Sroka
Signed-off-by: Piotr Sroka --- .../devicetree/bindings/mtd/cadence-nand.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand.txt b

Re: [PATCH 1/2] mtd: nand: Add Cadence NAND controller driver

2019-02-07 Thread Piotr Sroka
_nand. I'm stopping here, but I think you got the idea: there's a lot of duplicated code in this driver, try to factor this out or simplify the logic. Thans for review. I will try to simplify the rest of code by myself. Regards, Piotr Sroka

Re: [PATCH v2 1/2] mtd: nand: Add Cadence NAND controller driver

2019-03-21 Thread Piotr Sroka
The 03/05/2019 19:09, Miquel Raynal wrote: EXTERNAL MAIL Hi Piotr, Piotr Sroka wrote on Tue, 19 Feb 2019 16:18:23 +: This patch adds driver for Cadence HPNFC NAND controller. Signed-off-by: Piotr Sroka --- Changes for v2: - create one universal wait function for all events instead

[PATCH v2 0/2] mtd: nand: Add Cadence NAND controller driver

2019-02-19 Thread Piotr Sroka
elected sector size. Therefore there is a separate function for calculating ECC size for each of possible sector size/step size. Piotr Sroka (2): Add new Cadence NAND driver to MTD subsystem dt-bindings: nand: Add Cadence NAND controller driver .../bindings/mtd/cadence-nand-controller.txt | 48 +

[PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver

2019-02-19 Thread Piotr Sroka
Signed-off-by: Piotr Sroka --- Changes for v2: - remove chip dependends parameters from dts bindings - add names for register ranges in dts bindings - add generic bindings to describe NAND chip representation under the NAND controller node --- .../bindings/mtd/cadence-nand-controller.txt

[PATCH v2 1/2] mtd: nand: Add Cadence NAND controller driver

2019-02-19 Thread Piotr Sroka
This patch adds driver for Cadence HPNFC NAND controller. Signed-off-by: Piotr Sroka --- Changes for v2: - create one universal wait function for all events instead of one function per event. - split one big function executing nand operations to separate functions one per each type

RE: [PATCH 1/2] [1/2] mmc: sdhci-cadence: Fix writing PHY delay

2017-02-23 Thread Piotr Sroka
truct sdhci_cdns_priv *priv, > > +static int sdhci_cdns_write_phy_reg(struct sdhci_cdns_priv *priv, > > u8 addr, u8 data) > > > If you have a chance to submit v2, > I want the indent of the above line adjusted. > Ok thanks. I will fix the indent in v2. Regards Piotr Sroka

RE: [v5 2/4] dt-bindings: mmc: add description of PHY delays for sdhci-cadence

2017-03-30 Thread Piotr Sroka
Hi Masahiro 2017-03-22 16:30 Masahiro Yamada : > 2017-03-21 23:33 GMT+09:00 Piotr Sroka : > > DTS properties are used instead of fixed data > > because PHY settings can be different for different chips/boards. > > Add description of new DLL PHY delays. > > >

[v5 2/4] dt-bindings: mmc: add description of PHY delays for sdhci-cadence

2017-03-21 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka --- Changes for v2: - file was created in v2. It was a part of driver source file patch. - most delays were moved from

[v5 1/4] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-21 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka --- Changes for v2: - fix indent --- Changes for v3: - none --- Changes for v4: - none --- Changes for v5: - use driver version from next branch, with applied enhanced strobe feature support

[v5 4/4] mmc: sdhci-cadence: refactor probe function

2017-03-21 Thread Piotr Sroka
Use added dev variable for devm_clk_get. Signed-off-by: Piotr Sroka --- Changes for v5: - patch created in v5 --- drivers/mmc/host/sdhci-cadence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c index

[v5 3/4] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-21 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Signed-off-by: Piotr Sroka --- Changes for v2: - dts part was removed from this patch - most delays were moved from dts file to data associated with an SoC specific compatible

RE: [v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-22 Thread Piotr Sroka
Hi Masahiro 2017-03-21 08:3 AM Masahiro Yamada : > Hi Piotr, > > 2017-03-21 16:01 GMT+09:00 Piotr Sroka : > > > > Hi Masahiro > > > > 2017-03-21 02:46 AM Masahiro Yamada : > >> Hi Piotr, > >> > >> > >> 2017-03-20 20:20 GMT+09:

[v3 1/3] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-17 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka --- Changes for v2: - fix indent --- Changes for v3: - none --- drivers/mmc/host/sdhci-cadence.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host

[v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-17 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Signed-off-by: Piotr Sroka --- Changes for v2: - dts part was removed from this patch - most delays were moved from dts file to data associated with an SoC specific compatible

[v3 2/3] Documentation: bindings: add description of PHY delays for sdhci-cadence

2017-03-17 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka --- Changes for v2: - file was created in v2. It was a part of driver source file patch. - most delays were moved from

RE: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-20 Thread Piotr Sroka
ut I hope Adrian can advise us. > > > > > > So maybe put all delays to dts file would be a better solution? What do you > > think? > > I am OK with DT approach too > because this way seems simpler, after all. > > (My suggestion for data array approach was misleading, sorry.) > Thanks for review anyway it was useful. Now decision between DTS and data array is more clear for me. Regards Piotr Sroka

RE: [v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-20 Thread Piotr Sroka
> -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 17 March, 2017 6:24 PM > Subject: Re: [v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration > > > > > @@ -62,10 +66,33 @@ > > */ > > #define SDHCI_CDNS_MAX_TUNING_LOOP 40 > > > >

RE: [v3 2/3] Documentation: bindings: add description of PHY delays for sdhci-cadence

2017-03-20 Thread Piotr Sroka
> -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 17 March, 2017 6:30 PM > Subject: Re: [v3 2/3] Documentation: bindings: add description of PHY delays > for sdhci-cadence > > Hi Piotr, > > 2017-03-17 21:40 GMT+

[v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-20 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Signed-off-by: Piotr Sroka --- Changes for v2: - dts part was removed from this patch - most delays were moved from dts file to data associated with an SoC specific compatible

[v4 2/3] dt-bindings: mmc: add description of PHY delays for sdhci-cadence

2017-03-20 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different chips/boards. Add description of new DLL PHY delays. Signed-off-by: Piotr Sroka --- Changes for v2: - file was created in v2. It was a part of driver source file patch. - most delays were moved from

[v4 1/3] mmc: sdhci-cadence: Fix writing PHY delay

2017-03-20 Thread Piotr Sroka
Add polling for ACK to be sure that data are written to PHY register. Signed-off-by: Piotr Sroka --- Changes for v2: - fix indent --- Changes for v3: - none --- Changes for v4: - none --- drivers/mmc/host/sdhci-cadence.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

[no subject]

2017-03-21 Thread Piotr Sroka
; > > 2017-03-20 20:20 GMT+09:00 Piotr Sroka : > > DTS properties are used instead of fixed data > > because PHY settings can be different for different chips/boards. > > > > Signed-off-by: Piotr Sroka > > > I found this version is a problem for me

RE: [v4 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-21 Thread Piotr Sroka
Hi Masahiro 2017-03-21 02:46 AM Masahiro Yamada : > Hi Piotr, > > > 2017-03-20 20:20 GMT+09:00 Piotr Sroka : > > DTS properties are used instead of fixed data > > because PHY settings can be different for different chips/boards. > > > > Signed-off-by: Piotr

RE: [v3 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-21 Thread Piotr Sroka
Hi Masahiro, > Hi Piotr, > > 2017-03-20 17:47 GMT+09:00 Piotr Sroka : > > > >> > >> > @@ -227,6 +267,7 @@ static int sdhci_cdns_probe(struct platform_device > >> > *pdev) > >> > struct sdhci_cdns_priv *priv; > >> >

RE: [v3] mmc: sdhci-cadence: add HS400 enhanced strobe support

2017-03-06 Thread Piotr Sroka
Hi Masahiro, Thanks for all of your reviews. Best Regards Piotr Sroka > -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 06 March, 2017 9:59 PM > Subject: Re: [v3] mmc: sdhci-cadence: add HS400 enhanced strobe support > > Hi P

RE: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-07 Thread Piotr Sroka
Hi Masahiro, > -Original Message- > Sent: 07 March, 2017 9:03 AM > To: Piotr Sroka > Subject: Re: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration > > Hi Piotr, > > 2017-03-06 22:39 GMT+09:00 Piotr Sroka : > > PHY settings can be dif

[PATCH] mmc: core: fix changing bus witdh in hs400es mode

2017-03-02 Thread Piotr Sroka
Fix the code to avoid changing bus width if HS400ES mode is selected. Signed-off-by: Piotr Sroka --- drivers/mmc/core/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 7fd7228..c7d9c9f 100644 --- a/drivers/mmc/core

[PATCH] Add HS400 enhanced strobe support

2017-02-15 Thread Piotr Sroka
Add support for HS400ES mode to Cadence SDHCI driver. Signed-off-by: Piotr Sroka --- drivers/mmc/host/sdhci-cadence.c | 41 +--- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c

[PATCH 2/2] [2/2] mmc: sdhci-cadence: Update PHY delay configuration

2017-02-16 Thread Piotr Sroka
DTS properties are used instead of fixed data because PHY settings can be different for different platforms. Configuration of new three PHY delays were added Signed-off-by: Piotr Sroka --- .../devicetree/bindings/mmc/sdhci-cadence.txt | 54 ++ drivers/mmc/host/sdhci-cadence.c

  1   2   >