Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3543391imu; Fri, 18 Jan 2019 12:15:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN5rDC0vswCJ3HtKEWfS0bRlMI3i43cjhvqjF/gOIxPYLBrvz+ywOwdU2O4SH5+sSpbiae/F X-Received: by 2002:a62:2cf:: with SMTP id 198mr20780751pfc.67.1547842509358; Fri, 18 Jan 2019 12:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547842509; cv=none; d=google.com; s=arc-20160816; b=Sk+fcdAoILrAGZdLb3dT7mavPiKsInYEV5far2E+yPZjL1WrdMA4jQMl9yf/lf23ar x85jMqG6EyCbfBc9MbX8tdUxO0W3zcnyar6CL9nXLsj4bWYfvH3PQC3014x9jYWMwDPE cUxWiktrZNHCaO6TKQH+bftGekyGcvTHKPSh1CHU41N+xt0kty6Fl3tuyS6pKpmVSa+b FRYHDMK/4u2svZVnFqcPaQnLGV518uOobY84XQ1UcCKNFEHRkR+6yO+wlZVS8hKCvzac J6fluTc2WW/O70XPB9vRgmHAuufA6cGhUCui86E7qQOankgh3C0ffUkBc9966ewgmIMo Vkag== 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 :dkim-signature; bh=e/uH1WKjG5FpUzWed3tVDT9cbRVO3vFMXz4ruZf+Izo=; b=E1Ron1zAVVj5XV502jYK5Vt1mpUntqVzNob2gonEWLTHg7d4jwwcRA/I3F5Fg9YP9j DnvKt75z0kLt7qceAKwHc77/hkF9ATapFGoQd3GcpXSDXdC+Q+7e/JTCTjrDpd7BKjRC 3uSYsAmRrL74e9uVzjtso1DOhuxhLOFCK7+0KOLynWSSZiywx91HXiJBMJtOD88myLjg Tw4z5TdFGC7oidXDlUo5m/1hizqO3EwEGAJyq/IQBdoKe1QF0hjam6Hlwta3IIigX9Gl qlk1z2X2hHR0/CGJuMtox7mFeEcJwbzcjE1ais9Og9Ba8DE5Ket1KUZYKxVyw+V1IQOD OebQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=G9KXC4fe; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=O4A2SbL1; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca6si5534781plb.141.2019.01.18.12.14.52; Fri, 18 Jan 2019 12:15:09 -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=@fb.com header.s=facebook header.b=G9KXC4fe; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=O4A2SbL1; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729438AbfARUMl (ORCPT + 99 others); Fri, 18 Jan 2019 15:12:41 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:39082 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729356AbfARUMl (ORCPT ); Fri, 18 Jan 2019 15:12:41 -0500 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0IK9Lg0010850; Fri, 18 Jan 2019 12:12:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=e/uH1WKjG5FpUzWed3tVDT9cbRVO3vFMXz4ruZf+Izo=; b=G9KXC4feverdl32RfAKowu8znrpyuLBgUOWDrvPmN4JOSn1h3QonH/FB2iFD4i91BCa2 n8n3pSizqLvdQVHKyZLd4UwNpNU2EVgjCcf462WCa99MgaGOvfMASnZ5V1oIwTgYichm CZSPucDToxAJI7/4l4CTYlrRGxRZ/ng9H2U= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2q3k0krkwf-16 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 18 Jan 2019 12:12:21 -0800 Received: from frc-hub06.TheFacebook.com (2620:10d:c021:18::176) by frc-hub02.TheFacebook.com (2620:10d:c021:18::172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3; Fri, 18 Jan 2019 12:12:08 -0800 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3 via Frontend Transport; Fri, 18 Jan 2019 12:12:08 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e/uH1WKjG5FpUzWed3tVDT9cbRVO3vFMXz4ruZf+Izo=; b=O4A2SbL1vKJgbhDFF+mSEZtidjblNbiGzOrPIKibuS6RGy94e2EkEAYvl0vuU7AYno1IbUXoDpnZjyOcCiKoFsURXppNqxxNGtrgnFbYxB7Co9Ekf45Q/U40nYnJtdDcr08aMKFg9cLtuehVQgeCVm+2sqyy1hya+F/yWrQAjLU= Received: from CY4PR15MB1269.namprd15.prod.outlook.com (10.172.180.139) by CY4PR15MB1191.namprd15.prod.outlook.com (10.172.177.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.18; Fri, 18 Jan 2019 20:12:07 +0000 Received: from CY4PR15MB1269.namprd15.prod.outlook.com ([fe80::f9c6:952c:8b66:cc9d]) by CY4PR15MB1269.namprd15.prod.outlook.com ([fe80::f9c6:952c:8b66:cc9d%10]) with mapi id 15.20.1516.019; Fri, 18 Jan 2019 20:12:07 +0000 From: Vijay Khemka To: Andrew Jeffery , Arnd Bergmann , "Greg Kroah-Hartman" , Joel Stanley , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" CC: "openbmc @ lists . ozlabs . org" Subject: Re: [PATCH v2] misc: aspeed-lpc-ctrl: make parameter optional Thread-Topic: [PATCH v2] misc: aspeed-lpc-ctrl: make parameter optional Thread-Index: AQHUrecp120UxlsdUUK9uZiXf1PR66W0eREAgAB5LwA= Date: Fri, 18 Jan 2019 20:12:07 +0000 Message-ID: References: <20190116220154.1026171-1-vijaykhemka@fb.com> <1547787502.2061444.1637712576.1F1E21B4@webmail.messagingengine.com> In-Reply-To: <1547787502.2061444.1637712576.1F1E21B4@webmail.messagingengine.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2620:10d:c090:200::6:efd9] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR15MB1191;20:y8dJldrMZIedDuKnzabUz+zSMGctXsH/2ErtwCp+ugwhTWAI+/A4ox4mnw18mThSWU7Ok+d/DI4Y9WUtDEk+62Yzc3+eXL29rpvGsKwk/xPV2EjT109xkAJhfifKnmNVL6NTc5Vb/6g+kDtAbvU9XqzcVONy7OOnpDZWUrTo6Lo= x-ms-office365-filtering-correlation-id: 23cb4845-579d-4cfa-fd98-08d67d8138ae x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:CY4PR15MB1191; x-ms-traffictypediagnostic: CY4PR15MB1191: x-microsoft-antispam-prvs: x-forefront-prvs: 0921D55E4F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(376002)(39860400002)(366004)(136003)(189003)(199004)(68736007)(4326008)(6116002)(102836004)(6246003)(53936002)(2201001)(82746002)(446003)(6512007)(2616005)(229853002)(6436002)(86362001)(14454004)(105586002)(478600001)(186003)(305945005)(7736002)(6506007)(25786009)(6486002)(76176011)(8676002)(99286004)(8936002)(36756003)(46003)(106356001)(81166006)(2906002)(316002)(11346002)(2501003)(33656002)(256004)(14444005)(81156014)(97736004)(476003)(5660300001)(71200400001)(71190400001)(486006)(110136005)(83716004);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1191;H:CY4PR15MB1269.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: +693iAGDsalQhQQV63q3TbztKR8em2JWM+81KukHymdboPDzcTwXNf5diPkDdo6+utIAOzURm7YpL79ZdgBHDKYlQxGwdkfutsb1We3cs1dHZTGItQxclVLOny641Ix/IiP+1p8p5Jme6xP5kGcZ2PF0YCkvJ4O9jaYhzG+RsMIHW/hR1THR1zCgxJqiMaAYa/sVBfUJXZQg9iLMibgCF/KD/s6uFwnhzhCLA78Kg6DxKlhAN2QALdbZlTxf/+lilXg6QCvAB5D71mLKBcdfVEBvYxBOfEnURrEHlci5vFOskdbvvwil2ll1yk4eLiR5dh2hWIKfe+PtrKrDofUg7dpEHi5eq+9o3V8U93vuzA8+QaoaSvXxXqUiCEYfIna05Zf3yhTdCR4i0bWloCVjbEN//CkRhzyPoE3YTr9FMMo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 23cb4845-579d-4cfa-fd98-08d67d8138ae X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2019 20:12:07.4078 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1191 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-18_12:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5kcmV3LA0KVGhhbmtzIGZvciB0aGlzIHJldmlldywgSSB3aWxsIGhhdmUgYSBmb2xsb3cg dXAgcGF0Y2ggZm9yIHRoaXMgcmV0dXJuIHZhbHVlcy4NCg0KUmVnYXJkcw0KLVZpamF5DQoNCu+7 v09uIDEvMTcvMTksIDg6NTggUE0sICJBbmRyZXcgSmVmZmVyeSIgPGFuZHJld0Bhai5pZC5hdT4g d3JvdGU6DQoNCiAgICBIaSBWaWpheSwNCiAgICANCiAgICBUaGFua3MgZm9yIGRvaW5nIHRoZSB3 b3JrIHRvIGZpeCB0aGUgZHJpdmVyLiBTb21lIG1pbm9yIHF1ZXJpZXMvcG9pbnRzDQogICAgYmVs b3cuDQogICAgDQogICAgT24gVGh1LCAxNyBKYW4gMjAxOSwgYXQgMDg6MzEsIFZpamF5IEtoZW1r YSB3cm90ZToNCiAgICA+IE1ha2l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