Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3015611imm; Sun, 1 Jul 2018 10:20:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLPyvvgtGT6Lw4CvnEUCV91t5FqUOop2u+OEiNPsQfA7803BV7oHccM+ZZwa9g13IC2pJyQ X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr22973131pln.40.1530465638690; Sun, 01 Jul 2018 10:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530465638; cv=none; d=google.com; s=arc-20160816; b=w/A3iMP09RxWCgYIRzlkLibOvJt9o5MACDI3IZhEDf90ZxRO0DYvJbOn6u9fpPATkm xdZfQM5E5n+wkB1MQ7bsAal6e7UdH4LgvVAj/yMLiTWIhjz665c4XoA+7GwInfOni/eG FTN6rdakceI5qSZLvPJ3dt++eWZXyFxZ9zXrQ27b5IjDHjo/QuPV+hGWQXqfoc1FU6RU QOqeYYftFOL9WujvskXewtQRh2gWLDTQ0RXCPrGt0+58UTKlFGS72+RZolK6GCFRmILX 22WoBtmUxKb3SgZniXdcrpkhiLVKAMt7fT+PuYdVfwcthPNrlDWB5K/AWgffIYMDivzl Pc+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=D6hElpwMq1C9OGJnJUw4x3aivExWUXxtsjiPEINOi04=; b=yW0E2J1gKz6maLRudjDbPQ31Uycs7j1tiBinMqvdQfBi7V/PKDLE53941cWxyrykX7 h1OHHFGzGJclX7XNB5RRPPCqlEAY1oPUhIz2zfsrTpvtAHJagLEE2RO18TYEKEk9VLl6 NuzTwCPreTqgBrDvJt3fhP5QMYIU0afqc+1hQvS5TIKwr1M35ADsvAs/aWHlyAOEZFAx wwX59vY1owrgwRScCAw2A8M3QNpco08qfUSxxX+wI/vky16BuHIsxEtladPAU3/xrQRz Pwgx9zjGlJKv1VMnWIi7uFWtmRomlvE32yp9gVpXQFx7p47RpVEin4cDi67JgJtc9XeA jrgQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5-v6si13699021plr.56.2018.07.01.10.20.24; Sun, 01 Jul 2018 10:20:38 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030581AbeGARSg (ORCPT + 99 others); Sun, 1 Jul 2018 13:18:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36818 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030987AbeGAQjB (ORCPT ); Sun, 1 Jul 2018 12:39:01 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0FE1092B; Sun, 1 Jul 2018 16:39:00 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Finley Xiao , Elaine Zhang , Ulf Hansson , Heiko Stuebner Subject: [PATCH 4.17 055/220] soc: rockchip: power-domain: Fix wrong value when power up pd with writemask Date: Sun, 1 Jul 2018 18:21:19 +0200 Message-Id: <20180701160910.637487959@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Finley Xiao commit 9e59c5f66c624b43c766a9fe3b2430e0e976bf0e upstream. Solve the pd could only ever turn off but never turn them on again, if the pd registers have the writemask bits. So far this affects the rk3328 only. Fixes: 79bb17ce8edb ("soc: rockchip: power-domain: Support domain control in hiword-registers") Cc: stable@vger.kernel.org Signed-off-by: Finley Xiao Signed-off-by: Elaine Zhang Reviewed-by: Ulf Hansson Signed-off-by: Heiko Stuebner Signed-off-by: Greg Kroah-Hartman --- drivers/soc/rockchip/pm_domains.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/soc/rockchip/pm_domains.c +++ b/drivers/soc/rockchip/pm_domains.c @@ -255,7 +255,7 @@ static void rockchip_do_pmu_set_power_do return; else if (pd->info->pwr_w_mask) regmap_write(pmu->regmap, pmu->info->pwr_offset, - on ? pd->info->pwr_mask : + on ? pd->info->pwr_w_mask : (pd->info->pwr_mask | pd->info->pwr_w_mask)); else regmap_update_bits(pmu->regmap, pmu->info->pwr_offset,