From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 7/7] state: return -EPROBE_DEFER if the backend isn't available
Date: Wed, 13 May 2015 14:06:26 +0200 [thread overview]
Message-ID: <20150513120626.GN28888@pengutronix.de> (raw)
In-Reply-To: <1431511952-32124-7-git-send-email-mkl@pengutronix.de>
Hello,
On Wed, May 13, 2015 at 12:12:32PM +0200, Marc Kleine-Budde wrote:
> From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
BTW, I didn't add this S-o-b on purpose because I didn't consider this
patch done.
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
> ---
> drivers/misc/state.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/misc/state.c b/drivers/misc/state.c
> index 9e8a40255348..dbe88715a103 100644
> --- a/drivers/misc/state.c
> +++ b/drivers/misc/state.c
> @@ -52,6 +52,8 @@ static int state_probe(struct device_d *dev)
> /* guess if of_path is a path, not a phandle */
> if (of_path[0] == '/') {
> ret = of_find_path(np, "backend", &path, 0);
> + if (ret == -ENODEV)
> + ret = -EPROBE_DEFER;
> if (ret)
> goto out_release;
> } else {
In my testcase I only use this hunk.
> @@ -66,7 +68,7 @@ static int state_probe(struct device_d *dev)
>
> dev = of_find_device_by_node(partition_node);
> if (!list_is_singular(&dev->cdevs)) {
> - ret = -ENODEV;
> + ret = -EPROBE_DEFER;
> goto out_release;
> }
This one was done without testing, there is another if below that might
need adaption too (or instead of this one):
cdev = list_first_entry(&dev->cdevs, struct cdev, devices_list);
if (!cdev) {
ret = -ENODEV;
goto out_release;
}
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2015-05-13 12:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 10:12 [PATCH 1/7] state: print name of property of size mismatch is detected Marc Kleine-Budde
2015-05-13 10:12 ` [PATCH 2/7] state: print proper error message, if reg property is not found Marc Kleine-Budde
2015-05-13 10:12 ` [PATCH 3/7] state: make state_release() non static Marc Kleine-Budde
2015-05-13 10:12 ` [PATCH 4/7] state: add functionality to export state description Marc Kleine-Budde
2015-05-13 10:12 ` [PATCH 5/7] state: backend: support phandle and of_path references Marc Kleine-Budde
2015-05-15 5:05 ` Sascha Hauer
2015-05-15 6:12 ` Marc Kleine-Budde
2015-05-13 10:12 ` [PATCH 6/7] state: add fixup to copy state from barebox to kernel device tree Marc Kleine-Budde
2015-05-15 9:28 ` Uwe Kleine-König
2015-05-16 10:15 ` [PATCH] fixup! " Uwe Kleine-König
2015-05-18 6:07 ` Sascha Hauer
2015-05-13 10:12 ` [PATCH 7/7] state: return -EPROBE_DEFER if the backend isn't available Marc Kleine-Budde
2015-05-13 12:06 ` Uwe Kleine-König [this message]
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=20150513120626.GN28888@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=mkl@pengutronix.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