Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1335094ybl; Wed, 4 Dec 2019 22:56:18 -0800 (PST) X-Google-Smtp-Source: APXvYqy4ozT39r699JJVGwcdkSH97mFneD9AGdccugj6yJaj6sNVFdkrE+gG7EqKOcYlKp+FVXcx X-Received: by 2002:aca:aad8:: with SMTP id t207mr5724829oie.138.1575528978233; Wed, 04 Dec 2019 22:56:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575528978; cv=none; d=google.com; s=arc-20160816; b=pAaLWPJLF6WTY4JWTVzX3LZTD4tdinPftwgTIDM80nXxELTPgua4qBZwdxF+qp7yP+ k0iK6xbJ4FLDtTBgVd+ozZjwHkvTugMiK4VpeLtcJW0/Icm1LTA68D/RJ5DzKQvRObMW IYsfNxoSGZIz3pzZsi5U06nNfHV6WW6sPvSkkK1QI4PfL7h3xJGDbl7MpM+F0zke+lwJ KJyDUoIm5KWgfx6mAyWaN3K+btqiUlHjsm81ACDAqCHcCLLfVVxr5E108/VdmxvHrZAA q6r1Kkk+G6Gu9dncM0DB/lnO4AzeiSF28ugW/77zMV5wNVX7o6u21392rxVYdFDaIa57 pF1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8zuruCdPdPuVozN9QY+kmYHYtlgLJ8CTBviC5VX8gyg=; b=m742xKeb0Fzr/coIjtyqNsN5phB4zJNnxp7CC2rhPQXIc22+O5A0amvJ1yyartgIeQ oyYKAspwcdfnJQixrSj5vFvRuVuZcMr+phPoLj+xz1TeUtSlCDxG0fOQECdXopRffFVm OObFq1fDcnWBjoksoFC6/eN9YmkAeKLfaGDeNmxhmfOSLoT/dCDCm2ahTcdP5pmDWQZS T+Q4sktRJxbpqT6D0K5MftWWWxqfZRMbLQr+LPXu6eU3MFYfcpGqUJ7AAL/dYpZ3VhwC 3gZwqmnajO3J2H+bKfQBw3X+IXthvMrHFhNX/WmaQNMdI9D2bmQ6kFBHkURidQVRub9q qQZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fl4uu+3Q; 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=pass (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 p131si4563744oih.34.2019.12.04.22.56.06; Wed, 04 Dec 2019 22:56:18 -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=pass header.i=@kernel.org header.s=default header.b=fl4uu+3Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726366AbfLEGzF (ORCPT + 99 others); Thu, 5 Dec 2019 01:55:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:46754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbfLEGzF (ORCPT ); Thu, 5 Dec 2019 01:55:05 -0500 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7C262077B; Thu, 5 Dec 2019 06:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575528905; bh=9uH4sDVJnWEj3/ho6ZOYWTTU9xGzpseH9s/QX6LK7OM=; h=From:To:Cc:Subject:Date:From; b=fl4uu+3QlJtoFRyP92aIq2X2NnLJXFiciOWs6HPSTqrym6tzRbemgp+ySlD8M+Tl7 HVdyY/m2BCGb2/js8WP+z+6ZmWI+zpuUdKHsHXNmwTe5NNgRxndJI9PSzEH6ImKCpq HQ0MVHVP5rjKDPbjz34AxShpNffMMQhIiGVa/JxE= Received: by wens.tw (Postfix, from userid 1000) id DA4DB5FD08; Thu, 5 Dec 2019 14:55:01 +0800 (CST) From: Chen-Yu Tsai To: Mark Brown , Liam Girdwood Cc: Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Maxime Ripard Subject: [PATCH] regulator: axp20x: Fix AXP22x ELDO2 regulator enable bitmask Date: Thu, 5 Dec 2019 14:54:57 +0800 Message-Id: <20191205065457.2039-1-wens@kernel.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai A copy-paste error was introduced when bitmasks were converted to macros, incorrectly setting the enable bitmask for ELDO2 to the one for ELDO1 for the AXP22x units. Fix it by using the correct macro. On affected boards, ELDO1 and/or ELDO2 are used to power the camera, which is currently unsupported. Fixes: db4a555f7c4c ("regulator: axp20x: use defines for masks") Signed-off-by: Chen-Yu Tsai --- Small fix. I prefer to have this merged sooner, i.e. not into -next. Later patches (to be posted) supporting the camera sensor interface depend on this at runtime to power on the camera correctly. --- drivers/regulator/axp20x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index 989506bd90b1..fe369cba34fb 100644 --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c @@ -605,7 +605,7 @@ static const struct regulator_desc axp22x_regulators[] = { AXP22X_PWR_OUT_CTRL2, AXP22X_PWR_OUT_ELDO1_MASK), AXP_DESC(AXP22X, ELDO2, "eldo2", "eldoin", 700, 3300, 100, AXP22X_ELDO2_V_OUT, AXP22X_ELDO2_V_OUT_MASK, - AXP22X_PWR_OUT_CTRL2, AXP22X_PWR_OUT_ELDO1_MASK), + AXP22X_PWR_OUT_CTRL2, AXP22X_PWR_OUT_ELDO2_MASK), AXP_DESC(AXP22X, ELDO3, "eldo3", "eldoin", 700, 3300, 100, AXP22X_ELDO3_V_OUT, AXP22X_ELDO3_V_OUT_MASK, AXP22X_PWR_OUT_CTRL2, AXP22X_PWR_OUT_ELDO3_MASK), -- 2.24.0