From patchwork Fri Dec 20 17:59:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1214250 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="J+Kxzp0A"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47fc3J5bf7z9sPW for ; Sat, 21 Dec 2019 05:00:12 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2FAAC81675; Fri, 20 Dec 2019 18:59:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="J+Kxzp0A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84AB18166B; Fri, 20 Dec 2019 18:59:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CFD9580C4B for ; Fri, 20 Dec 2019 18:59:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-pg1-x544.google.com with SMTP id s64so5293364pgb.9 for ; Fri, 20 Dec 2019 09:59:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qPZS/1vyou8U5gYcCYt7GkWVeqWeA7n3Ko0H3jRwfbc=; b=J+Kxzp0ACKnl2Q2uwU/wwhTwLw+GKlB9/k9SByXhEptrHDOk/hS/RtR2IzPCT0lE6I GEI2UgQ11CFwKadNNRGBWBu1LU6T94X8yAuWZYOZ8tR7HnSdcMyZcmHUldl3jhUNAgO5 YdadQA+BPzCBuJ2RJc63VTgM5TfJ8TV4nq7DINAy/hJp0SgjCy87mnF3ZmcNCapuu3XJ EwYPf6721/dex4T+gTPHjND5z6xJlGR61+UmqhLLytwfx6zHSOdoJAczeWcZcgTqa0VP FSubDVmiNKfEKIoChU62bkc9/PdBEs9nQgvpRR4zFNuZJYBRjXA/uQ1T5gPs5DKbR5qk BTuQ== 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; bh=qPZS/1vyou8U5gYcCYt7GkWVeqWeA7n3Ko0H3jRwfbc=; b=kSUuaRFrKCrD1xSf2m3Rh1vN/MsdB20F1JStfnpOwefaXNhV94dQAyPPpvvMQdeVMo hXUzA+/4ihlARa0Ot+5R+Wsq4C0aWWs+ykr/6boXcxTdyY0NP4ub4eJLohW3cNwsg9mv ojxsaNH6tMe/5dWOE55GOf/NLHVectnoBsyg6PzpmYlpmtfNUZI9qNcb8Qr5vykNAtOy p2zCb7Rq19h+/nGTrDR7vqoLqqfRYDZD5GAfGvWUge66+ufH7KrQ1L58xiB25+E4KrAG p2wuiHqZs79bfivmR672yr3PjpbkCeS3XL2voWRzN0eFpwo3IK3DaHrS4w276qTrOIZ7 OYjA== X-Gm-Message-State: APjAAAUtQbdh5fafftt7Ctza+3nkeONTOOdv6PKQNlHYWm6/RFKd0lPo lI53LcMTQvoI3BTHpCbuRuw= X-Google-Smtp-Source: APXvYqwraJ11SM1VVs+EcFe9uspRBaAWMT6XYlwK6febrfHSH/Ahmk8WClob6979+J+mvjdiYtuWKg== X-Received: by 2002:a62:8202:: with SMTP id w2mr17810806pfd.100.1576864786258; Fri, 20 Dec 2019 09:59:46 -0800 (PST) Received: from fabio-Latitude-E5450.am.freescale.net ([177.221.114.206]) by smtp.gmail.com with ESMTPSA id j14sm12307000pgs.57.2019.12.20.09.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2019 09:59:45 -0800 (PST) From: Fabio Estevam To: sbabic@denx.de Subject: [PATCH 3/3] mx6slevk: Fix the pmic_get() parameter in the DM case Date: Fri, 20 Dec 2019 14:59:28 -0300 Message-Id: <20191220175928.13195-3-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191220175928.13195-1-festevam@gmail.com> References: <20191220175928.13195-1-festevam@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: u-boot@lists.denx.de, igor.opaniuk@toradex.com, uboot-imx@nxp.com Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean When pmic_get() is used with DM the first parameter must be the complete node name plus the unit address, so fix it accordingly. Reported-by: Igor Opaniuk Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan --- board/freescale/mx6slevk/mx6slevk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index 33ae91c307..453f281418 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -145,7 +145,7 @@ int power_init_board(void) u32 switch_num = 6; u32 offset = PFUZE100_SW1CMODE; - ret = pmic_get("pfuze100", &dev); + ret = pmic_get("pfuze100@08", &dev); if (ret == -ENODEV) return 0;