From patchwork Wed Jan 13 23:25:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 567191 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id BA2561401AF for ; Thu, 14 Jan 2016 10:42:39 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=hgJ4qMrR; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 974FF62254; Thu, 14 Jan 2016 00:42:33 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oorGEOcMFdR7; Thu, 14 Jan 2016 00:42:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE10D62281; Thu, 14 Jan 2016 00:40:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A39824BF38 for ; Thu, 14 Jan 2016 00:36:24 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WQVIr_8OTi2G for ; Thu, 14 Jan 2016 00:36:24 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by theia.denx.de (Postfix) with ESMTPS id 5F740621D1 for ; Thu, 14 Jan 2016 00:33:30 +0100 (CET) Received: by mail-oi0-f50.google.com with SMTP id w75so73250561oie.0 for ; Wed, 13 Jan 2016 15:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=OvCNZAtck7+IJ5bd/M98tN2qQeTCGg7jTYV05w+OOPA=; b=hgJ4qMrRYJi7X96V7SmpS7QvVl2y7omHv3FnProBYC3VJcKXd4duAU9aYTiARQiKCA zeymyuRFmJZSw6sADVlbCCF4vArGKYAz1L9TnKSr5rF+xSYhhSbFiYx4zz1Dr+E1IR3X D9iRtg9fMHmA/3kcOSroG1yUvInh7htXO05JUfINOlnKgYGLw31tO5YdoLIBEGERQ+Nr DgaEr/a7dRp0SbHORTNvskleUpxS+UIZF4b7Wn6G1DGerpIpWSoR++mansaZ94RArctI LlB+exGt0W72CErVx2maUOzspZl5090zScWmufPMH2pP5XYDbFWClNA12F1Me2nXRzqc cqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=OvCNZAtck7+IJ5bd/M98tN2qQeTCGg7jTYV05w+OOPA=; b=USklgYPloODJIodTICciBAAU5KlVEK3SBt4egGhfL9NAk2QNkvYMk8do/rmP2I9q16 mF1IrfHdBQEVmPQ+cWUra2C9ygoDkr1U7hew1itI3YyuVOWUleL7prb2lB6HvxrsVs8B 9t3G9S/fb4cLRsPWdZRpYZZtWuGt2CxMCjLR23myjLoiEzOfCK2cLUtdOZND+5F6Jb/b upA/0PyzcvH9Hsp0A/x3Bs7rMbSu0PHKKWzXU3CANEkihZr0brAl/Rat/lkoyaqGAx2j CI8pRT1D9U/WagN9jl85wGvfbV04VRHuXMjiIGaZY5I/EO039pEsCbI4Bnp5xSZqpFJw T01A== X-Gm-Message-State: ALoCoQllnlIsyVdGcMsKuknvIhm42OVmuGQmHjmUHyuZu9cfe5+LdrG7HHv+qvxSsDe3dtbRiGbJwrzi2SojunJw0RkeVX0jeQ== X-Received: by 10.202.72.137 with SMTP id v131mr731734oia.90.1452728008928; Wed, 13 Jan 2016 15:33:28 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id gx2sm1876579obc.18.2016.01.13.15.33.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jan 2016 15:33:26 -0800 (PST) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 55D34222247; Wed, 13 Jan 2016 16:26:25 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Wed, 13 Jan 2016 16:25:26 -0700 Message-Id: <1452727540-3249-37-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1452727540-3249-1-git-send-email-sjg@chromium.org> References: <1452727540-3249-1-git-send-email-sjg@chromium.org> Cc: Jeffy Chen , Przemyslaw Marczak Subject: [U-Boot] [PATCH 36/50] dm: power: Allow regulators to not implement all operations X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Some regulators will not implement any operations (e.g. fixed regulators). This is not an error, so allow the autoset process to continue when one of these regulators is found. Signed-off-by: Simon Glass --- drivers/power/regulator/regulator-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index fec2886..9fe07f2 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -334,6 +334,8 @@ int regulators_enable_boot_on(bool verbose) } if (verbose) regulator_show(dev, ret); + if (ret == -ENOSYS) + ret = 0; } return ret;