Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1254150 > unrolled thread

[PATCH v6 0/7] mtd: nand: gpmi: gpmi-nand DSM and bitflip support

Started byHan Xu <b45815@freescale.com>
First post2015-10-22 22:10 +0200
Last post2015-10-29 22:20 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v6 0/7] mtd: nand: gpmi: gpmi-nand DSM and bitflip support Han Xu <b45815@freescale.com> - 2015-10-22 22:10 +0200
    Re: [PATCH v6 2/7] dmaengine: mxs: APBH DMA supports deep sleep mode Vinod Koul <vinod.koul@intel.com> - 2015-10-27 03:30 +0100
    Re: [PATCH v6 2/7] dmaengine: mxs: APBH DMA supports deep sleep mode Andy Shevchenko <andy.shevchenko@gmail.com> - 2015-10-29 22:20 +0100

#1254150 — [PATCH v6 0/7] mtd: nand: gpmi: gpmi-nand DSM and bitflip support

FromHan Xu <b45815@freescale.com>
Date2015-10-22 22:10 +0200
Subject[PATCH v6 0/7] mtd: nand: gpmi: gpmi-nand DSM and bitflip support
Message-ID<qmuls-4uo-9@gated-at.bofh.it>
v1 ---> v2
change the erased page bitflip threshold to ecc strength in bitflip patch

v2 ---> v3
remove unnecessary function in mxs-dma
change the log message when legacy_set_geometry failed fix the comment message for bitflip add comma for all field entries

v3 ---> v4
code style change for indentation

v4 ---> v5
split the DMA PM and i.MX7D support into two patches add more comments fix the DMA clock count mismatch issue for i.MX7D

v5 ---> v6
add a sentinel entry for of_device_id to fix build error

Adrian Alonso (1):
  dmaengine: mxs: add i.MX7D APBH DMA support

Han Xu (4):
  mtd: nand: gpmi: may use minimum required ecc for 744 oobsize NAND
  mtd: nand: gpmi: add GPMI NAND support for i.MX7D
  mtd: nand: gpmi: correct bitflip for erased NAND page
  mtd: nand: gpmi: support NAND on i.MX6UL

Huang Shijie (2):
  mtd: nand: gpmi: add gpmi dsm supend/resume support
  dmaengine: mxs: APBH DMA supports deep sleep mode

 drivers/dma/mxs-dma.c                  |  72 ++++++++++++++++--
 drivers/mtd/nand/gpmi-nand/bch-regs.h  |  24 ++++--
 drivers/mtd/nand/gpmi-nand/gpmi-lib.c  |  15 +++-
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 131 ++++++++++++++++++++++++++++-----
 drivers/mtd/nand/gpmi-nand/gpmi-nand.h |  14 +++-
 5 files changed, 215 insertions(+), 41 deletions(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1256409 — Re: [PATCH v6 2/7] dmaengine: mxs: APBH DMA supports deep sleep mode

FromVinod Koul <vinod.koul@intel.com>
Date2015-10-27 03:30 +0100
SubjectRe: [PATCH v6 2/7] dmaengine: mxs: APBH DMA supports deep sleep mode
Message-ID<qo2bo-7KG-3@gated-at.bofh.it>
In reply to#1254150
On Thu, Oct 22, 2015 at 02:54:31PM -0500, Han Xu wrote:
> +static int mxs_dma_pm_resume(struct device *dev)
> +{
> +	struct mxs_dma_engine *mxs_dma = dev_get_drvdata(dev);
> +	int ret;
> +
> +	ret = mxs_dma_init(mxs_dma);
> +	if (ret)
> +		return ret;
> +	return 0;
> +}

Did you compile this without runtime PM defined, it will give out a warning
of unused symbol which cna be fixed by definig thru under runtime pm config

-- 
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1259010 — Re: [PATCH v6 2/7] dmaengine: mxs: APBH DMA supports deep sleep mode

FromAndy Shevchenko <andy.shevchenko@gmail.com>
Date2015-10-29 22:20 +0100
SubjectRe: [PATCH v6 2/7] dmaengine: mxs: APBH DMA supports deep sleep mode
Message-ID<qp2M2-5rW-7@gated-at.bofh.it>
In reply to#1254150
On Thu, Oct 22, 2015 at 10:54 PM, Han Xu <b45815@freescale.com> wrote:
> From: Huang Shijie <b32955@freescale.com>
>
> Deep Sleep Mode(dsm) turns off the power for APBH DMA module, DMA
> need to be re-initialized when system resumed back.
>
> Signed-off-by: Huang Shijie <b32955@freescale.com>
> Signed-off-by: Han Xu <b45815@freescale.com>
> ---
>  drivers/dma/mxs-dma.c | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
> index 60de352..7e5800a 100644
> --- a/drivers/dma/mxs-dma.c
> +++ b/drivers/dma/mxs-dma.c
> @@ -693,7 +693,7 @@ static enum dma_status mxs_dma_tx_status(struct dma_chan *chan,
>         return mxs_chan->status;
>  }
>
> -static int __init mxs_dma_init(struct mxs_dma_engine *mxs_dma)
> +static int mxs_dma_init(struct mxs_dma_engine *mxs_dma)
>  {
>         int ret;
>
> @@ -835,6 +835,7 @@ static int __init mxs_dma_probe(struct platform_device *pdev)
>
>         mxs_dma->pdev = pdev;
>         mxs_dma->dma_device.dev = &pdev->dev;
> +       dev_set_drvdata(&pdev->dev, mxs_dma);
>
>         /* mxs_dma gets 65535 bytes maximum sg size */
>         mxs_dma->dma_device.dev->dma_parms = &mxs_dma->dma_parms;
> @@ -872,9 +873,25 @@ static int __init mxs_dma_probe(struct platform_device *pdev)
>         return 0;
>  }
>
> +static int mxs_dma_pm_resume(struct device *dev)
> +{
> +       struct mxs_dma_engine *mxs_dma = dev_get_drvdata(dev);


> +       int ret;
> +
> +       ret = mxs_dma_init(mxs_dma);
> +       if (ret)
> +               return ret;
> +       return 0;

Just
return mxs_dma_init(mxs_dma);

> +}
> +
> +static const struct dev_pm_ops mxs_dma_pm_ops = {
> +       SET_SYSTEM_SLEEP_PM_OPS(NULL, mxs_dma_pm_resume)
> +};
> +
>  static struct platform_driver mxs_dma_driver = {
>         .driver         = {
>                 .name   = "mxs-dma",
> +               .pm = &mxs_dma_pm_ops,
>                 .of_match_table = mxs_dma_dt_ids,
>         },
>         .id_table       = mxs_dma_ids,



-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web