All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] mtd: rawnand: denali: add reset handling
Date: Mon, 28 Jan 2019 10:33:31 +0100	[thread overview]
Message-ID: <20190128103331.1f2d2dc3@xps13> (raw)
In-Reply-To: <CAAh8qsz-PaDwaXjrdx9UkD_rnc6Khydq0oJ5bph=g5_5+ThZqg@mail.gmail.com>

Hi Simon,

Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> wrote on Mon, 28
Jan 2019 10:30:12 +0100:

> Hi Miquel,
> 
> On Mon, Jan 28, 2019 at 10:22 AM Miquel Raynal
> <miquel.raynal@bootlin.com> wrote:
> >
> > Hi Simon,
> >
> > Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> wrote on Mon, 28
> > Jan 2019 10:16:28 +0100:
> >  
> > > Hi Miquel,
> > >
> > > On Mon, Jan 28, 2019 at 10:08 AM Miquel Raynal
> > > <miquel.raynal@bootlin.com> wrote:  
> > > >
> > > > Hi Simon,
> > > >
> > > > Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> wrote on Fri, 25
> > > > Jan 2019 21:30:49 +0100:
> > > >  
> > > > > This adds reset handling to the devicetree-enabled denalid nand driver.  
> > > >
> > > > "Denali NAND driver"  
> > >
> > > Right.
> > >  
> > > >  
> > > > >
> > > > > For backwards compatibility, only a warning is printed when failing to
> > > > > get reset handles.
> > > > >
> > > > > Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
> > > > > ---
> > > > >
> > > > >  drivers/mtd/nand/raw/denali_dt.c | 8 ++++++++
> > > > >  1 file changed, 8 insertions(+)
> > > > >
> > > > > diff --git a/drivers/mtd/nand/raw/denali_dt.c b/drivers/mtd/nand/raw/denali_dt.c
> > > > > index d384b974df..21c4540637 100644
> > > > > --- a/drivers/mtd/nand/raw/denali_dt.c
> > > > > +++ b/drivers/mtd/nand/raw/denali_dt.c
> > > > > @@ -9,6 +9,7 @@
> > > > >  #include <linux/io.h>
> > > > >  #include <linux/ioport.h>
> > > > >  #include <linux/printk.h>
> > > > > +#include <reset.h>
> > > > >
> > > > >  #include "denali.h"
> > > > >
> > > > > @@ -64,6 +65,7 @@ static int denali_dt_probe(struct udevice *dev)
> > > > >       const struct denali_dt_data *data;
> > > > >       struct clk clk, clk_x, clk_ecc;
> > > > >       struct resource res;
> > > > > +     struct reset_ctl_bulk reset_bulk;
> > > > >       int ret;
> > > > >
> > > > >       data = (void *)dev_get_driver_data(dev);
> > > > > @@ -131,6 +133,12 @@ static int denali_dt_probe(struct udevice *dev)
> > > > >               denali->clk_x_rate = 200000000;
> > > > >       }
> > > > >
> > > > > +     ret = reset_get_bulk(bus, &reset_bulk);
> > > > > +     if (ret)
> > > > > +             dev_warn(bus, "Cant' get reset: %d\n", ret);
> > > > > +     else
> > > > > +             reset_deassert_bulk(&reset_bulk);  
> > > >
> > > > Where are reset_get_bulk/reset_deassert_bulk() defined?  
> > >
> > > In reset.h. That's why I added this include (see above)...  
> >
> > Yes but I guess it is something that will be merged in 5.1? Maybe I
> > will wait for the next release to take this one.  
> 
> You mean Linux 5.1, right? This patch is for U-Boot, not Linux.

My bad, I had SIEVE rules issues, the patch did not got flagged for
"U-Boot". Sorry for the misunderstanding.

Thanks,
Miquèl

  reply	other threads:[~2019-01-28  9:33 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-25 20:30 [U-Boot] [PATCH 0/5] arm: socfpga: implement proper peripheral reset handling Simon Goldschmidt
2019-01-25 20:30 ` [U-Boot] [PATCH 1/5] arm: socfpga: gen5: add reset handles to devicetrees Simon Goldschmidt
2019-01-26  8:57   ` Marek Vasut
2019-01-27  8:45     ` Simon Goldschmidt
2019-01-28 10:54       ` Marek Vasut
2019-01-28 11:46         ` Simon Goldschmidt
2019-01-28 11:48           ` Marek Vasut
2019-01-25 20:30 ` [U-Boot] [PATCH 2/5] arm: socfpga: move SDR reset handling to driver Simon Goldschmidt
2019-01-26  8:58   ` Marek Vasut
2019-01-27  8:47     ` Simon Goldschmidt
2019-01-28 10:55       ` Marek Vasut
2019-01-28 11:49         ` Simon Goldschmidt
2019-01-28 11:58           ` Marek Vasut
2019-01-28 12:38             ` Simon Goldschmidt
2019-01-28 19:02               ` Marek Vasut
2019-01-28 19:17                 ` Simon Goldschmidt
2019-01-28 19:24                   ` Marek Vasut
2019-01-29  8:23                     ` Simon Goldschmidt
2019-01-29  9:52                       ` Marek Vasut
2019-01-25 20:30 ` [U-Boot] [PATCH 3/5] mtd: rawnand: denali: add reset handling Simon Goldschmidt
2019-01-26  8:58   ` Marek Vasut
2019-01-28  9:08   ` Miquel Raynal
2019-01-28  9:16     ` Simon Goldschmidt
2019-01-28  9:22       ` Miquel Raynal
2019-01-28  9:30         ` Simon Goldschmidt
2019-01-28  9:33           ` Miquel Raynal [this message]
2019-01-25 20:30 ` [U-Boot] [PATCH 4/5] spi: cadence_qspi: " Simon Goldschmidt
2019-01-26  8:59   ` Marek Vasut
2019-01-27  8:49     ` Simon Goldschmidt
2019-01-28 10:56       ` Marek Vasut
2019-01-25 20:30 ` [U-Boot] [PATCH 5/5] arm: socfpga: implement proper peripheral reset Simon Goldschmidt
2019-01-26  9:00   ` Marek Vasut
2019-01-27  8:56     ` Simon Goldschmidt
2019-01-28 10:58       ` Marek Vasut
2019-01-28 11:50         ` Simon Goldschmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190128103331.1f2d2dc3@xps13 \
    --to=miquel.raynal@bootlin.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.