Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9100442pxu; Mon, 28 Dec 2020 06:39:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgElzLmG8bSEGR2QT8jbvNDGFvZ3SzZkhVquU4PZSvZxPvePfwpF79/jbom2uUs9N6Ijqd X-Received: by 2002:a50:d484:: with SMTP id s4mr42266255edi.13.1609166348112; Mon, 28 Dec 2020 06:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609166348; cv=none; d=google.com; s=arc-20160816; b=ur3HuK+WjdOMS7wBGVS8+MR7hXG0v3rW2rEL2udUTs/MqF9jz6D9INxm8SS8+qUon1 iVWP+5GgrjUSUvcVHDlPgvqq2KOzVW1OB+UIqkIi4SNHmNdd5NX59wxYs+ORXyOkh8iD i0eMIHao/Zxz6rIpjS9JbATeF42p54VkS+rUK6D2ydIP5HwArN2v7hsmrZ8Owcuco+Y5 9tFEkRx3WDgPRIU+R1ZspERK58bcl+ygdNhgVLYXzCLo98OsFPCHfsRULuGXj82uQIgv og5G98WmSOSTV+x+AE9rz+fyKAqRJ8+vGPQjrTHS7w73IOz6LHo9B2PmfwY76dVJK6bT C+UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MS3mjFgTG1DHyfy0Q6u4KJzBO5efRecoc0/n7HMXHc0=; b=I32NMU61EFxs4dR+bYdnoR4YN8m4GhBZIqh6m5p9V8Fsmd75C1bxfCJI1ncuDzigHy xjxyD2ZT599ageBr0VbJdERABUAt3N9OJIZFJEUS8V2cA6j43p3QFB4ET56zprzIzNmT U1sojkLyvNA+jSe0+TtzSuGT9eoTWjKUSIDqddYumnZa4Arr7CwEZrJvmuZZDNhv798e 7wB9TRw7FCdX+iSeF3v2GQfQ7hhvUzHBfhN25xU9oCbqIl/cPDgSpZE6/Jlq83RmRctU tCW1Y59bnz7EeEpcFthKgpVkKt9xQHawJMxRpbzgsJZVOEvRyMxJ6AeBHd1kVujQd3Zg oatg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B4QLG8BW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si19103457ejk.401.2020.12.28.06.38.44; Mon, 28 Dec 2020 06:39:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B4QLG8BW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2505638AbgL1OhC (ORCPT + 99 others); Mon, 28 Dec 2020 09:37:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:40716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504873AbgL1OdC (ORCPT ); Mon, 28 Dec 2020 09:33:02 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6763B2063A; Mon, 28 Dec 2020 14:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165967; bh=vxJLSJ059SiscfOtsXhu51ELAFTi6Fb31dlx00FjoX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B4QLG8BWIfcVr0bqAYd5b2S6vyMgLX2Ym5SY9A9LXWxbd9w3eZDRQ3HRhAA02PmPX +Ehcunvb4r5qNzMR9+z6cP+4X5wf+GItsvWW2nJaYgXY6GqMxzQFBftMyN71l61Th1 73raNAyuQr0jWH4N0F7Kt81QoG7I6BZCMFopsqi4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, DingHua Ma , Chen-Yu Tsai , Mark Brown Subject: [PATCH 5.10 711/717] regulator: axp20x: Fix DLDO2 voltage control register mask for AXP22x Date: Mon, 28 Dec 2020 13:51:49 +0100 Message-Id: <20201228125055.061781230@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: DingHua Ma commit 291de1d102fafef0798cdad9666cd4f8da7da7cc upstream. When I use the axp20x chip to power my SDIO device on the 5.4 kernel, the output voltage of DLDO2 is wrong. After comparing the register manual and source code of the chip, I found that the mask bit of the driver register of the port was wrong. I fixed this error by modifying the mask register of the source code. This error seems to be a copy error of the macro when writing the code. Now the voltage output of the DLDO2 port of axp20x is correct. My development environment is Allwinner A40I of arm architecture, and the kernel version is 5.4. Signed-off-by: DingHua Ma Reviewed-by: Chen-Yu Tsai Cc: Fixes: db4a555f7c4c ("regulator: axp20x: use defines for masks") Link: https://lore.kernel.org/r/20201201001000.22302-1-dinghua.ma.sz@gmail.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/axp20x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c @@ -594,7 +594,7 @@ static const struct regulator_desc axp22 AXP22X_DLDO1_V_OUT, AXP22X_DLDO1_V_OUT_MASK, AXP22X_PWR_OUT_CTRL2, AXP22X_PWR_OUT_DLDO1_MASK), AXP_DESC(AXP22X, DLDO2, "dldo2", "dldoin", 700, 3300, 100, - AXP22X_DLDO2_V_OUT, AXP22X_PWR_OUT_DLDO2_MASK, + AXP22X_DLDO2_V_OUT, AXP22X_DLDO2_V_OUT_MASK, AXP22X_PWR_OUT_CTRL2, AXP22X_PWR_OUT_DLDO2_MASK), AXP_DESC(AXP22X, DLDO3, "dldo3", "dldoin", 700, 3300, 100, AXP22X_DLDO3_V_OUT, AXP22X_DLDO3_V_OUT_MASK,