Message ID | 20181231165927.13803-19-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBCMXVHQQKGQE4QOFEUA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (cartago.priv [10.11.12.1]) by cassiopea.amarulasolutions.com (Postfix) with ESMTPS id 4A03F2E002E for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 31 Dec 2018 18:02:03 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id 68sf29392283pfr.6 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 31 Dec 2018 09:02:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1546275722; cv=pass; d=google.com; s=arc-20160816; b=jZQbnzTs6bgYssq2TorIFODZVqwV9LGuO02CwX5Ge64HfP2/Vj4nOk+RLRTG05V67/ nsnxjL5WGFljht9F7Q3PqHmqv6x+9mJLhBwxKbsZVMInyBoMMiOXr+3gSL1O1ZHUTqel po2s33L1AzNMwszOz2BUxcz1L6s8n1O+2V8cXDwwKzIPNAjVFzAFbdVeoflVsYNP1XkA +UmYwVFxoW0yNCEsqv8J7yqP3KwDaPGxyWxc0bPha4ewXGquoj30x+0FXwO91YRwFZL6 cCElScWkKyGQ3SXo0qDNhEcmqBi2dsPH9QMSMaNGwd0FumVHFcsSRgAs2AMvcepxIb5K bFcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qg6YPS72A12gb23Pr24tBDMVVvvuapr2cUZ9PT2QmjI=; b=r/2wTOtxuFQzwXeTnFX/B8n1bQpYIT00LuUyGERoHx2WlBePZLDg6jGJEteLfiwLQZ ZHqneX3beVqtuNE/+JC2t0voaYANdtuUR0HJDxrs0r8OD1hzQ25UAwuPYNWJwqqg+d7+ HGW6RBCrXOPltW+DKXbO9m/w1F1YANgOkG592mXl4vx2KBOpwUSNQ1xLcR2oKf27hYwy scfycBhazrYctTCLEDppdD/zkjm0fp90zzZRwEL3X+FedQPcOiDSQJ73nxcRDCnLptWc x1sUEBVg9F0wN+P+F8j/i5fIqsE4R+t61sXEXiDsnMl3ILPkBNBvkjfIhk12gYQ13vXa D7KA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J4McMzC+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Qg6YPS72A12gb23Pr24tBDMVVvvuapr2cUZ9PT2QmjI=; b=cAlnVrjMdFmw2OhRZy/+UHW2mEtQvtd0VrRrPErZz/bQ17MjKdqd4aIpbzBmefwFKl wZJJiVZO7VI0ygSHXVCKM4tQUW1cHxXwxMCNi0iWCMPtSROO8T9gkIW886mtxs0zNSda eA9P6JoEXlaBh4+xDZcGqNXK/z1T2S31p+vV4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Qg6YPS72A12gb23Pr24tBDMVVvvuapr2cUZ9PT2QmjI=; b=PxiD5BvZkyl8ag9foB4IiYu17c/WvHYoQn4EmXSuLt+cxMn1hoOrTqjlHG326JfNC9 +1hobfvQIapUTbqxWrsPfWqRJ77FF/gzE3sWQQs6Vr/GUZI77N/tkt8P8CT04af2qZNw +dFnuks2t9ZwRSncqi+gehFEc0kvusF61X1TDenvaY13SfV7gKVXeHJYV6RvSC+mCFoG 2tQvzenw7x2YD2pNbJvyqV4y6D0H4rXNqsPBtOwlTSypYnFaENQFpJr6/40q8vKinLlQ mRF7XcLPuLVdV15ZEKYbV10bXS4fpMmEa3JkVklxokM0ciocGY94gREdbfyIpcENF655 8rvg== X-Gm-Message-State: AJcUukfCEVkd1E8xrBvLMTP5fb2t+ykmgqllSTmexxgPMtZMr60J6mZB 1t3UwvM+gGjynxXZWCrqMpvbJBeE X-Google-Smtp-Source: AFSGD/WeBGi9VL9SUcnsWWhvpW0PzryxA5PLwV4XDLvwiOYfycITBWeQYc1OVD9Yq6hVsM5tCWz3rg== X-Received: by 2002:a62:e50c:: with SMTP id n12mr17022171pff.54.1546275721958; Mon, 31 Dec 2018 09:02:01 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9b81:: with SMTP id y1ls13421811plp.3.gmail; Mon, 31 Dec 2018 09:02:01 -0800 (PST) X-Received: by 2002:a17:902:5066:: with SMTP id f35mr37854784plh.78.1546275721703; Mon, 31 Dec 2018 09:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546275721; cv=none; d=google.com; s=arc-20160816; b=VrrBQeON0rYxKbUB4C8lIaHxKyLjxdXhrrZtJy1FL2dG5hazyPXzaijUr/7BVUCl+2 FlQWPO9gEtrUU9BodN66nXnyjhznjoBO4hxiEwsGlhHSHcvvZ5hZKf2b405HyEEPMVmF 3bJOec5DAaPiJf5ynjh/hdGR6QFGR+gBs9NF/d0E50YQum4HUPq9HAXab9plmVhgVxcq 80DKFHvQwl4oAHJJ04n9ZjFgMZ5SGo3CnKatxTjLsxP2swan/2yU84/USbTNqru5TN0l cc/EizUHIRkoSOsx4wSwEuMMZy0HOGtSJvm74DLAYKszdysSxU/3hFDvN21nT4UYwOfu 4W3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Qg6YPS72A12gb23Pr24tBDMVVvvuapr2cUZ9PT2QmjI=; b=Oo6f2/rtuIBEypY4ewzsc9kjQnmYd2Ffj0mDiXad/EjWzltuaCqaF+ronoL9EJbAnn BdvrSJogRy9cmMq1BDdC/4hwRv8pfnQyt9lBoC9ZQqNRg7Frh0GkVlrGmkbzI9Y66gwf zEIUwo6MaLBvCXkGpvURZirrywYTyYI3N97NBuzySh64KQnDqvVIFvBu8C0vZtRvnpSU y8VVZpFnF7bNNzICMozZxwbTBUco7j9RgaiBmo2pcVIFpBjVH9AHGG3rH+1WcS4Q82Kg zTRGFLO95xDv9drYcqMSHuw6mbCHeaKOVjGE60UztPt8kS42k0z7K8j2dSsG9+f0TpRV /8Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J4McMzC+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id w185sor13756476pgd.7.2018.12.31.09.02.01 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 31 Dec 2018 09:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:db02:: with SMTP id e2mr8129072pgg.419.1546275721430; Mon, 31 Dec 2018 09:02:01 -0800 (PST) Received: from localhost.localdomain ([115.97.184.237]) by smtp.gmail.com with ESMTPSA id p7sm90692925pfj.72.2018.12.31.09.01.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Dec 2018 09:02:00 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Maxime Ripard <maxime.ripard@bootlin.com>, Andre Przywara <andre.przywara@arm.com> Cc: Chen-Yu Tsai <wens@csie.org>, Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de, linux-sunxi@googlegroups.com, Michael Trimarchi <michael@amarulasolutions.com>, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v5 18/26] reset: Add reset valid Date: Mon, 31 Dec 2018 22:29:19 +0530 Message-Id: <20181231165927.13803-19-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181231165927.13803-1-jagan@amarulasolutions.com> References: <20181231165927.13803-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J4McMzC+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/include/reset.h b/include/reset.h index bc495a90c2..65aa7a4ce5 100644 --- a/include/reset.h +++ b/include/reset.h @@ -306,4 +306,15 @@ static inline int reset_release_bulk(struct reset_ctl_bulk *bulk) } #endif +/** + * reset_valid() - check if reset is valid + * + * @reset_ctl: the reset to check + * @return TRUE if valid, or FALSE + */ +static inline bool reset_valid(struct reset_ctl *reset_ctl) +{ + return !!reset_ctl->dev; +} + #endif
Add reset_valid to check whether given reset is valid or not. Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- include/reset.h | 11 +++++++++++ 1 file changed, 11 insertions(+)