Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5911525imu; Mon, 26 Nov 2018 06:49:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/U1v1UuYUs19QBY28N5lUFw74ox/F6MqDdAHjPA3rR/M2Ze3/jwwInBnauJ2WC9VL1QZKzy X-Received: by 2002:a17:902:7e44:: with SMTP id a4mr28069123pln.338.1543243767683; Mon, 26 Nov 2018 06:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543243767; cv=none; d=google.com; s=arc-20160816; b=AhgYfiyP+VMOQpw0/HLrp3VC55IpSOfylEbLDImmFOo7l9Xp4H2bT0mGMhnMSIqTXd yuuLQUQIruLq9EzQ6f4z2EpIy4f27Ea5fRM/BK8nuEjKKkNHTsAOgS0ZICTfnh5YY15N yy+WlXOGE5aIaX7pRefa3zZlhY+Q9XnlHrgzO1p/QsRLT8tfS+sOBYojl+ICMcrVtpsE SG4WFcaDX3jDxcuQvfDvy7XdZE7QDYkvueaXpUB0DLxwOFub2Sh/ODwWQ7tG2ALqc/8a IT5lAdtBn5VwP1/s90By3ovMFsKY0e7+AiCUosu7KTABjypt0hICSSs44w8JcL+EwOCR ziLg== 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-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Ub8i+L9dlFHj7nDdZuFkSOlhr4Ihj/2ECCDxLWPrYqQ=; b=BpLXbDHRHnbM2fTmNdv6Nm2gfQDuOxFo15rVpIe4vyKCnvW9dgiHeIzv5i8VnM+BUk wyOZogNwt4zDTAfR8sRkivQ1vS/COyN7upVKElhW5SvI1vN1La1v/U7gyDC3NKcYdGUc XqvD7pFQgUkEolvchp3suF+iGC89xgeAKpbCHloP9GedfhH1tNhwNdrzc3o5Sj7e00fn KKeCs9ZutaDhzogPqSt3FfH0jHP5u3HoXrLaR9nHJa6A38gGgUOd0kSFhS92TAR/XtS1 0p/Wjt9T485XcUtVXo7seLNvWk4IPjLQSDGqNmhINpbOCunuP4bqwv61vg98CkcV9jUI W0xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=WdBTybX1; 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 n12si526494pfg.155.2018.11.26.06.49.01; Mon, 26 Nov 2018 06:49:27 -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=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=WdBTybX1; 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 S1727016AbeK0Blh (ORCPT + 99 others); Mon, 26 Nov 2018 20:41:37 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:53227 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbeK0Blg (ORCPT ); Mon, 26 Nov 2018 20:41:36 -0500 X-IronPort-AV: E=Sophos;i="5.56,282,1539673200"; d="scan'208";a="24517362" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Nov 2018 07:47:15 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.49) with Microsoft SMTP Server (TLS) id 14.3.352.0; Mon, 26 Nov 2018 07:47:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ub8i+L9dlFHj7nDdZuFkSOlhr4Ihj/2ECCDxLWPrYqQ=; b=WdBTybX1RI0/9y+iS5e7IiOKlLfGSQLnAtkQkhS2+qiVD1nADweFlr3xz+zZgq/CfGTtYESbjdAmWo4fcFSqIhwQPlzOhqAsQUEgmcxhQOl9+km2Yv1brg2EheZrhz1/Wt2gMKujE7zTHQF4r13kxC9mXySxmhggdNW2pTmem5I= Received: from BY2PR11MB0744.namprd11.prod.outlook.com (10.163.112.142) by BY2PR11MB0664.namprd11.prod.outlook.com (10.163.159.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1361.18; Mon, 26 Nov 2018 14:47:13 +0000 Received: from BY2PR11MB0744.namprd11.prod.outlook.com ([fe80::6c42:c3b0:5734:1681]) by BY2PR11MB0744.namprd11.prod.outlook.com ([fe80::6c42:c3b0:5734:1681%5]) with mapi id 15.20.1361.019; Mon, 26 Nov 2018 14:47:13 +0000 From: To: , , CC: , , , , , Subject: Re: [PATCH v2 3/4] net: macb: Add pm runtime support Thread-Topic: [PATCH v2 3/4] net: macb: Add pm runtime support Thread-Index: AQHUhZblud2/fyCVwkiLfoI+jtHbdg== Date: Mon, 26 Nov 2018 14:47:13 +0000 Message-ID: <2ebecbf5-8bfb-7d6a-f36c-db85dca69af4@microchip.com> References: <1543216072-9623-1-git-send-email-harini.katakam@xilinx.com> <1543216072-9623-4-git-send-email-harini.katakam@xilinx.com> In-Reply-To: <1543216072-9623-4-git-send-email-harini.katakam@xilinx.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0802CA0016.eurprd08.prod.outlook.com (2603:10a6:800:aa::26) To BY2PR11MB0744.namprd11.prod.outlook.com (2a01:111:e400:52de::14) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY2PR11MB0664;6:DDp7zfgwP8R6pcV2HIj8t8p9k5pRviUX8fOZ5QWaE4XQJEs9vzX/A5JP6Z/Rp9CDlVo2pgG8UhnKCoTLFSlUXBGfEOEFbMZTvCqGonhW6cNVowlP1dQMmf+a6gwq7NUKTwdDR48GzQnHnV6UGWSyYMg1ym6KNgae/fUrl9m5bupLjtfm+dQFY4KqD0+rI/PNESUX9X236rLssS+dhlixWoHDy715wSA1PqcPXpLO+4R6zuiLcSOJ/EF0Kd86rPbNgpsKiFAZZZVP0CKwtjPUqw4pzFOJvx9qYQPGbbHJAKGHqbcwQsM4slmhWnF2rNvDiYX/ZaKOmK4uzzZKk5dwXb0IMVCwmz0jG0STs2tmitnDA1VCN7DgdwXO1eYuXjw7QJ673Te3/PN1AqP3W/k2+d3S2ynJUpryR5sxSJjrXpMaFkt4TA2D99aWYaWr389V/oRCFWoCdkXFbm8cs3Rpaw==;5:uvCOx8r0GqE0jjr/jndGPngy0W2wDmbp9S5mqoDNCVhbAmNvmztBF5MhfS1S/3piQ48bKyvJdK5NqLZONipQ0o61ThGwD+ZtDmu374EgIGanrj/LzDHz3+p+8NYhm0gyxiOcDd7OTxv5G9YF43kmNDIfAY3uJsGwwIZK0drJxqw=;7:cUs4liWEd+ys4CI6pVG85H/HudJGw7nCrtsQQoIbIpTPWiNjdnIQ6OoIfiMx7Fk7/7DteuF0MkKsJbFuMejqK45g8QH8J+R40bVY0jJSeoSub+pwJtqa2bHWzrP7l47nO7BqM/e1zJD0xLxRVMsTJA== x-ms-office365-filtering-correlation-id: da20eeac-8791-4bd4-59b6-08d653ae0d19 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BY2PR11MB0664; x-ms-traffictypediagnostic: BY2PR11MB0664: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231443)(944501410)(52105112)(3002001)(10201501046)(148016)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:BY2PR11MB0664;BCL:0;PCL:0;RULEID:;SRVR:BY2PR11MB0664; x-forefront-prvs: 086831DFB4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(346002)(39860400002)(136003)(396003)(189003)(199004)(26005)(256004)(81166006)(7736002)(102836004)(6512007)(31696002)(14444005)(186003)(5024004)(25786009)(229853002)(2501003)(305945005)(478600001)(86362001)(31686004)(6486002)(6506007)(53546011)(386003)(5660300001)(99286004)(72206003)(14454004)(66066001)(2616005)(106356001)(476003)(105586002)(6116002)(97736004)(71200400001)(3846002)(110136005)(446003)(54906003)(71190400001)(4326008)(39060400002)(76176011)(68736007)(6436002)(81156014)(53936002)(486006)(2906002)(8676002)(316002)(36756003)(8936002)(6246003)(11346002)(52116002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR11MB0664;H:BY2PR11MB0744.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: rhZZJd9s616QXc6mMLPGT42iq37yqblgM/7Uoewn0wcwPgJyIAy6zXIWvOBVLCZjqyNZEfZayOx2aXZgrdmoACfIL1qM0ayk2v9HLBsmk4H34eNIVqFiSa0be93pzlJZP/sjNbZqvnydUtQGCJLxhd6UUtkIVlC9h9/aNiBKLHQGwVPik0HFJCfsynqBmWownslv5wFFBf4bElA13UroXQC4OJuX+RnEmndJ1k74nL+HVnS4l+VypDdzco2lx7ZhzUvjwFMYbUsbe//RRln48PIJgqsXLjrfApUyySJny7RatjDyvPKtRl63lg/6SaOsnuHKiUao2Yl3D3wQ7lAXUwP6ML2vaeBN2NBr0Gs0RVI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <061A48EAB5CF9747AAB4F637A74E2909@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: da20eeac-8791-4bd4-59b6-08d653ae0d19 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2018 14:47:13.1356 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR11MB0664 X-OriginatorOrg: microchip.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDI2LjExLjIwMTggMDk6MDcsIEhhcmluaSBLYXRha2FtIHdyb3RlOg0KPiBGcm9tOiBI YXJpbmkgS2F0YWthbSA8aGFyaW5pa0B4aWxpbnguY29tPg0KPiANCj4gQWRkIHJ1bnRpbWUgcG0g ZnVuY3Rpb25zIGFuZCBtb3ZlIGNsb2NrIGhhbmRsaW5nIHRoZXJlLg0KPiBBZGQgcnVudGltZSBQ TSBjYWxscyB0byBtZGlvIGZ1bmN0aW9ucyB0byBhbGxvdyBmb3IgYWN0aXZlIG1kaW8gYnVzLg0K PiANCj4gU2lnbmVkLW9mZi1ieTogU2h1YmhyYWp5b3RpIERh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