Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8491113ybi; Thu, 6 Jun 2019 13:17:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYmpAPgAeCG/Zjw1G/txtlxcPJShvJL2x9ZTWDZBUfXSqRPsZX+/NeMKoUqFOMzJSMiSuw X-Received: by 2002:a17:90a:ae02:: with SMTP id t2mr1672275pjq.41.1559852270932; Thu, 06 Jun 2019 13:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559852270; cv=none; d=google.com; s=arc-20160816; b=TMbtSXWBM6jcoxyOpGhIWQc966WlpKNBalDQvAwxPH8lW0kBMOb/XZpFw4qkIcRTib wPr86XyheCPO1ATLuFm2j53DNprLn0M1hFLjibBib11CXOhuu7iXta7DQNZ0V5geTwqc qWhoMKtWbFRZp/JZgsOeZQZEPq542265dqmOCynbEzaDpl9OLC95sibyI8pCZI+kUzpL qFFfctNxKhNS98ogY89pljtaDQYDmmNVqi7/Euhsvl/xYuMc+RGIsV/5MPqKSgjJkBdy IIJgoPFHPi7RUNjR/L0PyZKz3Wh0NbZbG7WN7eunHG0Nhq1wEDAY1SUS5kEZV/Ix4vhL ZN1Q== 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=vwnN4waA6d9z0fR5Swwuze6K8grcaiUuUp3q+pVflak=; b=xMmyscAqiB5kHmV/SOiDbnF+5bJoicwASSvgNrv4DGbZWEffZj0Y4L9W3TSZ0cpwU7 wddr2sA0SuGB2IjrseEPrwaIApN/azrNJcXjEcu/TXroxBvIQKw6zl+2yGAu9DYzH+Ku ILTj52ftF6Z8HzkXTgLHFcXFOo2s+AhDPMMhIvT1IQa5dRgvHExaCkI5ZLx/ymaQi3bN q0ICj25GpaNxYeiOLgvWaGOV7UY0DS2qJpatBtPTA5TJOyNRD088iMpxbRmKtdyXrm1Y GF1TPrHUHrrpd2mCPpkIdLdMVbjB4ltDfxcmXfSK/7PgP/BFh8qcuh997qD+o3cVCQ/Y cAEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Mh4ZtBsA; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-onmicrosoft-com header.b=MWce6kgm; 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 o188si35369pgo.489.2019.06.06.13.17.35; Thu, 06 Jun 2019 13:17:50 -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=Mh4ZtBsA; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-onmicrosoft-com header.b=MWce6kgm; 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 S1728715AbfFFSwJ (ORCPT + 99 others); Thu, 6 Jun 2019 14:52:09 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:56322 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726893AbfFFSwJ (ORCPT ); Thu, 6 Jun 2019 14:52:09 -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 x56Ig4Nj002242; Thu, 6 Jun 2019 11:51:50 -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=vwnN4waA6d9z0fR5Swwuze6K8grcaiUuUp3q+pVflak=; b=Mh4ZtBsAGPpumOq2QC6ZhaBSi8TLvWTxfNPqd75INoTBiVVTVL+TXpwzZpNYwxRGUqrS x9M7Cs4kg2nqvV4CnV97+qWGy1/0GW/u0ZksEtI83pVFNuOCMR+HdXdXmGPneg3cpRr4 /sjAsbGSAWvOhInkL9UL/Koo14D72GeNUmY= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0b-00082601.pphosted.com with ESMTP id 2sy2kp9fmv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 06 Jun 2019 11:51:49 -0700 Received: from ash-exopmbx101.TheFacebook.com (2620:10d:c0a8:82::b) by ash-exhub203.TheFacebook.com (2620:10d:c0a8:83::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 6 Jun 2019 11:51:49 -0700 Received: from ash-exhub104.TheFacebook.com (2620:10d:c0a8:82::d) by ash-exopmbx101.TheFacebook.com (2620:10d:c0a8:82::b) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 6 Jun 2019 11:51:49 -0700 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 6 Jun 2019 11:51:49 -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=vwnN4waA6d9z0fR5Swwuze6K8grcaiUuUp3q+pVflak=; b=MWce6kgmPuEMghPok4IIEHztNiqoWFjOamIMwkxhegHkQSRgWKk9v6SsE+I8ocqRLTLBkiwpPi6XlBPDG/hZtHgcNp4XGJVWqIV2SJlugd1ZDg0tmk3ZaSz6Ji3RJhcJWwHy2SoWi2Ks04fg/dRMfcDvRnwEspX9NV/x7dh9DRI= Received: from CY4PR15MB1269.namprd15.prod.outlook.com (10.172.177.11) by CY4PR15MB1207.namprd15.prod.outlook.com (10.172.180.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.14; Thu, 6 Jun 2019 18:51:47 +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.1943.018; Thu, 6 Jun 2019 18:51:47 +0000 From: Vijay Khemka To: Joel Stanley , Andrew Jeffery , "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 v2] soc: aspeed: lpc-ctrl: make parameter optional Thread-Topic: [PATCH v2] soc: aspeed: lpc-ctrl: make parameter optional Thread-Index: AQHVFyd5zp8/qoe22EyZTW+8ecZdUKaOjh8A Date: Thu, 6 Jun 2019 18:51:47 +0000 Message-ID: <6828A39D-8950-4C07-8340-7AE9E2DD3EC0@fb.com> References: <20190530203654.3860925-1-vijaykhemka@fb.com> In-Reply-To: <20190530203654.3860925-1-vijaykhemka@fb.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2620:10d:c090:200::3607] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a4c7f357-635b-4072-2b0b-08d6eab00732 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:CY4PR15MB1207; x-ms-traffictypediagnostic: CY4PR15MB1207: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 00603B7EEF x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(366004)(376002)(136003)(39860400002)(346002)(189003)(199004)(102836004)(73956011)(36756003)(2906002)(7736002)(186003)(316002)(14444005)(6116002)(110136005)(6506007)(76176011)(66556008)(64756008)(66446008)(66476007)(476003)(66946007)(91956017)(305945005)(54906003)(486006)(25786009)(99286004)(2501003)(33656002)(71200400001)(71190400001)(53936002)(83716004)(8936002)(76116006)(6512007)(6436002)(5660300002)(4326008)(6246003)(2201001)(14454004)(478600001)(2616005)(46003)(446003)(68736007)(229853002)(256004)(82746002)(8676002)(86362001)(81156014)(81166006)(6486002)(11346002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1207;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: FbwDXVzsDQ9IGoxc6C8huFS5wl4KfTwKIOnsx8+OROYiRII9RZeJo03eDx5afthABddogyavIdm3iR8YQLE62xFXogYXgIBh+H8dLgiZwFYTIz/iTjAvcT5NAXcmzOPpIdfhl6P2NfzgHLzsJJ1NJrOtxzPhe4a2q+hW2DCr6un8zHWWR5VE+3L0dOI6f4MDsLoQJV2xJkMNwpuLPsfsSQqeMy1EF0sndeDPgnBswM6zqygjPeR4XruyXylZb79Tf0cHYswyylkazn6fjE/I1gMXFBlmNCysXwlpeloGs5wIPcGoRQAKJfL9ju1WiUteM6kw2Fgsd8x5UeCDX2uY/h4sn0I6hpaMFsuxbqPyVP5wB/NNCGNeHqjvHfz+FAVQyxx/0pM+UtNIEopK2+pdPyHGrPpQDsH6DhiRIW2ruP4= Content-Type: text/plain; charset="utf-8" Content-ID: <31BCCE25AE06874084F27F2CF4428710@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a4c7f357-635b-4072-2b0b-08d6eab00732 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2019 18:51:47.4285 (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: CY4PR15MB1207 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-06_13:,, 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=914 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906060126 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UGxlYXNlIHVwZGF0ZSBvbiB0aGlzIHBhdGNoLg0KDQrvu79PbiA1LzMwLzE5LCAxOjM3IFBNLCAi VmlqYXkgS2hlbWthIiA8dmlqYXlraGVta2FAZmIuY29tPiB3cm90ZToNCg0KICAgIE1ha2luZyBt ZW1vcnktcmVn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