Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1423875ybi; Fri, 14 Jun 2019 14:42:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTY9z+jqJU0K16EWx3Cv+9k3/bIroUKpyGu1ZVeH33UasG9NjARhKJx5GqDqMBI3YZmUT1 X-Received: by 2002:a62:2e46:: with SMTP id u67mr100922659pfu.206.1560548553315; Fri, 14 Jun 2019 14:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560548553; cv=none; d=google.com; s=arc-20160816; b=gjxGFSne7zVILWHnj+Nq/4dMnxE1XtBqmHGus+H6yL2sakRrlnvg60uW1FZ0K63JdI skF+Yp6Nur8ihVobM3rXpbPn16/eUeMEWtJCPqkQmozbc4Tj4zMkhCqgxBi9EQjRkVYa 7hpHCNx/kANhqAK10eI25FbpF9YPpDfRNtwk4We2jh92BvzQYEgB4tmsgPuBwfjIyupP 0GAuLbdKKLWLPAanXRIbX/XPZzzksqLBi/JjCPyt9I5DaKlkmzg6L1wLbz6wza1gOx1Y iubF13IVKVkLhFBo/TY/QNcWvMjW+2J7wHTNX33IgyeGqG+oQEI6Trfs9m0sPlFwPjoh khVg== 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=mVkduDdnGH9/Sa7eyUrjXqAKU0L0O5x1qJfEeWePLZE=; b=CyLsIFYYBAtE/SzjnYqB0MfVCPbfsYlEwNMOoD1FuV+Hpyw4GnX5E0Nex3QRSDe5m3 ytnAW/xaYou982+fGcOjR8hC56h5ntvnjp+jyrtFIPrOAP3CAFQeShI8zt9111NoTWHc /XkZ5XmdX43u4cR2fvNcFQ6ALMpOQSkVXZQ9OEd94GqlIqW79HpYrX1hYgm6rvBzQXKE cIZwjjTUNOGwXwGLYKIKWWVosU+pEVAtJ9b0Es2KU6XQFFqBDFNC0iJj5Sm5xgV+Nxmi RcIZYMEwOjZnBH6S5oA/chPjdDbUl1fDWiCyPr+0x1qWggedZXri0LnnErIYb5nu8cM4 XONA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=FZPkNZXV; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-onmicrosoft-com header.b=FhMDCmxO; 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 g31si3120375plb.241.2019.06.14.14.42.17; Fri, 14 Jun 2019 14:42:33 -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=FZPkNZXV; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-onmicrosoft-com header.b=FhMDCmxO; 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 S1726185AbfFNVmK (ORCPT + 99 others); Fri, 14 Jun 2019 17:42:10 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:56912 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbfFNVmK (ORCPT ); Fri, 14 Jun 2019 17:42:10 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5ELbMDd022846; Fri, 14 Jun 2019 14:41:42 -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=mVkduDdnGH9/Sa7eyUrjXqAKU0L0O5x1qJfEeWePLZE=; b=FZPkNZXVdPme96UHuHt0mgqH6cuNkcWjChx2qbDwUz04urCaNf+mQs0KQLjOkwMLEXxK s1o9IvzlO+i3O/yED584ZvGeASw9Oj4ku+GahDpfgLv47EXSJwx28932G0/yEtxrvo7I 3m5xBk2lLJQ/AM6y8tvdkaPwkZToT6x9UTE= Received: from mail.thefacebook.com (mailout.thefacebook.com [199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2t4d38hhqh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 14 Jun 2019 14:41:41 -0700 Received: from prn-mbx01.TheFacebook.com (2620:10d:c081:6::15) by prn-hub01.TheFacebook.com (2620:10d:c081:35::125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Fri, 14 Jun 2019 14:41:40 -0700 Received: from prn-hub04.TheFacebook.com (2620:10d:c081:35::128) by prn-mbx01.TheFacebook.com (2620:10d:c081:6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5; Fri, 14 Jun 2019 14:41:40 -0700 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5 via Frontend Transport; Fri, 14 Jun 2019 14:41:40 -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=mVkduDdnGH9/Sa7eyUrjXqAKU0L0O5x1qJfEeWePLZE=; b=FhMDCmxO9UMYqavP75S5rXftzOTVXZDuqimSKDiRV57wxIXT8UwFXALlygPZcwaPs7u7IiRn3XTmsk9A/Ux/r9LB6414K+IWpFu5ULIfrN4T+5fHj4XQtZyjhQwZ6ex7NUQlH3BL+69yhzTIRutBw+UYuncgSl5kiTexBQTVC7Q= Received: from CY4PR15MB1269.namprd15.prod.outlook.com (10.172.177.11) by CY4PR15MB1144.namprd15.prod.outlook.com (10.172.182.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Fri, 14 Jun 2019 21:41:39 +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.1987.013; Fri, 14 Jun 2019 21:41:39 +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+8ecZdUKaOjh8AgAzCHQA= Date: Fri, 14 Jun 2019 21:41:39 +0000 Message-ID: References: <20190530203654.3860925-1-vijaykhemka@fb.com> <6828A39D-8950-4C07-8340-7AE9E2DD3EC0@fb.com> In-Reply-To: <6828A39D-8950-4C07-8340-7AE9E2DD3EC0@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::46e6] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1ce7e4ed-276e-4e95-764e-08d6f1111581 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:CY4PR15MB1144; x-ms-traffictypediagnostic: CY4PR15MB1144: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0068C7E410 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(366004)(346002)(376002)(396003)(39860400002)(189003)(199004)(4326008)(316002)(86362001)(6506007)(81156014)(53936002)(8936002)(76176011)(99286004)(46003)(76116006)(186003)(8676002)(53546011)(6436002)(6246003)(25786009)(81166006)(7736002)(71200400001)(6512007)(229853002)(66476007)(305945005)(5660300002)(2201001)(6486002)(64756008)(66946007)(66556008)(66446008)(73956011)(91956017)(71190400001)(446003)(2906002)(14444005)(36756003)(478600001)(14454004)(68736007)(110136005)(102836004)(2616005)(486006)(33656002)(11346002)(54906003)(2501003)(256004)(476003)(6116002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1144;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: TCx9eB7X2hGJa99EWGZdJhxZPQl0y96HWZvZejGxEoQAys+Ak+bhihGVZhRDdsG8wdbUnICuppxBYQ4MqcFMpLcD45ay7OVKAuJ+/2XkdUfWrGis32e+zg8N+hnwNlfCNuOiEA1DBFVTgJPmo+hnbe90KWGHgJHKdT7TWJJfKNE7VIdgQmGSB9Hwi0G/VTE9GuDABpD0IKGDUDDFi9UDHZhGJpn103INwDUVNYSjfXf8dCQ1pezBAdCln597v8BHWxegzrhHRXiioroDcprrRyqXqFINVHB5ROwsuq4kgxX9nk/WXrnZzAf9fAiCNBoYdKi3n+gZbrgqzRprrQQD0F182AgBuqsBjSQgCqyR9v4FstlitDFg2gaspqavb/bZM/dNHLmY2G7R17jnLwE7hbQhl42BfMjzA8/1PMZkUkU= Content-Type: text/plain; charset="utf-8" Content-ID: <2EEC2CAA96F1CB41B090A8843FCCA40A@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 1ce7e4ed-276e-4e95-764e-08d6f1111581 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2019 21:41:39.6087 (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: CY4PR15MB1144 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-14_07:,, 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=916 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906140168 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5kcmV3LA0KQW55IHVwZGF0ZSBvbiB0aGlzIHBhdGNoIG9yIGRvIEkgbmVlZCBhbnkgbW9y ZSByZXdvcmsuDQoNClJlZ2FyZHMNCi1WaWpheQ0KDQrvu79PbiA2LzYvMTksIDExOjUxIEFNLCAi VmlqYXkgS2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gICAgICsrKyBiL2RyaXZlcnMvc29jL2Fz cGVlZC9hc3BlZWQtbHBjLWN0cmwuYw0KICAgICAgICBAQCAtNjgsNiArNjgsNyBAQCBzdGF0aWMg bG9uZyBhc3BlZWRfbHBjX2N0cmxfaW9jdGwoc3RydWN0IGZpbGUgKmZpbGUsIHVuc2lnbmVkIGlu dCBjbWQsDQogICAgICAgICAJCXVuc2lnbmVkIGxvbmcgcGFyYW0pDQogICAgICAgICB7DQogICAg ICAgICAJc3RydWN0IGFzcGVlZF9scGNfY3RybCAqbHBjX2N0cmwgPSBmaWxlX2FzcGVlZF9scGNf Y3RybChmaWxlKTsNCiAgICAgICAgKwlzdHJ1Y3QgZGV2aWNlICpkZXYgPSBmaWxlLT5wcml2YXRl X2RhdGE7DQogICAgICAgICAJdm9pZCBfX3VzZXIgKnAgPSAodm9pZCBfX3VzZXIgKilwYXJhbTsN CiAgICAgICAgIAlzdHJ1Y3QgYXNwZWVkX2xwY19jdHJsX21hcHBpbmcgbWFwOw0KICAgICAgICAg CXUzMiBhZGRyOw0KICAgICAgICBAQCAtOTAsNiArOTEsMTIgQEAgc3RhdGljIGxvbmcgYXNwZWVk X2xwY19jdHJsX2lvY3RsKHN0cnVjdCBmaWxlICpmaWxlLCB1bnNpZ25lZCBpbnQgY21kLA0KICAg ICAgICAgCQlpZiAobWFwLndpbmRvd19pZCAhPSAwKQ0KICAgICAgICAgCQkJcmV0dXJuIC1FSU5W QUw7DQogICAgICAgICANCiAgICAgICAgKwkJLyogSWYgbWVtb3J5LXJlZ2lvbiBpcyBub3QgZGVz Y3JpYmVkIGluIGRldmljZSB0cmVlICovDQogICAgICAgICsJCWlmICghbHBjX2N0cmwtPm1lbV9z aXplKSB7DQogICAgICAgICsJCQlkZXZfZGJnKGRldiwgIkRpZG4ndCBmaW5kIHJlc2VydmVkIG1l bW9yeVxuIik7DQogICAgICAgICsJCQlyZXR1cm4gLUVOWElPOw0KICAgICAgICArCQl9DQogICAg ICAgICsNCiAgICAgICAgIAkJbWFwLnNpemUgPSBscGNfY3RybC0+bWVtX3NpemU7DQogICAgICAg ICANCiAgICAgICAgIAkJcmV0dXJuIGNvcHlfdG9fdXNlcihwLCAmbWFwLCBzaXplb2YobWFwKSkg PyAtRUZBVUxUIDogMDsNCiAgICAgICAgQEAgLTEyNiw5ICsxMzMsMTggQEAgc3RhdGljIGxvbmcg YXNwZWVkX2xwY19jdHJsX2lvY3RsKHN0cnVjdCBmaWxlICpmaWxlLCB1bnNpZ25lZCBpbnQgY21k LA0KICAgICAgICAgCQkJcmV0dXJuIC1FSU5WQUw7DQogICAgICAgICANCiAgICAgICAgIAkJaWYg KG1hcC53aW5kb3dfdHlwZSA9PSBBU1BFRURfTFBDX0NUUkxfV0lORE9XX0ZMQVNIKSB7DQogICAg ICAgICsJCQlpZiAoIWxwY19jdHJsLT5wbm9yX3NpemUpIHsNCiAgICAgICAgKwkJCQlkZXZfZGJn KGRldiwgIkRpZG4ndCBmaW5kIGhvc3QgcG5vciBmbGFzaFxuIik7DQogICAgICAgICsJCQkJcmV0 dXJuIC1FTlhJTzsNCiAgICAgICAgKwkJCX0NCiAgICAgICAgIAkJCWFkZHIgPSBscGNfY3RybC0+ cG5vcl9iYXNlOw0KICAgICAgICAgCQkJc2l6ZSA9IGxwY19jdHJsLT5wbm9yX3NpemU7DQogICAg ICAgICAJCX0gZWxzZSBpZiAobWFwLndpbmRvd190eXBlID09IEFTUEVFRF9MUENfQ1RSTF9XSU5E T1dfTUVNT1JZKSB7DQogICAgICAgICsJCQkvKiBJZiBtZW1vcnktcmVnaW9uIGlzIG5vdCBkZXNj cmliZWQgaW4gZGV2aWNlIHRyZWUgKi8NCiAgICAgICAgKwkJCWlmICghbHBjX2N0cmwtPm1lbV9z aXplKSB7DQogICAgICAgICsJCQkJZGV2X2RiZyhkZXYsICJEaWRuJ3QgZmluZCByZXNlcnZlZCBt ZW1vcnlcbiIpOw0KICAgICAgICArCQkJCXJldHVybiAtRU5YSU87DQogICAgICAgICsJC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c3NfdG9fcmVz b3VyY2Uobm9kZSwgMCwgJnJlc20pOw0KICAgICAgICArCQlvZl9ub2RlX3B1dChub2RlKTsNCiAg ICAgICAgKwkJaWYgKHJjKSB7DQogICAgICAgICsJCQlkZXZfZXJyKGRldiwgIkNvdWxkbid0IGFk ZHJlc3MgdG8gcmVzb3VyY2UgZm9yIHJlc2VydmVkIG1lbW9yeVxuIik7DQogICAgICAgICsJCQly ZXR1cm4gLUVOWElPOw0KICAgICAgICArCQl9DQogICAgICAgICANCiAgICAgICAgLQlyYyA9IG9m X2FkZHJlc3NfdG9fcmVzb3VyY2Uobm9kZSwgMCwgJnJlc20pOw0KICAgICAgICAtCW9mX25vZGVf cHV0KG5vZGUpOw0KICAgICAgICAtCWlmIChyYykgew0KICAgICAgICAtCQlkZXZfZXJyKGRldiwg IkNvdWxkbid0IGFkZHJlc3MgdG8gcmVzb3VyY2UgZm9yIHJlc2VydmVkIG1lbW9yeVxuIik7DQog ICAgICAgIC0JCXJldHVybiAtRU5PTUVNOw0KICAgICAgICArCQlscGNfY3RybC0+bWVtX3NpemUg PSByZXNvdXJjZV9zaXplKCZyZXNtKTsNCiAgICAgICAgKwkJbHBjX2N0cmwtPm1lbV9iYXNlID0g cmVzbS5zdGFydDsNCiAgICAgICAgIAl9DQogICAgICAgICANCiAgICAgICAgLQlscGNfY3RybC0+ bWVtX3NpemUgPSByZXNvdXJjZV9zaXplKCZyZXNtKTsNCiAgICAgICAgLQlscGNfY3RybC0+bWVt X2Jhc2UgPSByZXNtLnN0YXJ0Ow0KICAgICAgICAtDQogICAgICAgICAJbHBjX2N0cmwtPnJlZ21h cCA9IHN5c2Nvbl9ub2RlX3RvX3JlZ21hcCgNCiAgICAgICAgIAkJCXBkZXYtPmRldi5wYXJlbnQt Pm9mX25vZGUpOw0KICAgICAgICAgCWlmIChJU19FUlIobHBjX2N0cmwtPnJlZ21hcCkpIHsNCiAg ICAgICAgQEAgLTI1OCw4ICsyNzQsNiBAQCBzdGF0aWMgaW50IGFzcGVlZF9scGNfY3RybF9wcm9i ZShzdHJ1Y3QgcGxhdGZvcm1fZGV2aWNlICpwZGV2KQ0KICAgICAgICAgCQlnb3RvIGVycjsNCiAg ICAgICAgIAl9DQogICAgICAgICANCiAgICAgICAgLQlkZXZfaW5mbyhkZXYsICJMb2FkZWQgYXQg JXByXG4iLCAmcmVzbSk7DQogICAgICAgIC0NCiAgICAgICAgIAlyZXR1cm4gMDsNCiAgICAgICAg IA0KICAgICAgICAgZXJyOg0KICAgICAgICAtLSANCiAgICAgICAgMi4xNy4xDQogICAgICAgIA0K ICAgICAgICANCiAgICANCiAgICANCg0K