Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2549732ybm; Thu, 23 May 2019 19:57:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCmMTuHIgJ0tdb9p9FC7TbjkjV2HYxAcBEgOC7/OTJKeof+wH/Ty6SG4MpTTdupAydnOdG X-Received: by 2002:a62:86ce:: with SMTP id x197mr109259279pfd.218.1558666670347; Thu, 23 May 2019 19:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558666670; cv=none; d=google.com; s=arc-20160816; b=C8//BuMWhj4YcX7VbhmvpvWxUEm4TxAYN92fNEVwJsKnrJnRJKIb9tpPmoQcE1C8xM kGYYx1vm12WCan7wmLEFKPf/YhL6TsOTiHm22XzSoa3TVfGqHnapTib3Mvj5YbicbQGV YR7gLmi4/zjATmWP04E+j3PluVgtLwAMeGLlMW+MZNIdMdxgLrzODl9pZLXrmTL/k2Es 3E1deWabLBZSy/r5LUOdq0DxnA1oYtnLqUH3cGkPseP1pz/CAJ7pZQd32Q7XnGHDpNCZ l59Erx0ouuGFimVs7SnpQYsfoaBRPDuiXXiP5M0mLjOWvcpKMMiTVyxLDe4AFwUXgIE1 0mWQ== 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 :nodisclaimer:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=eVSu/nEfhJKftFbch/0iUkLJh2GfIX7qVgVQ1SbPFlY=; b=tv4kMDMYj1SLXHJqhvmQ4kxnAKYMOrsX8PgJz/iiUSvkwGDZFYAAYdYdsKm2UgygWI UHmMeTSSgskL1y6bvlixdtZ8oZJfb3B2PQCyN6QZ1+aPd4uIANBBjlUD/BwRtCXfc8ME dfSrM9bOwmfKZIgjjIYq7olETvTH71d7RQZ3kSy2VUC/qdd0Rqod4CKJ6RtdHOMa5d5R nz4P571vQr/wTbYvnI+86Su+hl2YqsUwm5SO1X4bK40oMjRzMfJnSz2l24zqPy5TxS4l r30GcXUC5fRSrysicHe8Em89M06uBjkrEcrLmjC6HFKXfOxHef/GmKP7IQVrDF2zPs/X 0kow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b="ePWRj/pn"; 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 f33si2626577plf.166.2019.05.23.19.57.30; Thu, 23 May 2019 19:57: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=@armh.onmicrosoft.com header.s=selector1-arm-com header.b="ePWRj/pn"; 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 S2388277AbfEXCzx (ORCPT + 99 others); Thu, 23 May 2019 22:55:53 -0400 Received: from mail-eopbgr30056.outbound.protection.outlook.com ([40.107.3.56]:26606 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387412AbfEXCzw (ORCPT ); Thu, 23 May 2019 22:55:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eVSu/nEfhJKftFbch/0iUkLJh2GfIX7qVgVQ1SbPFlY=; b=ePWRj/pn7HJN4XcbX3jleVptaM0xoETMNKaJBFlG96ahPyk6NulbDepKdzbqCnNyqcmrjedNPA1XMqCowGohjEX/b0nbmkB/qphd3quf0C+M1tpHtRXa+XhJPUBhe+R/65GHquLJyQMZzYT6qBZom1P1tZ0P5odv8BaJtRWWqhU= Received: from VE1PR08MB5006.eurprd08.prod.outlook.com (10.255.159.31) by VE1PR08MB4736.eurprd08.prod.outlook.com (10.255.112.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.24; Fri, 24 May 2019 02:55:46 +0000 Received: from VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::206b:5cf6:97e:1358]) by VE1PR08MB5006.eurprd08.prod.outlook.com ([fe80::206b:5cf6:97e:1358%7]) with mapi id 15.20.1922.017; Fri, 24 May 2019 02:55:45 +0000 From: "james qian wang (Arm Technology China)" To: Liviu Dudau , "airlied@linux.ie" , Brian Starkey , "maarten.lankhorst@linux.intel.com" , "sean@poorly.run" CC: "Jonathan Chai (Arm Technology China)" , "Julien Yin (Arm Technology China)" , "thomas Sun (Arm Technology China)" , "Lowry Li (Arm Technology China)" , Ayan Halder , "Tiannan Zhu (Arm Technology China)" , "Yiqi Kang (Arm Technology China)" , nd , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Ben Davis , "Oscar Zhang (Arm Technology China)" , "Channing Chen (Arm Technology China)" , "james qian wang (Arm Technology China)" Subject: [PATCH] drm/komeda: Refine function to_d71_input_id Thread-Topic: [PATCH] drm/komeda: Refine function to_d71_input_id Thread-Index: AQHVEdwuBJcfhXXS+U+jyK/WXjH9OA== Date: Fri, 24 May 2019 02:55:45 +0000 Message-ID: <20190524025525.19134-1-james.qian.wang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-clientproxiedby: HK0PR01CA0028.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::16) To VE1PR08MB5006.eurprd08.prod.outlook.com (2603:10a6:803:113::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=james.qian.wang@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4f9cc606-7c04-4580-f719-08d6dff3508f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:VE1PR08MB4736; x-ms-traffictypediagnostic: VE1PR08MB4736: x-ms-exchange-purlcount: 1 nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0047BC5ADE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(346002)(39860400002)(396003)(366004)(199004)(189003)(36756003)(486006)(316002)(476003)(2616005)(6306002)(6512007)(6436002)(305945005)(478600001)(50226002)(14444005)(256004)(7736002)(86362001)(81166006)(6486002)(8676002)(71200400001)(966005)(2201001)(8936002)(81156014)(71190400001)(53936002)(2501003)(25786009)(5660300002)(2906002)(4326008)(386003)(14454004)(66446008)(1076003)(6506007)(52116002)(66556008)(66066001)(54906003)(99286004)(110136005)(3846002)(186003)(6116002)(64756008)(103116003)(66946007)(102836004)(26005)(55236004)(68736007)(73956011)(66476007);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR08MB4736;H:VE1PR08MB5006.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BDS40woZHowihxgx+RHI6Up9maH3rYbYsTtHMHsetYayN9VSSBd0qugAKoLOXkcKeS1h6vFwdrEAbKjAOXIivEY2fBzoa36T4c2gfHvK1p+w76tqlykJ6ckaRwIg+xxW3W8Uha0hH+izd9pwsvulMRgyDMNMR7QHb0SmmSZMvW7QXryZd5NMWe2o6Gtky4e6ZPCIZsKB/jWIcCfJFqfh7NcKobucSZhYb9XWLlA70GUTjCIU2VIwdQJu41nLsg0IBPSFCRZUqZ/PdrLbFMxmn6kjHSL+GajqiAvfJVcPTg/hWHqlpHPLt0oKvkIgYGkDSISM9NEDehr0c7Fzf6tbrUnqBl9z/4/ZKy7Z2Hrkb7Z+VG7L3h3Xfp7atC0msPp21fKe0kkmNj1l0WohFImm4j9103HHm76hmavQPGivXKE= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f9cc606-7c04-4580-f719-08d6dff3508f X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2019 02:55:45.8153 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4736 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org U2luY2UgdGhlIGNvbXBvbmVudF9zdGF0ZS0+aW5wdXRbaV0gaXMgb25seSB2YWxpZCB3aGVuIGl0 IGlzIGFjdGl2ZSwgdGhlDQpjb250ZW50IG9mIGlucHV0W2ldIGlzIHVuZGVmaW5lZCBpZiBpdCBp cyBpbmFjdGl2ZS4gVGhlIHVzZXIgbXVzdCBjaGVjayB0aGUNCnN0YXRlLT5hY3RpdmVfaW5wdXRz IHdpdGggaW5wdXQgaW5kZXggZmlyc3RseSBiZWZvcmUgdXNpbmcgc3RhdGUtPmlucHV0W2ldLg0K UmVmaW5lIHRoZSBmdW5jdGlvbiB0b19kNzFfaW5wdXRfaWQgYW5kIGRpcmVjdGx5IG1vdmUgc3Vj aCBjaGVjayBpbnRvIGl0Lg0KU2ltc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