Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5401954yba; Wed, 10 Apr 2019 19:20:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6w1CO2S37elhbS8VqvrqZy7Nf7Cb8Lal7qx0K6hPdrqAMpnWnr5qlmOheR4aKjax9c6bg X-Received: by 2002:a63:3185:: with SMTP id x127mr44827891pgx.299.1554949256546; Wed, 10 Apr 2019 19:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554949256; cv=none; d=google.com; s=arc-20160816; b=bTlnHHCbeTqKSzNtVg4a+2AfrGnyZydm0D/Nj5/kYt6g6te2F9dJ/PdMKJTqT4P1SP cBROVqvFg9Y6wq7RQVAKtk4pSdhA3LD2AXDLiu/h6t5trqA9knOMGmnaNkm4ZQTx0bIV 4bCM8kvcyuTk56xZ+EZA+CEgwK5+489gqqn2oUNkjZu85y6zK+0aKw05WvIuy3XjNadw Cv12u4fjSAnIoIUpc6rz/r1wQ9MlZLLoz7EwIeIpQ6FJD947nz1WNypePZIWCV6kSAsi B+uL7hJPDstw94YC7RFQ77ntquBlfMEf/iIxOQ7nZj5pUhzd4/7l0skhULE9GXKbw/uy 3svQ== 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=Bf2XIByzY8NYYvG28nCwEnTxaT9EC44JTtjyYXXMSZE=; b=JHj1C5NaPuOpsJuruvvq911SNPyhItxA+Kd2SNhZOqq6XN+b0NyAEcXu2KICfTVt/d P21OkDStK1moIUCTgV9fbU0PVI2x/PS83Ni+K0/si/supypRZXXUR+Fd9YO7nRv21E9Q my6xFvqZdvZjWV7AJ7fFVHjH3McbzTJVQoj40sH14ceT+6wSc3kiq9sN4r2bjgjIQjX2 /q7SzH8O00IQ3cGzzkbXbaoyFUht3E+iz9toBmBJw2wu3ZCNqzgBJ5qGcY5ipD6++ytq FJcSg5AtSZrAxBNtre7+l+0JVI1UclFK5bZUGkHtoR08iY/Vs4VL8eSB7XsI6cxV1YZ2 fX7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=MBy5TwwT; 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 k75si33451843pgc.515.2019.04.10.19.20.39; Wed, 10 Apr 2019 19:20:56 -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=MBy5TwwT; 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 S1726686AbfDKCTz (ORCPT + 99 others); Wed, 10 Apr 2019 22:19:55 -0400 Received: from mail-eopbgr70052.outbound.protection.outlook.com ([40.107.7.52]:11748 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725982AbfDKCTz (ORCPT ); Wed, 10 Apr 2019 22:19:55 -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=Bf2XIByzY8NYYvG28nCwEnTxaT9EC44JTtjyYXXMSZE=; b=MBy5TwwTjCw0NZ5BV2GaAQUScfCW5cz7sVI8LmLHzW3V3D9apC9xtzb7fPPjeG12woi8ivyYJ/CeERHQOPS0v3inkSCXoUBk9lRqWT0VfpsY+XUYcO+CFlDlZHJImLcX9tCX9k5dqboAK5qYnLuNsNdZQOy8JDxAjrXYdkJNsBI= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3836.eurprd04.prod.outlook.com (52.134.71.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16; Thu, 11 Apr 2019 02:19:48 +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.1771.016; Thu, 11 Apr 2019 02:19:48 +0000 From: Anson Huang To: "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH] rtc: mxc_v2: use dev_pm_set_wake_irq() to simplify code Thread-Topic: [PATCH] rtc: mxc_v2: use dev_pm_set_wake_irq() to simplify code Thread-Index: AQHU8A0J0UP/j9Q4o0GQI21MjlYhWQ== Date: Thu, 11 Apr 2019 02:19:48 +0000 Message-ID: <1554948890-21635-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: HK0P153CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::21) 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: 4fd8ffae-3bd5-474f-600c-08d6be242bde x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3836; x-ms-traffictypediagnostic: DB3PR0402MB3836: x-microsoft-antispam-prvs: x-forefront-prvs: 00046D390F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(366004)(39860400002)(136003)(376002)(199004)(189003)(2906002)(8936002)(81166006)(36756003)(6436002)(50226002)(256004)(4326008)(316002)(14444005)(97736004)(53936002)(386003)(81156014)(7736002)(305945005)(186003)(25786009)(68736007)(5660300002)(6116002)(105586002)(106356001)(486006)(99286004)(2501003)(6506007)(102836004)(3846002)(66066001)(508600001)(26005)(52116002)(14454004)(71200400001)(86362001)(6512007)(71190400001)(2201001)(2616005)(476003)(8676002)(110136005)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3836;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: iICVZGI9ECzFsc7DclkDeF3owbQmjBl/lJK0e35d2bzHEYO3TwOPhtbh683KgmA2rZRtXo70YXqG1MtW7QL/PUJHdbbC/qvYnE+qf+Jddo6I4Jj0iChYBBzdRFUv1YDOLhcoqwlKlalLL2tm1GJbeYxNX223Qu5ONauW4Q3SQIYfZUo7LafO+7LUdBUpChbyeqjb9wp6wx4+AUOb4kK8LKcHIDb4swl44Uh8KftYkSJ8LHIHofeepHDWCBEZHN9KpkeIFfrfyTgQxPGQuphZxQQ/XZWqpG/OtlnvOrhOgOCtXRXyOafCAiRH+Xeod2DodFGTLeRepzcJfhzvUT0YN0+uyZBXWDhYFZ7Sqa8eO3wHgaqMpzP0aH4htWl75V5VIg+jQ5KEOmgRLZHBibKMEQbcoVZ6/RGLhWtEQNRg7UY= 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: 4fd8ffae-3bd5-474f-600c-08d6be242bde X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2019 02:19:48.6379 (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: DB3PR0402MB3836 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org V2l0aCBjYWxsaW5nIGRldl9wbV9zZXRfd2FrZV9pcnEoKSB0byBzZXQgTVhDX1YyIFJUQyBhcyB3 YWtldXAgc291cmNlDQpmb3Igc3VzcGVuZCwgZ2VuZXJpYyB3YWtlIGlycSBtZWNoYW5pc20gd2ls bCBhdXRvbWF0aWNhbGx5IGVuYWJsZQ0KaXQgYXMgd2FrZXVwIHNvdXJjZSB3aGVuIHN1c3BlbmQs IHRoZW4gdGhlIHN1c3BlbmQvcmVzdW1lIGNhbGxiYWNrDQp3aGljaCBhcmUgT05MWSBmb3IgZW5h YmxpbmcvZGlzYWJsaW5nIGlycSB3YWtlIGNhbiBiZSByZW1vdmVkLCBpdA0Kc2ltcGxpZmllcyB0 aGUgY29kZS4NCg0KU2lnbmVkLW9mZi1ieTogQW5zb24gSHVhbmcgPEFuc29uLkh1YW5nQG54cC5j b20+DQotLS0NCiBkcml2ZXJzL3J0Yy9ydGMtbXhjX3YyLmMgfCAyOSArKysrLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLQ0KIDEgZmlsZSBjaGFuZ2VkLCA0IGluc2VydGlvbnMoKyksIDI1IGRlbGV0 aW9ucygtKQ0KDQpkaWZmIC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