Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4E8FAC433F5 for ; Mon, 25 Apr 2022 16:34:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A40CB83DA3; Mon, 25 Apr 2022 18:34:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1650904459; bh=bssRSuwt3J37oAfxPFL7k3xd052mxlhNNmTFYaGUPVY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=fNpImM7aogHf5/pg0gO7ASTdgzq/IThHFmWBU9aVYI919qLsHoy7sEhkNbsqzenHW Z5f1BrIXANTJVtLwFpJ848vSWFQVOEydlfYLSN+IZEzwcVo8XyhuqABctmr8swxAFj fouonAlKra07WmyYO3wzkfIkC9X5/Zf/Oxvo1SNIIOfKvAgjpq9+53cLkIyHHLqRlj EkUQhHw/a8xevqmOaT0+c25Qg6Px3IFkUHCJiazN/AHvfhTkD8+Kx8vFNBdyAmM0xb AJOjsMwGYWthAuiJSNwRkK7BwnMkiVupGRBG5EYgELtqoicaLqGDTIg/jJVDsT5mmc OWngMQ1zM35TQ== Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 7982E83C62; Mon, 25 Apr 2022 18:34:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1650904450; bh=bssRSuwt3J37oAfxPFL7k3xd052mxlhNNmTFYaGUPVY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G52kFfhWcBWnf5Qwwh1dxXfAe8+Ram6Ap+uarQU3AOyY2xG8sqZ+coEUkBPrhGGiE 6++YuFnGPa7oWNz0E+roD8/pRl5HoaPpyDQPvqfXd9vwZjoyEcNVjQzS/2ee8iPs/H LQoEPgivABbxnXHHfTEcITJ3tgpVVH45nZj+BRruaCL3M1gm7mJSnPwIIrijjIAFPq RsW33gTR0/BQzsNRbcYFvJrBflNjh4Ocv1A+EMs3gk11s3s/ma+bMdUQJUzuMIKaKY cCqi8WhB6vTPJjgOOKDuiLrBAbfNJH4Tk+Z9KNG/hJzYUre/pOd+5KKGBESgSKzwb/ rPxGXFfJs2TiQ== From: Marek Vasut To: u-boot@lists.denx.de Cc: trini@konsulko.com, Marek Vasut , Patrice Chotard , Patrick Delaunay , Sean Anderson , Simon Glass , Steven Lawrance Subject: [PATCH 2/2] test: dm: pinmux: Get LED2 udevice in the pinmux test Date: Mon, 25 Apr 2022 18:33:51 +0200 Message-Id: <20220425163351.191350-2-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220425163351.191350-1-marex@denx.de> References: <20220425163351.191350-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The UT reinitializes the pin controller state, get LED2 udevice to trigger its probe and configure the pin controller pin state as it is expected by the test. Signed-off-by: Marek Vasut Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Sean Anderson Cc: Simon Glass Cc: Steven Lawrance --- test/cmd/pinmux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/cmd/pinmux.c b/test/cmd/pinmux.c index de3bb0d2f97..df40bb77435 100644 --- a/test/cmd/pinmux.c +++ b/test/cmd/pinmux.c @@ -7,12 +7,17 @@ #include #include +#include #include #include #include static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts) { + struct udevice *dev; + + ut_assertok(uclass_get_device(UCLASS_LED, 2, &dev)); + /* Test that 'pinmux status ' displays the selected pin. */ console_record_reset(); run_command("pinmux status a5", 0); -- 2.35.1