Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1946708imu; Wed, 21 Nov 2018 04:33:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/V/ZK908YTaUwoqRjtUsMJf5ckCjtyDgtERDGVI1pbb7+ZGeXa9Nas4+oVuizQ2BMGO2Hxl X-Received: by 2002:a17:902:654a:: with SMTP id d10mr6481609pln.324.1542803628005; Wed, 21 Nov 2018 04:33:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542803627; cv=none; d=google.com; s=arc-20160816; b=rP0zDKsiHKuOuX2Twz63h5JDFMja7LXSffXFojidYs5A9f9OmVFwy3TN+aMRBV8n7Z el0cANqtrh3RU/EyHCurg8zeHcHKHEG9oKdFkepsCyzPLHNi+Hxwt/S4mTiWc/wv+QZw mw8VoEt6UPITrcQqn1/8VYMBx/ZB3pZVhYab6TU1gynVtVIY99vsX0IlIm3p8JGa7vV0 xg9hBAtIbBaIxBKo16hlxJQHMHTIR6J0dEdFaNaaJSEplK6AjusGLXaK11YVrfxI0oC2 u7jp6QFJFxefrgj39Xez1/9s+i27zh2kD2v8akxkwLA04D5oVvubGvwg/NipUz780K/F j4Wg== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=J4deHreI/JGMmvAdii/FmbIFP1i3kqBIWmI/sY6Q1FM=; b=tXWpDf9ZfpKKACJiiz7tCt+z2DRads0OGy4vq9IouW0UHQHa1pxOSIh8QUaNFnjBYP KLcsAN8Qg/W124m2Jjxz1vRf6hPmi2dvd0sChbbX42Nxm42o/hxysC4Q/ceXh4znlRxE QSDXl4N0DeP/1oQEAE/X4ob7vskvoJUL8bx+SD6Yn7qQIKjuboN9teW2eZnbv/RG8YPH dhXzaa12TLl3b970tzAskGwUYlayvJCG+fR7yXL3+YxcVR0ixuslpUx66yvU9eaTRjQD o740dwzjoLGYV0izIcu6/hEKIzDfQuqdW9cQg/vG4Pf8TzpF4c8pOGCHyqKLqcgRASh7 f+Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=opTikQ+Y; 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 o6si9009405plh.23.2018.11.21.04.33.24; Wed, 21 Nov 2018 04:33:47 -0800 (PST) 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=opTikQ+Y; 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 S1730329AbeKUXGU (ORCPT + 99 others); Wed, 21 Nov 2018 18:06:20 -0500 Received: from mail-eopbgr80075.outbound.protection.outlook.com ([40.107.8.75]:44352 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728428AbeKUXGU (ORCPT ); Wed, 21 Nov 2018 18:06:20 -0500 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=J4deHreI/JGMmvAdii/FmbIFP1i3kqBIWmI/sY6Q1FM=; b=opTikQ+Y+3oNw94MLMQXDuReRPb1fwLOnpqkB6fh9keBkBZ0aJ5Rmb+DxsokXlEYLSXZQ97IjJwfkdjy4Iol5Wk3PcDlSDZkxmA3G27cL4NFGkXmJOAsgYzjsa0bBw97FpQXjto0Kp2TGUnF5HVUCHwBwymP1ULWv5iR3Myaq8o= Received: from DB7PR04MB4618.eurprd04.prod.outlook.com (52.135.138.152) by DB7PR04MB4987.eurprd04.prod.outlook.com (20.176.234.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.14; Wed, 21 Nov 2018 12:32:05 +0000 Received: from DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::28ab:d6bc:2c00:a54b]) by DB7PR04MB4618.eurprd04.prod.outlook.com ([fe80::28ab:d6bc:2c00:a54b%3]) with mapi id 15.20.1339.027; Wed, 21 Nov 2018 12:32:05 +0000 From: Joakim Zhang To: "linux-can@vger.kernel.org" , "mkl@pengutronix.de" CC: "wg@grandegger.com" , "linux-kernel@vger.kernel.org" , dl-linux-imx , Joakim Zhang Subject: [PATCH V4 0/1] can: flexcan: add self wakeup support Thread-Topic: [PATCH V4 0/1] can: flexcan: add self wakeup support Thread-Index: AQHUgZY2jbX1fwn0/UyjDuG4t3MZig== Date: Wed, 21 Nov 2018 12:32:05 +0000 Message-ID: <20181121122957.2684-1-qiangqing.zhang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-clientproxiedby: SG2PR06CA0205.apcprd06.prod.outlook.com (2603:1096:4:68::13) To DB7PR04MB4618.eurprd04.prod.outlook.com (2603:10a6:5:36::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=qiangqing.zhang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB7PR04MB4987;6:+mJDwjdVdks28hf8yeihZLPky7GzyAOcxQzMmFsLORmL48gIoLIu0j+lssU8eS/pwsDJgOrOFr2qDKaz1GRVKZj/nA6kWH1PTEozeCIEwJD0kAcOdp9kaQl3elAp49P/bFNAbdQDCZ/4x+LATmD/NvW7gJlKo7KFV21893RO+jlUYd3gRrXySK7BtUo1yPApixeB9nXWELr5cm3lTZpto9FD1az523d/mgdp44OqlXDcZzAhBxVCyQlbBbovKcKDkQzz2m0sAcDtORHJCrZuanziJV74BGFYYuCjbvnFhkfbyzl5I9D+DdLd0+KP6MlFMgnBTwr25EDLMd4We2u4Ew+tzWuZm3E4Fk7FrgMhy+1aZeCGiZ1SKVb7mqxcIqc+2KbtVkghRfKKqujFKMCqK2y1ln+oDZTGPG94NsL7qgFPNoupkwKR7qw63UvppqClzGhOy3u2fg7/RimYvFL3/Q==;5:MNP7NrmNNB4AtZZOsVPUyyC/t8HwqrX+3E/CA/JgeNCiSSMtU9W92u3h2DeZsNjLLGfbSfeO/D2J8UgbhBb4JXJDjhRDoWnSo+RLrwcX3fxcpZHwDpyO1ssP065SCLQHKf2eaP/IWBQsz3Z7wIMOorfORQpjqpqJJB954HeoGrU=;7:usilyHRTkySXunnjlHLRqx0agB8MDJ9HT1Jd+ELpBhu9YFj7db2dfZ05223rKc5Yex8oWNGZHwBr/X9OdmGglv8+7CRTxgm5ZOYOVskVgFmqi6+vGBZNR3g01UDyuL8OH4s5ju0iGi3BkB5x+H/H5w== x-ms-office365-filtering-correlation-id: 37d98503-1a95-4d45-cfb5-08d64fad5844 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DB7PR04MB4987; x-ms-traffictypediagnostic: DB7PR04MB4987: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231442)(944501410)(52105112)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:DB7PR04MB4987;BCL:0;PCL:0;RULEID:;SRVR:DB7PR04MB4987; x-forefront-prvs: 08635C03D4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(376002)(346002)(39860400002)(136003)(396003)(199004)(189003)(54534003)(478600001)(99286004)(102836004)(6436002)(14454004)(52116002)(6506007)(486006)(2616005)(3846002)(6116002)(476003)(386003)(6486002)(256004)(14444005)(26005)(106356001)(54906003)(110136005)(86362001)(25786009)(105586002)(66066001)(2900100001)(6512007)(53936002)(5660300001)(81156014)(81166006)(4326008)(186003)(1076002)(2906002)(8676002)(50226002)(305945005)(8936002)(7736002)(316002)(36756003)(97736004)(68736007)(71190400001)(71200400001)(2501003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4987;H:DB7PR04MB4618.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-microsoft-antispam-message-info: mcFtB6+SPrHI9ebI6NBvh5OKukK4ZZ/FU+j5P2Hzmdc71xvycE1Tplrx8HlOrANDLE9F570DpbK3Tp7qYvpg91ZJi/dY1pyziSsrewbXLdzm/eXMAEbXEvdiaeVZfeN2Sp8LzAec5j9Q/2QW1z/mc1QVu4zI6bmSl8hG1ISQh2hsdQzzeQ7eA3BvxRrqe0fhoOc7eTwjblb12kUjRG8bR0SX+2DkTDUDoWePsYpBcFbsJHnPo8o78VuF6SoSL7X+mU1aCIcvREomhchh2TFnCqnt7hLEeYybZlN3tom3I/dzY7GsB1NhjG3ZUDNoo/j1wATe1G4Jmh0jqfi7JWW6y3Ej1zW+kw1wGxizefPyDeI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37d98503-1a95-4d45-cfb5-08d64fad5844 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2018 12:32:05.5063 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4987 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch intends to add CAN self wakeup support. The CAN controller can parse stop mode property from device tree to enable self wakeup feature. ChangeLog: V1->V2: *add a vendor prefix in property (stop-mode -> fsl,stop-mode). V2->V3: *add FLEXCAN_QUIRK_SETUP_STOP_MODE quirk. *rename function. *fix system can't be wakeuped during suspend. V3->V4: *normalize the code following Aisheng Dong's comments. Aisheng Dong (1): can: flexcan: add self wakeup support drivers/net/can/flexcan.c | 163 +++++++++++++++++++++++++++++++++++--- 1 file changed, 154 insertions(+), 9 deletions(-) --=20 2.17.1