Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp139894imu; Fri, 16 Nov 2018 19:19:41 -0800 (PST) X-Google-Smtp-Source: AJdET5ehrDzdVW2CoOnPBV8NAsjxxN2S29FSu4/pI5wptnPzsi+9laU5D+/JB7PNFoBYQa2mtLqS X-Received: by 2002:a17:902:494a:: with SMTP id t10-v6mr5575195plh.115.1542424781338; Fri, 16 Nov 2018 19:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542424781; cv=none; d=google.com; s=arc-20160816; b=jqJPk2dDxmi+f0EvX2stzA3Bq91m6e8DorYMcmyUMWaW5MyuHaQ4Sk3kzWS7AMJywf +/IE/B6+C/2hB2xAsDbrkaNEmbV8q2sh2BOQMfY4Wt6Hm2ZhMLywgYLbGktX7y/O1SMz O5JdQ1xwBcehMv6pZqjSnoRl4MGzqOerjY+nC+EKAMtGmBu81fFbrlsnRwy2U+AYDU/G IW1aqZZmiT0DM30tgg4L6IkDsqwgXeMwRBwQ3aG44GZ7dgYNNfTwaoVHPm0+C9v9qh/H 6XvcGZlHr5x0BAS6YLENgJnNMf8K3pZq2Qxk7fj//2bIXTaktvQd4qOm900HiZIWN+Jx vTwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7b9MGET51iroyCUkf9QXf52WvZML83T018e8qTM7i60=; b=dwmquYBB8yyVYauUCY9NPTh9VrpAYsc7DjgNRyWgvA0IF7jD798Zpeoa67AmRhCGu1 GMA1CMv+O9Xa7tVQPVX9S10U4ziC2tiWB3rtg4d2nEzAK/b13rH22411oBSFnRDu+OM8 sPaibHLt7GSMrcsxOWmMpuxdafs62b79N0LhTrOb6phFCwnhDw5pmrENdhMwqRCB3Eme TnVH7JSww1JcYCr62E6lnNFHGpr6vt6gH8TDk6vqQkLcAv4b1n6wTUJOJaDeml+QSY2+ dEgneuasVWHyZEH/8Np3fo4HP93unGwTDsN9FOrRMpUuk68kA3O3aXhFNAqkug8QuEtO GHRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=reSXMF0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h88si11589538pfa.49.2018.11.16.19.19.24; Fri, 16 Nov 2018 19:19:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=reSXMF0O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729862AbeKQNdq (ORCPT + 99 others); Sat, 17 Nov 2018 08:33:46 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:41140 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729714AbeKQNdq (ORCPT ); Sat, 17 Nov 2018 08:33:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7b9MGET51iroyCUkf9QXf52WvZML83T018e8qTM7i60=; b=reSXMF0OiKzYLcnmsQAJ1mKOO DFoTe83uIXLzdArxrGt6mJIX9/lpTDhkWlc0LIk7pBQ7ga0y5i9hDIILxVc2v0TZlmbX18qVkVAB+ gG1+afgmm+bvMzLhCcI1Rv+6OtwD/WFmVQK19T+Qpl+V47aMcifM6+thK9PQ6m8JpI7CU=; Received: from [204.239.253.216] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gNr80-0008LT-G2; Sat, 17 Nov 2018 03:18:36 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 0B81E440078; Sat, 17 Nov 2018 03:18:29 +0000 (GMT) Date: Fri, 16 Nov 2018 19:18:28 -0800 From: Mark Brown To: Cheng-Yi Chiang Cc: linux-kernel@vger.kernel.org, oder_chiou@realtek.com, alsa-devel@alsa-project.org, dgreid@chromium.org, tzungbi@chromium.org Subject: Re: [PATCH] ASoC: rt5663: Fix error handling of regulator_set_load Message-ID: <20181117031828.GZ2089@sirena.org.uk> References: <20181116092856.47815-1-cychiang@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gsAOdWNCzgDntp8s" Content-Disposition: inline In-Reply-To: <20181116092856.47815-1-cychiang@chromium.org> X-Cookie: No Canadian coins. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gsAOdWNCzgDntp8s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Nov 16, 2018 at 05:28:56PM +0800, Cheng-Yi Chiang wrote: > The default implementation of regulator_set_load returns > REGULATOR_MODE_NORMAL, which is positive. The stub does indeed do that however that just looks like a bug - the actual implementation returns 0 on success and the other users don't seem to expect to get a mode value back. > rt5663_i2c_probe should only do error handling when return value of > regulator_set_load is negative. > In this case, rt5663_i2c_probe should return error. However that's also true so the patch is valid. --gsAOdWNCzgDntp8s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlvviIQACgkQJNaLcl1U h9BF8Qf/QHncvy21Ygh5WxTV59yvLFIGXBCAio35pWeeQzTdoC7vGJrrst3lA+Ja 23I/AGM8vLl8So9HH1k94IZdq3LuSg9j1u1+AavXwB14Ifyx6oLHrFDuc01+3DhN v1Jg3v8MDc6LVdTpxEOBO3Jq+75d4PC5zmkmKLcJLQRy1LU3zPhkY2ItT63/KMhi cSzp0qlg9nF45HiheKbzekFZRw5gq1+9CwJBjanRIsKvokgC+59kssDdyGLVzbWQ R7aBOEaTEvr1quTET1zZuNtLtq6iRGL3eBXEKsyxzc8nIZmTWdkSX1kBcxW6Xsv+ lFX4RXiLPb/lelT5fFJjGryzep6DsQ== =O3dQ -----END PGP SIGNATURE----- --gsAOdWNCzgDntp8s--