Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp282362imm; Thu, 10 May 2018 20:37:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoiAuhYgu5BG06s4Wb1xrsQpP3Mn2aZAUCKffYV6MBD0NmQCV1kIt0rQqqvRlg6ewzURzmL X-Received: by 2002:a63:755a:: with SMTP id f26-v6mr3190794pgn.30.1526009866336; Thu, 10 May 2018 20:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526009866; cv=none; d=google.com; s=arc-20160816; b=RgXOFZVVeNTqptvMqfio8vP0d4qHRFIgWYwbqrKiqDpQSu4yggeC7PCOuhZw5bHZe2 oD2te5wad+mOcBFjifdq9a3nr8pGeUZXQXDAVMGbF8qP5iwS73+nFLNNrNOUt9/Q8+aH 2pK5yioF8jGbCHPxLRUEuhnhUGa8LOPWGK+N0EalvO6OSBxDIfvDahWwDG/BFUzz2KPx 2TT4j86jBgtsUPwHUYLQyp+6euzm80QXISKGjMvzTuf93u5jCrnc8LmlkNZWC71aAEeJ Zch/s+GvsE/6Kfy3eVghixcQbfU94j3KIkoxvJXiOEavEBBHAW4mrDAnzyO6APodoOA7 bk0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=fuYuchtxBeOF3eN37DQFIYwmvyz/09ethRBIziIob1U=; b=SsEGoHDU4cx3SrTHZ1OclqMPyqT66u+BIWIHl85XFE38ihrsvUSxwCOt+xcTX/cp9J DfEtxCMdhPqHM01bAP0CUM/9ruKPnXfxy96VZvph/esunf0xsDQUqoBY0ZXa/Dtr+aZh c3hgCno1kyY7KdDyfF45dHv363seyPwvE41WQavk7SILjon08NCq14GyJXPVbl3a1D68 tq3OaAzQ97+2xDQSeXg8JTfN/0uVfYPhnL8Wxu5mYmDeOSzevP4AxYAosKfOSAcsg2Tc +Ptx1e0+g5s2EjwpqtLTPAnc+cQ2WUEKeV2kbOBrsXiTSFJ7nudknKHd6DeJGUsuyDb/ 5YtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@freescale.onmicrosoft.com header.s=selector1-freescale-onmicrosoft-com header.b=T5JkE32S; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i63-v6si1225451pgc.300.2018.05.10.20.37.31; Thu, 10 May 2018 20:37:46 -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; dkim=pass header.i=@freescale.onmicrosoft.com header.s=selector1-freescale-onmicrosoft-com header.b=T5JkE32S; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752306AbeEKDhB (ORCPT + 99 others); Thu, 10 May 2018 23:37:01 -0400 Received: from mail-sn1nam02on0107.outbound.protection.outlook.com ([104.47.36.107]:65072 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750751AbeEKDgz (ORCPT ); Thu, 10 May 2018 23:36:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freescale.onmicrosoft.com; s=selector1-freescale-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fuYuchtxBeOF3eN37DQFIYwmvyz/09ethRBIziIob1U=; b=T5JkE32SWmisOznRkWpxsCykiLmdgZZBHCA6UgQOcwN4w84jXgvGggDQ5NjuP3oavT7llsFd1Lq2k3OeHlaZTSQfEuoqu6pV8Pk9jOGPAj60UX7lDB6S+Y+I6p1oeCsejNC6HXMTnTVeXM5s6/eNWxf6pDIZxDJaYQkuRvGIfFA= Received: from MWHPR03CA0034.namprd03.prod.outlook.com (2603:10b6:301:3b::23) by BL2PR03MB387.namprd03.prod.outlook.com (2a01:111:e400:c26::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.16; Fri, 11 May 2018 03:36:48 +0000 Received: from BN1BFFO11FD005.protection.gbl (2a01:111:f400:7c10::1:175) by MWHPR03CA0034.outlook.office365.com (2603:10b6:301:3b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.16 via Frontend Transport; Fri, 11 May 2018 03:36:47 +0000 Authentication-Results: spf=fail (sender IP is 64.157.242.222) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 64.157.242.222 as permitted sender) receiver=protection.outlook.com; client-ip=64.157.242.222; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (64.157.242.222) by BN1BFFO11FD005.mail.protection.outlook.com (10.58.144.68) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.715.13 via Frontend Transport; Fri, 11 May 2018 03:36:46 +0000 Received: from az84smr01.freescale.net (az84smr01.freescale.net [10.64.34.197]) by tx30smr01.am.freescale.net (8.14.3/8.14.3) with ESMTP id w4B3ajFM025696; Thu, 10 May 2018 20:36:45 -0700 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w4B3aTsp014534; Thu, 10 May 2018 20:36:38 -0700 From: Yinbo Zhu To: , Rob Herring , Mark Rutland , "Catalin Marinas )" , "Will Deacon )" , "Lorenzo Pieralisi )" , Li Yang CC: , , Daniel Lezcano , Thomas Gleixner , Shawn Guo , Madalin Bucur , Hou Zhiqiang , Changming Huang , Minghuan Lian , Zhao Qiang , Fabio Estevam , "jiaheng . fan" , Po Liu , Nipun Gupta , =?UTF-8?q?Horia=20Geant=C4=83?= , Priyanka Jain , Sumit Garg , costi , Bogdan Purcareata , Meng Yi , Wang Dongsheng , "open list:CLOCKSOURCE, CLOCKEVENT DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , , "open list:FREESCALE SOC DRIVERS" , Tang Yuantian , Subject: [PATCH 2/9] armv8: pm: Fix issue of rcpm driver wrongly program other IP control bits Date: Fri, 11 May 2018 11:35:23 +0800 Message-ID: <20180511033530.7931-2-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180511033530.7931-1-yinbo.zhu@nxp.com> References: <20180511033530.7931-1-yinbo.zhu@nxp.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:64.157.242.222;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10019020)(1496009)(376002)(39380400002)(39860400002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(4326008)(336012)(8936002)(105606002)(5660300001)(81166006)(81156014)(2906002)(106466001)(446003)(51416003)(53936002)(76176011)(305945005)(59450400001)(77096007)(1076002)(47776003)(7416002)(7406005)(26005)(50226002)(54906003)(16586007)(110136005)(6636002)(6666003)(316002)(498600001)(48376002)(2616005)(50466002)(8676002)(44832011)(85426001)(86362001)(126002)(486006)(97736004)(8656006)(476003)(356003)(11346002)(36756003);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR03MB387;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;LANG:en;PTR:ErrorRetry;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD005;1:mss9jxqfPOJfzxfc+6gxicOToO5M5ZbFuAS/d4cZYNEjdBTGCV0R+HKNlTzKW5OMVEbjWk1V06/j0vgZqDcL3O6FIdTlIb74ksKfVw6wiEQYrFXI4b5Pi58TEGG8QSxO MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(8559017)(2017052603328);SRVR:BL2PR03MB387; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB387;3:yQjw0A/Tb88BraXUcQ09aEOyiWadLtHVqMTFkkdCKZianvA/jKwjnGMsT6olkPbNgONCLyXBUUkaiT8zGf7LW1f2BgtsL3xN7SiaaTm8BO81UO5txrHgo6UYdb6JsHcAwFCEsdQF97nWEL0vPufHqmsmXJd4CoRtv7R1JBVV9Mgx6yqMyj+kWIUtUbozs0DWnCeKcp+kWZMyXPFjzRjMgPHphRbDCTYXKQE9mz8wDPlF1v/Rdq4xc8LwN3I/0ooNcYC3ycLsnXeT8WluOEvo+Cc3yEKSDVclRZIiP4G/AyxewSywwaxCqjpndfrvB91kBVK7YhpHvx9mvF3QKLhPyU5LqYGOVJbIakckz8CTESw=;25:AzsSp8xk67ESGyUbez3RkLNgr9SvEgiIYB52zGQE3aqzQORF0ZkHJ3yyExiOq3dGg8Mn3ezN8r5waJkZNXGbnrdtNXTi/Al9uIouMKj7lUtir/iHZJGTAPpfosR2h+7BHUWons5bChHoW06skSssMScpISw4Wtqf/8CI6io7Scgx4Wj1fYfdNNiujFmaz73nCHXeouy4nDXe3ZIx/kfIte2Dql7nGS1VRpBo45Cj2/LZ76yBaJYubxF2wvJfWbiamxbQ6WvSxCiCyb1sDJIJRyD9OOh2bZiGagdQU2jzML9B1WzCKx16JZgikKbX870TipDL0dEq6XZ1hHzqSi9Uyw== X-MS-TrafficTypeDiagnostic: BL2PR03MB387: X-LD-Processed: 710a03f5-10f6-4d38-9ff4-a80b81da590d,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB387;31:c1mHT0S6/VH/rL6mF0QborRFBU7/IvC4sj0i19gagtQlHBOtb9Pey4dltsnA2zkQ6BV4rlKCw6AbuAPZBA7iUi+rMKTIW8ddBxUfLCNsd5BeFFdltOcmmOPt+Z7jVQnTHHl63wu36SxKbaAQzcDrqEZRO315QxA+mQlZFOcXCY6ggnBFVzAF/nvyunPaQR0erL62tkqt54rVhF6Si9QdxW/apR0/zAeM3d33Rafvs3c=;20:wn9nmtTflbyQ4tzI90xW2n8yMS+sMcS6rR5dwqOFGSM5qNfWRaAjBFXxDTPyfST4SXmoKGRzYHUrBTLLrFBitbNUzI6b9CDgGkwbnYpk/OWGYdbkR5UBpDhsPp2bZoHGFo2BeoIrStxIkJSQgR+WfMA2Q2XTv90Q4HAQfcAw39urTG/Q3UM8IZp8bSOSCkJVwBEKMRhOd8Mes831af/tyL/mWsv6OuV3cVWB91Nvjyn5YFsQvVrwqx20ShUMTeNudSnRHnpAfb55ikXKhloJmSuucsFLOwQS2xZ+jwvK2GkVKxh9kAJlwKLKji6yob2ItzOYBqi7W2MG0FwbUh9o/LQvy67y1E5nF0PPPBnHl8laAMhOFlU8Fii4nEd3GnJjD+qUz1G3op5wkQEY49ZR9HUqpVNfBKmvvtvKEkw/SneCGLTurWddry4J1Y6Ab+4BxRcT65tpj8w21DJcyb6L3ECjImzqDfPFJpyy/IvJXJlNFMql11ZNTv7zT5SEr0G45wtrCsQ/HqyCXD563Jc68P8x1XtXjKiEVSWUVQEnBkN7NcYByi4H2mzcwVsMCW8RpugSC+mK5oMC94eIfoJPyRY/sho+TW/FdyRai5VzMA0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 0 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(93006095)(93003095)(3002001)(10201501046)(20161123222025)(6055026)(149027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:BL2PR03MB387;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB387; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB387;4:JvnYfQBnhdfWtmyn75s6eQHnqzm2A38s0FSj1ushQhMOXNdAY+/IHQuoGhuIFVafI37kyrr8Jd26AMQwjV9q4WFdkSid9S4tOLIt/lYglLpuo+PASD7FApLHGKH/tonjAMmv376xfUGUPTp0ifgQpze4F33vNg6Zoqrc+VzBrBuSlc/v38usdnnzOxL9ZB/VIgeM6LysXpnzbsX9czqCMhFLs1sNswyhWKOCIFg0mTcktmSx+em7w5Eq+GzxfbRh6HLUqcXmKgJuzakjtnETCdqOYfBFdb5RzBpIZhW+rbODYa2X86a3qziZg13oD3Pg X-Forefront-PRVS: 06691A4183 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR03MB387;23:nMSyme74rNyxHfhu8OdBAgTjaDnnwb45/TBkacZMSd?= =?us-ascii?Q?+EdB8YOz+3v3JZ8vN4dtc9bGS4otD7Su8S+ObPekagDKgLVh4WR760i8GA4w?= =?us-ascii?Q?hHGuHeCpm7r1HMYUWyuMIfauEbkErmcaH9vNemQ0rBxZkkgAIQzRauNhHfqv?= =?us-ascii?Q?cOnlO6kw4aXSI96Fp661JOx9uxI1YlSShgoHplZBHspyGbsTkUl1A02l7yju?= =?us-ascii?Q?ZWRFEqa0fzKskMyDl081dBHFPH/8QbIpqvwO4FVNXr41YKOyr0LwWUuOaW3o?= =?us-ascii?Q?Fd+8qhvUIJ098dvlALJq+stUHflAq/9K0Nut2orheMulQtJESfpVD3XI40g7?= =?us-ascii?Q?FmtTKlk0foMBc6Ehx7BWG/Xn5ATta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microsoft-Exchange-Diagnostics: 1;BL2PR03MB387;7:wLthWI3Ug9hy6UdwQdDtp4vTXjPcP4J6n/UP+GMZMGo/lzaHr7i5/iNWumXRnUDx7Nog4uinKFi61J2tWlYJkpv0CLt2NprqakK8jZOqITg/9uZ0wU+qRoat8oPsjOwJOTfBsRvGPQ+9YkToIb3pZZhbLg1GmysUxyZj74ERmfWAxEV1x+UnZ1/YLvCHw/SSY4QjDBVWfXByW9qL7O2d1zTO3JA/wI8fvx/MoLUXcvzd+iLadpQkQ1kUSCQuLHGK X-MS-Office365-Filtering-Correlation-Id: 55fcea3c-8104-4d10-928d-08d5b6f06c22 X-OriginatorOrg: freescale.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2018 03:36:46.0724 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55fcea3c-8104-4d10-928d-08d5b6f06c22 X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[64.157.242.222];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB387 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ran Wang When rcpm driver get target register data from DTS property 'fsl, rcpm-wakeup' (second value), it directly write that data to register RCPM_IPPDEXPCRx rather than 'OR' the value read from it before. This operation will over-write those non-related IP control bit which might have been programmed, should be prevented. Signed-off-by: Ran Wang Signed-off-by: Yinbo Zhu --- drivers/soc/fsl/rcpm.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/soc/fsl/rcpm.c b/drivers/soc/fsl/rcpm.c index ff0477b..39eabfb 100644 --- a/drivers/soc/fsl/rcpm.c +++ b/drivers/soc/fsl/rcpm.c @@ -75,6 +75,7 @@ static void rcpm_wakeup_fixup(struct device *dev, void *data) static int rcpm_suspend_prepare(void) { int i; + u32 val; WARN_ON(!rcpm); @@ -84,9 +85,12 @@ static int rcpm_suspend_prepare(void) dpm_for_each_dev(NULL, rcpm_wakeup_fixup); for (i = 0; i < rcpm->ipp_num; i++) { - rcpm_reg_write(rcpm->ippdexpcr_offset + 4 * i, - rcpm->ippdexpcr[i]); - pr_debug("ippdexpcr%d = 0x%x\n", i, rcpm->ippdexpcr[i]); + if (rcpm->ippdexpcr[i]) { + val = rcpm_reg_read(rcpm->ippdexpcr_offset + 4 * i); + rcpm_reg_write(rcpm->ippdexpcr_offset + 4 * i, + val | rcpm->ippdexpcr[i]); + pr_debug("ippdexpcr%d = 0x%x\n", i, rcpm->ippdexpcr[i]); + } } return 0; -- 1.7.1