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:08:52 +0100 [thread overview]
Message-ID: <20190128100852.461c2573@xps13> (raw)
In-Reply-To: <20190125203051.10943-4-simon.k.r.goldschmidt@gmail.com>
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"
>
> 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?
> +
> return denali_init(denali);
> }
>
Thanks,
Miquèl
next prev parent reply other threads:[~2019-01-28 9:08 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 [this message]
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
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=20190128100852.461c2573@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox