Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1220995ybi; Thu, 30 May 2019 13:40:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx11jCTDYB9u/bwqjTOTaLZZPHAN32qaLrYiH9BHC/O/YZgpeRX0HijbKyUtEABA5jAFcF4 X-Received: by 2002:a62:b40a:: with SMTP id h10mr5712859pfn.216.1559248852286; Thu, 30 May 2019 13:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559248852; cv=none; d=google.com; s=arc-20160816; b=DcmEA+GSm8oHYeO901oOGQWiOjAwB+TgUyDCUxWbfHG820r4NGlYnJXO6BbzS9mQEG 5sqpVICxsUOq5s/c0ccRLLFeE+mFD5v0RNPyYciA4ZejJ2O1N0BW1JIAdzHVZBT0nGKR ScuTau2rdnTLxETkUzRdjrE7rnsFoFE3vfIX5YrYPVtBYW5m+oz//xi7Vwo6l7wuoQQE u972WoXmny85XEuV2G+y8/D8MM2IJUVs+nNLj14EfUzby7ghw2Y52Zmn1YvdrhNt6hvp kzfURV/tyOPajTkursXDIzJPe44aBByAhapCduetsecdNF/HGea4IpQ58sbzzngmvJz7 UGJg== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=0PtdOWjP+oJenG+Kbt/E64VgLlBp3BenL74Y/cX1PZk=; b=p7SINk3zmiiDe2J8tR9uWAn9Krt7NdKssQQn8EWRlrL/0LaU0AES7DQ3GDozwQzg6d qHq8J1Sa1rUwwzAJnMJM3R96TM4llGH4g9xinfpl259pMu4LIyh2k82FqRqiQILjkj2w gPqvy48pNy3cZt8SiUJRtcAuSnlwBTrt5MKvXKodRu5v8yXffLHUpeDHy6sjuBoenLyo ztqIq7MTf248BDimZy/xeD93d0X530Ra3YauLzOtsQB5gEQ4sV4Vj+gp9hqZcjzrWAGn KHvFNW/9hH4t8Hgmtvpj9w++vTABeqabMOXYMxtvR99zI0apLPTqkb0cYUR+8kn9DUJ7 05jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=i3z3PqY+; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-onmicrosoft-com header.b=L08gKewM; 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 u7si4285636pfn.249.2019.05.30.13.40.35; Thu, 30 May 2019 13:40:52 -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=@fb.com header.s=facebook header.b=i3z3PqY+; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-onmicrosoft-com header.b=L08gKewM; 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 S1726635AbfE3UiG (ORCPT + 99 others); Thu, 30 May 2019 16:38:06 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:37740 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725961AbfE3UiG (ORCPT ); Thu, 30 May 2019 16:38:06 -0400 Received: from pps.filterd (m0001255.ppops.net [127.0.0.1]) by mx0b-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4UKbOu3006139; Thu, 30 May 2019 13:37:48 -0700 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=0PtdOWjP+oJenG+Kbt/E64VgLlBp3BenL74Y/cX1PZk=; b=i3z3PqY+KaeIoHudn5gTRD9z4RAGecZRX3EWP5sk4TfnKAAUAafQH5zD9Pl3BM+n6vsL FXpSBtMSLr2oUExpX2jdklltDdFPXccu2U/U89FAkcjG6GpNVcySaSdnwFHxHZRV/a2+ C4EIftKQOYQTY7i0foFt7jb6+vpzKA7rk24= Received: from mail.thefacebook.com (mailout.thefacebook.com [199.201.64.23]) by mx0b-00082601.pphosted.com with ESMTP id 2stj9ygxe0-15 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 30 May 2019 13:37:47 -0700 Received: from prn-hub05.TheFacebook.com (2620:10d:c081:35::129) by prn-hub06.TheFacebook.com (2620:10d:c081:35::130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Thu, 30 May 2019 13:37:28 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5 via Frontend Transport; Thu, 30 May 2019 13:37:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0PtdOWjP+oJenG+Kbt/E64VgLlBp3BenL74Y/cX1PZk=; b=L08gKewMRJKpVQTm8Zv9mSJabziMUTRjYwTicmPUnh/+qybvL7QNDQEpdmza74JV/BaYxENOsWe2Yta24RhFOcMFjlf5/KglJGOKcDDbKCpoZLKYegASAbk44PySiJMZRx0zyerfbVmQIb9bw7/AatRYUhUA89/CwMZ9JDwFnuk= Received: from CY4PR15MB1269.namprd15.prod.outlook.com (10.172.177.11) by CY4PR15MB1669.namprd15.prod.outlook.com (10.175.120.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.19; Thu, 30 May 2019 20:37:26 +0000 Received: from CY4PR15MB1269.namprd15.prod.outlook.com ([fe80::c026:bca5:3f4e:9b1f]) by CY4PR15MB1269.namprd15.prod.outlook.com ([fe80::c026:bca5:3f4e:9b1f%3]) with mapi id 15.20.1922.021; Thu, 30 May 2019 20:37:26 +0000 From: Vijay Khemka To: Andrew Jeffery , Joel Stanley , "Patrick Venture" , Olof Johansson , Arnd Bergmann , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" CC: Sai Dasari , Greg Kroah-Hartman Subject: Re: [PATCH] soc: aspeed: lpc-ctrl: make parameter optional Thread-Topic: [PATCH] soc: aspeed: lpc-ctrl: make parameter optional Thread-Index: AQHVFkMFCrlT6n65BEuOzOoSsANQF6aDDGAAgACgu4A= Date: Thu, 30 May 2019 20:37:26 +0000 Message-ID: References: <20190529172103.1130525-1-vijaykhemka@fb.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2620:10d:c090:200::2:3b87] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8e3f0d9c-54fd-418f-4c00-08d6e53ea098 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:CY4PR15MB1669; x-ms-traffictypediagnostic: CY4PR15MB1669: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 00531FAC2C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(136003)(366004)(396003)(39860400002)(199004)(189003)(229853002)(36756003)(7736002)(6512007)(66446008)(6486002)(54906003)(478600001)(33656002)(6116002)(46003)(66476007)(4326008)(68736007)(8936002)(53936002)(110136005)(6246003)(14454004)(81166006)(305945005)(186003)(25786009)(81156014)(8676002)(73956011)(6506007)(446003)(64756008)(2906002)(256004)(2201001)(316002)(76116006)(76176011)(91956017)(86362001)(82746002)(71200400001)(83716004)(11346002)(2616005)(2501003)(99286004)(5660300002)(476003)(102836004)(486006)(6436002)(71190400001)(66556008)(66946007);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1669;H:CY4PR15MB1269.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: LOP/wzgwcSUpm6TWorTvo8V252ab0wW6DDIWyK5i7wr9gN1SfxZ4kcXvrJYiDLiXCGqnkVn8MVPLo0fx5uEPJQy7/iQf1MrLH/MeKkO7kcpQPZ4dLQJ8ig0PmJHQO2ZySv7SBsHQvB95xOOvsNZSpwyMWXekBYUMfaGXZWj9cVBhdU4+1zzBd6nhtKLQ/KT7rqe9mcOwyyhe6sugjKfQsKdpCLYIK0I/3bHrfBf2Cb+h7Zr9R1CJAvF2biDRBSYs4aMGQLLnbDKMkKVNzpg6rpVKwrxx2yJE24ToWVgJ328RqkT/MOgyZEhd3edLT3GnpSUpykT2d8qN77Qau8YK2BsMNZrpmjCuPhhFOjlIMx0VZl7XaVayI/XcB//6Nf3m06skJD2TtTBtogjveOcj3sgzqgiSS6ZrMjP1omulj/8= Content-Type: text/plain; charset="utf-8" Content-ID: <56A118C2F0E80D44BE2FEA58289FE10F@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8e3f0d9c-54fd-418f-4c00-08d6e53ea098 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2019 20:37:26.3461 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vijaykhemka@fb.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1669 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-30_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905300146 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCu+7v09uIDUvMjkvMTksIDk6MDIgUE0sICJBbmRyZXcgSmVmZmVyeSIgPGFuZHJld0Bhai5p ZC5hdT4gd3JvdGU6DQoNCiAgICANCiAgICANCiAgICBPbiBUaHUsIDMwIE1heSAyMDE5LCBhdCAw Mjo1MSwgVmlqYXkgS2hlbWthIHdyb3RlOg0KICAgID4gTWFraWluZw0KICAgIA0KICAgIFR5cG8g aGVyZSwgYnV0IEknZCBwcmVmZXIgdG8gc2VlIHRoaXMgcGF0Y2ggZ28gaW4sIHNvDQpDb3JyZWN0 ZWQgaW4gbmV4dCB2ZXJzaW9uIHYyLg0KICAgIA0KICAgID4gbWVtb3J5LXJlZ2lvbiBhbmQgZmxh c2ggYXMgb3B0aW9uYWwgcGFyYW1ldGVyIGluIGRldmljZQ0KICAgID4gdHJlZSBp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