Received: by 10.223.185.116 with SMTP id b49csp7186374wrg; Thu, 1 Mar 2018 01:02:38 -0800 (PST) X-Google-Smtp-Source: AG47ELtUpWJEKerEROAXCLHHGcPJTz002DWu5N0e4J7sJk2xTH7/J854y7w15SzpZitd7I+lANge X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr1262688plc.384.1519894958591; Thu, 01 Mar 2018 01:02:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519894958; cv=none; d=google.com; s=arc-20160816; b=JtC2A1gQNS/veNx68WHQVR0MvGUQCBBrOzOwlyctn0jdKOmgryXhTzIAo1pXHnFCEh Zn6nhvbexWAlIDvA11dpiYdQL8hWmURZAIuDZTb1l5owBsbC5zXCFgIx14P9Mximw5Eu 1tydm7UoAFTwctp+3XJl71MBQQWFOSkA/xwi9SeFmvNBL/8HHgxgUFyzbTmJ11qXCkF2 U1b+3kGbJThaHqeQwM+Iefaaif3KFbpJE31kddPNM2Od6m40KM5zkXxBCZXwcAN0EOeU DY8DlxGQhbrKw6JQExbuMWnnQ16VeWq2Mu/kYgtWeTjpgSHzFPNYq67ZdXXzf+52vPsf ZxTA== 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:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:arc-authentication-results; bh=LyPTJPfO1XtPT9Qy7tsgekSz8iikzZOdlDG+3bp1BnY=; b=mMdA/uZhVXCIJ037SQC2hGzG4fU0waDiEBDg+CMGwTQ7+vfcgI1/S22zY5AfHYbAw0 hq4zFPWVzI8PqRg8L9c2HWHtpEKRhEYm5g3WY1nxFudBdhqryl0Gy6ysymlRoa2fJDvb LmQb0hpjjGUFy+geKLEzp1LUZkv7rJeCKky6mXw1FjqOyu0MkDMPg2M2UeznM7Pwowcd oPIdkVR0u6Rx234hF3IvxR2I3JeGcthaMi+2+8hmVpvYcHbRxgz9ihhDFZWVsyJ4cyv4 xzas3BcFs1Ttg5Q1EQukdkaHxi/+Xey0k6qfnSqFPSUtWMP2ylDDDyN6XeXBD2v0LjsV rFdg== ARC-Authentication-Results: i=1; mx.google.com; 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 ay8-v6si2716162plb.614.2018.03.01.01.02.23; Thu, 01 Mar 2018 01:02:38 -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; 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 S966666AbeCAJBG (ORCPT + 99 others); Thu, 1 Mar 2018 04:01:06 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:24142 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965361AbeCAJBE (ORCPT ); Thu, 1 Mar 2018 04:01:04 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w218xa89022098; Thu, 1 Mar 2018 10:00:25 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2gbwb1bdp8-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 01 Mar 2018 10:00:25 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8168131; Thu, 1 Mar 2018 09:00:23 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E115B24A5; Thu, 1 Mar 2018 09:00:22 +0000 (GMT) Received: from SFHDAG6NODE3.st.com (10.75.127.18) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 1 Mar 2018 10:00:22 +0100 Received: from SFHDAG6NODE3.st.com ([fe80::d04:5337:ab17:b6f6]) by SFHDAG6NODE3.st.com ([fe80::d04:5337:ab17:b6f6%20]) with mapi id 15.00.1347.000; Thu, 1 Mar 2018 10:00:22 +0100 From: Philippe CORNU To: Archit Taneja , Andrzej Hajda , Laurent Pinchart , David Airlie , Brian Norris , Benjamin Gaignard , Bhumika Goyal , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , Sandy Huang , "Heiko Stubner" , "linux-arm-kernel@lists.infradead.org" , "linux-rockchip@lists.infradead.org" CC: Yannick FERTRE , Vincent ABRIOU , Alexandre TORGUE Subject: Re: [PATCH] drm/bridge/synopsys: dsi: readl_poll_timeout return value clean up Thread-Topic: [PATCH] drm/bridge/synopsys: dsi: readl_poll_timeout return value clean up Thread-Index: AQHTngA8EO6d0iime02JI6Vf5496FaO7Kq8A Date: Thu, 1 Mar 2018 09:00:22 +0000 Message-ID: <172e7f68-8f4b-7e5f-3e9f-7aaf10a51dc9@st.com> References: <20180204213624.18288-1-philippe.cornu@st.com> In-Reply-To: <20180204213624.18288-1-philippe.cornu@st.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.46] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-01_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQXJjaGl0LCBBbmRyemVqICYgTGF1cmVudCwNCg0KTWF5IEkgYXNrIHlvdSBwbGVhc2UgeW91 ciBmZWVkYmFjayBvbiB0aGlzIHNtYWxsIHBhdGNoPw0KTWFueSB0aGFua3MsDQoNClBoaWxpcHBl IDotKQ0KDQpPbiAwMi8wNC8yMDE4IDEwOjM2IFBNLCBQaGlsaXBwZSBDb3JudSB3cm90ZToNCj4g VGhlIHJlYWRsX3BvbGxfdGltZW91dCgpIHJldHVybiB2YWx1ZSBpcyAwIGluIGNhc2Ugb2Ygc3Vj Y2Vzcw0KPiBzbyBpdCBpcyBiZXR0ZXIgdG8gZGV0ZWN0IGVycm9ycyB3aXRob3V0IHRha2luZyBj YXJlIG9mIHRoZQ0KPiByZXR1cm4gdmFsdWUgc2lnbi4NCj4gDQo+IFNpZ25lZC1vZmYtYnk6IFBo aWxpcHBlIENvcm51IDxwaGlsaXBwZS5jb3JudUBzdC5jb20+DQo+IC0tLQ0KPiAgIGRyaXZlcnMv Z3B1L2RybS9icmlkZ2Uvc3lub3BzeXMvZHctbWlwaS1kc2kuYyB8IDEwICsrKysrLS0tLS0NCj4g ICAxIGZpbGUgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCA1IGRlbGV0aW9ucygtKQ0KPiANCj4g ZGlmZiAtLWdpdCBhL2RyaXZlcnMvZ3B1L2RybS9icmlkZ2Uvc3lub3BzeXMvZHctbWlwaS1kc2ku YyBiL2RyaXZlcnMvZ3B1L2RybS9icmlkZ2Uvc3lub3BzeXMvZHctbWlwaS1kc2kuYw0KPiBpbmRl eCA2NWFlYjNmNzhiNDguLjRkMGU4NDcxYTE1YyAxMDA2NDQNCj4gLS0tIGEvZHJpdmVycy9ncHUv ZHJtL2JyaWRnZS9ze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