Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp308576yba; Thu, 25 Apr 2019 23:54:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgGFJssaepEvcf3iD4JRmzmdTKPq5BRM2RCKIMjGDgJ0Pa/3xVan36lK4+YOuo6qu7OQyB X-Received: by 2002:a62:5582:: with SMTP id j124mr45363670pfb.53.1556261668585; Thu, 25 Apr 2019 23:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556261668; cv=none; d=google.com; s=arc-20160816; b=O3bSu4ctc8iuLYvyNuzxhkeoCOf5ExZA+AOIJgsgk5FyqiSP/Ml6oYQHyyFXrOqHw3 lOuwL3D6zgKublxm5WNB7CdEFdBj3RPo+uxraqri0QH+KnmbUN21zCVpzlBlMmErad9n hHBshvxxYdj+HnwdTtVDyWPkWWNUg7itHoXSKMlwlJHHVYcgQQ+tX6BJRIlgREfif81o D4twzQTzTIxKl7NtuHBFbN30z2Gm4jr8iDDAI4b/ItVsbXCinyoMla45iyTnEWgTee1c uvfbPuAt2lN3gZSwnT5zPGDdnr0NfLCTbGxFekfZQ1l+Y4kFdbM/OrBk7+Uzvc13vWjF Oy+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=+n77c3DJU2ZoX/ufclnCOYwKRdoFJL/XoFWLeD5Udjo=; b=c9rHe/DA05u7kL7iJhFA4sno5iShFgOeMTFITK0trQCIk5czydZh1Z1ELZqEeZVL+4 igu6AwG5deUAzuAmTpcU2FJON6sBQUzd30/zkpu0Aw+Y0Z0QhoftvU88nUGjSr8UjExp qdW2f+tX3GNzYOoPbZistxRRB9gqNbK6cDJu8YF3VXq5zS4gFfgcPnPj1sp4xKQOeO1H cOqoSNYSLKHHycmlsodp4fnmwCsDzgWMaMldKM9byUD8mHqTGCo683uM/oH1BkrveCBX XvYbMNIdyfOxeg+Z5YfyAsCHreQwht7o1/vprbx9PztU2MfMaGSFzXeNNyMXCn78DZH1 SrTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=TU+oVrfT; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si22766854pgp.280.2019.04.25.23.54.12; Thu, 25 Apr 2019 23:54:28 -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=@nxp.com header.s=selector1 header.b=TU+oVrfT; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725985AbfDZGxS (ORCPT + 99 others); Fri, 26 Apr 2019 02:53:18 -0400 Received: from mail-eopbgr40069.outbound.protection.outlook.com ([40.107.4.69]:25250 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725893AbfDZGxR (ORCPT ); Fri, 26 Apr 2019 02:53:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+n77c3DJU2ZoX/ufclnCOYwKRdoFJL/XoFWLeD5Udjo=; b=TU+oVrfTQavfYMjAmaIGFM53ZnjIn5qitq8j27S1C5J8+YSDZRjzjrIpRs9JWH0NJ9BEUVbbPoy29tIKebKm6NEJTkk+97dnFfCj+8yW+WfcMmZ89t68QO9bcbg4S4Rm99fmKGqWTME4Cin2KV/pILobnG9yYDD5MfDxmMT8XqA= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3657.eurprd04.prod.outlook.com (52.134.69.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.17; Fri, 26 Apr 2019 06:53:14 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170%3]) with mapi id 15.20.1835.010; Fri, 26 Apr 2019 06:53:14 +0000 From: Anson Huang To: "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Aisheng Dong , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH] clk: imx: correct pfdv2 gate_bit/vld_bit operations Thread-Topic: [PATCH] clk: imx: correct pfdv2 gate_bit/vld_bit operations Thread-Index: AQHU+/y4TYtf1+nKQkWX+VpUdHACww== Date: Fri, 26 Apr 2019 06:53:14 +0000 Message-ID: <1556261303-6360-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0P153CA0048.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::36) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e3e5935e-f82b-4bcc-f08c-08d6ca13da86 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3657; x-ms-traffictypediagnostic: DB3PR0402MB3657: x-microsoft-antispam-prvs: x-forefront-prvs: 001968DD50 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(346002)(376002)(396003)(39860400002)(199004)(189003)(486006)(476003)(2616005)(14454004)(50226002)(66066001)(6486002)(6512007)(8936002)(81166006)(81156014)(6436002)(14444005)(256004)(8676002)(25786009)(53936002)(478600001)(2906002)(99286004)(186003)(6506007)(4326008)(386003)(102836004)(3846002)(26005)(5660300002)(52116002)(71200400001)(6116002)(66556008)(66476007)(305945005)(316002)(110136005)(2501003)(68736007)(66946007)(64756008)(66446008)(71190400001)(73956011)(97736004)(2201001)(36756003)(86362001)(7736002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3657;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: WPVUqXUXnhy9Rlnd3F0p/M6MjERjXsVZMQsJ94xcn+m4leJ0hQFW7ftB5XSmYSoJzVS9xRG6TerI2TMkIFZVB3qbOn0akvtUr6PtizZgBCNsXpc1aA1yoqFs/oi9Lk7FuZ10LDnpVhSFY0cWoqNgglwiCSvmFLpZW19hJGDdmAVZvsQTq2oC40UPSEQb1fZbGK2z7TPxAaTaaC5mCe4qorB6pf7ov2xzn4+FN+1RB+wsT9xMsjQrMbqLQ5A3OMWfwwrMCnnYEuJLpkfSE3COx6j3oi907UmTtQ0JveXfb3fxP9+zfrFZXqfxvs91mhDmJQby2tM2ft8fa0xSvTjqWn0u0imu7rq9AT92eVrrk4G84MiXlk4uzJRT1g2shxCgT5eiMO7VvQgg+Pjh4TTYn8j9YbAnaaG7fEpc4SX2b3c= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3e5935e-f82b-4bcc-f08c-08d6ca13da86 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2019 06:53:14.4193 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3657 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIG9wZXJhdGlvbnMgb2YgcGZkdjIgZ2F0ZV9iaXQvdmFsaWRfYml0IGFyZSBpbmNvcnJlY3Qs DQp0aGV5IGFyZSBkZWZpbmVkIGFzIHU4IGZvciBiaXQgb2Zmc2V0LCBidXQgZ2F0ZV9iaXQgaXMN CmFjdHVhbGx5IGFzc2lnbmVkIGFzIG1hc2sgd2hpY2ggY291bGQgYmUgMzIgYml0IGxvbmcgYW5k DQppdCBjYXVzZXMgb3ZlcmZsb3csIGFuZCB2bGRfYml0IGlzIGFzc2lnbmVkIGFzIGJpdCBvZmZz ZXQNCmJhc2VkIG9uIGluY29ycmVjdCBnYXRlX2JpdCB2YWx1ZSwgaXQgY2F1c2VzIGluY29ycmVj dA0KcGZkIGNsb2NrIGdhdGUgc3RhdHVzIGluIGNsb2NrIHRyZWUsIHRoaXMgcGF0Y2ggZml4ZXMg dGhlDQppc3N1ZSBieSBhc3NpZ25pbmcgdGhlbSBhcyBjb3JyZWN0IGJpdCBvZmZzZXQuD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