Received: by 10.223.185.116 with SMTP id b49csp2632263wrg; Mon, 5 Mar 2018 06:19:26 -0800 (PST) X-Google-Smtp-Source: AG47ELtEryYrDX6lApBCIVCJi8KNiRP93Qs4ZZ/hnZcFxo1iR80zjb2CfDDekZS6Og/9FuNCUW29 X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr13504857plb.113.1520259566579; Mon, 05 Mar 2018 06:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259566; cv=none; d=google.com; s=arc-20160816; b=0JaMEBwKjV0AUYaR+n0J+FpUrK/w80HVlqzgAs9mRtQ/4zG2JSmMjdft/k7SkgdKmf yjuf/LQaaWxa/MiqIJ1QIdedT2TjP/II1l2r4Apxu7+urC+6TYl70YKTLbOG1BxO2q0D iub6GoYq9ph//LoCwatM6fWPmDtUfeCB+J4SiEnqFNfwVd810Yx9GfZg55EgJ1uQDT4r SalySW2UnWGV8/8koXxY60rwaOr2czUoi3Ls33zjy8dqjPVjYGAB4yxb3St6p6KcVS2O v7DQRLRj8ZvbEnuNw4Nbqkjrwcerj36VWCJE/KLrrmiIbkcgh0VvLCyBWjj/nx3Ciy9R JVKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter :arc-authentication-results; bh=6qF3cDBcKB/WySyV+rQQJTiYEYPagnnhHLD3Kup5VtQ=; b=lYpiW7UJIwIkd18YrB3SfdotQBbA0jatfKDrUypKwTGkIwbgUZcHeKGWccCsAbBdq0 I1nz0zH/NuBvDez0qaVz2DWZs82U4qifUg1/jHYuQ6rcGHMnQj+OeX//V/Z41CgVfre8 7xAJsMTVDAm+imYiVYAkkKkTjuuC7/T8ejuYPMZBDJw4ZWSe/Eq8oFcKO+mQmysrpB24 nmAp7lhkV07FyMZst/1ORa0ULt7mOLwi7BENACPHjV3IO8mvR4moPwZqz+CSRza1QRH8 WpR9Sq8QahAg+hR0wm/s5hp87wFK8REwsk+b5pdHgm/KcpSIE6R9S0/X7JDBUT4S9Atd 63rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sqCFA/wk; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si8367154pga.551.2018.03.05.06.19.12; Mon, 05 Mar 2018 06:19:26 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sqCFA/wk; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935114AbeCENZs (ORCPT + 99 others); Mon, 5 Mar 2018 08:25:48 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34079 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932084AbeCENZo (ORCPT ); Mon, 5 Mar 2018 08:25:44 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180305132542euoutp0105d3fabb9ef81ec240158486190e9c04~ZCRbKumWG2532025320euoutp018 for ; Mon, 5 Mar 2018 13:25:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180305132542euoutp0105d3fabb9ef81ec240158486190e9c04~ZCRbKumWG2532025320euoutp018 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520256342; bh=6qF3cDBcKB/WySyV+rQQJTiYEYPagnnhHLD3Kup5VtQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=sqCFA/wkclKdBHdDzpMr6pjDaAmqdlpZftczaadPhHFEaXEPXsH/nxlYqupKQhLCe rQEQ9HPazFIYjDMr7wmUdncjMESEXO6RQI4ra0AnUiVKcc2U85IfGejtf5dI5C0n98 sFyeexbwFj8JBJcScbIL6aXgTpeaGS8qoTM9zZPg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180305132538eucas1p2f262638caf8238ed5b77084b81f99774~ZCRW1Uivk2795127951eucas1p2Q; Mon, 5 Mar 2018 13:25:38 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 80.04.05700.F454D9A5; Mon, 5 Mar 2018 13:25:35 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180305132533eucas1p1aefe38e25fb8c70ef884e90343a410c8~ZCRSWVUD21314813148eucas1p1o; Mon, 5 Mar 2018 13:25:33 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180305132531eusmtrp134797b67c1991092ef8e4386323f7e50~ZCRQgo72z1526815268eusmtrp1C; Mon, 5 Mar 2018 13:25:31 +0000 (GMT) X-AuditID: cbfec7f2-5ffe19c000011644-4d-5a9d454fc026 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BE.A0.04183.9454D9A5; Mon, 5 Mar 2018 13:25:29 +0000 (GMT) Received: from [106.120.43.17] (unknown [106.120.43.17]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180305132528eusmtip1d7673e1e1d0e9fea6996e4bee69f2ef3~ZCRON9UXV0549105491eusmtip1m; Mon, 5 Mar 2018 13:25:28 +0000 (GMT) Subject: Re: [PATCH] drm/bridge/synopsys: dsi: readl_poll_timeout return value clean up To: Philippe CORNU , Archit Taneja , 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 From: Andrzej Hajda Message-ID: <8b47bb1d-ff1d-b85a-18ca-b53b70c1a32d@samsung.com> Date: Mon, 5 Mar 2018 14:25:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <587f8a32-b9b3-0e81-d91d-69ea256bdc29@st.com> Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0iTYRTHefZefDfaeJzGTipF60IJZULQi5ZEJb4fiqIv6Qht5puGbsrW TJPMLHNaXirKnFs1VJRIJe9ZUi3KSruXZRc3TMuSMbrMiry07U3y2++c53/+5/zhYQj5TyqI 2avdx+u06jQlLSHb7/5+vGJrtEW16u5ZGVvy6L6IvTLci9h8o5Ni820PaPbbYBnNNn91UewL t4tmp4fGKNZy6iBbdLLGj23+0E+xz7vMHpljmmAdR0cptu/lTZItLCqg12OuKu8pyT0vLRFx V03v/bgqYyXFveu/TnMd4w6Ksx/vEXEtNYe4SdMNkuvoP09wI7+6Ce578/xtc1SStUl82t5M XhcWtUuS4njkojMaJFnj9VZRHiplipGYAbwahpzVZDGSMHJcj8B1rYEQih8IxloLKK9Kjr8j aLFGzEz0dR5GgqgOwY3ymn+FE8Fly0fC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GKU+PXwMTOIIySwmEni4bZN7CAtbAKaEn833wQbxStgJ9H79xvYahYBFYn1 XXvBbFGBCInOlfNZIGoEJU7OfAJkc3BwClhJXF+eChJmFlCX+DPvEjOELS+x/e0cKFtc4taT +UwTGIVmIemehaRlFpKWWUhaFjCyrGIUSS0tzk3PLTbSK07MLS7NS9dLzs/dxAhMCNuO/dyy g7HrXfAhRgEORiUeXoHCOVFCrIllxZW5hxglOJiVRHilJOdGCfGmJFZWpRblxxeV5qQWH2I0 BfptIrOUaHI+MFnllcQbmhqaW1gamhubG5tZKInznjeojBISSE8sSc1OTS1ILYLpY+LglGpg rDlxyu5Xbo70GrclItM35X1a37lTeULxOtbAX5fs/mwpzX9dt1f8WeHVoJzTZR8+nja/c6vW l+lhxJqKaacv6V6d5Vn9aO/lhixmprtnmZW/TXXV3cufVhx95pZQ9mKf+NIbKbZ3Ocx/Zrcd cP52dm+p6s4VvnpMXOkzRHmS/hnmLNpSpix9QImlOCPRUIu5qDgRANk17CseAwAA X-CMS-MailID: 20180305132533eucas1p1aefe38e25fb8c70ef884e90343a410c8 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180305132533eucas1p1aefe38e25fb8c70ef884e90343a410c8 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180301090106epcas2p3c47f4436b0c8a31ce71cfd3909dc77ae X-RootMTR: 20180301090106epcas2p3c47f4436b0c8a31ce71cfd3909dc77ae References: <20180204213624.18288-1-philippe.cornu@st.com> <172e7f68-8f4b-7e5f-3e9f-7aaf10a51dc9@st.com> <290c749a-70bf-2b74-1fb9-2de26708d001@samsung.com> <587f8a32-b9b3-0e81-d91d-69ea256bdc29@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02.03.2018 14:15, Philippe CORNU wrote: > Hi Andrzej, > > > On 03/02/2018 11:21 AM, Andrzej Hajda wrote: >> On 01.03.2018 10:00, Philippe CORNU wrote: >>> Hi Archit, Andrzej & Laurent, >>> >>> May I ask you please your feedback on this small patch? >>> Many thanks, >>> >>> Philippe :-) >>> >>> On 02/04/2018 10:36 PM, Philippe Cornu wrote: >>>> The readl_poll_timeout() return value is 0 in case of success >>>> so it is better to detect errors without taking care of the >>>> return value sign. >>>> >>>> Signed-off-by: Philippe Cornu >> The patch is of course correct. However I am not sure if necessary. For >> sure functionally it does not change anything. >> AFAIK kernel CodingStyle says nothing about it, so I suppose it is >> matter of personal taste. > I sent this tiny patch in order to homogenize the dw mipi driver because > there were both cases "if (ret)" & "if (ret < 0)" in the source code. > > I did not really find a preferred way in the kernel source code so I > selected what sounds the best to me ie "if (ret)" but it is not a > problem to make another patch for "if (ret < 0)" everywhere :-) > > In any case, the most important from my pov is to have a homogeneous > source code :-) OK Queued to drm-misc-next. Regards Andrzej