public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 02/17] reset: Return 0 if no request ops
Date: Sun, 26 Aug 2018 18:08:11 +0530	[thread overview]
Message-ID: <20180826123826.19243-3-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20180826123826.19243-1-jagan@amarulasolutions.com>

Missing request ops from respective uclass driver
generating "synchronous abort" in Allwinner platform,
may be in arm. So return 0 if request ops is not used
for those uclass drivers.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 drivers/reset/reset-uclass.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c
index 3899537635..867dc8d596 100644
--- a/drivers/reset/reset-uclass.c
+++ b/drivers/reset/reset-uclass.c
@@ -69,6 +69,9 @@ int reset_get_by_index(struct udevice *dev, int index,
 		return ret;
 	}
 
+	if (!ops->request)
+		return 0;
+
 	ret = ops->request(reset_ctl);
 	if (ret) {
 		debug("ops->request() failed: %d\n", ret);
-- 
2.18.0.321.gffc6fa0e3

  parent reply	other threads:[~2018-08-26 12:38 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-26 12:38 [U-Boot] [PATCH v4 00/17] clk: Add Allwinner CLK, RESET support Jagan Teki
2018-08-26 12:38 ` [U-Boot] [PATCH v4 01/17] clk: Add Allwinner A64 CLK driver Jagan Teki
2018-08-27 14:27   ` Maxime Ripard
2018-08-26 12:38 ` Jagan Teki [this message]
2018-08-30  0:28   ` [U-Boot] [PATCH v4 02/17] reset: Return 0 if no request ops Simon Glass
2018-08-26 12:38 ` [U-Boot] [PATCH v4 03/17] reset: Add Allwinner RESET driver Jagan Teki
2018-08-27 14:33   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 04/17] clk: sunxi: Add Allwinner H3/H5 CLK driver Jagan Teki
2018-08-27 14:36   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 05/17] clk: sunxi: Add Allwinner A10/A20 " Jagan Teki
2018-08-27 14:37   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 06/17] clk: sunxi: Add Allwinner A10s/A13 " Jagan Teki
2018-08-27 14:38   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 07/17] clk: sunxi: Add Allwinner A31 " Jagan Teki
2018-08-27 14:39   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 08/17] clk: sunxi: Add Allwinner A23 " Jagan Teki
2018-08-27 14:39   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 09/17] clk: sunxi: a23: Add CLK support for A33 Jagan Teki
2018-08-27 14:40   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 10/17] clk: sunxi: Add Allwinner A83T CLK driver Jagan Teki
2018-08-27 14:41   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 11/17] clk: sunxi: Add Allwinner R40 " Jagan Teki
2018-08-27 15:02   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 12/17] clk: sunxi: Add Allwinner V3S " Jagan Teki
2018-08-27 15:02   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 13/17] sunxi: Enable CLK Jagan Teki
2018-08-26 12:38 ` [U-Boot] [PATCH v4 14/17] phy: sun4i-usb: Use CLK and RESET support Jagan Teki
2018-08-27 15:03   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 15/17] musb-new: sunxi: " Jagan Teki
2018-08-26 12:38 ` [U-Boot] [PATCH v4 16/17] sunxi: usb: Switch to Generic host controllers Jagan Teki
2018-08-27 15:04   ` Maxime Ripard
2018-08-26 12:38 ` [U-Boot] [PATCH v4 17/17] usb: host: Drop [e-o]hci-sunxi drivers Jagan Teki
2018-08-27 15:03   ` Maxime Ripard

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=20180826123826.19243-3-jagan@amarulasolutions.com \
    --to=jagan@amarulasolutions.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